Archive for the 'Programming Languages' Category

PHP Parse Error: syntax error, unexpected $end

Sunday, April 23rd, 2006

In PHP 5, the following error may appears as an error entry in Apache error log or simply displays on PHP web page, even if calling to php scripts with php_info() works perfectly and successfully returns information on PHP configurations:

Parse Error: syntax error, unexpected $end in ….. scripts.php on line …

Continue reading PHP Parse Error: syntax error, unexpected $end » » »


PHP Allowed Memory Size Exchausted Fatal Error

Sunday, April 23rd, 2006

A functional PHP script returns the following error either on the web page or in Apache error log file when it exchausted and used up the default memory requirement of 8 MB memory allocation:

PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate … bytes) in …

Continue reading PHP Allowed Memory Size Exchausted Fatal Error » » »

PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions

Friday, April 21st, 2006

With Apache/2.x.x or Apache/2.2.x webserver, with PHP5 as the scripting module, a HTTP communication error may occur within the PHP scripts that are parsing and running via the web server.

The errors that generated by PHP include:

Continue reading PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions » » »

gmmktime Error in WordPress and MagpieRSS

Sunday, April 16th, 2006

If you’re running PHP 5.1 with your web server, you may encounter the following error in your Apache web server error log file (i.e. httpd-error.log) whenever there are requests to the RSS feed and the Apache need to parse the RSS in PHP:

Continue reading gmmktime Error in WordPress and MagpieRSS » » »


Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5

Friday, April 14th, 2006

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server

Part 5 - Installing PHP Hypertext Preprocessor Scripting Language 5 and PHP 5 Extensions

  1. Install by enter the following commands on FreeBSD OS command line, wait for previous command to finish before running the next command:

    cd /usr/ports/lang/php5
    make install clean

  2. Continue reading Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 » » »

Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4

Thursday, April 13th, 2006

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server

Part 4 - Installing Apache HTTPD Web Server 2.2

  1. Install Apache HTTP Server 2.20 by using FreeBSD Ports Collection:

    cd /usr/ports/www/apache22
    make install clean

  2. Continue reading Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 » » »

Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3

Thursday, April 13th, 2006

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server

Part 3 - Installing MySQL Server 5 with FreeBSD Ports Collection

  1. Login to the FreeBSD system as root, or su - root to get to super user environment.
  2. Continue reading Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 » » »

Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 2

Sunday, April 9th, 2006

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server

Part 2 - Post-Installation Configuration Tasks of FreeBSD 6.0

  1. Select [Yes] and press Enter when prompted the following message to configure Ethernet or PPP/SLIP network devices:

    Continue reading Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 2 » » »