Re: Accessing my variables
| From: | Ricardo Lopes | Date: | Thu, 12 Feb 2004 09:13:35 +0000 |
| Subject: | Re: Accessing my variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32913@lists.php.net to get a copy of this message | ||
you forget the last ' on your include string:
<?
include('global.inc.php');
echo $myVariable;
?>
didnt you see the error message of php ? if dont change you error reporting
for development, this an error easy to find out if you have your error
reporting set to E_ALL.
----- Original Message -----
From: "J. Kevin C. Burton" <KBurton@SimplicityCS.com>
To: <php-db@lists.php.net>
Sent: Wednesday, February 11, 2004 5:28 PM
Subject: [PHP-DB] Accessing my variables
> Hey all.. I am using PHP5 and apache 2.0 on windows xp pro.
>
> My problem is:
>
> I have an include file: global.inc.php
> Inside that file I have:
>
> $myVariable = "xankjndckjnskncd";
>
> now I have a index.php that has:
>
> <?
> Include('global.inc.php);
> Print $myVariable;
> ?>
>
> Anyone got a clue on this one?
>
> Kevin
>