|
comp.lang.php - PHP programming language discussions
|
|
|
|
|
Posted by bill on October 20, 2007, 11:44 am
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 lawrence k on October 20, 2007, 12:35 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 Rik Wasmus on October 20, 2007, 1:06 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 bill on October 20, 2007, 2:36 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 | | MySQL is making me nuts! | October 26, 2005, 9:55 am |
| i am going nuts = new session id just will not work | January 9, 2006, 12:42 am |
| Code ignighter - not using it - am I nuts? | June 2, 2009, 5:00 pm |
| A regex using word boundaries (\b) is driving me nuts ... any takers? | November 6, 2009, 2:45 am |
| question about HEREDOC | March 15, 2005, 11:46 am |
| using heredoc for SQL statements | January 16, 2006, 7:27 pm |
| constants in heredoc | December 29, 2008, 12:12 pm |
| Getting a function result while in heredoc | December 19, 2006, 11:15 am |
| inclosed variable heredoc | December 19, 2006, 5:06 pm |
| heredoc and array problems | July 17, 2008, 2:05 pm |
|
|
> include('http://www.your.domain/next_page.php?foo=bar');