note 83454 added to function.require
| From: | freemanlatif at hotmail dot com | Date: | Tue, 27 May 2008 07:10:27 +0000 |
| Subject: | note 83454 added to function.require | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139837@lists.php.net to get a copy of this message | ||
can you actually 'execute' scripts (just like using require() ) but make them run at their
own locations.
e.g.
root/index.php:
<?php
//This should give out a 'hello world'
require 'jack/reader.php';
?>
root/jack/reader.php:
<?php
require 'helloworld.php';
echo $hello;
?>
root/jack/helloworld.php:
<?php
$hello= "Hello World!"
?>
I know it wont work. So what should I do to make them work without altering the target location
(e.q. adding a '../').
Is there a more efficient function?
----
Server IP: 202.67.10.139
Probable Submitter: 222.124.75.86
----
Manual Page -- http://www.php.net/manual/en/function.require.php
Edit -- https://master.php.net/note/edit/83454
Del: integrated -- https://master.php.net/note/delete/83454/integrated
Del: useless -- https://master.php.net/note/delete/83454/useless
Del: bad code -- https://master.php.net/note/delete/83454/bad+code
Del: spam -- https://master.php.net/note/delete/83454/spam
Del: non-english -- https://master.php.net/note/delete/83454/non-english
Del: in docs -- https://master.php.net/note/delete/83454/in+docs
Del: other reasons-- https://master.php.net/note/delete/83454
Reject -- https://master.php.net/note/reject/83454
Search -- https://master.php.net/manage/user-notes.php