[PHP] Help me please.(Running stand-alone php)

2001-08-07 Thread miguel valero

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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]>
> 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
> [EMAIL PROTECTED]
> >> 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
> >>> 
> >>>  >>> 
> >>> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-08-07 Thread Bjorn Van Simaeys

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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED]
> > 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 <[EMAIL PROTECTED]>
> > 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
> > [EMAIL PROTECTED]
> > >> 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
> > >>> 
> > >>>  > >>> 
> > >>> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-08-07 Thread Tina


Hi,

Because you are running this as a SSI you need to put the folling line at
the top of your php script:

#!/path/to/php

usually:

#!/usr/local/bin/php

Then your script must be executeable by the webserver user just like any
other cgi script.

YTina.

On 2001-08-07 at 12:35 miguel valero wrote:

>Date: Tue, 7 Aug 2001 12:35:43 -0700 (PDT)
>From: miguel valero <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Cc: mike cullerton <[EMAIL PROTECTED]>
>Subject: [PHP] Help me please.(Running stand-alone php)
>
>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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
>> 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 <[EMAIL PROTECTED]>
>> 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
>> [EMAIL PROTECTED]
>> >> 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
>> >>>
>> >>> > >>>
>> >>> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-08-07 Thread Tina

On 2001-08-07 at 15:39 Tina wrote:

>Because you are running this as a SSI you need to put the folling line at
>the top of your php script:
>
>#!/path/to/php
>
>usually:
>
>#!/usr/local/bin/php
>
>Then your script must be executeable by the webserver user just like any
>other cgi script.

Actually I am quite wrong here, since you are running on windows not on
unix. Sorry about that. Normally there #! would not show up, perhaps there
is something special about windows


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-08-07 Thread Tina

The solution:

You have to configure php with --enable-discard-path
as in:
./configure --without-apache --enable-discard-path
before you compile it.

This is documented here:
http://www.php.net/manual/en/security.php
in the section:
Case 4: PHP parser outside of web tree

Now when you do 
the #!/path/to/php will not show at the top of the page.

(The problem was indeed not local to windows).

Tina.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-08-14 Thread miguel valero

Tina,
Thank you for the help Tina  :-)) 
I getting a good experience working with PHP  and HTML
(forms). Because of my full time job and personal
commitments, I haven't been able to spend  as much of
my free time as I could in my project (Free Gallery
Management System). After October I hope to dedicate
more of my free time on this project.

The project will be open source and public domain. It
will be developed with the help of PHP, a and
PostgreSQL. More information  about the project can be
seen at the following web site:
   
http://www.columbia.edu/~mv169/private/gallery_f.html 
 Login Name:  guest
 Password:guest
 
If you have any comments, suggestions or if you want
to participate, e-mail me at [EMAIL PROTECTED] Your
input is very valuable to me.
 
Adios, miguel
--- Tina <[EMAIL PROTECTED]> wrote:
> The solution:
> 
> You have to configure php with --enable-discard-path
> as in:
> ./configure --without-apache --enable-discard-path
> before you compile it.
> 
> This is documented here:
> http://www.php.net/manual/en/security.php
> in the section:
> Case 4: PHP parser outside of web tree
> 
> Now when you do 
> the #!/path/to/php will not show at the top of the
> page.
> 
> (The problem was indeed not local to windows).
> 
> Tina.
> 


__
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]