Re: [PHP] PHP and CGI

2009-08-20 Thread sono-io

Hi Tedd,


In your .htacess file add this:

# handler for phpsuexec. -- makes following prefixes considered for  
php


SetHandler application/x-httpd-php




	Thanks for the code.  I placed it in the .htaccess file for the  
output templates, but unfortunately it didn't work.  It just prints  
out part of the PHP code on the template:


 / '; for ($year = date("Y") ; $year <= date("Y") + 9 ; $year++)  
{ echo "$year\n"; } echo ''; ?>


	Thanks also to everyone else who responded as well.  I'm off to find  
a PHP shopping cart!


Frank

Re: [PHP] PHP and CGI

2009-08-19 Thread tedd

At 5:10 PM -0700 8/18/09, sono...@fannullone.us wrote:
	I've searched high and low for an answer to this.  Hopefully 
someone here might know.  Can PHP be used under a CGI?  I tried to 
put the following code on one of my perl shopping cart pages but it 
doesn't work:


";
for ($year = date("Y") ; $year <= date("Y") + 8 ; $year++) {
echo "$year\n";
}
echo "";
?>

	 It works fine on a .php page.  I know that SSI will not work 
under CGI, so maybe it's the same for PHP.  Is there anyway to get 
this to work?


Thanks,
Frank



Frank:

I won't guarantee that this will work, but it's worth a try.

In your .htacess file add this:

# handler for phpsuexec. -- makes following prefixes considered for php

 SetHandler application/x-httpd-php


If it works, let me know.

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP and CGI

2009-08-18 Thread Daevid Vincent
 

> -Original Message-
> From: sono...@fannullone.us [mailto:sono...@fannullone.us] 
> Sent: Tuesday, August 18, 2009 5:10 PM
> To: PHP General List
> Subject: [PHP] PHP and CGI
> 
>   I've searched high and low for an answer to this.  
> Hopefully someone  
> here might know.  Can PHP be used under a CGI?  I tried to put the  
> following code on one of my perl shopping cart pages but it doesn't  
> work:
> 
>  echo "";
> for ($year = date("Y") ; $year <= date("Y") + 8 ; $year++) {
>   echo "$year\n";
> }
> echo "";
> ?>
> 
>It works fine on a .php page.  I know that SSI will 
> not work under  
> CGI, so maybe it's the same for PHP.  Is there anyway to get this to  
> work?

Well, if you already have the page coded in Perl, why not just write those 5
lines in perl?!

It's a straight up for loop basically and some print statements. You're not
hitting a database or using anything remotely PHP-esque there.

I'm not so sure you can just mix and match parsers. I recall years ago some
talk of doing this, but I think it's just so rare and really impractical
that it's not worth setting up even if you can do it with some Apache magic.
Stick to one pre-processor language. Either all PHP or all Perl but not
both.

Daevid.

"Some people, when confronted with a problem, think 'I know, I'll use XML.'"
Now they have two problems. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and CGI

2009-08-18 Thread sono-io
	I've searched high and low for an answer to this.  Hopefully someone  
here might know.  Can PHP be used under a CGI?  I tried to put the  
following code on one of my perl shopping cart pages but it doesn't  
work:


";
for ($year = date("Y") ; $year <= date("Y") + 8 ; $year++) {
echo "$year\n";
}
echo "";
?>

	 It works fine on a .php page.  I know that SSI will not work under  
CGI, so maybe it's the same for PHP.  Is there anyway to get this to  
work?


Thanks,
Frank

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php and cgi

2002-04-03 Thread Boris Wong

thanks all for the response. i tried various methods but still have no luck.

using virtual:

   

i got the following warning:

Warning: Unable to include 'myscript.cgi' - request execution failed in
/[dir-path]/index.php on line 71

any more clues?

thanks!

/bw

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:46 PM
To: Boris Wong
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] php and cgi


On Tue, 2 Apr 2002, Boris Wong wrote:

> i was wondering if anyone knows how i can execute a cgi script
> (with -rwxrwxrwx mode) written in perl from within php?
>
> i tried
>
>  include ('mycgi.cgi');
> ?>

This worked for me:



ALthough I did use absolute paths in the cgi script.

Regards,


Terry.

[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and cgi

2002-04-02 Thread Terry Carney

On Tue, 2 Apr 2002, Boris Wong wrote:

> i was wondering if anyone knows how i can execute a cgi script
> (with -rwxrwxrwx mode) written in perl from within php?
>
> i tried
>
>  include ('mycgi.cgi');
> ?>

This worked for me:



ALthough I did use absolute paths in the cgi script.

Regards,


Terry.

[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] php and cgi

2002-04-02 Thread Martin Towell

try exec() or back-ticks ``
see how that goes

Martin


-Original Message-
From: Boris Wong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php and cgi


hi,

i was wondering if anyone knows how i can execute a cgi script
(with -rwxrwxrwx mode) written in perl from within php?

i tried



but the content of the cgi file is displayed instead of executing it.



didn't help as well.

i also tried calling the url where this cgi is located (which is in the same
file structure my php is located), like this:

http://www.myurl.org/mycgi.cgi');
?>

but the browse keeps on loading and nothing shows up.

thanks in advance.

/bw


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php and cgi

2002-04-02 Thread Boris Wong

hi,

i was wondering if anyone knows how i can execute a cgi script
(with -rwxrwxrwx mode) written in perl from within php?

i tried



but the content of the cgi file is displayed instead of executing it.



didn't help as well.

i also tried calling the url where this cgi is located (which is in the same
file structure my php is located), like this:

http://www.myurl.org/mycgi.cgi');
?>

but the browse keeps on loading and nothing shows up.

thanks in advance.

/bw


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and CGI

2002-02-12 Thread Job Miller


You can not include php as the output of a perl cgi.

the server processes the cgi request, and spits out
its results.  if the result is php code, it isn't
reprocessed by the server.

javascript can be printed out, because it is the
browser that processes js.  php is not processed by
the browser.

in the cgi, use:

$output=`/usr/local/bin/php script.php';

print $output;

or something like that, where you call php directly
and than show the results of the call to php.

I don't recommend this, just think it might be a
temporary solution until you come up with another
approach.

Job
--- "Michael R @ Spy" <[EMAIL PROTECTED]>
wrote:
> 
> I made some time to test, and no dice.  The comment
> doesn't seem to matter.
> :(
> 
> Thanks,
> 
> -Mike
> 
> 
> > -Original Message-
> > From: Darren Gamble [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 3:26 PM
> > To: 'hugh danaher'; [EMAIL PROTECTED];
> php
> > Subject: RE: [PHP] PHP and CGI
> >
> >
> > Good day,
> >
> > The php file can have whichever extension that you
> want, provided that the
> > webserver understands which application is
> associated with which
> > extension.
> >
> > If you want to run a PHP script as a CGI or
> without the webserver , just
> > install the PHP standalone executable.  This is
> done by default with many
> > RPM packages, and can easily be done with a
> tarball.
> >
> > To run the script, just put:
> >
> > #!/usr/local/bin/php
> >
> > (or whatever location it's installed into) as the
> first line of your php
> > script.  Your CGI program can run this program
> like any other
> > shell command
> > and get the results.
> >
> > Also, if the extension is .cgi , your web server
> should
> > understand that it's
> > a cgi program and exec it appropriately.
> >
> > 
> > Darren Gamble
> > Planner, Regional Services
> > Shaw Cablesystems GP
> > 630 - 3rd Avenue SW
> > Calgary, Alberta, Canada
> > T2P 4L4
> > (403) 781-4948
> >
> >
> > -Original Message-
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 1:20 PM
> > To: [EMAIL PROTECTED]; php
> > Subject: Re: [PHP] PHP and CGI
> >
> >
> > That I know, the file with the php code needs to
> have the
> > extension of .php
> > I absolutely don't know anything about CGI, but
> could you somehow
> > "include"
> > a .php file in your script?
> > - Original Message -
> > From: "SpyProductions Support Team"
> <[EMAIL PROTECTED]>
> > To: "hugh danaher" <[EMAIL PROTECTED]>; "php"
> > <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 12, 2002 12:07 PM
> > Subject: RE: [PHP] PHP and CGI
> >
> >
> > >
> > > No, it is in a CGI script.
> > >
> > > And I can't recompile PHP for cgi extensions. 
> :(
> > >
> > > -Mike
> > >
> > >
> > > > -Original Message-
> > > > From: hugh danaher
> [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, February 12, 2002 2:43 PM
> > > > To: [EMAIL PROTECTED]; php
> > > > Subject: Re: [PHP] PHP and CGI
> > > >
> > > >
> > > > is your file extension .php?
> > > > hugh
> > > > - Original Message -
> > > > From: "SpyProductions Support Team"
> <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, February 12, 2002 11:25 AM
> > > > Subject: [PHP] PHP and CGI
> > > >
> > > >
> > > > >
> > > > > I did some research in the archives on this,
> but couldn't
> > come up with
> > a
> > > > > straight answer.
> > > > >
> > > > > I have a CGI script that uses and HTML
> template/form.  I
> > would like to
> > > > embed
> > > > > a PHP script in the template to take some of
> the values of the
> > > > CGI and put
> > > > > them in a database.  I set up the database,
> wrote the PHP, but now
> > find
> > > > that
> > > > > the CGI script apparently won't recognize my
> PHP.
> > > > >
> > > > > Anyone have any ideas as to what I need to
> do?
> > > > >
> > > > > The CGI is a preset thing I can't re-write
> in PHP (at least for
> > > > now).  And
> > > > I
> > > > > don't know much CGI myself.
> > > > >
> > > > > Thanks!
> > > > >
> > > > > -Mike
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List
> (http://www.php.net/)
> > > > > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
> >
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and CGI

2002-02-12 Thread Darren Gamble

Good day.

That's not a comment.  The #! at the start tells the shell to execute that
as the interpreter for the script.

Are you sure that you typed it in correctly?

Did you install the PHP standalone application?

Is it installed in that location?

Did you set the file as executable?

Did you try to run the script?

What error did you receive?


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-Original Message-
From: Michael R @ Spy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2:28 PM
To: Darren Gamble; php
Subject: RE: [PHP] PHP and CGI



I made some time to test, and no dice.  The comment doesn't seem to matter.
:(

Thanks,

-Mike


> -Original Message-
> From: Darren Gamble [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 3:26 PM
> To: 'hugh danaher'; [EMAIL PROTECTED]; php
> Subject: RE: [PHP] PHP and CGI
>
>
> Good day,
>
> The php file can have whichever extension that you want, provided that the
> webserver understands which application is associated with which
> extension.
>
> If you want to run a PHP script as a CGI or without the webserver , just
> install the PHP standalone executable.  This is done by default with many
> RPM packages, and can easily be done with a tarball.
>
> To run the script, just put:
>
> #!/usr/local/bin/php
>
> (or whatever location it's installed into) as the first line of your php
> script.  Your CGI program can run this program like any other
> shell command
> and get the results.
>
> Also, if the extension is .cgi , your web server should
> understand that it's
> a cgi program and exec it appropriately.
>
> 
> Darren Gamble
> Planner, Regional Services
> Shaw Cablesystems GP
> 630 - 3rd Avenue SW
> Calgary, Alberta, Canada
> T2P 4L4
> (403) 781-4948
>
>
> -Original Message-----
> From: hugh danaher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 1:20 PM
> To: [EMAIL PROTECTED]; php
> Subject: Re: [PHP] PHP and CGI
>
>
> That I know, the file with the php code needs to have the
> extension of .php
> I absolutely don't know anything about CGI, but could you somehow
> "include"
> a .php file in your script?
> - Original Message -----
> From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> To: "hugh danaher" <[EMAIL PROTECTED]>; "php"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, February 12, 2002 12:07 PM
> Subject: RE: [PHP] PHP and CGI
>
>
> >
> > No, it is in a CGI script.
> >
> > And I can't recompile PHP for cgi extensions.  :(
> >
> > -Mike
> >
> >
> > > -Original Message-
> > > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 12, 2002 2:43 PM
> > > To: [EMAIL PROTECTED]; php
> > > Subject: Re: [PHP] PHP and CGI
> > >
> > >
> > > is your file extension .php?
> > > hugh
> > > - Original Message -
> > > From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, February 12, 2002 11:25 AM
> > > Subject: [PHP] PHP and CGI
> > >
> > >
> > > >
> > > > I did some research in the archives on this, but couldn't
> come up with
> a
> > > > straight answer.
> > > >
> > > > I have a CGI script that uses and HTML template/form.  I
> would like to
> > > embed
> > > > a PHP script in the template to take some of the values of the
> > > CGI and put
> > > > them in a database.  I set up the database, wrote the PHP, but now
> find
> > > that
> > > > the CGI script apparently won't recognize my PHP.
> > > >
> > > > Anyone have any ideas as to what I need to do?
> > > >
> > > > The CGI is a preset thing I can't re-write in PHP (at least for
> > > now).  And
> > > I
> > > > don't know much CGI myself.
> > > >
> > > > Thanks!
> > > >
> > > > -Mike
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and CGI

2002-02-12 Thread Michael R @ Spy


I made some time to test, and no dice.  The comment doesn't seem to matter.
:(

Thanks,

-Mike


> -Original Message-
> From: Darren Gamble [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 3:26 PM
> To: 'hugh danaher'; [EMAIL PROTECTED]; php
> Subject: RE: [PHP] PHP and CGI
>
>
> Good day,
>
> The php file can have whichever extension that you want, provided that the
> webserver understands which application is associated with which
> extension.
>
> If you want to run a PHP script as a CGI or without the webserver , just
> install the PHP standalone executable.  This is done by default with many
> RPM packages, and can easily be done with a tarball.
>
> To run the script, just put:
>
> #!/usr/local/bin/php
>
> (or whatever location it's installed into) as the first line of your php
> script.  Your CGI program can run this program like any other
> shell command
> and get the results.
>
> Also, if the extension is .cgi , your web server should
> understand that it's
> a cgi program and exec it appropriately.
>
> 
> Darren Gamble
> Planner, Regional Services
> Shaw Cablesystems GP
> 630 - 3rd Avenue SW
> Calgary, Alberta, Canada
> T2P 4L4
> (403) 781-4948
>
>
> -Original Message-----
> From: hugh danaher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 1:20 PM
> To: [EMAIL PROTECTED]; php
> Subject: Re: [PHP] PHP and CGI
>
>
> That I know, the file with the php code needs to have the
> extension of .php
> I absolutely don't know anything about CGI, but could you somehow
> "include"
> a .php file in your script?
> - Original Message -----
> From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> To: "hugh danaher" <[EMAIL PROTECTED]>; "php"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, February 12, 2002 12:07 PM
> Subject: RE: [PHP] PHP and CGI
>
>
> >
> > No, it is in a CGI script.
> >
> > And I can't recompile PHP for cgi extensions.  :(
> >
> > -Mike
> >
> >
> > > -Original Message-
> > > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 12, 2002 2:43 PM
> > > To: [EMAIL PROTECTED]; php
> > > Subject: Re: [PHP] PHP and CGI
> > >
> > >
> > > is your file extension .php?
> > > hugh
> > > - Original Message -
> > > From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, February 12, 2002 11:25 AM
> > > Subject: [PHP] PHP and CGI
> > >
> > >
> > > >
> > > > I did some research in the archives on this, but couldn't
> come up with
> a
> > > > straight answer.
> > > >
> > > > I have a CGI script that uses and HTML template/form.  I
> would like to
> > > embed
> > > > a PHP script in the template to take some of the values of the
> > > CGI and put
> > > > them in a database.  I set up the database, wrote the PHP, but now
> find
> > > that
> > > > the CGI script apparently won't recognize my PHP.
> > > >
> > > > Anyone have any ideas as to what I need to do?
> > > >
> > > > The CGI is a preset thing I can't re-write in PHP (at least for
> > > now).  And
> > > I
> > > > don't know much CGI myself.
> > > >
> > > > Thanks!
> > > >
> > > > -Mike
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and CGI

2002-02-12 Thread Darren Gamble

Good day,

The php file can have whichever extension that you want, provided that the
webserver understands which application is associated with which extension.

If you want to run a PHP script as a CGI or without the webserver , just
install the PHP standalone executable.  This is done by default with many
RPM packages, and can easily be done with a tarball.

To run the script, just put:

#!/usr/local/bin/php

(or whatever location it's installed into) as the first line of your php
script.  Your CGI program can run this program like any other shell command
and get the results.

Also, if the extension is .cgi , your web server should understand that it's
a cgi program and exec it appropriately.


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-Original Message-
From: hugh danaher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:20 PM
To: [EMAIL PROTECTED]; php
Subject: Re: [PHP] PHP and CGI


That I know, the file with the php code needs to have the extension of .php
I absolutely don't know anything about CGI, but could you somehow "include"
a .php file in your script?
- Original Message -
From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
To: "hugh danaher" <[EMAIL PROTECTED]>; "php"
<[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 12:07 PM
Subject: RE: [PHP] PHP and CGI


>
> No, it is in a CGI script.
>
> And I can't recompile PHP for cgi extensions.  :(
>
> -Mike
>
>
> > -Original Message-
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 2:43 PM
> > To: [EMAIL PROTECTED]; php
> > Subject: Re: [PHP] PHP and CGI
> >
> >
> > is your file extension .php?
> > hugh
> > - Original Message -----
> > From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 12, 2002 11:25 AM
> > Subject: [PHP] PHP and CGI
> >
> >
> > >
> > > I did some research in the archives on this, but couldn't come up with
a
> > > straight answer.
> > >
> > > I have a CGI script that uses and HTML template/form.  I would like to
> > embed
> > > a PHP script in the template to take some of the values of the
> > CGI and put
> > > them in a database.  I set up the database, wrote the PHP, but now
find
> > that
> > > the CGI script apparently won't recognize my PHP.
> > >
> > > Anyone have any ideas as to what I need to do?
> > >
> > > The CGI is a preset thing I can't re-write in PHP (at least for
> > now).  And
> > I
> > > don't know much CGI myself.
> > >
> > > Thanks!
> > >
> > > -Mike
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and CGI

2002-02-12 Thread SpyProductions Support Team


I don't know.  I was thinking about breaking it off and just doing an
include like in html.  I'll try it out by tomorrow morning unless someone
else has a definitive solution.  :)

Thanks for the suggestion!

-Mike


> -Original Message-
> From: hugh danaher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 3:20 PM
> To: [EMAIL PROTECTED]; php
> Subject: Re: [PHP] PHP and CGI
>
>
> That I know, the file with the php code needs to have the
> extension of .php
> I absolutely don't know anything about CGI, but could you somehow
> "include"
> a .php file in your script?
> - Original Message -
> From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> To: "hugh danaher" <[EMAIL PROTECTED]>; "php"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, February 12, 2002 12:07 PM
> Subject: RE: [PHP] PHP and CGI
>
>
> >
> > No, it is in a CGI script.
> >
> > And I can't recompile PHP for cgi extensions.  :(
> >
> > -Mike
> >
> >
> > > -Original Message-
> > > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 12, 2002 2:43 PM
> > > To: [EMAIL PROTECTED]; php
> > > Subject: Re: [PHP] PHP and CGI
> > >
> > >
> > > is your file extension .php?
> > > hugh
> > > - Original Message -
> > > From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, February 12, 2002 11:25 AM
> > > Subject: [PHP] PHP and CGI
> > >
> > >
> > > >
> > > > I did some research in the archives on this, but couldn't
> come up with
> a
> > > > straight answer.
> > > >
> > > > I have a CGI script that uses and HTML template/form.  I
> would like to
> > > embed
> > > > a PHP script in the template to take some of the values of the
> > > CGI and put
> > > > them in a database.  I set up the database, wrote the PHP, but now
> find
> > > that
> > > > the CGI script apparently won't recognize my PHP.
> > > >
> > > > Anyone have any ideas as to what I need to do?
> > > >
> > > > The CGI is a preset thing I can't re-write in PHP (at least for
> > > now).  And
> > > I
> > > > don't know much CGI myself.
> > > >
> > > > Thanks!
> > > >
> > > > -Mike
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> >
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and CGI

2002-02-12 Thread hugh danaher

That I know, the file with the php code needs to have the extension of .php
I absolutely don't know anything about CGI, but could you somehow "include"
a .php file in your script?
- Original Message -
From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
To: "hugh danaher" <[EMAIL PROTECTED]>; "php"
<[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 12:07 PM
Subject: RE: [PHP] PHP and CGI


>
> No, it is in a CGI script.
>
> And I can't recompile PHP for cgi extensions.  :(
>
> -Mike
>
>
> > -Original Message-
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 2:43 PM
> > To: [EMAIL PROTECTED]; php
> > Subject: Re: [PHP] PHP and CGI
> >
> >
> > is your file extension .php?
> > hugh
> > - Original Message -----
> > From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 12, 2002 11:25 AM
> > Subject: [PHP] PHP and CGI
> >
> >
> > >
> > > I did some research in the archives on this, but couldn't come up with
a
> > > straight answer.
> > >
> > > I have a CGI script that uses and HTML template/form.  I would like to
> > embed
> > > a PHP script in the template to take some of the values of the
> > CGI and put
> > > them in a database.  I set up the database, wrote the PHP, but now
find
> > that
> > > the CGI script apparently won't recognize my PHP.
> > >
> > > Anyone have any ideas as to what I need to do?
> > >
> > > The CGI is a preset thing I can't re-write in PHP (at least for
> > now).  And
> > I
> > > don't know much CGI myself.
> > >
> > > Thanks!
> > >
> > > -Mike
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and CGI

2002-02-12 Thread SpyProductions Support Team


No, it is in a CGI script.

And I can't recompile PHP for cgi extensions.  :(

-Mike


> -Original Message-
> From: hugh danaher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 2:43 PM
> To: [EMAIL PROTECTED]; php
> Subject: Re: [PHP] PHP and CGI
>
>
> is your file extension .php?
> hugh
> - Original Message -
> From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 12, 2002 11:25 AM
> Subject: [PHP] PHP and CGI
>
>
> >
> > I did some research in the archives on this, but couldn't come up with a
> > straight answer.
> >
> > I have a CGI script that uses and HTML template/form.  I would like to
> embed
> > a PHP script in the template to take some of the values of the
> CGI and put
> > them in a database.  I set up the database, wrote the PHP, but now find
> that
> > the CGI script apparently won't recognize my PHP.
> >
> > Anyone have any ideas as to what I need to do?
> >
> > The CGI is a preset thing I can't re-write in PHP (at least for
> now).  And
> I
> > don't know much CGI myself.
> >
> > Thanks!
> >
> > -Mike
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and CGI

2002-02-12 Thread hugh danaher

is your file extension .php?
hugh
- Original Message -
From: "SpyProductions Support Team" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 11:25 AM
Subject: [PHP] PHP and CGI


>
> I did some research in the archives on this, but couldn't come up with a
> straight answer.
>
> I have a CGI script that uses and HTML template/form.  I would like to
embed
> a PHP script in the template to take some of the values of the CGI and put
> them in a database.  I set up the database, wrote the PHP, but now find
that
> the CGI script apparently won't recognize my PHP.
>
> Anyone have any ideas as to what I need to do?
>
> The CGI is a preset thing I can't re-write in PHP (at least for now).  And
I
> don't know much CGI myself.
>
> Thanks!
>
> -Mike
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and CGI

2002-02-12 Thread SpyProductions Support Team


I did some research in the archives on this, but couldn't come up with a
straight answer.

I have a CGI script that uses and HTML template/form.  I would like to embed
a PHP script in the template to take some of the values of the CGI and put
them in a database.  I set up the database, wrote the PHP, but now find that
the CGI script apparently won't recognize my PHP.

Anyone have any ideas as to what I need to do?

The CGI is a preset thing I can't re-write in PHP (at least for now).  And I
don't know much CGI myself.

Thanks!

-Mike



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php