Hi,
I use file_get_contents in a number of different ways on my site.
In this particular instance i'm using file_get_contents to open a php file on my website, and indexing it's content for my search script.
I have always used file_get_contents with a URL rather than file reference becuase I always get errors when I try and reference the file directly.
It does make sense to my why referencing the file directly does not work when there is a query string after it, so does anybody know how I can get something that essentially does the same thing?
Everytime my server admin does any sort of update, allow_url_fopen gets turned off and some of my scripts die. It's easy enough to get it turned back on but it's very annoying.
I use file_get_contents in a number of different ways on my site.
In this particular instance i'm using file_get_contents to open a php file on my website, and indexing it's content for my search script.
I have always used file_get_contents with a URL rather than file reference becuase I always get errors when I try and reference the file directly.
| Code: |
| E.g.
I use file_get_contents("http://www.music-whiz.com/filename.php?arg1=something") Instead of file_get_contents("filename.php?arg1=something") |
It does make sense to my why referencing the file directly does not work when there is a query string after it, so does anybody know how I can get something that essentially does the same thing?
Everytime my server admin does any sort of update, allow_url_fopen gets turned off and some of my scripts die. It's easy enough to get it turned back on but it's very annoying.
