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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to