Linked Questions

22 votes
3 answers
152k views

get url content PHP [duplicate]

I wanna put the content of a URL in a string and the process it. However, I have a problem. I get this error: Warning: file_get_contents(http://www.findchips.com/avail?part=74ls244) [function.file-...
Amir Tugi's user avatar
  • 2,476
6 votes
3 answers
19k views

How to obtain location from ipinfo.io in PHP?

I am using ipinfo.io to get my current city (location) using PHP. However, I am not able to see my city when using this piece of code. $ipaddress = $_SERVER["REMOTE_ADDR"]; function ip_details($ip) ...
Cody Raspien's user avatar
  • 1,835
4 votes
2 answers
15k views

how to get contents of site use HTTPS

ex of site using ssl ( HTTPs ) : https://www.eb2a.com 1 - i tried to get its content using file_get_contents, but not work and give error ex : <?php $contents = file_get_contents("https://www....
user346830's user avatar
2 votes
2 answers
9k views

IMDB API to php variables

Hello stackoverflow users. I need to pull some movie information from the Open Movie Database API. They have no docs on how to use their API so i am very confused. The site i am creating in PHP needs ...
Elias Nilsson's user avatar
1 vote
1 answer
1k views

Laravel: grab html from the view and send it as a mail attachment

I have a blade template that generates the content that I need: invoice.blade.php //nothing interesting here, just html I have a route to access this view by a link: web.php Route::get('/invoice/{...
Alex's user avatar
  • 2,775
1 vote
1 answer
451 views

Accessing google docs spreadsheet revisited in 2014

I am trying to access a google spreadsheet through php (by adding &output=csv to the link) It seems like google does not want this any more, is this correct? I tried file_get_contents (and yes, ...
DudeOnRock's user avatar
  • 3,831
0 votes
5 answers
627 views

How to Parse a Web page using PHP?

I am Learning php. I have learned some basics. Now I am eager to learn Web page parsing. I want to Parse this page http://www.icc-cricket.com/rankings/team-rankings/test I want to parse this alone ...
user2655833's user avatar
1 vote
1 answer
241 views

Decode "https" json-array in a php array

I have the following https:// url which contains a json array´ https://us.api.blizzard.com/data/wow/mount/6?namespace=static-us&locale=en_US&access_token=USgdNPkRDwpJ1m4zQ2mHokA0O12E0kPTih I ...
Kelser's user avatar
  • 13
1 vote
3 answers
92 views

Take variables from a PHP script

I am making a website to display the data at https://api.captcoin.com/address/top/100. I need to be able to make the website take variables("address", "percent", "balance", and "rank") from this ...
meecoder's user avatar
  • 156
-3 votes
2 answers
96 views

How to make PHP bot print the title

$instagram = "ugur2d"; $kaynak = file_get_contents("https://www.instagram.com/$instagram/"); preg_match('@<title>(.*?)</title>@si', $kaynak, $iglink); echo $iglink[1]; Screen is empty. ...
Uğur KILCI's user avatar
0 votes
0 answers
67 views

Pure PHP How to Read Metatags of a remote url WITHOUT curl

I can see there are some similar questions on stackoverflow. but none seems to help. I am developing a site where users can add external links in chatbox etc. When they add an external url, I also ...
codingman's user avatar