PHP cURL Tutorial – Learn PHP Programming

Learn how to use php curl to initiate http requests in PHP. First we load a simple page in a browser and output it. We then load search results at amazon.com using php cURL and match every image in the results and store it in array variable. We then loop through the array containing image urls and output the images in a browser using HTML IMG tag. This is a fun example so you can see what’s possible with a PHP cURL library.

Download source code here:
http://clevertechie.com/code/php-curl-tutorial.txt

*********************************************

( New Video! ) How to Create Transparent Drop Down Navigation Menu with CSS and HTML

https://youtu.be/8x1mO1d6-4w

*********************************************
“““““““““““““““““““““““““““““““““““““““““““““““

( Website ) https://clevertechie.com – PHP, JavaScript, WordPress, CSS, and HTML tutorials in video and text format with cool looking graphics and diagrams.

( YouTube Channel ) https://www.youtube.com/c/CleverTechieTube

( Google Plus ) https://goo.gl/J71p6f – clever techie video tutorials.

( Facebook ) https://www.facebook.com/CleverTechie/

( Twitter ) https://twitter.com/theclevertechie

“““““““““““““““““““““““““““““““““““““““““““““““

Comments

prajwal shrestha says:

you’re a sick guy!

Thomas Chambers says:

That is w/o a doubt one of the most good curl videos out there .. showing how to make something useful… such a pain to have to type all the code from the screen.. is any of your code available on your site as a courtesy download?

Bori Dia says:

So other than his video…where does one learn about things like this? Books?

I’m trying to become a developer but everything out there is just basics. Should I bother paying for courses or are free resources enough to gain enough knowledge for a jr position?

Rao Shahbaz says:

Hello sir please make a tutorial on ‘how to get json array data through curl?’.

Ronald Aug says:

Before I watch this, I thought CURL is such a complicated one. Thanks,, this is very easy to understand.

Jesus Hilario Hernandez says:

You sir, are a freggen beast! Well explanation. Direct and to the point! All the best sir.

Mohamed Gaber says:

great video
but i want to know how can i use CURL to get data from another website’s database
if the two websites on different VPSs / hosts

Shaleen Baral says:

Create a tutorial on how to make a database abstraction class on top of either PDO or MySQLi !!

roig rodrigo says:

Thanks a lot !, that’s very clear and instructive

Amit Goel says:

One of the best videos.

Carlos Morales says:

Wow!! That was a good and straightforward video!! Thanks a lot!

404 :P says:

without user agent curl should not work on amazon.

for user agent we can use:
$agent = “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13”;
curl_setopt($ch, CURLOPT_USERAGENT, $agent);

Vader says:

subscribe <3

Vijay Sharma says:

Great video. It helped me a lot to learn php faster.

said nouri says:

Great video mate. Just discovering php, but videos like these make me want to learn much more 😉

BivertZ says:

I’m just getting directed to a CAPTCHA page of Amazon’s.. =/

Muhd Syamil Dzulkaftah says:

Hello, is there any CURLOPT used to ignore robot check?

Augustus Columbano says:

wow that’s really useful

Write a comment

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours