PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Warning: file_get_contents(http://spotify.url.fi/track/4OSRg1faLprPCt86C80zWt) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /public_html/spotInfo.php on line 3
How do I solve this, and if it's not possible, does anyone know a way to find spotify information?
My guess is that allow_url_fopen is set to 'off' in your php.ini file. This is a security measure intended to prevent remote file execution hacks, so even if you can change this setting it would probably be better not to.
The alternative is to use cURL to access the remote URL. Google 'cURL' - you'll find lots of examples.