Ars Informatica
August 12, 2020
Health Care Informatics
Web-based MySQL/PHP Databasing
Web Development
Favourite Software
Hardware for the Frugal Fanatic
Graphic Design and Image Processing
Free Scripts and Software
About Us
Contact Us

 Article Feed for this site

PHP Script Timer finds the code that's choking you ...

May 17, 2006

Code choking your server's CPU? Site visitors clicking away because your page is taking too long to respond? Do you know?

Some code just plods. Retrieving and parsing remote files, image manipulations, multiple complex SQL queries, etc. grind down your site. Our PHP Script Timer identifies these bottlenecks.

For example, you want to retrieve and parse a remote RSS news feed. Do you use a locally cached file copy if it's current enough? Do you not bother, and just use the remote feed each time? Does it matter? Using our walRuSS.php RSS feed reader gives us the following script execution times:

xml_parser-based RSS feed reader, non-cached: 1.554 secs
xml_parser based feed reader, cached: 0.0444 secs

[ Read more ... ]

PHP micro-script displays PHP, HTML, Javascript code without parsing

May 6, 2006

It's almost embarrassing to release two lines of code as a script - but I haven't found anything similar anywhere else on the 'Net. It displays PHP, HTML, Javascript and other source code direct from file, unparsed, and presents it cleanly and professionally. An image link brands the displayed code, and refers viewers back to the main site.

Complete functionality derives from one simple PHP function - htmlentities() - which converts all PHP, HTML and other tags to non-coding, display-only character codes, without parsing. Too easy.

This PHP script is released under the terms of the GNU General Public License, i.e. free for you to use, modify, and even redistribute under the terms of this license. [ Read more ... ]

Image creation and manipulation using the gd Graphics Library

April 1, 2006

GD Graphics LibraryThe gd Graphics Library is an open source code library use to create and manipulate PNG, JPEG and GIF images. Part of the standard PHP installation, it is available with most MySQL/PHP web hosting packages - if it isn't already available to you, ask for it!

GD is used to dynamically produce charts, graphics, thumbnails, etc., usually by web sites, though it can be incorporated into other programming projects. Create animated GIFs, add FreeType and TrueType text, draw complex graphics, or convert from one image format to another.

GD isn't difficult, but you can't just call a grayscale() function, either. It takes some work. We help you out. [ Read more ... ]

[ Prev ][ Next ]
Copyright © 2020 Ars Informatica. All Rights Reserved.