කොහමද මේක host කරන්නේ

කොහමද මේක host කරන්නේ

මචන්ලා මගේ යාලුවෙක්ගෙ වැඩකට මම පොඩි php files ටිකක් හැදුවා
මට දැන් මේක මුට පෙන්නන්න ඕනේ
මිනිහට ඔය web server install කරගන්න වැඩ එච්චරම තේරෙන්නේ නැහැ
මමත් web hosting ගැන වැඩිය දන්නේ නැහැ
මොකක්හරි ක්‍රමයක් නැද්ද මගේ php, js ටික temporary host කරලා server එකකට මුට interfaces ටික පෙන්නන්න
අර hackerT ගේ google drive scene එක මම try කළා . එත් එකේදී වෙන්නේ php file එක download වෙන එක නේ
මට මේක පොඩ්ඩක් කියලා දියන්කෝ
 

mr90486

Well-known member
  • Sep 2, 2008
    1,705
    1,476
    113
    Everywhere
    go to http://www.000webhost.com. click signup. to sign up you need to provide name, email, password and captcha. and also you need to provide a domain name. for testing purpose choose free subdomain option. enter something like "myphptest" so your domain will look like www.myphptest.host22.com. thats it click register. you will get a confirmation email you must click the link on it to activate. after you click the activation link you will receive another email. there is a link to log into your members area. click on it and you will see your control panel. scroll down and you will see lot of icons. find the icon named 'file manager'. a new tab will open and display current directory structure on your hosting server. there is a directory named 'public_html' you must upload all your stuff into that directory. for the testing purpose keep all your html files, php files, images and javascript files in a same directory. if you are using separate directories for images, javascripts then you need to create each of those directories within server's 'public_html' directory. lets say you have a index.php image1.jpg and script.js file all in one directory. then just open 'public_html' click on the 'upload' button. you will see screen where you can select each of your files. select all your files one by one using [add another] button and after selecting all click on the green correct mark. all files will be uploaded. if you have different files in different directories then you must create each directory first and then open that directory by clicking on it, and then you need to upload the specific into that directory. now after uploading there is a file called 'default.php' in the 'public_html' root. delete that file. and rename your default file to 'default.php' if its php. or default.html if its html. then visit your domain you created when you were registering. you will see the site. little longer but hope this helps.
     
    ela
    go to http://www.000webhost.com. click signup. to sign up you need to provide name, email, password and captcha. and also you need to provide a domain name. for testing purpose choose free subdomain option. enter something like "myphptest" so your domain will look like www.myphptest.host22.com. thats it click register. you will get a confirmation email you must click the link on it to activate. after you click the activation link you will receive another email. there is a link to log into your members area. click on it and you will see your control panel. scroll down and you will see lot of icons. find the icon named 'file manager'. a new tab will open and display current directory structure on your hosting server. there is a directory named 'public_html' you must upload all your stuff into that directory. for the testing purpose keep all your html files, php files, images and javascript files in a same directory. if you are using separate directories for images, javascripts then you need to create each of those directories within server's 'public_html' directory. lets say you have a index.php image1.jpg and script.js file all in one directory. then just open 'public_html' click on the 'upload' button. you will see screen where you can select each of your files. select all your files one by one using [add another] button and after selecting all click on the green correct mark. all files will be uploaded. if you have different files in different directories then you must create each directory first and then open that directory by clicking on it, and then you need to upload the specific into that directory. now after uploading there is a file called 'default.php' in the 'public_html' root. delete that file. and rename your default file to 'default.php' if its php. or default.html if its html. then visit your domain you created when you were registering. you will see the site. little longer but hope this helps.
    Thanks machan. But where are we going to upload our database file
     

    mr90486

    Well-known member
  • Sep 2, 2008
    1,705
    1,476
    113
    Everywhere
    විල්සන් මාමා;16698299 said:
    ela

    Thanks machan. But where are we going to upload our database file

    You are welcome machan :) In your control panel, just below the 'file manager' icon there is an icon named 'mysql' click it. now you need to create a new database and a user. there are four fields to fill out. db name, mysql username, password twice. enter whatever you like. after filling out click [create database] and database will be created and it will show some php variables for connecting to the database. write them down or save in the notepad.

    now go back to control panel. click on the phpmyadmin icon which is right next to 'mysql' icon. now you will see the database you just created. click on EnterphpMyAdmin link.it will open a new window and now you can create tables in it. or you can import your local database into the server by using import tab. make sure you change the db connection details in the connection script on the server.

    Please ask if any thing goes wrong. Hope this helps.
     
    You are welcome machan :) In your control panel, just below the 'file manager' icon there is an icon named 'mysql' click it. now you need to create a new database and a user. there are four fields to fill out. db name, mysql username, password twice. enter whatever you like. after filling out click [create database] and database will be created and it will show some php variables for connecting to the database. write them down or save in the notepad.

    now go back to control panel. click on the phpmyadmin icon which is right next to 'mysql' icon. now you will see the database you just created. click on EnterphpMyAdmin link.it will open a new window and now you can create tables in it. or you can import your local database into the server by using import tab. make sure you change the db connection details in the connection script on the server.

    Please ask if any thing goes wrong. Hope this helps.

    11.gif
    REP ADDED