You are here: Putting Evaluated Contents Of Include File Into Varialble « PHP « IT news, forums, messages
Putting Evaluated Contents Of Include File Into Varialble

Posted by Michael Stearne on 02/23/05 09:39

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация