Current location: Hot Scripts Forums » Programming Languages » PHP » a problem with IIS


a problem with IIS

Reply
  #1 (permalink)  
Old 08-01-05, 03:50 AM
ttnkhoa2004 ttnkhoa2004 is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Question a problem with IIS

i use apache to mySql, i write:
$this->con = mysql_pconnect($this->host, $this->user, $this->passw);
i alway received true result,
but i use IIS, i write like that, i away receive a messeage:

Fatal error: Call to undefined function mysql_pconnect() in C:\IBserver\www\khoa\moveImage\lib.php on line 11
PHP has encountered an Access Violation at 016373CD

why it don't understand "mysql_pconnect" function ? i use "mysql_connect" function, and i received that messeage again.

How can i connect to my database by IIS ?

help
thanz....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-01-05, 08:19 AM
danga1993 danga1993 is offline
New Member
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
In IIS since your runnign PHP as a CGI executable. The problem is probably in the php.ini file, you need to uncomment the line

;extension=php_mysql.dll

Just remove the semicolon, save, and restart IIS. Then the mysql_connect funtion should work. You might have to copy libmysql.dll from your mysql\bin folder, to your \Windows folder.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS MYSQL and PHP nommiiss PHP 6 01-31-06 05:30 PM
ASP syntax error stuckonaproject ASP 8 12-14-04 11:30 AM
Windows 2000, IIS 5.0, PHP 4.3.8 net start problem wheatchris PHP 0 11-30-04 06:56 PM
Count problem kasic ASP.NET 1 10-20-04 01:23 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 10:13 AM


All times are GMT -5. The time now is 09:40 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.