Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Newbie question: how to put a PHP site online?

Explorer ,
Jul 11, 2008 Jul 11, 2008
Hello,

I have built a number of sites in DW using ASP and Access. Now I'd like to make the transition to using MySQL and PHP (because of scalability and more affordable hosting solutions). I have checked out a bunch of tutorials (mostly from Lynda.com) and I think I am going to be OK setting up PHP, MySQL and Apache on my PC so as to set up a local Application Server.

The information I cannot find is 'how do I transfer the site to the webserver (shared hosting)? Of course I understand about FTP - but my question is about the database files. For ASP sites I had to transfer the .mdb file to the server, and create a connection to it (I usually used ODBC). How is the connection on the shared hosting server made?

Perhaps there is a tutorial about it (I thought there would be), but I can't find it. Can someone explain the process to me and/or point me in the right direction?

Thanks in advance!

Rogier
Rotterdam, The Netherlands
TOPICS
Server side applications
792
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 11, 2008 Jul 11, 2008
Hi Rogier,

I suspect that there are many ways to do this. Here's how I do it.

First, figure out what tools your ISP provides for creating and managing
MySQL databases. You'll need to use those to create the initial database and
add a user. My ISP provides a web application named cPanel, which contains
all of the necessary tools.

Then, on your local machine, you'll need to export/backup your database
(schema and data) to a script file. You can do this with mySQLAdministrator,
or phpMyAdmin, or possibly one of several database design tools such as
xCase, DDS-Lite, etc.

Once you have a script file generated, then you'll go to your web server
tools and import/restore the script. This will recreate the schema and data.

Once the database is online, you can connect to it from your workstation
using ODBC, or access it through your php web site as normal.

HTH,

Steve


"RogierBos" <webforumsuser@macromedia.com> wrote in message
news:g58a5q$m98$1@forums.macromedia.com...
> Hello,
>
> I have built a number of sites in DW using ASP and Access. Now I'd like to
> make the transition to using MySQL and PHP (because of scalability and
> more
> affordable hosting solutions). I have checked out a bunch of tutorials
> (mostly
> from Lynda.com) and I think I am going to be OK setting up PHP, MySQL and
> Apache on my PC so as to set up a local Application Server.
>
> The information I cannot find is 'how do I transfer the site to the
> webserver
> (shared hosting)? Of course I understand about FTP - but my question is
> about
> the database files. For ASP sites I had to transfer the .mdb file to the
> server, and create a connection to it (I usually used ODBC). How is the
> connection on the shared hosting server made?
>
> Perhaps there is a tutorial about it (I thought there would be), but I
> can't
> find it. Can someone explain the process to me and/or point me in the
> right
> direction?
>
> Thanks in advance!
>
> Rogier
> Rotterdam, The Netherlands
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 12, 2008 Jul 12, 2008
Hmmm... I think that all makes sense. Appreciate your help!


Regards,
Rogier
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2008 Jul 19, 2008
LATEST
Glad to help. I'm not sure that I answered your question about accessing the
database though. In your PHP code, you need to write the routines to access
the MySQL database. There are hundreds of tutorials available on the web
like this one:

http://www.databasejournal.com/features/mysql/article.php/1469211

Good luck, and let us know if you have any problems.

Steve

"RogierBos" <webforumsuser@macromedia.com> wrote in message
news:g5aigs$6l6$1@forums.macromedia.com...
> Hmmm... I think that all makes sense. Appreciate your help!
>
>
> Regards,
> Rogier


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines