I don't know if there is a way to do this, but I would really appreciate it if you guys know of a way to do this.
I want to have some php code --lets say in index.php-- setup to read the code in another file --say code.php--. The catch is that code.php well contains some php code that i want to be ran in index.php.
Is there any way to do this? If you don't understand the questions this might help.
Index.php is my main page, and on it I want a sidebar --maybe a simple calendar and a login field (it may change on each page so I'd want one file to be linked to all pages). I put the HTML/PHP for the sidebar in a file called code.php. Index.php will read code.php and just display all the text without running the php code.
I'm fairly new at php so I don't know if there is a way to do this or perhaps a better way to accomplish what I want.
Any ideas? Thanks.
<img border="0" src="http://www.toddtoddtodd.com/pics/computer_sig_small.jpg" width="375" height="150">