Re: Accessing my variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Wednesday, February 11, 2004 5:28 PM
Subject:  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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux