Results 1 to 4 of 4

Thread: how to upload a php website ??

  1. #1
    Join Date
    Sep 2006
    Location
    Pakistan
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to upload a php website ??

    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 ?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The MySQL is a little trickier. The standard distribution of MySQL includes a tool called "mysqldump". If you run:
    Code:
    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •