[mapserver-users] RE: weirdest problem w/PHP

Puneet Kishor pkishor at GeoAnalytics.com
Thu Mar 14 12:31:55 PST 2002


ok... here's some more.

If I run the script via the browser it croaks... it says 

Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/test.php on line 3


However, if I run the same script from the terminal (%] php test.php) it
works absolutely fine... connects to MySQL, returns the data, prints it out,
etc. etc.


What is it about the browser that it refuses to recognize the mysql
functions of PHP? Btw, other PHP functions seem to work. This is on a RH
Linux box.

pk/



> -----Original Message-----
> From: Puneet Kishor 
> Sent: Thursday, March 14, 2002 1:48 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: weirdest problem w/PHP
> 
> 
> I am absolutely stumped. Here's hoping someone can help me.
> 
> For some strange reason now PHP is croaking on my machine and 
> saying that 
> mysql_connect() is not a function. In fact, all mysql_??? 
> functions seem to make it croak. It was all working a couple 
> of days ago.
> 
> Anyone have any idea what I could have done to muck this up 
> (assuming I have mucked it up).
> 
> Many thank,
> 
> 
> pk/
> 



More information about the MapServer-users mailing list