|
Posted by Piotr Wolski on July 14, 2004, 2:04 pm
Please log in for more thread options
Kimmo Laine wrote:
show/hide quoted text
> <?php
> include('http://www.your.domain/next_page.php?foo=bar');
Unless next_page.php generates PHP, the script with this include will
only get HTML.
show/hide quoted text
> exit();
next_page.php
<?php
if (isset($_GET['foo'])) {
show/hide quoted text
echo '<?php echo $_GET[\'foo\']; ?>';
} else {
show/hide quoted text
echo '<?php echo \'Not available\'; ?>';
}
--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot
|
|
Posted by Michael Austin on July 14, 2004, 8:24 pm
Please log in for more thread options
Kimmo Laine wrote:
show/hide quoted text
> <?php
> include('http://www.your.domain/next_page.php?foo=bar');
Unless next_page.php generates PHP, the script with this include will
only get HTML.
show/hide quoted text
> exit();
next_page.php
<?php
if (isset($_GET['foo'])) {
show/hide quoted text
echo '<?php echo $_GET[\'foo\']; ?>';
} else {
show/hide quoted text
echo '<?php echo \'Not available\'; ?>';
}
--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot
|
|
Posted by Piotr Wolski on July 14, 2004, 4:17 pm
Please log in for more thread options Kimmo Laine wrote:
show/hide quoted text
> <?php
> include('http://www.your.domain/next_page.php?foo=bar');
Unless next_page.php generates PHP, the script with this include will
only get HTML.
show/hide quoted text
> exit();
next_page.php
<?php
if (isset($_GET['foo'])) {
show/hide quoted text
echo '<?php echo $_GET[\'foo\']; ?>';
} else {
show/hide quoted text
echo '<?php echo \'Not available\'; ?>';
}
--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot
|
| Similar Threads | Posted | | Error in exec function in php | April 15, 2009, 9:09 am |
| CGI Error after exec or system in Windows | November 7, 2005, 2:11 pm |
| Using exec function to get a .exe return status gives CGI Error | August 23, 2007, 11:57 am |
| 'echo "": No such file or directory" error using "exec" to pipe in PHP script | December 1, 2006, 11:53 am |
| exec() has a syntax error, need an index.php page, cURL script | August 6, 2009, 7:11 pm |
| xmlrpc error faultCode 105 faultString XML error: Invalid document end at line 1, column 1 | October 1, 2007, 10:38 am |
| STRANGE "Fatal error: Call to undefined function..." ERROR | May 15, 2005, 3:00 pm |
| newbie error : syntax error, unexpected T_INC, expecting ')' | July 16, 2005, 2:36 pm |
| Parse error: syntax error, unexpected $end in ... Question/Suggestion | April 7, 2006, 1:01 pm |
| Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' | July 4, 2007, 5:29 pm |
|
> include('http://www.your.domain/next_page.php?foo=bar');