|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
HELP PLEASE
I just instaled w2k3 and my sql and php everything is perfect because I did my test.php page and work also I was able to conect to mysql local server.
Well my problem is this when I put a page in php on my server and I call a database outside my company database (mysql)I get this error Fatal error: Call to undefined function mysql_connect() in c:Inetpubwwwrootaprobados.php on line 441 I went back and check those lines that is the conection to my remote mysql server how can I fix this? Thank you I am trying to learn here otherwise no more job for me |
|
#2
|
|||
|
|||
|
RE: HELP PLEASE
It seems you didn't install correctly the Mysql php extension.
When you get the error you are on an other server only regarding Mysql or the page is on an other server too? Did you change the directory where you work or is the same of the test page?? |
|
#3
|
|||
|
|||
|
RE: HELP PLEASE
Hi ok my page is on my server (win 2K3) but the MySQL server is on another server diferent location I am calling that server from my page on my server...
Thank you for your help |
|
#4
|
|||
|
|||
|
RE: HELP PLEASE
Hey guys this was killing me now I found it I think it was just luck but here is
To clear the matter up, if you download PHP 5.0 w/ Windows Installer there is no ext directory that is created during the installation. If you download the binaries separately there is no php_mysql.dll that comes with them. Those downloading the complete PHP 5.0 without the Windows installer gets the ext directory with php_mysql.dll included. This also means you have to do your own installation of PHP on your Windows machine. The solution I figured out was to first download the Windows installer version, run the setup. Go back to http://php.net and download the full binaries for Windows. Unzip the file and then copy the ext/ directory to C:php. Now open c:windowsphp.ini, find "extension_dir" change from extension_dir = "./" to extension_dir = "ext/". Next in the php.ini file find ";extension = php_mysql.dll" and remove the semicolon. Save the file. You will now have php.ini configured correctly and working properly. Okay. This is the configuration that I have set. It might be useful to you. Configuration: 1)libmysql.dll in system32 directory 2)php installed in c:/php 3)php_mysql.dll and other dlls in c:/php/ ( i don't have a separate ext directory) 4)extension_dir="./" in php.ini 5)extension=php_mysql.dll enabled in php.ini. when you are trying out the changes, make it a point to reboot your system also. And let me know what happened. |
|
#5
|
|||
|
|||
|
RE: HELP PLEASE
Hi,
I am having similar problems except: php5, win2kAS, iis5, oracle10g I have installed both installation and win32 php distributions. I have copied the c:phpext file to c:php and i have changed the ini file to point extension_dir to the correct directory. When i uncommment ANY of the extensions in the ini the webserver hangs. I am trying to get the php_oci8.dll extension to load. Any help appreciated. |
|
#6
|
|||
|
|||
|
RE: HELP PLEASE
Hi,
I am having similar problems except: php5, win2kAS, iis5, oracle10g I have installed both installation and win32 php distributions. I have copied the c:phpext file to c:php and i have changed the ini file to point extension_dir to the correct directory. When i uncommment ANY of the extensions in the ini the webserver hangs. I am trying to get the php_oci8.dll extension to load. Any help appreciated. |
|
#7
|
|||
|
|||
|
RE: HELP PLEASE
The solution is very simple I think ...
In the php.ini file, under the :windows extensions section there are two parameters that refer to Oracle. extension=php_oci8.dll and extension=php_oracle.dll. If both of these parameters are uncommented then a confliction will occur and the dll will not be loaded successfully. Try uncommenting extension=php_oracle.dll (This is for use with earlier versions of Oracle, i.e. 7) save the ini and try running a php page again. There may be a requirement to re-start your computer so the updated ini file can be re-initialised. |
|
#8
|
|||
|
|||
|
RE: HELP PLEASE
Hi,
Thanks. I have tried to uncomment only the oci8 and the same happens - webserver hanging. Odd thing is, if I uncomment any one of the extensions, it also hangs the webserver. The extension_dir is set to where the dll's reside, and i have verified via phpinfo that all is fine. But still no luck. Any other suggestions? |
|
#9
|
|||
|
|||
|
RE: HELP PLEASE
Hey I am trying my best because I know what is osmething that not work for you.
IIS probably runs as a different user which doesn't have the proper permissions to access php_oci8.dll Check your permissions. No other idea in mind for now |
|
#10
|
|||
|
|||
|
RE: HELP PLEASE
Hi,
Thanks. I changed the permissions - still the same problem. I experimented with uncommenting out individual extension, and when i did, each hung the webserver also. I have changed the extension_dir to point to the correct directory, changed the permissions, etc. Is there something else that needs to be uncommented or changed in the php.ini file? Thanks for the help. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > HELP PLEASE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|