Friday, April 27, 2012

Uploading PHP files to External Server (Web Hosting)

Uploading PHP files to External Server (Web Hosting)

A web hosting service is a type of Internet hosting service that allows individuals and organizations to make their website accessible via the World Wide Web. Web hosts are companies that provide space on a server owned or leased for use by clients, as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for other servers located in their data center, called colocation, also known as Housing in Latin America or France.

files can be uploaded via File Transfer Protocol (FTP) or a Web interface.

So now , we need  Hosting server for Our web site ,( which support PHP,MySQL,Apache) (some free web hosting plans are available )

http://www.freewebhostingarea.com/ - create one account for you



enter domain Name you want (here we given myphpsite.orgfree.com)


then give your Username and Password,

the following message you will get after registering

Welcome to FreeWebHostingArea.com!
Dear user, your account myphpsite.orgfree.com was successfully activated on orgfree.com server.
Your address is http://myphpsite.orgfree.com and you can visit/update your site right now.
Add an index page (examples: index.html or index.php) and put your files directly on root. No public_html folder required.
Be sure that your account has minimum 1hit per month. Inactive accounts are deleted at the end of month.
then you will get username, password,FTP username, FTP password

 Account Manager:
Username: myphpsite.orgfree.com

Password: ********



Your Personal FTP Information:
 FTP Server/Host:       orgfree.com
 FTP Login/Username:       myphpsite.orgfree.com
 FTP PassWord:       ********
your account created successfuly

then login to your account


Username: myphpsite.orgfree.com

Password: ********


the you will redirected to Control panel of your account (your site )


By clicking on file manager you can upload files

the you have to enter the FTP Login details


FTP Server/Host:       orgfree.com
 FTP Login/Username:       myphpsite.orgfree.com
 FTP PassWord:       ********


Uploading the File (PHP file to server )

here we are uploading the PHP file to the root folder (hello.php , given below) to server

=====================================
<html>
<body>
<?php
echo "Hello World";
echo "</br>";
echo "My First PHP page in  -http://www.freewebhostingarea.com/";
?>
</body>
</html>
====================================
after uploding the file you can view the page in the following link



====================================================================

using FTP Client program to Upload the File to external server 

here we are using  FileZilla, for uploding via FTP access 


FileZilla is a fast, reliable, and secure FTP/SFTP client that allows you to transfer files between Web sites and PCs running Windows. 

Download FileZilla http://filezilla-project.org/
 (downlod fileZilla Client )

After installing , open FileZilla application



Login with our FTP login details

FTP Server/Host:       orgfree.com
 FTP Login/Username:       myphpsite.orgfree.com
 FTP PassWord:       ********



now you can get a remote and local site view , you can easily upload files to remote server


now you have a file on desktop date.php, open fileZIlla and right click on the file (date.php) and clik upload

as shown in the fig

then view the file in browser - http://myphpsite.orgfree.com/date.php





Reference ;-

No comments:

Post a Comment