-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not saving files on server? #8
Comments
by a) i mean how do I make my server let my php code save stuff? |
I'm still not entirely sure what you mean. But let's start here: You need to upload the php code to your webspace using an FTP client. I Using Filezilla, or other, upload the php to: Then if the uploaded file was countdown.php, you can see it run at Now, if you knew all that already, then I have missed the point, and you I'll wait for your response to this post. -- Ian. On 01/02/14 21:18, amunizp wrote:
|
Point b On 2 de febrero de 2014 11:28:04 GMT, woodscooter [email protected] wrote:
Enviado desde mi teléfono con K-9 Mail. |
I have just taken a look at Do you want the server to run the php from github? That's just not Am I getting any closer to answering the question? On 02/02/14 11:30, amunizp wrote:
|
It's probably not setup with the right resources to run the file. If you Next time I'm at little house & one or both of you are there I'll setup to Paul G Sent from my iPhone On 2 Feb 2014, at 11:45, woodscooter [email protected] wrote: I have just taken a look at Do you want the server to run the php from github? That's just not Am I getting any closer to answering the question? On 02/02/14 11:30, amunizp wrote:
Reply to this email directly or view it on |
Hi Paul, thanks for your help. I uploaded the PHP code to my virgin media FTP just as Ian said. But in the virgin media webspace I get Buses from Kingston MakerLabs Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /tier-11/pwpstore1/42/amunizp/htdocs/kml-tfl-countdown/countdown.php on line 49 Warning: file_get_contents(http://countdown.tfl.gov.uk/stopBoard/51750): failed to open stream: Resource temporarily unavailable in /tier-11/pwpstore1/42/amunizp/htdocs/kml-tfl-countdown/countdown.php on line 49 Fatal error: Call to undefined function: json_decode() in /tier-11/pwpstore1/42/amunizp/htdocs/kml-tfl-countdown/countdown.php on line 50 |
It seems to me as if virgin media does not allow to go fetch things from elsewhere? or maybe it has to do with the fact that virgin media webspace runs on php version 4.3? |
I think you are right -it's a virgin media issue, or rather two issues. They may have disabled php from accessing a URL with Also, the function json_decode() is not known. That function was On 02/02/14 16:36, amunizp wrote:
|
thanks Ian, spot on! thanks for your help! @woodscooter how did you figure this out? i thought I had look in phpinfo() did i miss it? |
It all starts from the php error message:
First error, well, it's a warning to be precise, is file_get_contents() Reading that manual page, under Notes it says "Tip. A URL can be used It helps that I have seen this restriction before now, so I knew what I Secondly, the php error message says "Fatal error: Call to undefined The first line under the title tells what version of php you need, and So you see, without the online php manual, I would know nothing! --Ian. On 03/02/14 07:05, amunizp wrote:
|
This is great stuff, thanks! On 3 de febrero de 2014 10:43:50 GMT, woodscooter [email protected] wrote:
Enviado desde mi teléfono con K-9 Mail. |
hi! i realized I have some server space with vigin media an tried to run this on it.
amunizp.webspace.virginmedia.com/
it does not work because the code saves files the server.
a) how do I change this
b) i was thinking to change the code to avoid having to save file? i propose doing a branch that does not merge.
The text was updated successfully, but these errors were encountered: