Question:
File Get Contents Problem in PHP?
Matthew Retchin
2011-04-21 16:08:26 UTC
I'm new to php, and I uploaded this php file to my site. It didn't run as planned, and I got the following error:

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /www/zxq.net/o/n/e/onesec/htdocs/onesec.php on line 10

Warning: file_get_contents(http://www.google.com/search?hl=en&source=hp&biw=1542&bih=928&q=oy vey dawg+&aq=f&aqi=g10&aql=&oq=&qscrl=1) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /www/zxq.net/o/n/e/onesec/htdocs/onesec.php on line 10
Error loading http://www.google.com/search?hl=en&source=hp&biw=1542&bih=928&q=oy vey &aq=f&aqi=g10&aql=&oq=&qscrl=1

I'm making a search engine, and you can imagine that if the php cannot run, then it's sunk. Anyway, what did I do wrong? And how can I fix it?
Three answers:
sholar
2017-02-22 15:59:02 UTC
you will greater suitable clever format heavily your database and shop all separate fields in distinctive columns, consisting of cost. Then between diverse coaching you will retrieve out of your database additionally the cost techniques. this way it will be lots much less complicated to get and replace the coaching (phpmyadmin and diverse techniques are available in in for viewing and manipulating mysql). subject-loose queries (replace) will then make it greater handy to utterly replace the expenses from a form. you will greater suitable clever shop techniques ingredient removed from own homestead page because of the fact it will be puzzling to alter.
Niels Post
2011-04-22 12:12:04 UTC
You didn't do anything wrong, the problem is that your webserver tdoesnt support this. Probably because of security reasons although i don't understand why. You just have to search for another webhost
question asker
2011-04-21 17:09:05 UTC
Have you tried google?



http://lmgtfy.com/?q=Warning%3A+file_get_contents()+%5Bfunction.file-get-contents%5D%3A+URL+file-access+is+disabled+in+the+server+configuration+


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...