PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old August 16th, 2005, 05:54 PM
truscamarusca truscamarusca is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 14 truscamarusca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 )

Reply With Quote
  #2  
Old August 17th, 2005, 12:39 PM
Milo Milo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Italy
Posts: 192 Milo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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??

Reply With Quote
  #3  
Old August 17th, 2005, 01:26 PM
truscamarusca truscamarusca is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 14 truscamarusca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old August 18th, 2005, 01:13 AM
truscamarusca truscamarusca is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 14 truscamarusca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old August 20th, 2005, 10:23 PM
inet2024 inet2024 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 inet2024 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old August 20th, 2005, 10:24 PM
inet2024 inet2024 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 inet2024 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #7  
Old August 20th, 2005, 11:59 PM
truscamarusca truscamarusca is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 14 truscamarusca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #8  
Old August 21st, 2005, 02:30 AM
inet2024 inet2024 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 inet2024 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #9  
Old August 21st, 2005, 12:38 PM
truscamarusca truscamarusca is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 14 truscamarusca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #10  
Old August 21st, 2005, 02:13 PM
inet2024 inet2024 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 inet2024 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > HELP PLEASE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway