I’m trying to get http://www.wowhead.com/spell=74217&power into a variable so that I can parse it as I like and save to my DB. I couldn’t even get to echo it, I might be brain lagged though.
I’m trying to get http://www.wowhead.com/spell=74217&power into a variable so that I can parse it
Share
For me, the following code does the job:
But I would use an HTTP client library to do it.
Maybe your configuration disabled it, check
allow_url_fopen, it must be turned on to be able to use URLs infile_get_contents.