> -Original Message-
> From: Scott [mailto:[EMAIL PROTECTED]]
> Sent: 17 November 2002 20:55
> To: php-general
> Subject: Re: [PHP] running php as cgi script
>
>
> Well, I've got a few test scripts to run by following the
> suggestions from
> the p
On Monday 18 November 2002 04:55, Scott wrote:
> Well, I've got a few test scripts to run by following the suggestions from
> the posts. There's just one thing that's not quite right yet. The
> "#!/usr/bin/php" line appears at the top of the page. For instance when I
> run the following script f
Well, I've got a few test scripts to run by following the suggestions from
the posts. There's just one thing that's not quite right yet. The
"#!/usr/bin/php" line appears at the top of the page. For instance when I
run the following script from the cgi-bin:
#!/usr/bin/php
The phpinfo page
I'm not intending to run the script from the shell. What I am trying to do is
encrypt emails with Gnupg. The problem is Gnupg runs as my user name and php
runs as nobody. So I'm trying to run a php script as cgi to deliver the data
to Gnupg since a cgi script will run as my username. I am usi
Haha, well I posted my version number because I haven't tested the new
one that actually comes default with a CLI. So I don't know if the end
tags are necessary or not.
Marco Tabini wrote:
No, that was actually my mistake, and you were right. I guess I've
either had too much to drink, or too li
Hello Marco,
"Marco Tabini" <[EMAIL PROTECTED]> wrote:
> If you look at the error he's getting, I think there's something a bit
> more critical than the PHP tags...
You're right. Most probably there's something more...
> although you're right and I missed
> that :-
No, that was actually my mistake, and you were right. I guess I've
either had too much to drink, or too little. I'll try and post again in
a couple of hours and let's see which of the two is the case :-)
Marco
On Fri, 2002-11-15 at 23:26, bahwi wrote:
> Oh, sorry, I'm running the 4.2.3 standalon
Oh, sorry, I'm running the 4.2.3 standalone version(from FreeBSD Ports
system) and I have to use the tags still.
It looks like a CGIwrap problem, but I'm not familiar with that. =/
--Joseph
http://www.josephguhlin.com/
Marco Tabini wrote:
Joseph, I think he's trying to run the script from the s
If you look at the error he's getting, I think there's something a bit
more critical than the PHP tags... although you're right and I missed
that :-( d'oh!
Marco
On Fri, 2002-11-15 at 23:20, @ Edwin wrote:
>
> "Scott" <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to run a simple test php script a
... and yes, you forgot the semi-colon :)
Also, are you trying to do something like these?
http://www.phpbeginner.com/columns/ray/cli
- E
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Scott" <[EMAIL PROTECTED]> wrote:
> I'm trying to run a simple test php script as a cgi script on my ISP's
server
> and haven't been able to get it to work, although according them it is
> possible.
>
> I have an example from a book which gives the following steps:
>
> 1. Put the script in the
Joseph, I think he's trying to run the script from the shell--in which
case it looks okay to me (besides perhaps a terminating semicolon on the
last line)
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Che
Hello,
"Scott" <[EMAIL PROTECTED]> wrote:
>
> Forgot to include the error I'm getting is:
>
> CGIwrap Error: System Error: execv() failed
>
> Error: No such file or directory (2)
>
> Although the file and path are correct.
>
Are you sure it's correct? Most cgi-bin folders are located outside you
That is in no way a correct php program. What error are you getting on
the page? Or are you seeing the source? If you are seeing the source
when you try to view the script it is a problem on their end(they may
want them named as .cgi instead of .php, although rare now, this might
be how they ar
The script looks ok to me...
The difference that you probably see is the first line. This is the
"shebang", a line that tells the script interpreter which application
the script should be interpreted with. This, together with the
permissions you've provided, makes the script "self-executing", in t
Forgot to include the error I'm getting is:
CGIwrap Error: System Error: execv() failed
Error: No such file or directory (2)
Although the file and path are correct.
On Friday 15 November 2002 10:52 pm, you wrote:
> I'm trying to run a simple test php script as a cgi script on my ISP's
> server
16 matches
Mail list logo