Hi

I want to code how to access data with the help of url.

Member Avatar for nileshgr

Do you want to retrive data from a web-resource ? (www).

If yes use this -

<?php

$url = 'http://www.google.com';

$ch = curl_init($url);

curl_exec($ch);

This will output the page on google.com. Check cURL manual on php website for more info.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.