Contact Jan Thomas Consulting

May 12, 2007

Open files using URL in php

Filed under: Programming Techniques — jan @ 10:22 am

Problem: To open a file that was given as a local path, I didn’t have any trouble opening and reading from the file.  When I used the full URL on the same file, I got errors.

Here’s what I found out:
In php you need to set a variable allow_url_fopen = On
Put this parameter in php.ini file and save the file in the directory where I need to open a url.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

© 2011 JanBThomas Last Updated January 2011. Privacy Policy

Powered by WordPress