News Apache
Start Apache
sudo apachectl start
Check it’s working: http://localhost/
PHP
In /etc/apache2/httpd.conf, uncomment this line:
LoadModule php5_module libexec/apache2/libphp5.so
Restart Apache
sudo apachectl restart
Fix a warning appearing in phpinfo()
Create /etc/php.ini and make it writable
cd /etc
sudo cp php.ini.default php.ini
sudo...
5 months, 3 weeks ago, Posted by BuzzCrunch
Tags: apache, mac, mysql, php, snow leopard
Linux PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /usr/lib/php/PEAR.php on line 868.
Here’s the entire error message…
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33532118 bytes) in /home/anxietyz/public_html/blogs/includes/database.mysql-common.inc on...
6 months, 3 weeks ago, Posted by BuzzCrunch
Tags: memory limit, php
Web Development Say you want a PHP script that will make the browser to download a file instead of opening it. This is useful for common filetypes that would normally be displayed in a browser, like .html, images, PDFs and .doc files.
You can find a lot of scripts that do this on the web but one thing most of them don’t handle is download...
7 months, 2 weeks ago, Posted by BuzzCrunch
Tags: code, download, force download, image, php, script
Recent Comments
Cleavagefield (1)
Nick.com/iCarly Vote for your favorite episdoes (1)
Robert Spillane, Son of New York City Mobster Mickey Spillane, Dies From Fall (1)
Actor James Gammon dies – Major League’ star dead at 70 (1)
John Callahan, Cartoonist and Musician, Dies – Complications of Paralysis and Surgery End Portland Man’s Life (1)