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.
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
I'm using apache24 with PHP 7.0.3. When requesting http://localhost/phpmyadmin/ I get this error:
The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.
My PHP config has nothing about slqi to uncomment.
I've looked at the thousand other solutions, and most are for linux and I don't know how to do it for windows.
Please make sure the extension=mysqli.dll isn't commented out into php.ini.
Also make sure that you have the mysqli.dll files exist inside the extensions folder of your php installation.
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 7 years ago.
Improve this question
i have just created a user for Algolia. But when i try to connect trough the API, i receive an error message with "Cannot resolve host" and it try's all the different Algolia hosts. i have used the guide on their site and tried to connect both trough vanilla PHP and trough Laravel.
I saw another guy with this problem(Algolia Rails), he said to wait a couple of hours, and i have waited 5+ hours at this time.. still no solution like he got.
What could it be, and should i just keep waiting? Or is there a problem on Algolia's end?
There is normally no delay to begin using your new account.
However Algolia has had an issue concerning the DNS records creation for new accounts... hence the unusual long delay!
The issue is now resolved :)
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 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
I just exported a MySQL database from one server and imported it into another server. However, my application (WordPress) can read some information from the database but not others. For example, WordPress can still access the posts but the permalinks are messed up. Right now, my blog has a ton of issues because of this. I remember encountering this problem before in the past, but I forgot how I solved it. The old server version was 5.5.16-log, the new server is 5.5.28-0ubuntu0.12.04.2.
How can I fix this using phpMyAdmin?
http://interconnectit.com/124/search-and-replace-for-wordpress-databases/ the paths for the posts are absolute paths and stored as serialized data in the database. Please read this link to learn how to safely migrate a Wordpress installation.