Ask About PHP: PHP Basics: Accessing Remote URLs using cURL

Courtesy PHPDeveloper.org  Mon, 06/22/2009 - 11:06

In this new post to the Ask About PHP blog they take a look at one of the basics of using PHP - fetching the data from a remote URL via the cURL extension.

In PHP, there are actually four ways to access a remote URL - fopen() fsockopen(), cURL extensions and HTTP_Request class from the PEAR library.

Now, choosing one way over another really depends on your needs for simplicity, control, and portability. Generally, I prefer...


 

More related items

Lorna Mitchell's Blog: Building A RESTful PHP Server:...
In this new post to her blog Lorna Mitchell starts off a new series (based on popular demand) looking at building an RESTful server in PHP. Back to basics - no framework, just PHP. In the...

Create your own framework... on top of the Symfony2...
The astute reader has noticed that our framework hardcodes the way specific "code" (the templates) is run. For simple pages like the ones we have created so far, that's not a problem, but if...

How to customize Pear OS Linux Panther 3
LinuxBSDos.com: "This short tutorial provides some tips on how to tweak those areas to make the UI a bit more user-friendly than it already is."


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com