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 Complete Forum Thread with Replies
Related Forum Messages:
- MySQL4 + UTF-8 + PHP5
- Apache2/PHP5/MySQL4 Problems On Win32
- Can Not Find Libexec/libphp5.so (install PHP5 + Apache2.0 +mysql4.2)
- PHP5, Windows Installer And MySQL
- How To Configure PHP5 To Use MySQL In Windows XP
- Upgrade To Php5 On Windows Xp On IIS 5.1 With MySQL
- Apache Mysql Php5
- PHP5 Installation With MySQL, Windows 2000
- Enable Soap, Mysql PHP5 Windows Xp
- PHP5 With MySQL 4.1 On Apache 2 On Win98
- Apache/ Win XP Home/ PHP5/ MySQL
- Trying To Get MySQL, Apache, And Php5 To Play Nice Together
- Windows Apache Mysql
- Apache,MySql,PHP On Windows Vs. Linux
- Trouble With MySQL/Apache On Windows
- Configuring Jpgraph On Windows 2000+Apache+PHP+MySql Server
- How To Display Captcha Image In Php4.3.4,apache,mysql On Windows 2003
- How Do You Get 5.2.0 To Talk To MySQL 4.1.22?
- Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
- Getting PHP And Apache To "talk" With One Another
- Is There PHP5 For 64-bit Windows Source
- Installed PHP5 On Windows XP
- Use Apache And PHP5 - How?
- PHP5 From Apache
- Apache 1.3, PHP5
- PHP5 On Apache 2
- PHP5, Domxml, On Windows Cfg./Error
- Php5 Apache Error
- Install PHP5, Apache 2.2 And IIS
- Installing PHP5 On APACHE 2.2.x
- Apache Hangs With PHP5
- .PHP Code Does Not Parse Php5 Apache2 On Windows
- Php5 Windows Installer Fails On Vista
- Net-snmp + Php5 Apache Module
- Install PHP5 And Apache 2.2.2 (Linux)
- Apache 2.0 W/PHP4; W/PHP5 Cohabitate
- How To Set Up Apache And Php On Windows XP.
- PHP/Apache/Windows
- Apache On Windows Xp Pro
- Apache+php On Windows
- Install Php4 And Php5 At The Same Time To Apache
- Installing Php4 And Php5 On Same Apache Server
- Need Help Uploading To Windows XP With Apache And PHP
- Php From Windows To Linux/Apache
- Set Php Up On Apache Running On Windows.
- Windows/Apache And Virtuelhosts
- Installing PHP 5.05 On WIndows XP, Apache 2.0.54 -
- IIS Vs Apache On Windows 2003
- Php Module For Apache (windows):
- Apache 2.0.54, Windows 2k, And 5.0.5 - Do The Work Together
- Installing And Running Apache 2.0.46 / Php5.0.0b1 / Suse Linux 8.2
- What Are The Pros/cons/issues For PHP4/PHP5 With Apache (either 1.3 Or 2).
MySQL4 + UTF-8 + PHP5
I have a database with some norwegian characters in it: æ, ø and å. I tried to create the table with utf8 character encoding. Then, when inserting I do SET NAMES utf8; and select. I select with php and display (with correct headers) still the characters come up all f'ed up... Does anyone know how to do this correctly?
View Replies !
Apache2/PHP5/MySQL4 Problems On Win32
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the MySQL databases. I checked the documentation, to discover that MySQL libraries are no longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll' and copied libmySQL.dll to WindowsSystem32 (as well as Windows, Apache2in, and anywhere else I could think of). Now, whenever Apache starts it gives the following error: PHP Startup: Unable to load dynamic library 'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified procedure could not be found. The file exists on that path, everyone has permission to read/execute it.
View Replies !
Can Not Find Libexec/libphp5.so (install PHP5 + Apache2.0 +mysql4.2)
Thank you for your time to see my question. I am new in PHP. I installed MySQL, SSL, and Aparche2 in my fedora 3 box. everything working fine. now I am installing PHP5. I followed PHP installation instruction, everything is OK before 14th step: 14. Edit your httpd.conf to load the PHP module. The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The make install from above may have already added this for you, but be sure to check. For PHP 4: LoadModule php4_module libexec/libphp4.so For PHP 5: LoadModule php5_module libexec/libphp5.so After I modified the file and doing the step 15 which is restart Apache server, the error message said it can not find the file libphp5.so I did search my entire file system, there is no such file, what's going on? Am I did something wrong?
View Replies !
How To Configure PHP5 To Use MySQL In Windows XP
I use PHP5 in Windows XP Professional with Apache and MySQL installed. I would like to use MySQL. Now, I cannot use mysql_* functions because mysql_connect(...) returns Fatal error: Call to undefined function mysql_connect() PHP is problably not correctly configured to use MySQL.
View Replies !
Upgrade To Php5 On Windows Xp On IIS 5.1 With MySQL
I am finally ready to upgrade to php 5 from php 4 but I am so so scared. I have not upgraded my php since i first installed back in 2003 and i really cannot remember how i did it. I am using window xp and i am currently using IIS 5.1 as my server. What has been putting me off for so long are all the variables that I'm worried that i don't remember. I've heard of a thing called XAMP which is supposed to have everything bundled to make for a easy install, but i'm not sure if this is the right step to take. But then on the other hand I'm way to nervous to try and do the upgrade myself. I've looked through loads of tutorials but now i'm confused as i'm not sure whether they all apply to what i currently have running. If i am currently running php v4.3.7 on windows xp on IIS 5.1 with MySQL ( not too sure of the version ) what is the best and least complicated way for me to upgrade?
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 Installation With MySQL, Windows 2000
Why I still have "undefined function error" messages? I included path c:php to my windows env. Edited php.ini file: include directory value. removed comment mark from extension=php_mysql.dll copied libmysql.dll to system32 directory Apache2 runs fine. I can run phpinfo.php I can create a database into the MySQL.
View Replies !
Enable Soap, Mysql PHP5 Windows Xp
I have tried to find a good ref. on how to enable soap and mysql in PHP5 on windows xp but without luck. Can any one take me through the process? I need to enable both soap and mysql I'm not running apache. I need to know how to recomplie my PHP5 on windows xp.
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 !
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 !
Windows Apache Mysql
I have to extract 3 tables out of a .db (previously bzip2'ed). I am on a windows machine with apache php and mysql. How can I import / create a database on my pc out of the .db file i have. Can I import / create through mysql query browser?Or how should I do this?
View Replies !
Apache,MySql,PHP On Windows Vs. Linux
Crazy (possibly dumb) question here... I have a site running apache, mysql, php in a Win2K environment. Primary development is that env also. I also am setting up a linux box (old laptop), to begin playing with Linux. I'd like to set it up similiary with apache,mysql, php. If I do that, and start doing some development there (Linux box) - can I expect that when I move the php code to the windows box that it will behave similarly as it did on Linux? Anything to watch out for? I'm completely new to Linux...
View Replies !
Trouble With MySQL/Apache On Windows
I've just picked up the most recent versions:PHP - 5.2.0RC6-devMySQL - 5.0.26Apache - 2.2.3but I appear to be unable to get the mysql/mysqli extension to work. After ensuring that the path is correctly set, and all the relevant configuration lines are in place, I am able to restart apache cleanly, however the mysql/mysqli extensions are NOT being loaded. I've noticed that certain other extensions do not load mcyrpt and mhash being two notable ones I regularly use, however gd2 and gettext both load correctly. Code:
View Replies !
Installed PHP5 On Windows XP
I have tried to install PHP 5 onto my Windows XP machine and all I get is: Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20040316, debug=0, thread-safety=0 These options need to match Tried changing on of the Path variables away from PHP4 but to no avail :-((...
View Replies !
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 !
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 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, Domxml, On Windows Cfg./Error
need the straight dope on domxml for Windows! Is it bundled or are DLL's necessary? Also, what changes are needed in php.ini? My setup: WXP, PHP 5.0.2 as an Apache Module, libxml v2.6.11 or so it says. I see there's been quite a bit of posting on mailing.www.php-dev Re: phpinfo() mis-reporting domxml enabled.....
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 !
.PHP Code Does Not Parse Php5 Apache2 On Windows
Can anyone tell me why .php code is not parsed #For PHP 5: short_open_tag = Off httpd.conf # Add to the end of the LoadModule section LoadModule php5_module "C:/PHP/php5apache2.dll" AddType application/x-httpd-php .php #Add to the end of the AddModule section #AddModule mod_php5.c
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 !
PHP/Apache/Windows
I am running a Win 2000 professional machine on my desk (unfortunately). I use Apache/PHP for test purposes, for running a little intranet server, and I am going to have a student help me with some coding. Is there anything like the "nobody" id in UNIX where I can set apache to run where it can't do too much damage?
View Replies !
Apache On Windows Xp Pro
I have installed apache and php on windows xp pro according to the directions in the blog design solutions book. I did all the changes in the php.ini file as well as the http.conf file. Restarted my computer. When I try to start apache with the windows services it tells me that this is not a ms program and I can't run it. If I try to start it with the apache start I get the following error: Cannot load the c:/php5/php5apache2.dll (there are still other things to install, however I need to get this working first before I proceed any further) I have went over this numerous times and checked all the code on the files and all appear to be ok. If anyone has any suggestiosn I would sure appreciate some guidance on this.
View Replies !
Apache+php On Windows
I just installed apache (latest good version) for Windows in: C:Program FilesApache Software FoundationApache2.2htdocs therein, in that directory, I have test.php. In C:Program FilesApache Software FoundationApache2.2confhttpd.conf, at the end of the file, I have: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" I restart the apache server, but when I go to look at localhost est.php, I get: You don't have permission to access /php/php.exe/test.php on this server.
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 !
Need Help Uploading To Windows XP With Apache And PHP
I am currently trying to upload images to a Windows XP box running PHP and Apache. I have gone through every possible scenario in the forums but with no luck I just can't get it to upload. Here is the basics in the script that I am using. $dir = "C:wwwrootwebsitedb".addslashes($property_id)."photos"; if (!file_exists($dir)) mkdir($dir, 0777); if (($thumbnail == "image/pjpeg") || ($thumbnail == "image/jpeg")) @copy($thumbnail, "$dir/$thumbnail"); <form method="post" action="/listings/upload/?pictures/0272-2JH/" enctype="multipart/form-data" /> <input type="hidden" name="property_id" id="property_id" value="0272-2JH" /> <input type="file" class="formupload" name="thumbnail" id="thumbnail" size="32" /> <input type="submit" class="formbutton" name="upload" id="upload" value="Upload" /> I have checked permissions, file sharing, registered globals off and on, directory structure and so on.. Now I am able to create the folder photos if it doesn't exist, but it just doesn't allow for me to upload the picture itself.. HELP
View Replies !
Windows/Apache And Virtuelhosts
I still haven't been able to configure Apache (latest release) so that it handles virtuelhosts proberly. I want Apache to server files from /contra and /tekk depending on what server is called. How do I do that? I have looked at the Apache documentation and applied the changes to my httpd.conf that it suggests. Didn't work.
View Replies !
Installing PHP 5.05 On WIndows XP, Apache 2.0.54 -
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54 Apache is running fine and ive made all the changes to the pnp.ini file and Apache config file, restarted Apache but all I get when trying to call my test.php file is a 404 error? http.config file: LoadModule php5_module "C:/php/php5apache2.dll" PHPIniDir "C:/php" AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps set my php.ini doc-root file to : doc_root = "C:Program FilesApache GroupApache2htdocs" Ive followed all the FAQs on php.net , added c:/php to the Path etc
View Replies !
IIS Vs Apache On Windows 2003
I would like to request more information for the installation and configuration of Apache in windows 2003 and I would like to know which is better IIS or apache in Windows 2003 Server
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 !
|