Click here to get back home

[PHP4] accessing constants outside class body

 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
[PHP4] accessing constants outside class body somaboy mx 12-21-2005
Get Chitika Premium
Posted by somaboy mx on December 21, 2005, 12:24 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 Alexius on December 21, 2005, 5:35 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 somaboy mx on December 22, 2005, 3:05 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
Overriding class constants July 3, 2008, 9:18 am
case-insensitive Class Constants possible? October 17, 2008, 2:41 pm
Accessing Class Method September 17, 2007, 8:13 am
Error accessing class files in php April 29, 2007, 2:10 pm
Trouble accessing class member variable September 19, 2004, 9:00 am
Basic PHP4 Class question December 20, 2006, 11:25 am
Accessing constant and static members of a class name held in a variable March 3, 2006, 10:23 am
accessing static member if class name is a variable (crosspost php.general) May 4, 2006, 8:11 am
Static method to get class variable (PHP4) May 31, 2006, 6:04 am
Why do constants have quotes around when defined and class quotes have no quotes?? December 11, 2007, 9:00 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap