SEO 1 Links

  SEO Blog
  SEO Forum

  Active Topics
  Register
  Memberlist
  FAQ
  Search




SEO Forums

  SEO Forum
  SEM Forum

  Directories
  Link Networks
  Mod Rewrite
  Content
  Revenue Networks

  Marketing
  Social Bookmarking
  Webmastering

  Google
  Yahoo
  MSN

  Search
  Engines

  Link Exchange



Welcome

Time Now:
Mon Mar 22, 2010 11:51 am

All times are GMT

Log in

Username:

Password:

 





 





Who is Online



Most users ever online in a day was 2917 on Thu Oct 25, 2007 4:43 pm
 



Member Websites
SEO India 26
SEO Services India 25
SEO Services 20
SEO Training 14
SEO Services 13
Online Backup 13
Vehicle Tracking 12
Digital Agency 12
Health Insurance 10
SEO India 10
Personal Trainer 10
SEO Company India 8
Chennai SEO Service 8
Linkwheels for SEO 6
Seo India 5
bettyem 5
SEO 5
Magento Developers 4

Free Sitewide Links
For Top Members





SEO 1 Forums > Webmastering >

Get http content using php



Author Thread
ohcnetwork
Senior Member


Joined: 31 Mar 2005
Good Posts: 1486

Get http content using php  Reply with quote  

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
Post Thu Aug 24, 2006 1:22 am
 View user's profile Send private message Visit poster's website
Chris
Senior Member


Joined: 26 Oct 2005
Good Posts: 318

 Reply with quote  

This Class should help: http://sourceforge.net/projects/snoopy

I've used it before, very nice.

And I'm guessing you could just use the same thing to access you own content?


House Buying . Money Guide . House Shop . Personal Money Guide
Post Thu Aug 24, 2006 6:08 pm
 View user's profile Send private message Visit poster's website
ohcnetwork
Senior Member


Joined: 31 Mar 2005
Good Posts: 1486

 Reply with quote  

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
Post Sun Sep 03, 2006 11:59 am
 View user's profile Send private message Visit poster's website
paul.martin
Preferred Member


Joined: 03 Sep 2006
Good Posts: 132

 Reply with quote  

You may find your answer at http://www.php.net/fopen


Small Business Directory - Submit your business
SEO Friendly Directory
- Including SEO tools and tips
Post Thu Sep 07, 2006 12:00 am
 View user's profile Send private message Visit poster's website

Reply to topic
Jump to:  
Display posts from previous:      



phpBB

SEO 1 © 2005-2008 - SEO Forum