Solved

PHP5, PHP4, MySQL 3.x Questions

Posted on 2004-10-30
517 Views
Last Modified: 2012-06-27
Wonder if anyone can help. I've got various questions re: various vers of PHP 5,4 with MySQL 3.x

1. Can PHP 5 work with MySQL 3.x? Got any URL's to any articles to prove it if it does work? I can't find anything definitive anywhere on the net.


2. I've got an ISP that has setup PHP 4.2.3, and PHP 5.0.2 on the same webspace. They tell me that the PHP5 pages have to end in :eg to be rendered as PHP5. I've not tried, but, has anyone else come across this?

If I upload a PHP5 page containing just phpinfo() and then :eg will that then show me info re: the PHP 5 installation?


3. Anyone any links as to how to setup a server with two installations of PHP (4 and 5) running simultaneously? This is for local working.


Thanks, Ben.



0
Question by:bcops
    5 Comments
     
    LVL 10

    Expert Comment

    by:frugle
    the extension of your page .asp, .jsp, .htm, .html, .php, .php3, .pl, .py, etc. is what tells the server which parser to use to interpret the code. You can make your server push .htm files through php if you really want to - and some people like to do this - cloaks the fact that the pages are dynamic.

    php5 should work with mysql 3x - nothing to stop it... just bear in mind that some scripts written in php5 will require a higher version of mysql and could use queries that aren't supported.  It's usually best practice to use the latest stable version of any software for mission-critical apps.

    As for setting up the server with 2x installations, as long as you install them to different paths and put the right information (which version to use to parse what type of page) into apache's httpd.conf then you shouldn't have a problem.  I would check dependancies before installing 5x and back everything up beforehand in case you need to rollback.

    Mike
    0
     

    Author Comment

    by:bcops
    Hi Mike,
    Thanks for the reply.

    By end of page, I thought they meant that the content within the pages ended in :eg, not the actual pages themselves.

    Thanks for the info re: mysql3x and 2x versions.
    Ben.

    0
     
    LVL 10

    Expert Comment

    by:frugle
    > content within the pages ended in :eg

    hrm, dunno how they would manage that - maybe they are pre-parsing the pages before they decide which pre-parser to parse them with prior to rendering.

    sounds horsecrap to me :-)

    you got info on their support pages? I'd like to check them out.

    Mike
    0
     

    Author Comment

    by:bcops

    Yeah, it sounded rubbish to me too.
    Anyone else any URL's on setting up both PHP5 and PHP4?
    Or anyone else actually tried PHP 5 with MySQL 3.x?

    Thanks, Ben.
    0
     
    LVL 10

    Accepted Solution

    by:
    more research for you...

    Article 1
    ----------

    John Coggeshall explains, using two Apache instances, Apache's mod_proxy and a virtual host.

    http://wiki.coggeshall.org/37.html

    Article 2
    ----------

    Urs Gehrig does 4+5 on windows. This is probably about the quickest and easiest way to get them running together. Of course PHP as a CGI is not quite the same as an Apache module, performance / $_SERVER variable-wise. Urs also has a handy page of links on PHP5 Installation: http://www.circle.ch/wiki/index.php?page=Installation%2FPHP5

    http://www.circle.ch/blog/p1387.html

    Article 3
    ----------

    Tobias Schlitt explains how to get both running as apache modules under Linux.

    http://www.schlitt.info/applications/blog/archives/83_How_to_run_PHP4_and_PHP_5_prallel.html

    hope these help

    Mike
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Learn The Basics of Ethical Hacking & Pen Testing

    Computer and network security is one of the fastest growing and most essential industries in technology, meaning companies will pay big bucks for ethical hackers. This is the perfect course to leap into this lucrative career, learning how to use ethical hacking to reveal ...

    As this topic comes over and over again in different forms, I've finally decided to write a short (yea, right...) article / tutorial about pagination with PHP with MySQL database. There are dozens of these kind of tutorials, I know - I wanted to mak…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now