Log in

View Full Version : how to upload a php website ??



Jamal
11-18-2006, 10:41 AM
hi all ,

i have developed a website in php, using mySQL as database. Now i want to upload it to my web site.


what steps should i take ?

What will be the changes in my connecting string etc ?

djr33
11-18-2006, 11:44 AM
uh... just upload it to your ftp.

changes shouldn't be needed.

Relative links are good. If you have any absolute links like "file:///C:/..." then those won't function and you must change them to be linking to the url of your website.

In the same sense, the address for your mysql must match the new server.... if it's just localhost still, that's fine. But if you are using a specific url for it and the server is now going to be different, set it to the new url. Note that if the server is new, you must setup a database on it that will fit your scripts, like having all of the tables you need, etc.

Is there a certain part of the process that is confusing you?

I suggest just doing it and looking to see what won't work... that'll narrow it down a lot. And might just all be fine. That would be nice, right?

Twey
11-18-2006, 12:41 PM
The MySQL is a little trickier. The standard distribution of MySQL includes a tool called "mysqldump". If you run:
mysqldump [-u username] <database>... it will dump a lot of SQL which, if executed against a database, will exactly reproduce the layout and contents of your current one. Add in the -p switch to cause it to prompt for a password.

djr33
11-18-2006, 01:16 PM
Correct. I'm still not sure.... are you planning to upload the database as well or are you currently using the same server you willl be from the website for the mysql?