Archive for the “PHP” Category

PHP – File too large to upload

Your file size upload is controlled by two variables in php.ini

upload_max_file_size and post_max_file_size

October 2, 2009 Posted Under: PHP   Read More

missing the mysql which is required for wordpress

php installation appears to be missing the mysql which is required for wordpress

======
open the php.ini file.
if you do a search for extension=php_mysql.dll and un comment it ie delete the ; at the beginning of the line
then search further up in the ini file for extension_dir=”./” and replace ./ with c:\php\ext (assuming your php is in c:\php) so it will look like: extension_dir=”c:\php\ext”. This tells php that the dllfor the php_mysql.dll is located in c:\php\ext.
save your php.ini
Also copy libmysql.dll from c:\php c:\windows\system32 and then restart IIS

September 11, 2009 Posted Under: PHP   Read More

PHP has encountered an Access Violation

There seems to be a bug when using PHP version 5.2.10 on windows 2003. Using the isapi module We have encountered the following error
“PHP has encountered an Access Violation”

After downgrading to 5.2.6 the error has cleared.

September 11, 2009 Posted Under: PHP   Read More

PHP : mysql_connect

Error:
Fatal error: Call to undefined function mysql_connect()

Make sure the mysql extension has been enabled in the php.ini file. normally as mysql.so or you can check using the phpinfo() function.

Lastly ensure you are using double quotes in your connection string and not single

July 11, 2009 Posted Under: PHP   Read More

Zencart: easy populate

error:
Warning: array_flip() [function.array-flip]: The argument should be an array in path\path on line 1224

issue: this occurs if you are using the latest version of easypopulate on a PHP 4 server.
fix :
The length parameter has been set to 0 on line 1222, which is OK for PHP5, but PHP4 needs a real number. I changed mine to 1000 and it now works fine.

was:
} else if($filelayout = array_flip(fgetcsv($handle, 0, $csv_deliminator, $csv_enclosure))) {

now:
} else if($filelayout = array_flip(fgetcsv($handle, 1000, $csv_deliminator, $csv_enclosure))) {
PHP reference
Web Forum

May 10, 2009 Posted Under: PHP   Read More