hi all..

i need to update my php 4.3.10 install. it's running with an older apache 1.3.33. what i need to know is can i jump to 5.x or should stay with the 4 one. what's the chance that applications will start falling apart if i go with 5.x?

thanks....

    the question is, what do I do with set_error_handler and trigger_error so when there is an error they will show where is the error in the program itself instead of the function library?

      if I remember correctly, the biggest difference between installing PHP4 or 5 is that you need to switch the numbers in the apache config from 4 to 5. I can't confirm for ya because I've installed 5 straight...

      as for compatibility, as far as I know, 5 is fully backward-compatible, but in some parts of the documentation it says that some things are deprecated and bound for deletion, so I suggest you adjust your project to the new PHP5 standerds.

        Henry0 at WebmasterWorld (link ) wrote this:

        Install PHP5
        Unzip the PHP zip to C:/PHP (Create the Dir PHP at C:/ root level) Next: Shut down Apache;
        Crank up your favorite editor again and open the apache httpd.conf and add two lines of code:

        LoadModule php5_module C:/php/php5apache2.dll
        AddType application/x-httpd-php .php
        <edit> Added .php extension to show how to parse .php files</edit>
        I have added those two to the very bottom of the httpd.conf file.
        <edit>Note: See Message 11 below on where to put the LoadModule directive!</edit>
        Verify that the path in the LoadModule directive points to the dir where PHP is installed.

        Next, copy/paste "php.ini-dist" to C:/Program Files/Apache Group/Apache2, and rename it to php.ini.

        In order to get a working WAMP we need to copy from C:/PHP root and from C:/PHP/ext some DLLs to Apache2 root (Where you did paste your renamed copy of php.ini) those are:

        fdftk.dll
        fribidi.dll
        gds32.dll
        libeay32.dll
        libmash.dll
        libmysql.dll
        libmysqli.dll
        msql.dll
        ntwdblib.dll
        php5apache2.dll
        php5apache.dll
        php5apache_hooks.dll
        php5isapi.dll
        php5nsapi.dll
        php5ts.dll
        phpmsql.dll
        phpmssql.dll
        phpmysql.dll
        phpmysqli.dll
        ssleay32.dll
        yas.dll

        We need to set the PHP path for Windows:
        Go to:
        Control Panel > System > Advanced tab
        Click on "Environment variables"
        Look in the "System variables" pane
        Find the "Path" entry
        Double click it and add at the end of the string your PHP dir
        You need to start with ";" without double quotes!
        And follow by: C:\php
        So it will look like: ";C:\php" Again, without double quotes!
        Now restart the Apache server.
        Test: Create a simple file such as php5_info.php

        <? phpinfo();?>

        Save it in C:/Program Files/Apache Group/Apache2/htdocs/php5_info.php
        Open a browser and enter the following address http://localhost/php5_info.php it should display your complete PHP setting if it does not work properly you might have done something wrong with the multiple edits; check them out and give it another go.

        Open up C:/Program Files/Apache Group/Apache2/php.ini. First, stop Apache
        On line 276, you may change:

        error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
        to
        error_reporting = E_ALL

        It worked for me though I use Apache 2.0.54.

          Write a Reply...