Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

How to execute en external php file but not using INCLUDE



4:01 pm on Jul 24, 2008 (gmt 0)

5+ Year Member

Hi All,

I want to know how to execute a php file from another file.

I just don't want to use INCLUDE('file.php') function because i'll have problems with paths.

So, I just want to RUN it not CALL it or include it.



EXECUTE 'www.mysite.com/file.php';

my cotent...


Thanks in advance.


3:37 pm on Jul 26, 2008 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

I think you should work on making your paths issue work correctly. For example use full paths as a variable.


include "$path/file.php";

Use a full location that way it will be correct no matther where within the "pyramid" your page is located.

Hope this helps.



Featured Threads

Hot Threads This Week

Hot Threads This Month