|
|
|
| |
Welcome
Time Now: Mon Mar 22, 2010 11:51 am
All times are GMT
|
|
|
|
|
|
|
|
|
|
| |
SEO 1 Forums
>
Webmastering >
Get http content using php
ohcnetwork
Senior Member
Joined: 31 Mar 2005
Good Posts: 1486
|
| Get http content using php |
|
|
How can I get http content using php? Specifically, I'd like to do the following. I want to get http content from a certain URL and store it in a variable in php. For example, suppose that I want to get http content from http://www.redcross.org/. I want to get http content like the following:
$someVariable = someFunction(http://www.redcross.org/);
What php function do I need to use? Also what php function do I need to use in order to get content from a local directory? For example, suppose that I want to get content from a local directory
/user/httpd/myDomain.com/httpdocs/index.php
I want to get content like the following:
$someVariable = someFunction(/user/httpd/myDomain.com/httpdocs/index.php);
What php function do I need to use?
Degree : Health Chat
Finance : Film |
Thu Aug 24, 2006 1:22 am |
|
|
ohcnetwork
Senior Member
Joined: 31 Mar 2005
Good Posts: 1486
|
This might work well, but I don't want to add so many other functions or classes. I decided to use get_the_content for the time being. When I find time, I'll make a couple of manual changes here and there to do this. Thanks for the suggestion though.
Degree : Health Chat
Finance : Film |
Sun Sep 03, 2006 11:59 am |
|
|
|
|
|
|
|
|
|