PHP error – URL file-access is disabled in the server configuration

If you get the following error while accessing a PHP script URL file-access is disabled in the server configuration Add the following into the .htaccess file for the particular website to get this work. php_flag allow_url_include Off Note: However, it’s highly recommended to keep allow_url_include disabled as it would be a security risk otherwise. This function allows remote files to be executed...

January 17th, 2010 by Akhthar Parvez 

Install Mailparse

Mailparse is a PECL (PHP Extension Community Library) extension for parsing emails. You should have the PHP module mbstring for mailparse to work. It’s a pretty straightforward task. Run the following command to install mailparse: # pecl install mailparse If you get the following error whle compiling mailparse: checking whether the C compiler works… configure: error: cannot run C compiled...

December 31st, 2009 by Akhthar Parvez 

PHP Fatal error: Allowed memory size exhausted

If you get the following error while running a PHP script Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in /home/abc/www/modules/project/mail.inc on line 243 It’s because the particular limit has exceeded the memory usage limit set in PHP configuration file. You can fix the issue by increasing the memory limit, if needed, by modifying the paramter...

December 22nd, 2009 by Akhthar Parvez 

PHP CGI T_STRING error

PHP-CGI not working If you get the following error while accessing the PHP page, which is running as CGI: (ASCII=21) state=1 in /usr/local/cpanel/cgi-sys/php4 on line 382 Warning: Unexpected character in input: ‘ in /usr/local/cpanel/cgi-sys/php4 on line 382 Parse error: syntax error, unexpected T_STRING in /usr/local/cpanel/cgi-sys/php4 on line 382 FIX: Set the following under “Paths...

December 22nd, 2009 by Akhthar Parvez