View previous topic :: View next topic |
Author |
Message |
naschpitz -
Joined: 20 Jan 2003 Posts: 9 Location: Rio de Janeiro - Brazil
|
Posted: Sat Jul 03, 2004 12:09 am Post subject: Can't run CGI in PHP |
|
|
Hey guys, please help me...
I just can't put PHP and CGI to work together...
I'm using this code in PHP: <? virtual('/cgi-bin/banner.cgi'); ?> to make my script run in the page.
I can run GGI script out of the PHP, for example, when a call: http://myip/cgi-bin/banner.cgi
What's the problem? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Jul 03, 2004 2:04 pm Post subject: Re: Can't run CGI in PHP |
|
|
naschpitz,
The virtual command works only on Apache and even on Apache it will only work when you are using the PHP module. Please use SSI to perform the requested inclusion. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
naschpitz -
Joined: 20 Jan 2003 Posts: 9 Location: Rio de Janeiro - Brazil
|
Posted: Sat Jul 03, 2004 6:01 pm Post subject: Can't run CGI in PHP |
|
|
So, what's the right inclusion request code that I should use? |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Jul 03, 2004 7:08 pm Post subject: |
|
|
The SSI Code is !
Code: | <!--#include virtual="/cgi-bin/banner.cgi" --> |
|
|
Back to top |
|
|
naschpitz -
Joined: 20 Jan 2003 Posts: 9 Location: Rio de Janeiro - Brazil
|
Posted: Sun Jul 04, 2004 3:52 am Post subject: Can't run CGI in PHP |
|
|
Hey guys, tanks for the help, but I solved the problem, I mean, not me, my friend who helped me.
This is the right code: (with full URL)
<?php include 'http://astronomiahoje.no-ip.com/cgi-bin/banner.cgi'?>
Agora funciona!!!!!
Typiyer' eta rabotayet!!!!!
Now it works!!!!! |
|
Back to top |
|
|
|