Re: Help me please.(Running stand-alone php)

From: Date: Tue, 07 Aug 2001 20:02:49 +0000
Subject: Re: Help me please.(Running stand-alone php)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61690@lists.php.net to get a copy of this message
Miguel, I see that your script has the extension .html Rename that file to .php and it normally should work. Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- miguel valero <mrv169@yahoo.com> wrote: > Unfortunately the -q parameter didn't fix the > problem. > > Is anybody in the PHP mailing list that is familiar > with this kind of problem and can tell me how to > get > rid of the path line in the browser output? > > Any help will be greatly appreciated. > Thanks. > --- mike cullerton <php-l@bakednotfried.com> wrote: > > try the -q parameter. i'm guessing here, since i > > don't run windows nor the > > cgi version of php. > > > > :) > > > > on 8/7/01 8:27 AM, miguel valero at > mrv169@yahoo.com > > wrote: > > > > > Mike, > > > > > > I running the scrip from the browser > > > (http://localhost/cgi-bin/test.html) When I > > comment > > > the first line in the script > > (#-----#!c:\php\php.exe) > > > I get the following error message: > > > > > > Tue Aug 07 09:56:13 2001] [error] [client > > 127.0.0.1] > > > c:/program files/apache > > group/apache/cgi-bin/test.php > > > is not executable; ensure interpreted scripts > have > > > "#!" first line > > > > > > I can not run the script w/o the line > > #!c:\php\php.exe > > > at the top of the script. > > > > > > How can I get rid of the path line on the > browser > > > output ? > > > > > > Thanks > > > --- mike cullerton <php-l@bakednotfried.com> > > wrote: > > >> i'm not sure i understand how you are running > > >> this... > > >> > > >> if it is a file you are running at the command > > line, > > >> try "-q" after the > > >> php.exe statement. > > >> > > >> if this is a web page, comment that line out. > > >> > > >> hope this helps, > > >> mike > > >> > > >> on 8/6/01 1:16 PM, miguel valero at > > mrv169@yahoo.com > > >> wrote: > > >> > > >>> When I run the following script under an > > >> stand-alone > > >>> php 4.0.6 and Apache 1.3 (Win95/98), the path > to > > >> PHP > > >>> (#!c:\php\php.exe) will show up on the first > > line > > >> of > > >>> the browser output. > > >>> > > >>> #!c:\php\php.exe > > >>> > > >>> <?php > > >>> > > >>> phpinfo(); > > >>> > > >>> ?> > > >>> > > >>> Is there a way to fix this? How can I get rid > of > > >> the > > >>> path line, on the top of the page, on the > > browser > > >>> output? Any help will be greatly appreciated. > > >>> > > >>> My apologies if this has been covered before, > or > > >> if > > >>> this is in the manual, but I couldn't see it > > >>> > > >>> thanks. > > >>> > > >>> > > >>> > > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute > with Yahoo! Messenger > http://phonecard.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

« previous php.general (#61690) next »