Click here to get back home

Class method returns both TRUE and FALSE at the exact same time!!

 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
Class method returns both TRUE and FALSE at the exact same time!! comp.lang.php 07-24-2006
Get Chitika Premium
Posted by comp.lang.php on July 24, 2006, 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

Posted by Alvaro G. Vicario on July 25, 2006, 6:07 am
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 comp.lang.php on July 25, 2006, 10:45 am
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
isset returns true when it should return false April 27, 2007, 3:01 pm
PHP 4: does method_exist return true if parent class method even if child class forgot to call parent:: May 28, 2005, 8:03 am
I've a class method that dies on the line that it returns July 21, 2005, 11:24 am
true?2:false?3:4 - is it a bug? May 21, 2005, 10:24 am
__set() TRUE/FALSE December 12, 2007, 12:26 pm
TRUE and FALSE are treated differently January 6, 2008, 1:26 pm
Is it possible to return a value other than true or false via an include over HTTP? March 30, 2005, 11:45 am
date/time calculations: calculating exact difference May 15, 2005, 5:45 pm
where to look when mysql_query returns false? December 8, 2004, 9:46 pm
move_uploaded_file returns false March 13, 2008, 3:48 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap