Click here to get back home

eregi whitespace detection problem

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
eregi whitespace detection problem Frank 10-30-2004
Posted by Frank on October 30, 2004, 4:53 pm
Please log in for more thread options
Kimmo Laine wrote:
> <?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.

> exit();
>
> ?>

next_page.php

<?php
if (isset($_GET['foo'])) {
echo '<?php echo $_GET[\'foo\']; ?>';
} else {
echo '<?php echo \'Not available\'; ?>';
}

--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Posted by Andy Hassall on October 30, 2004, 4:33 pm
Please log in for more thread options
Kimmo Laine wrote:
> <?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.

> exit();
>
> ?>

next_page.php

<?php
if (isset($_GET['foo'])) {
echo '<?php echo $_GET[\'foo\']; ?>';
} else {
echo '<?php echo \'Not available\'; ?>';
}

--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Posted by Frank on October 30, 2004, 5:49 pm
Please log in for more thread options
Kimmo Laine wrote:
> <?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.

> exit();
>
> ?>

next_page.php

<?php
if (isset($_GET['foo'])) {
echo '<?php echo $_GET[\'foo\']; ?>';
} else {
echo '<?php echo \'Not available\'; ?>';
}

--
File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Similar ThreadsPosted
eregi and eregi replace January 10, 2006, 11:50 pm
explode on whitespace July 1, 2005, 6:00 am
removing whitespace from a string? March 5, 2005, 5:33 am
PHP sending whitespace after headers? August 24, 2006, 1:11 pm
$_POST adding whitespace to variable value January 15, 2008, 11:28 am
php parser for bug detection September 4, 2005, 10:00 am
detection of a robot in php August 8, 2006, 8:42 pm
Proxy detection September 14, 2007, 12:44 am
Allowing whitespace when validating form entries June 14, 2007, 7:42 am
Download completion detection February 18, 2006, 1:02 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap