homepage Welcome to WebmasterWorld Guest from 54.167.173.250
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
guajiro




msg:3706412
 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.

Example

index.php:

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

my cotent...

?>

Thanks in advance.

 

mack




msg:3708174
 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.

$path="/me/user/site/public_html";

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.

Mack.

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