note 57072 added to function.file-get-contents
| From: | php dot 20 dot rsb at spamgourmet dot com | Date: | Thu, 22 Sep 2005 18:48:28 +0000 |
| Subject: | note 57072 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95630@lists.php.net to get a copy of this message | ||
You can use this function to call one php from another php: just specify an url instead of a file
path as the parameter. So for example:
$s = file_get_contents("http://www.apple.com")
will put into $s what you would see if you loaded that url and viewed the source in your browser
(although I don't know as what browser and OS php would identify itself as).
To call one php file from another, just substitute an url to that php for "http://www.apple.com".
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57072
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57072&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57072&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57072&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57072&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57072&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57072&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57072&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57072&report=yes
Search -- http://master.php.net/manage/user-notes.php