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.
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 have simple page written in php which works like single page application, i just use include_once when user want to go to other subpage.Sub pages are pure html but they are saved with extension .php My hosting owner said they are moving to php 5.5, so i have checked on wamp with php 5.5 if page works and it does. But on hosting it cause internal server error, even simple page with php_info() cause it, php versin is set by .httaccess file
<Files *.php>
ForceType application/x-httpd-php55
</Files>
Is this something wrong with provider apache configuration? If so what it might be? I'm using standard php.ini generated file.
it turns out that /tmp folder was missing thanks for help
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
I’ve been using MAMP for many years and after I created a clean install of my Mac. So I installed MAMP again. But this time it will not work.
I installed the program and put my files in htdocs. Started the program and started the server and Apache and MySQL is green. MAMP start page opens and everything works. When I navigate to http://localhost:8888 then the root folder comes up and list existing files & folders.
When I then try to navigate to my test site redirected me to http://www.localhost:8888 and get the message that the page cannot be found.
What can I do about this?
MAMP start page works fine.
Apache & MySQL works fine (Green lights).
MAMP loads htdocs and listing it but can not navigate to further in to the folders in htdocs.
It sounds like your .htaccess file needs changing, as you've got a re-write code in there that will take whatever is in the URL field, and add www. infront of it.
This is usually used in live environments to redirect someone going to http://domain.com to http://www.domain.com
What does your .htaccess file look like?
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
Hello all, i have just uploaded my site to server and i am having some problems in connecting to database. previously i was working on local server and i used the following codes
<?php
$connection=mysql_connect('localhost','root','');
mysql_select_db('fetwork.com',$connection);
?>
but now i have uploaded my site to justhost.com and everything is changed like database name server,username etc.
can anyone tell me how to replace the previous code to the new code please .
i know my database name multiima_database but dont know the username and password do i have to put FTP username,password or host there ?
Export your SQL file from the localhost database
Visit your host's control panel and choose 'phpMyAdmin'
Import your SQL file there
Return to your host's control panel
Set the username and password again there under(database manager) (you can do them the same)
If you just beginning, please move to using either MySQLI or PDO, as mysql is already deprecated.