Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 9 years ago.
Improve this question
When i try to download a file from my website using chrome it downloads fine also when i use download manager on Firefox it also download fine however when i try to use the Firefox downloader it screw up the file name , e.g. file name " game god mode.zip" , When i download the file with Firefox it only show "game" and i have to rename the file to add ".zip" after downloading to get it to open ,Does this problem happen because i have a problem with my PHP code ? because it works fine except on Firefox .
Any file that you want to rely on the behaviour of shouldn't have spaces in the name. Change the name to game_god_mode.zip.
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
My default page of static site hosting on S3 is default.php.
After I upload it and all other pages, and try accessing it on end point, my page does not show, but a download dialog box appears.
So what do I need to do to make site viewable?
Please reply me.
I am new in AWS
.php suggests that the site is not static, but requires at least a php interpreter.
You need a hosting with php, or make site really static where all pages will be .html
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I purchased a host and domain from godaddy and I'm using Cpanel on godaddy for my website. On cpanel, I have added all of my html files with javascript and css on them, and separate javascript and css files as well. However, whenever I add php code, the php does not run. I tried testing simple code such as
<?php
echo "My first PHP script!";
?>
to check, however, "My first PHP script!" does not display on my webpage. Everything else on the webpage using html, javascript, and css works perfectly. Therefore, I am wondering if there is anything else I need to include on the page such any php source code, or is there anything I need to download first before running the code?
As I mentioned in the above comment, make sure that your php code is saved in a .php file and not in a .html file. Also, add your PHP code into the /public_html folder on your server. PHP comes by default with all GoDaddy packages. You don't need to include or install anything.
If it still does not work contact customer service. I found them very helpful whenever I had trouble with my hosting account.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
How can I direct to another HTML after the PHP process has been done?
Part of PHP process:
case "Radeon 3650":
header("/GPUs/HD3650/8305835/specs.html");
break;
I want to redirect the user after the process of case has been done to that html I have in double-quotes. The server I use is 000webhost and it doesn't work.
This PHP is located at public_html, GPUs folder is in that folder and so it goes.
Help? :(
Firstly, you forgot the word "Location:" and use a full http call as per what the manual suggests.
http://php.net/manual/en/function.header.php
Also taken from the comments you've given us:
I just tried right now with header('Location: /GPUs/HD3650/8305835/specs.html'); and nothing happens. It redirects me to error404.000webhost.com?
That folder/file doesn't exist or the server cannot find the actual folder/file name(s).
Make sure your folder/file are the same letter case. GPUs and GPUS or gpus are not the same.
Nor is HD3650 and hd3650 so check your folder names/files/extensions lettercase.
Those are two different animals altogether.
Windows and Linux handle naming conventions differently and you're on a Linux server which is case-sensitive.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
When I execute script on my local host for file_get_contents($url) it keep loading for few minutes then displays this error:
Server not found
Firefox can't find the server at www.localhost.com.
any help?
What is your script doing? Is your server (for example apache) started and in firefox you launched url
http://localhost/
? It seems firefox is looking another domain and not real localhost
Put this code in your php file (only this code):
<?php
$url = 'http://www.yelp.com';
$output = file_get_contents($url);
var_dump($output);
and check it if works fine. We don't know what file_get_html exactly does. Maybe it's causing problem
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So this is my path I have:
C:\wamp\bin\php\php5.4.3
And my php.exe file is in that folder...
I have tried to put:
C:\wamp\bin\php\php5.4.3;
C:\wamp\bin\php\php5.4.3\php.exe
C:\wamp\bin\php
C:\wamp\bin\php;
But none of is not working.
I have no idea why its not working...
Thanks
PHP is not included in your PATH.
Right click your My Computer, then Properties, Advanced System Settings, Environment Variables and then find PATH variable, add your PHP installation dir there. Close your previously launched CMDs, re-launch it, it should work now.