Putting Evaluated Contents Of Include File Into Varialble

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

 



Hi,

I have an file that contains PHP code..variables, db, etc.  Is it
possible to include the evaluted contents of that file into a variable
in another, the calling PHP script?

Essentailly I am looking to do something like

include("myCode.php") -> HTML Output -> $myVariable.

I know could do this with something like
$myVariable=file_get_contents("http://localhost/myCode.php";) but I am
not allowed to use urls in file opens.

Any suggestions?

Thanks,
Michael

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux