Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    help question PHP4/PHP5 config question

    Hi all,

    I'm currently running zen 1.3.8 with PHP 4.4.7 w/MySQL 4.0.27.

    There is a contribution (AJAX IMAGE Swapper), that I want to use that only runs on PHP5.

    My hosting company default setting is PHP4 for the .php extention. They will allow me to run PHP5 by creating an .htaccess file with the following line added: AddType x-mapp-php5 .php, which will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the directory the .htaccess is placed and all sub-directories under it.

    My question is do I put the .htaccess file in the site root directory or only in the directories where the mod is being placed?
    Last edited by tonkali; 20 Jan 2008 at 12:36 AM.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: PHP4/PHP5 config question

    Zen Cart not only works fine with PHP5, but soon won't be guaranteed to work with PHP4. So if your host isn't already making plans to switch completely, I'd stick that band aid in your Zen cart's root folder and have it apply to the whole cart.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    Default Re: PHP4/PHP5 config question

    Zen Cart not only works fine with PHP5, but soon won't be guaranteed to work with PHP4


    THANKS kuroi!!! you're a gem , really appreciate the response!

  4. #4
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: PHP4/PHP5 config question

    Just as a General question, are people starting to run their hosts in php5 mode now? It seems as if zc 1.3.8a is working fine for people in php5 and the GoPHP5 initiative is coming up fast.. So is it good practice to add that line to my .htaccess file and start using php5?

    -EDIT-
    WOW i just checked and we are only 12.5 days away! I better get testing with my host.
    Last edited by qhome; 23 Jan 2008 at 04:54 PM.

  5. #5
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: PHP4/PHP5 config question

    php5 is just around the corner. I'm eagerly waiting for ZC to come fully php5 so that I will change all my mods to php5 as well.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: PHP4/PHP5 config question

    Our test server has been running PHP5 for almost two years. Our public host (Camelot) also runs PHP5.

    I stopped testing my mods against PHP4 many months ago, and no longer have easy access to it. I recommend to my clients that they only use hosts who offer PHP5 and help them to move if their existing host is falling behind.

    PHP4 has passed its "end of life". Time to move on.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: PHP4/PHP5 config question

    Well hot damn! That was simple. I put a phpinfo.php file in my zen-cart root. Checked it and it said php4.4.2 or something

    I just added
    Code:
    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml
    to my .htaccess file in my zen-cart root directory and checked the phpinfo.php file I have in there and sure enough it is running php5.2.0 :)

    My Tabbed Products Pro contrib appears to be completely transparent and working perfectly :)

  8. #8
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: PHP4/PHP5 config question

    Hi

    I'm still on Zen Cart 1.3.7.

    Will that run on php5 ok?
    thanks
    Jonathan

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: PHP4/PHP5 config question

    Quote Originally Posted by wrongjon View Post
    Hi

    I'm still on Zen Cart 1.3.7.

    Will that run on php5 ok?
    thanks
    Jonathan
    Minimum 1.3.7.1 or 1.3.8 recommended for PHP5.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: PHP4/PHP5 config question

    I have 1.3.7.1 yes.

    thanks

 

 

Similar Threads

  1. Changed Php4 to Php5
    By Natural Tone in forum Installing on a Windows Server
    Replies: 4
    Last Post: 24 Nov 2009, 07:16 AM
  2. upgrading PHP4 script to PHP5 - I am clueless!
    By keithanderton in forum General Questions
    Replies: 2
    Last Post: 31 Mar 2009, 02:26 PM
  3. Changed php4 to php5 - blank pages
    By wmorris in forum General Questions
    Replies: 7
    Last Post: 3 Nov 2008, 07:00 AM
  4. php4 => php5
    By Eddydiver in forum General Questions
    Replies: 5
    Last Post: 16 Sep 2007, 12:40 PM
  5. server upgrade PHP4 to PHP5
    By nielz in forum General Questions
    Replies: 2
    Last Post: 25 Nov 2006, 04:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg