Install Php4 And Php5 At The Same Time To Apache
Here is some note about installation together php4 and php5 on apache2.
First you need is to edit with the help of hex editor php4apache2.dll (in my case, or php5apache2.dll) in php4 directory. You find "x-httpd-php" and replace with "x-httpd-plc" e.g. (I found 2 matches) Save your dll file and edit your apache config (httpd.conf) e.g. like: Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Install Php4 & Php5
Wanted to install php5 as well as php4 in a single system is this possible..Windows XP Please let me know and one more thing can u send me some easy and good link to install php 4 and php5 in windows XP environment.
View Replies !
Install PHP5, Apache 2.2 And IIS
The book that I have talks you through the setup of both Apache and PHP. I allready have IIS installed. when I go to localhost:8080 I get an unable to find page come up. I have checked the error log and I get the following; [Wed Jan 31 13:28:58 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico I have checked for the file on my system and it is indeed not there. But surely not having a favicon is not a reason to shut it down?? If so I have downoloaded the latest full packages today, so seems a little strange that it is missing.
View Replies !
Apache 2.0 W/PHP4; W/PHP5 Cohabitate
Apache 2.0 is currently installed to support an application using PHP4. I do not have PHP4 development environment installed. I want to install PHP5 for a learning session. The httd.conf file in Apache has the following entry: LoadModule php4_module "C:/Program Files/ktdms/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/Program Files/ktdms/php" <Directory "C:/Program Files/ktdms/knowledgeTree"> The install process for PHP5 application instructs the following insertion in httd.conf: # For PHP 5 do something like this: LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/php" Will this work without conflict? Can I install PHP5 development environment using Apache 2.0 while another application is using Apache 2.0 with PHP4?
View Replies !
Install PHP5 And Apache 2.2.2 (Linux)
I'm running into the same problem that no doubt many are. I'm installing PHP 5.1.4 and Apache 2.2.2 on the same server, but Apache won't recognize the PHP module, saying it's garbled. I understand from reading various bug reports that PHP will release this option come 5.2.0, but I want to know if anybody has PHP 5.1.4 and Apache 2.2.2 working under Linux yet.
View Replies !
Install Php5 On A SuSE 9.3 Linux System Running Apache 2.0.49
I am trying to install php5 on a SuSE 9.3 Linux system running apache 2.0.49. For some reason,when attempting to restart the server,I get the following error: "Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2-prefork/libphp5.so into server: /usr/lib64/apache2-prefork/libphp5.so: undefined symbol: php_session_create_id" Does anyone know what is causing this error,or what I can do to correct it?
View Replies !
Install Php4
I have installed php4 on my linux server,and all the process is so smooth,but when I write a php file only content a single sentence of <? phpinfo ?>,the system tells me the version of the php is 3.0.15,why?At the same time the php cann't connect ot mysql.
View Replies !
Uninstalling Compiled Php4 Install...
An old pet peeve of mine with *nix has reared its ugly head - the total lack of uninstall on compiled apps. After compiling php4 on debian, I've had some problems and would like to completely remove it. Make uninstall doesn't work, and I can't just go around removing the files as the various db's (locate, whereis, etc) won't be updates - and should I install a packaged version, it would be a disaster.
View Replies !
Changing PHP4 Install Type
I've correctly installed PHP4 on redhat6.2 box with perl, apache1.3.12 The problem is that I installed it as an apache module, and the webserver my company uses has it installed as a CGI. How do I change my install to a CGI install, or how do I uninstall PHP so I can start over?
View Replies !
Use PHP4 Dom XML In PHP5?
Is it just me... Or is PHP5 XML very limited? Or am I missing something very obvious? Any way to use PHP4 Dom XML in PHP5? Does anyone know why support for it was dropped? I have following code I need to have replaced: PHP4 $eir_dom = domxml_open_mem($eir_padfile_content); $eir_root_node = $eir_dom->document_element(); // = root element PHP5 $eir_dom = new DOMDocument; $eir_dom->loadXml($eir_padfile_content); // how do I set $eir_root_node ? PHP4 .... $nodes = $cur_root_node->child_nodes(); .... if ($test_node->node_name() == $next_node_name_to_find) { PHP5 // child_nodes(); node_name() PHP4 .... if ($node_child->node_type() == XML_TEXT_NODE) { $node_child->set_content($new_content); break; } PHP5 // set_content, node_type()
View Replies !
PHP4 Dom XML To PHP5 XML
Can anyone point me to a guide or something for conversion? I tryed http://alexandre.alapetite.net/doc-...5/index.en.html but it doesn't work (not all parts anyway) - and as I can't find a working IDE/debugger combination I can't currently figure out why. I need to translate following code: PHP4 $eir_dom = domxml_open_mem($eir_padfile_content); $eir_root_node = $eir_dom->document_element(); // = root element PHP5 $eir_dom = new DOMDocument; $eir_dom->loadXml($eir_padfile_content); // need equalant of: document_element(); PHP4 .... $nodes = $cur_root_node->child_nodes(); .... if ($test_node->node_name() == $next_node_name_to_find) { PHP5 // need equalant of: child_nodes(); node_name() PHP4 .... if ($node_child->node_type() == XML_TEXT_NODE) { $node_child->set_content($new_content); break; } PHP5 // need equalant of: set_content, node_type()
View Replies !
PHP4 Vs PHP5
I had php script that used to work with PHP 4.3.4 but stop working as soon as I use the PHP5RC1? Are there list differences that is deprecated/removefrom PHP4.3.4?
View Replies !
Php5 Or Php4 Sql
my previous php applicaiton written in php4 couldn't work. I see is a blank screen, example when i go to localhost/xyz/index.php.
View Replies !
PHP4 Or PHP5?
I'm having a bit of a dilemma, shall i update my software (which is increasing using OOP) to php5 and loose my RHEL compatability, or stick with php4?
View Replies !
Using PHP4 Or PHP5
As I mentioned earlier (in a posting to the PHP mailing list), I am putting a team together to create a web-based RPG, different from the one I am currently playing. Would it be better to use PHP4 with it's strong developer base, or the new PHP5 which is more object oriented an in my opinion would be easier to keep the game up to date?
View Replies !
PHP4 Or PHP5
I need to build a CMS and i have very little expierence with php. I know the main differences betweet php4 en 5, like better support for object oriented programing, exceptions, etc. But i wonder if i even need those things when building a cms.
View Replies !
PHP4 To PHP5
I've just been notified by my webhost (Pair) that my site will be moving from PHP4 (4.3.8) to PHP5 (5.2.3) and Apache 1.3.37 to 2.2.4. While I have been expecting this for a while, I'll put my hands-up and say that I've not taken the time to change anything. I now have until next week(!) to make sure everythings working *gulp* My site isn't huge but I have alot of visitors and make a little money through Adsense, so I really need to make sure everything is secure and working to keep my visitors happy and obviously prevent any loss of $.
View Replies !
WIN32 Sendmail Install Note PHP4
How must I install sendmail in PHP4 to send or receive mail I have the Win32 Sendmail.exe and I don`t know what to do with it I have a Apache Webserver on Winnt4 server and PHP4 installed. Everything is working fine. I have made with frontpage a nice FORM with a PHP linked button to order. When I push the button you see that it works and when its ready nothing happend. I have read that I must enable the sendmail but how?
View Replies !
Install Oddity Win2K/Apache2/PHP4
I installed the above, and if I point directly to a ..php file (i.e. http://localhost/phpinfo.php, I get the php script executed properly. If I put a <?php ... ?> tag in html, nothing happens. No error in any Apache logs, no obvious errors in php, nothing displayed on the page. I installed as cgi, I saw an earlier post someone recommended SAPI - could that be a problem (I'm guessing it's some line in one of the configs I screwed up).
View Replies !
Howto: PHP4 Dom XML To PHP5 XML ?
Can anyone point me to a guide or something for conversion? I need to translate following code: PHP4 $eir_dom = domxml_open_mem($eir_padfile_content); $eir_root_node = $eir_dom->document_element(); // = root element PHP5 $eir_dom = new DOMDocument; $eir_dom->loadXml($eir_padfile_content); // need equalant of: document_element(); PHP4 .... $nodes = $cur_root_node->child_nodes(); .... if ($test_node->node_name() == $next_node_name_to_find) { PHP5 // need equalant of: child_nodes(); node_name() PHP4 .... if ($node_child->node_type() == XML_TEXT_NODE) { $node_child->set_content($new_content); break; } PHP5 // need equalant of: set_content, node_type()
View Replies !
PHP4 + PHP5 + ZendStudio
I've had setup on WinXP: Apache1.3 with PHP4 module and PHP5 installedas CGI for one vhost. This worked fine, till I installed Zend Studio 4 beta. I'm trying to make Zend Server use my existing configuration, but without success. If I point it to PHP4 php.ini, PHP cannot find (or rather refuses to load) modules. If I point it to PHP5 php.ini, I cannot enter server console, because my php lacks ZendOptimizer (even if I install ZendOptimizer). [Zend docs are brief, and googling finds only obvious answers, like "install mysql and uncomment mysql extension".] Do you have any suggestions how to get this trio working?=
View Replies !
PHP4 -> PHP5 Issue
I'm quite experienced in programming in PHP4, but I would like to make a step to PHP5. I created following class which works perfectly in PHP4: Code: ( text )
View Replies !
XML Package For PHP4 And PHP5
I just released the new beta version of ActiveLink PHP XML Package that works in both PHP4 and PHP5. The package is not dependent on any other XML extensions or libraries and is completely written in PHP. If anyone is interested in testing the beta version, please do so. You can get the 0.4.0-beta version from: The package is freely redistributeable under the terms of LGPL.
View Replies !
PHP4 And PHP5 Installations?
I am currently learning PHP and MySQL with a book. This is a great book but I soon realised that my host uses PHP4 and the book is written for PHP5 so the scripts I am wanting to creat won't work for production. Is it possible to run PHP4 and PHP5 at the same time on my home system so I can develope for PHP4 but keep learning PHP5? I am running a windows system with Apache2 and MySQL 4.1.
View Replies !
Downgrading From Php5 To Php4
I've made a mistake and developed in php5 whereas our hosts only run php4 and have only worked through a book on php5. Is it ok to change this from version 5 code: $quoteid = $quote->quoteid; to this: $quoteid = quoteid($quote); so that i can run my scripts on a host running version 4 of php? I have been working through all my code, trying to replace anything that won't work in version 4. I've done loads and loads of it but i still can't get any results from the database and this is one of the things I can't seem to find an answer to elsewhere. I've been learning out of a book for too little time and the deadline is looming.
View Replies !
Phplib Sql, Php4 Vs Php5
who have noticed that the outputs aren't the same with PHP4 and PHP5? Seams like some sort of sessions isn't remaining and the SQL-object is resetted... Any clues?
View Replies !
PHP4, PHP5, PEAR
I need the following features for my web service:WSDL parsingDocument/Literal styleRPC/Literal style (optional)UDDI clientUDDI serverAttachments using MIMEAttachments using DIME (optional)I've searched for weeks through the Internet. The more I search the less I understand so forgive me. I've first installed PHP5 on a Gentoo Linux machine and saw Soap support was built-in PHP5. I read in PHP5 documentation that SOAP support was now built-in which includes in fact what was called PEAR-SOAP with PHP4 (if I've correctly understood). Now I've installed PHP4 on Windows and would like to give SOAP a try under Windows first before I port the whole thing under Linux. So I went to install php_soap.dll extension and saw PHP has to be version 5 or later. Now I wonder:Is PHP5 Soap PHP-SOAP or PEAR-SOAP?Can I use PEAR-SOAP with PHP5?Can I use PEAR-SOAP with PHP4?Is php_soap.dll from PECL actually a Windows port of PEAR-SOAP.
View Replies !
PHP5 Install
I am trying to install PHP5 with MYSQL support but the configure fails. It gives me the following error. "configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore!". Here is the configure options I gave it: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-zlib-dir=/usr/lib/mysql/libmysqlmysqlclient.so --with-pgsql=/usr/local/pgsql My srever: OS: SUSE 10 PHP: 5.1.1 MYSQL: 4.1.13 Apache: 2.2.0 What am I missing?
View Replies !
Install PHP5 &
I have installed Apache 2.2.2. When i was looking through all the installation manuals for PHP, they were outdated and their instructions differed among the different version of PHP. kind to write down the installation steps for PHP 5.1.4 for window XP. Or direct me to any links that have that, that will be great. I have been searching for such tutorials on that over many places but can only find ones for MAC.
View Replies !
PHP4 & PHP5; Cohabitation: Is It Tough?
Here is what I need to better understand: I have what I always thought to be the greatest hosting Co. Lightning speed capability, very tight security, outstanding customer support. For example I recently needed SOAP to be installed 2 hours later got an email... Installed!. Until then everything was fine and dandy! I (Yesterday) asked about their PHP5 readiness. And was told that PHP5 will run by end of February. But they are still undecided on running BOTH PHP5 and PHP4. I have a couple of my own sites (recent one) that are OOP and PHP5 ready. However I have a bunch of sites done 2 or 3 years ago (Clients one) that are far from being ready for PHP5 (in a short time period). Further more I run three carts (configured for the most recent PHP4) but that will never work in PHP5 for they use a lot of the serialize() which does not do well in a PHP5 environment. And the cart’s programmers need a few more months to be 5 ready). Could you explain why running 4 & 5 seems to be such a hardship? Many other customers will be at risk to have broken sites. On another hand I have seen hosts that will allow running both at least for a year or two.
View Replies !
Php4 To Php5 Problems Summary?
My remote hosting service just upgraded to Php 5. I believe that this is the cause of one minor error that I have encountered. This line: <?= // isset($_SESSION['some_var'])?'Disable':'Enable' ?> now produces the following error: Parse error: parse error, unexpected '' in /home/abasama/public_html/demo_enable.php on line 114 [I know it's ugly, but I commented out that line in case I want to reuse it in the future.] I've also tried changing it to <?php echo // isset($_SESSION['abas_demo'])?'Disable':'Enable' ?> and I get the same error. I don't really care whether I can leave that line as it is or not, but it got me to wondering what other things might now be broken. Is there a summary of any sort that would help me know what I should be looking for as far as broken functionality after upgrading to Php5?
View Replies !
XML Parsing Of New Lines On PHP4 And PHP5
Say I have the following script: <?php $contents="<p>test test</p>"; $xml_parser = xml_parser_create('UTF-8'); // try xml_parser_create_ns, too. xml_set_character_data_handler($xml_parser,'handle r'); xml_parse($xml_parser, $contents); function handler($parser, $data) { static $count=1; echo "$count. $data<br />"; $count++; } ?> When ran on PHP4 (via the web, so new lines are seen as spaces) I get this: 1. test 2. 3. test When ran on PHP5 (via the web) I get this: 1. test test Why the difference? Is there any way to get PHP5 to simulate PHP4's behavior?
View Replies !
PHP5 And PHP4 Compatibility Issues
adactio.com/journal/1202 has a very interesting PHP script which gathers RSS data from various feeds and prints them in an HTML table. He calls this a lifestream. Anyways, unfortunately, my knowledge of PHP is rather limited - I'd rather work with a stylesheet. It turns out that my local machine has PHP5, and the script works flawlessly. However, Bluehost, my hosting provider, has PHP 4.4.4. As a result, I'm getting a lot of exceptions thrown around. I think I figured out my way around the getElementsByTagName(), which should be get_elements_by_tagname() in PHP4, but I'm still getting heavy exceptions. I also googled and found that the date_default_timezone_set() function isn't supported in PHP4 either. I'd appreciate it greatly if anyone could point out where the incompatibilities are - even if there's a better way of doing this RSS gathering, I'd just like to see anyway for educational purposes. My PHP source is the following (I've left out the HTML surrounding it): <?php date_default_timezone_set("Europe/Paris"); $feeds = array( "feed1" ="http://...", "feed2" ="http://...", "feed3" ="http://...", "feed4" ="http://..." ); $details = array("title","link"); $list = array(); $rss = new DOMDocument(); foreach ($feeds as $name =$feed) { $rss -load($feed); $items = $rss -getElementsByTagName("item"); foreach ($items as $item) { if ($item -getElementsByTagName("pubDate") -item(0)) { $date = $item -getElementsByTagName("pubDate") -> item(0) -nodeValue; } else { $date = $item -getElementsByTagName("date") -item(0) - Quote:
View Replies !
MySQL_connect() Working In PHP4 Not In PHP5?
I upgraded my development machine to PHP5. My pages with the subject function no longer work. I am able to do an ODBC connect to the data files from other programs. I get the error: Fatal error: Call to undefined function mysql_connect() in <file.php> on line 190. This is a W2K machine running IIS4, if that makes a difference... Still works on server running PHP4.
View Replies !
Should I Choose PHP4 Or PHP5 For My Testbed?
I'm setting up my computer again for developing websites. Logically it seems sensible to exactly mirror the version of PHP on the final web server, to help with testing. But it seems kind of nice to use PHP5 and I've already installed Xampp, which has PHP5. When writing my PHP code, how likely am I to write something that will work on PHP5 but not work properly when I transport it over (I'm not talking about involved OO stuff, I know that has changed).
View Replies !
Possible For Sessions To Work Under PHP5 And Not Under PHP4.
I'm writing an web application with PHP/MySQL. I used PHP5 but believed to use code that would work also under PHP4. However when I tried my application under PHP4 I got the warning that the headers are already sent and my session did not work. I do understand that I have to send the headers before anything else. But does anyone know what kind of difference between PHP4 and PHP5 makes it possible for sessions to work under PHP5 and not under PHP4.
View Replies !
PHP5 -> PHP4 -- Replacing Strripos
Ive been working on a page in PHP5 that uses the strripos function. Ive now been told to move to PHP4 and obvioulsy strripos does not work under that. Is there a PHP4 function that i can use instead? Or does anybody have any tips how to write a function to take in char and a string and return the last position of the char. Im not very good with string manipulation in PHP.
View Replies !
PHP4 Object Handling Vs PHP5
I've become a bitconfused about how PHP4 deals with objects after reading this description of PHP5: "PHP's handling of objects has been completely rewritten, allowing for better performance and more features. In previous versions of PHP, objects were handled like primitive types (for instance integers and strings). The drawback of this method was that semantically the whole object was copied when a variable was assigned, or pass as a parameter to a method. In the new approach, objects are referenced by handle, and not by value (one can think of a handle as an object's identifier)." I have always assumed that PHP4 uses a copy-on-write approach, so that when you pass an object to a function by value, PHP doesn't actually create a new copy of that object.
View Replies !
PHP4 Equivalent Of PHP5 DOMDocument->loadHTML()?
I have an HTML string that I receive from a variable. It's not well-formed but contains some elements, I need to manipulate. Basically, just adding and removing some elements. After reading about PHP5's beautiful DOMDocument->loadHTML(), I realized it could be done. However, our server is using php4 =(. Is there a PHP Class floating around that may do the trick? I almost do not want the solution to use PHP4's DOM functionalities bc I read that they don't translate well when you update PHP to version 5.
View Replies !
|