When upgrading php from php4 to php5, the following error occurs;
gd-png: fatal libpng error: zlib error
I've found the solution - so I thought i'd post it here to help others.
In php5, the quality range changes for imagePNG from 0-99 to 0-9. therefore you need to change your code to relect this, e.g.
imagePNG('','', 9);
(instead of imagePNG('','',90)) - I divided the quality value by 10 and then round or floor the value accordingly.
Wednesday, 6 June 2007
Tuesday, 5 June 2007
Change Password in Linux
The password for linux can be changes using the passwd command. Here are a few basic examples of how to change the password from the command line;
passwd Change your own password.
passwd ftpuser Change ftpusers' password.
passwd -d ftpuser Delete ftpusers' password.
Short but sweet - i'd thought i'd add this as I always forget things like this!
passwd Change your own password.
passwd ftpuser Change ftpusers' password.
passwd -d ftpuser Delete ftpusers' password.
Short but sweet - i'd thought i'd add this as I always forget things like this!
Subscribe to:
Posts (Atom)