homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

How to execute en external php file but not using INCLUDE

5+ Year Member

Msg#: 3706410 posted 4:01 pm on Jul 24, 2008 (gmt 0)

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.



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

Msg#: 3706410 posted 3:37 pm on Jul 26, 2008 (gmt 0)

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.


Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved