Re: Problem with manual running PHP script

From: Date: Fri, 27 Oct 2006 16:57:38 +0000
Subject: Re: Problem with manual running PHP script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-243754@lists.php.net to get a copy of this message
On Fri, October 27, 2006 6:22 am, Rosen wrote: > I have scheduled php script, which runs with "c:\php\php.exe php > test.php", > i.e. without browser. I give working dir the directory of the script. > When I start it from the browser all is ok. > But when I start manualy sctipt with "c:\php\php.exe text.php >ll.txt" > the > script gives me an error( in ll.txt): "Call to undefined function: > ocilogon() in ...." > This is function for connect to Oracle database. > When I try to connect to MySQL database with the same script ( just > for > test) , there in no problem. > > Can someone help me ? You need to use the -c flag of php.exe to find the same php.ini as the working version. You're not using the same php.ini, or you're using NO php.ini on the one that works. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#243754) next »