Apache 1.3, PHP5
I've looked at so many variations on what I might try to solve the failure of pspinfo() to execute when called by a simple test.php file that I'm now lost. My Apache server runs OK. I'm running under XP. I have folowed the steps given in the book 'PHP and Mysql 'but I'm clearly missing something in php.ini or httpd.conf Where does the phpinfo() function reside? Why can't I find it in my PC?
View Complete Forum Thread with Replies
Related Forum Messages:
PHP5 From Apache
This might have been covered in this forum before, but the search strings I tried didn't turn up a solution. I've been developing an application at home using PHP5 on Linux. I brought the project into work to test it on the school's internal iMac Webserver running OS 10.4 and PHP5. The CLI application is crashing with an . Code: "Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' " error message everytime it hits a class file with a private or public keyword in front of a class property or method. (I switched the load order of the class files to confirm that it was crashing over private and public. The phpinfo.php web page showed me I was running PHP Version 5.2.1; however, on a hunch, I typed php -ver at the command line and discovered I also had PHP 4.4.7 (cli) installed. I tracked down PHP5's location and was able to execute my program typing /usr/local/php5/bin/php main.php.
View Replies !
PHP5 On Apache 2
I have tried to install mod_PHP5 on freebsd where I had installed apache 2. It throws as error indicating mod_php5 needs apache 1.3. I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the latest Apache.
View Replies !
Php5 Apache Error
I just installed on a new machine windows server 2003 and installed apache 2.2 on it and then unzip the php 5.1 files in c:php5 then added the load module php5_module line in httpd conf file copied the php5ts.dll to system32 and also in apache bin but when i start apache it keeps giving me error php5apache2.dll module not found if i remove this line from apache it works fine and apache starts but if i add this line it does not start can anybody suggest how to fix the problem why cant apache find the file php5apache2.dll the path is correct.
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 !
Installing PHP5 On APACHE 2.2.x
I'm trying to do a new install of PHP5 on Apache 2.2.x and i'm running into a serious snag. It wont load anything! after it's installed, I've checked my configure files and then load it. When i open a page i get nothing. just blank pages no matter what. Then if i turn on the startup error reporting i get errors galore telling me that *.dll's could not be loaded. I've checked my paths, and checked my sources, permissions and everything. The files are there.
View Replies !
Apache Hangs With PHP5
We have installed PHP 5.0.1 on a Windows 2003 Server with IIS6 in ISAPI mode. The processing of .php files works fine with our basis version of the php.ini file. But, as soon as we edit the php.ini file to outcomment the line "extension=php_sybase_ct.dll" (or "extension=php_pdf.dll") and restart the IIS6, the web site is not able to work with .php files properly, instead the web server seems to hang with any .php file.
View Replies !
Apache Mysql Php5
I've managed to install, config, and make operable an Apache server, mysql, php5, ZendOptimizer, and phpMyAdmin on my WinXp comp. The problem is that when I install a script such as a cms or topsite they fail to run. I want to be able to run and test scripts on localhost before uploading to www.server I've installed such scripts on *nix based web servers without problem. I researched and found that chmod should not be an issue on windows so all the files/folders should have read/write access. I,m completly stumped. These scripts that I've attempted to run on my test server go through thier entire install process creating tables and such untill complete. I point to the folder/index.php and nothing.
View Replies !
PHP5 With MySQL 4.1 On Apache 2 On Win98
I am in the process of learning php. I am particularly interested in its uses with MySQL. I have Apache 2 and PHP5 both installed and working fine. I pasted a MySQLi example for opening and connecting to a MySQL DB into "hello.php" <?php $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s ", mysqli_connect_error()); exit(); } printf("Host information: %s ", $mysqli->host_info); /* close connection */ $mysqli->close(); ?> For some reason when I get: Fatal error: Class 'mysqli' not found in D:Apache groupApache2htdocshello.php on line 7 I installed PHP in "d:php" and added it to my path in my autoexec.bat. in php.ini: .... extension_dir = "d:phpext" .... extension=php_mysqli.dll I read all the posts at the bottom of the pages on PHP.net website where someone says "I had a problem and I got...yada...yada and did everything each of those posts said you had to do and it still won't work. The only thing left is how PHP needs compiled with a "--with" statement or something like that but I'm using the windows binary so that shouldn't be a problem... Is there some other problem it could be besides a problem with finding a dll or ini?
View Replies !
Net-snmp + Php5 Apache Module
I've recently built a new server on which I've tried to configure and install PHP5 (I've now tried 5.0.4, 5.0.5, and 5.1.0RC1) along with Apache 1.3.33 and net-snmp 5.2.1.2. (Building PHP5 as an Apache module) Everything compiles just fine, but when I try to call any of the SNMP functions (i.e. snmpget) from a PHP script on a web page, I get the following error: Warning: snmpget() [function.snmpget]: Could not open snmp connection: Unknown host in /var/www/test.php on line 5 However, I can execute the same script (which just consists of a simple snmpget) from the CLI and it works just fine. It also works fine if I execute from Apache as a CGI. If I build the same configuration with PHP 4.4.0, everything works fine from within the Apache module. I've tried executing all of this from the CLI as the Apache user as well and it does not seem to make any difference. Has anyone else encountered this issue? Any ideas about what I could try to fix it?
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 !
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 !
Apache/ Win XP Home/ PHP5/ MySQL
I can get PHP5 running on Apache 2 installed on Windows XP Home Edition. Now I want to add MySQL4 to the package. I installed it but I'm not sure what to do now. My PHP5 scripts are running fine. The MySQL server seems to be running though actually I'm not sure. When I write $link = mysql_connect("localhost", "mysql"); I get the PHP5 error message "Call to undefined function mysql_connect()" Can anyone help?
View Replies !
Trying To Get MySQL, Apache, And Php5 To Play Nice Together
I'm trying to get MySQL, Apache, and Php5 to play nice together in Windows but having problems. I don't want to install those automatic 'all-in-one' packages because I want to know how to do it myself. I think I installed Apache correctly because when I type http://localhost in my browser I see my directory, but echo phpinfo() gets me a blank page. Can someone please point me to a resource that explains how to get php5 working? I put the doc root path in my php.ini to point to C:Program FilesApache GroupApache2htdocs and no go.. Also, am I suppose to put my public_html folder inside of htdocs in tact, or do I empty the contents of my public_html into htdocs?
View Replies !
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 Replies !
Installing And Running Apache 2.0.46 / Php5.0.0b1 / Suse Linux 8.2
I did the following as instructed in the docs. (see below) everything seemed to install ok and I started apache with no complaints, but, 1)I do not see a process for apache using ps -ef 2) In yast I see that the new apache2 version is installed but not php5, its still on php4 any ideas ? 1. gzip -d httpd-2_0_NN.tar.gz 2. tar xvf httpd-2_0_NN.tar 3. gunzip php-NN.tar.gz 4. tar -xvf php-NN.tar 5. cd httpd-2_0_NN 6. ./configure --enable-so 7. make 8. make install Now you have Apache 2.0.NN available under /usr/local/apache2, configured with loadable module support and the standard MPM prefork. To test the installation use your normal procedure for starting the Apache server, e.g.: /usr/local/apache2/bin/apachectl start and stop the server to go on with the configuration for PHP: /usr/local/apache2/bin/apachectl stop. 9. cd ../php4-NN 10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs 11. make 12. make install 13. cp php.ini-dist /usr/local/lib/php.ini Edit your php.ini file to set PHP options. If you prefer this file in another location, use --with-config-file-path=/path in step 10. 14. Edit your httpd.conf file and check that these lines are present: LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The above statement is correct for the steps shown above. 15. Use your normal procedure for starting the Apache server, e.g.: /usr/local/apache2/bin/apachectl start
View Replies !
PHP5.05, Mysql4.1, Apache On Windows XP - Cant Get Php To Talk To Mysql
I have read all (ok most) of the posts relating to "Call to undefined function mysql_connect()", read the manual on PHP.net and done eveything thats ive been asked to do but cant get PHP to talk to MySQL, PHP is working fine but I dont get any mysql info when running <? phpinfo() ?> and get the "Call to undefined function mysql_connect()" when trying to connect to mysql through php in browser, please help. 1. I have added C:php; to the end of the environment variable path 2. I have edited my php.ini file to : extension_dir = "c:phpext" extension=php_mysql.dll - removed the ";" ... ive checked i only have 1 php.ini file! 3. The dll "libmysql.dll" is in the folder C:php 4. The dll "php_mysql.dll" is in the folder c:phpext
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 !
Changes For PHP5 ?
I'm trying out my local copy of a site that uses php4, mysql,apache2. I've moved it from a php4 machine to a php5 machine, and it doesn't work at all now. A couple of other php4 sites I've moved, which are straight php and do not use mysql are working fine though. So it seems that the mysql php interface maybe the problem. Are there any site/docs which cover the differences between php4 and php5, and likely problems that may occur, particularly with mysql?
View Replies !
GD2.0 In PHP5?
I seem to remember reading somewhere that GD2 was now included with PHP5 but I cant find any reference to it on the PHP website, nor can I find instructions on how to ensure PHP5 has GD2 enabled. Does the default source download include GD2 and is it automatically enabled when I install it or do I need to add an option to the configure command?
View Replies !
PHP5 + IIS
I am having problems trying to get PHP5 RC3 to run on IIS 5 or whatever version comes with windows xp If I use the php.exe cgi and try to run a .php will the server just hangs If I tell IIS to use the ISAPI module PHP5 runs but doesn't seem to be able to find extension files. I try to run a script that uses mysql and I get the message Call to undefined function mysql_connect() even though the path to my extensions directory and the supporting dlls have been copied to my system32 directory.
View Replies !
PHP5 Vs ASP.Net
I've been searching like crazy, but I can't find a head to head comparison of PHP5 and ASP.Net. I have found the article on msdn on php4 vs asp.net, but i'd like to find a more up to date and and potentially unbiased look.
View Replies !
PHP5 As A CGI
(In Apache2) I have this setup and using the new CGI daemon interface... no probs. However the binary is accessible via the browser. I suppose I wouldn't even make this an issue but I get this when accessing the binary: Warning: Unexpected character in input: '' (ASCII=16) state=1 in /usr/local/bin/php on line 4777 Parse error: parse error, unexpected T_STRING in /usr/local/bin/php on line 4777 So I'm wondering if there is a more secure way to install the binary? or perhaps I'm doing something wrong. Here is my relevant apache config directives: ScriptAlias /php/ /usr/daemon/httpd/php/ AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps Action application/x-httpd-php "/php/php" I compiled the cgi binary "without_redirect", ""without_discard", "without_fastcgi", "without_pathinfo".
View Replies !
XML-RPC And PHP5
I would like to use PHP5 to interact with an XML-RPC web service. I've noticed a number of libraries on the net however many are out of date and not specific to PHP5. recommend the best way to use XML-RPC and PHP5?
View Replies !
How To Set $this In PHP5
I ran into this problem trying to run a PHP4 program in PHP5: A class implements persistence by serializing itself and saving the string to a file. In the constructor, the object restores itself by setting $this to the result from unserialize(). In PHP4, this is legal. In PHP5 I get an error. How do I fix this aside from manually copying the object properties?
View Replies !
PHP5 / XML API
I'm trying to prase and use information I'm getting from an XML API in my system. The user is supposed to be able to choose between the returned agents and then select one of them. When they click "continue" or similar the rows of the agent that the user selected should be saved/assaigned to different PHP variables. Code:
View Replies !
Iis+php5
I just installed php5(ISAPI mode) on win2003 server machine with IIs 6 and manage to get phpinfo to work. however, when i tested my application. it seems that system is unable to understand my php codes. For instance, a input tag where i put <?=$myvar;?> for thevalue attribute. the browser simply show the text box with <?=$myvar;?> in it. any idea where i did wrong? the scripts was perfertly alright in php4+apache ebvironment.
View Replies !
Php5 And Xml
I am trying to find a way to add a child node at the top of the node tree. My xml document has root <songs> and child elements <song>. I need to be able to insert <song> elements at the top not at the bottom like appendChild.
View Replies !
Dom And PHP5
I need to add the following to some XML that I need to send off to a server.. <?xml version="1.0" standalone="no" ?> <!DOCTYPE graph SYSTEM "graph.dtd"> I know that when I do: $doc = new DomDocument(Ƈ.0');. I get <?xml version="1.0">. How do I add the DOCTYPE using DOM and how so I add the Standalone?
View Replies !
PHP5 Rc2 Now
We've updated our dev copy of PHP5 to RC2 and I've noticed that if I include a file upload form element and submit the form without selecting a file it generates a "Notice: No file uploaded in Unknown on line 0" error. Is there any way to get it to stop generating those notices? I don't want to turn notice reporting off as they're useful while developing, but I don't want that notice happening whenever a file upload is not required as it breaks redirect and messes the page up unnecessarily.
View Replies !
PHP5
I am running my Apache2 server. But the problem is that PHP scripts are not running. HTML is running. I have installed PHP5 module for Apache.
View Replies !
PHP-Qt, The Qt Library With PHP5
source : PHP5 Magazine PHP-Qt is an extension for PHP5 that aims to write software with the Qt Toolkit. It provides an object-oriented interface to the Qt4 Framework and allowes to write Qt applications in the PHP language.
View Replies !
Anyone Here Using Php5 In Production?
I compiled php5 on one of our test servers today, and mirrored all our major sites. So far, everything worked fine (except some OSComm sites, just needed to enable register globals locally for them). Now we'll probably do a couple of months of testing to be on the safe side, but I was curious how some people here who work for larger companies may do their testing with new product releases?
View Replies !
Problem With PHP5....
I'm facing some disghusting problem when i switched from PHP4 to PHP5. 1. My Image uploader is not working properly. I used the $_FILES, then it is working in my localMechine but not in the web server......
View Replies !
Php5 And Sqlite Set Up
All of a sudden, my sqlite database application just stopped working with no error messages - the pages using sqlite just refused to load. (I don't know how long ago it stopped working - I haven't worked on this site for a long time and my error handler didn't send any messages because the pages just will not load.) All I get is either a blank page(FF) or the message "Internet Explorer cannot display the webpage" After trying everything I could think of for a few hours, I finally just tried to create a SIMPLE database and it appears that none of the php sqlite function calls are working, except for the sqlite_open() function. The following code actually creates foo.db as expected but the sqlite_query() functions do not execute and the page does not load. <?php echo 'Test<br />' $dbFile = 'foo.db' unlink($dbFile); $dbhandle = sqlite_open($dbFile, 0666, $sqliteerror); sqlite_query($dbhandle,"CREATE TABLE foo (bar varchar(10))",$sqliteerror); sqlite_query($dbhandle, "INSERT INTO foo VALUES ('fnord')",$sqliteerror); $result=sqlite_query($dbhandle, 'SELECT bar FROM foo',$sqliteerror); $values = sqlite_fetch_array($result); echo '$values = ' foreach($values as $value){ echo $value.'<br/>' } ?> When I execute phpinfo(), the sqlite info is: PDO drivers sqlite2, sqlite pdo_sqlite PDO Driver for SQLite 3.x PECL Module version (bundled) 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.2 2007/03/23 14:30:00 wez Exp $ SQLite Library 3.3.16 so it appears to be implemented. The last php build at this host was May 11 2007 This is about as far as my knowledge will take me in diagnosing this problem - I am a relative novice at sqlite but my little application was working just fine a few months ago. From the symptom of the page not loading, I can only deduce that control is never returned from the call to sqlite_query(). I have an email into the support folks at this host but they have not been the brightest in the past so I am wondering if anyone here can shed any light on my problem. I tried this identical code on one of my customer's sites (different hosting company) and it worked as expected. So I copied the foo.db over to my host but I could not run any queries against it.
View Replies !
Php5 Not Working
I recently upgraded to php 5 and nothing seems to be working properly. Errors are not being displayed even with error_reporting(E_ALL). Whenever the parser finds something it does not like, a blank page is displayed. Furthermore, even a simple include "file.php" does not work. No error, no included file. Nada. However, php is installed and "working". echo "hello" does work.
View Replies !
Installing Php5
i got apache 1.3.28 (on win xp) can i install php5 on it? i tried the same way like u would php 4. only changed loadmodule php5_module but when i start apache it says cant load module
View Replies !
Problem Using PHP5 CGI In IIS
As PHP5 is on its final beta, we decided to start writing a web application in it to take advantage of the much better object support it offered. We're running the php-5.0.0b3-Win32.zip installation on a Win2K server platform alongside PHP4. I have used a hex editor to change instances of php.ini to ph5.ini in php4ts.dll so that the existing PHP4 installation is not affected. At first we tried running PHP through php4isapi.dll however this became quite unstable with a lot of "Invalid access to memory location" errors as well as a few strange problems such as error warnings and notices stopped displaying and phpinfo() returned garbled results. We then tried accessing through the php.exe cgi module as in PHP4 it is considered more stable. However this just results in IIS hanging when a page is called. Running php.exe through the command prompt executes fine. Is there any way to run the cgi version of php in IIS? Or is there something we can do to get around the isapi stability problems?
View Replies !
Upgrade To PHP5
I downloaded and installed EasyPHP some time ago. Now I would like to upgrade to PHP5, but have no idea on how to do it. Anyone mind sharing this info?
View Replies !
Php5 Upgrade
I've been asked to upgrade an existing older linux/apache/mysql/php installation to php5. I'd rather not mess with the other components if I don't have to - just php5. Can I do that? I can get around the command line ok, but haven't done alot of configuration. The install instructions at http://www.php.net/manual/en/install.unix.php include steps on compiling apache -- do I really need to do that?
View Replies !
Using ReflectionParameter In PHP5
I want to get the parameters of an internal php function and have tried to use the new reflection classes introduced in PHP5. This is what I've done: <?php $funcArr = get_defined_functions(); echo $funcArr["internal"][5] . ""; $ref = new ReflectionFunction($funcArr["internal"][5]); echo $ref; foreach ($ref->getParameters() as $i => $param) { printf("-- Parameter #%d: %s" $i, $param->getName()); } ?> this outputs: strcmp Function [ public function strcmp ] { } that output is only done by the two echo:s. There is nothing outputed by the foreach loop.
View Replies !
SOAP, SSL And PHP5
I am having a problem getting a SOAP connection to work and would appreciate any suggestions. The story so far: 1. I can point my browser at the service site (https://10.0.1.1:1234/) and get a meaningful XML response. 2. My php5 code looks like this: <?php $client=new SoapClient("http://localhost/xxx/wsdl/xxx.wsdl", array( 'uri'=> "https://10.0.1.1:1234/", 'userName'=> "xxx", 'password' => "xxx", 'trace' => 1, 'exceptions' => 1 ) ); $client->GetContents(); echo "Request: ".$client->__getLastRequest().""; echo "Response: ".$client->__getLastResponse().""; ?>
View Replies !
PHP5 Frameworks
Do you have any experience with any, recommendations? I've checked php on trax but it's still in an early stage of development. I'm looking for something with a some ready to use controlls (dbgrids for example), prefferably mvc and good documentation... The problem is that google (and phpwact) gives a lots of results, but I'm looking for a solid tested one.
View Replies !
PHP5 With PDFlib
I'm curious - has anyone managed to get this to work? I am trying to use PHP 5.1.4 with PDFlib Lite 6.0.3. On both Linux and Mac, pear won't build it and tells me I have to use pecl. Pecl goes through the build process, builds a pdf.so, fails to copy it to the extensions/blahblah directory, and then adds it to the list of installed extensions (which is incorrect; the install never completed successfully). At the moment I'm working on the Mac, where I've used softlink hijinks to grab a copy of the pdf.so file before pecl deletes it, and installed it manually in the extensions directory. When I do this, the PHP CLI is able to use PDF functions. However, Apache won't start - it dies with a bus error (if I comment the pdf.so line out from php.ini, it works fine). Par for the course? Anyone having better luck? What was the trick to get it to work with OSX? Did you have to build your own Apache?
View Replies !
PHP5 And Zend
I have a little problem with debugging php application with Zend Configuration: WAMP5 (PHP5, Apache, MySQL) Zend 3.5.2 (Debug Internal) When debug Zend return this error: Debug Error: C:wampwwwmybarphputils.inc.php line 42 - Call to undefined function mysql_pconnect() but in localhost connection works fine. I know that is a php.ini ( of Zend ) configuration problem, but I don't know how configure it.
View Replies !
PhrasebookSQL In PHP5
Has anyone successfully used PhrasebookSQL in PHP5 that is implemented here http://phpphrasebook.sourceforge.net/ The phrasebook class seems to work but the phrasebookSQL class doesn't do what is advertised. That is, if less than all possible imputs are supplied to a phrase then the parts related to the unsupplied inputs are trimmed from the phrase.
View Replies !
PHP5: Mysqli_set_charset
Running PHP Version 5.0.4, apparently not high enough to support the mysqli_set_charset function. I am also using mysqli Object Oriented coding and I need to display chinese characters. Right now the display char set is set to Latin and i need it to change it to UTF8 but I cannot do it with the mysqli_set_charset function. Is there anyway I can upgrade some php dll so that I can support this function? Any other ways of changing the char set?
View Replies !
Framework For PHP5.0
I am currently working on PHP5.0 and MySql5.0. Previously I was working with PHP 4.0 with Mojavi framework. And I feel that its working great to work with Mojavi framework. And Now I am looking for such a great Design structure which supports PHP 5.0 and take less time to load and configure. Even I have work with symfony but still looking for nice things.
View Replies !
|