Different php.ini with php - cgi
| From: | Bc. Radek Krejča | Date: | Wed, 10 Dec 2003 17:19:25 +0000 |
| Subject: | Different php.ini with php - cgi | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172360@lists.php.net to get a copy of this message | ||
Hello,
I have PHP as Apache so and I wand to use it in the command line as
CGI. As apache module I have running with safe mode in the command
line I want to use PHP without SAFE MODE. My PHP is compiled with so
modules.
If I use this construction:
#!/usr/local/bin/php -c /root/ -q
<?
//Set_Time_Limit(0);
$spojeni = MySQL_Connect("localhost", "user", "pass");
i got:
Fatal error: Call to undefined function: mysql_connect() in /root/pokus.php on line 5
What is wrong?
Thanks
Radek
--
Regards,
Bc. Radek Krejča
Starnet, s. r. o.
radek@ceskedomeny.cz
+420 608 470980
http://www.ceskedomeny.cz
http://www.skdomeny.com
http://www.starnet.cz
ICQ: 65895541