|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Simple Problem??
I have Apache5 Mysql and php5 on a windows xp computer for development.
When i run code like PHP Code:
everthing works fine in the browser, but when i do something like this PHP Code:
I get nothing in the browser???? I am using Zend Dev sutdio to write code and when i debug the code the HTML displays in the debug screen. Need to get over this little hump and i will be good to go i think. thanks |
|
#2
|
||||
|
||||
|
Check your web server log for errors and/or turn on full php error reporting (both display_errors to on and error_reporting to E_ALL) in php.ini or a .htaccess file.
It is likely that the mysql extension is not enabled and there was a warning. However, your "ERROR: Unable to connect!" should have been produced. View the source of the page in your browser and see what was output. |
|
#3
|
|||
|
|||
|
Quote:
here is the source from IE Code:
<html> <head> <title> This is a test!!!! </title> </head> <body> |
|
#4
|
||||
|
||||
|
Neither piece of php code that you posted could produce the output you just showed. Double check what you are actually doing and what code you are using at the time.
|
|
#5
|
|||
|
|||
|
well what about this code?
PHP Code:
should it not print out "You are connected" if i get connected or "Error: Unable to connect!" after it runs? |
|
#6
|
|||
|
|||
|
Fixed it!!!!!!!!!!!!
Quote:
Ok i fixed it, and this is what my problem was well it looks like the windows install of PHP does not come with a few ext you need to run with mysql. so first thing i had to do was go to this site and download the ext dll's ("us.php.net/get/php-5.2.3-Win32.zip/from/a/mirror") unziped it to the ext folder under the php folder. ( you may have to make this folder if it is not there) next thing i did was change the php.ini file to extension_dir = C:\Program Files\Apache Software Foundation\Apache2.2\PHP\ext ( right around line 220) finaly i uncommented extension=php_mysql.dll extension=php_mysqli.dll (around line 660) rebooted the the server and BAMMMMM!!! working. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Simple Problem?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|