All Entries Tagged With: "PHP"
PHP function returning incorrect time
Issue: Php function was returning wrong time. There was a difference of 1 hour between the server time and the php time. Due to this ,most of the functions on the site were not working properly. Fix : For checking the php time, put the following code in a file, say time.php <?php $time = [...]
Error while trying to send mails through a PHP application
You may get an error while trying to send mails through your PHP application.
This can be fixed by reloading the pear mail modules.
PhpMyadmin errror “#2002
Issue : The phpMyadmin errror “#2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured)” Fix : 1.First check whether mysql is working in the server or not. 2. Check whether there is a symbolic link from mysql.sock to /tmp. If not, create a symlink between /var/lib/mysql/mysql.sock and [...]
Php error : “Cannot modify header information”
Issue : Are you familiar with the following PHP error. ? [Warning: Cannot modify header information - headers already sent by (output started at /home/jusdor/public_html/forum/config.php:48) in /home/jusdor/public_html/forum/addtopic.php on line 72] Fix : Edit php.ini and set output_buffering = on; Output buffering allows you to send header lines (including cookies) even after you send the body [...]
php mailer and PEAR module
Issue: Error – Fatal error: Call to undefined method PEAR_Error::send() Fix: #cd /root/sourc wget http://download.pear.php.net/package/Mail-1.1.14.tgz wget http://download.pear.php.net/package/Net_SMTP-1.2.10.tgz wget http://download.pear.php.net/package/Net_Socket-1.0.8.tgz Extract it now copy the extracted files to /usr/local/lib/php/ #cd /usr/local/lib/php mkdir Net cd Net cp /root/source/Net_SMTP-1.2.10/SMTP.php . cp /root/sourceNet_Socket-1.0.8/Socket.php . cd .. cp -avr /root/sourceMail-1.1.14/Mail/ . cp -avr /root/source/Mail-1.1.14/Mail.php .

1800 810 6547