I have two .php files, say a.php and b.php
a.php is included in b.php. When b.php is loaded, I dont know why the php code in a.php is not parsed (run).
When I check the source code in browser, the php code of a.php exists there.
Please help me with this.
Thanks.
included php file does not work
Moderator: General Moderators
-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
I use readfile() function as follows:
Code: Select all
readfile("a.php");-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Look into include(), include_once(), require() and require_once(). Each has a place and I am sure they could all be beneficial to you.