Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-05-2009, 08:09 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2009
Posts: 13
Default How to host my php website


hii i have created a website in php .now i wqant to host it how will i do it .what all changes should be made to host it for example .mysql_connect("localhost","root","");
this is my connection string should i change it .also what about my database file i cant find it how will i host it .please help.
jishnu001 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 06-06-2009, 07:03 PM   #2 (permalink)
Apprentice
 
devgujar's Avatar
 
Join Date: Sep 2006
Location: Pune
Posts: 65
Thumbs up Re: How to host my php website

Dude i m not master in php but i can help you a liitle bit cos i have hosted my site on server
000webhost.com


you can contact me on
www.devgujar.site90.com

here is the code

<?php
mysql_select_db('<DATABSE NAME>',mysql_connect
('<SERVER NAME>','<user name>','<password>'));
$result=mysql_query('SELECT * FROM visitor');

while($row=mysql_fetch_object($result))
{ $i = $row->cnt; }
$i=$i+1;
mysql_query("update visitor set cnt=$i");
echo $i;
?>


I m using this code to update visitors counter on my website i.e. index.php page

NAME OF MY TABLE IS : visitor
THERE IS ONLY ONE FILELD IN MY TABLE THAT IS : cnt

you can check my web site for refrance : www.devgujar.site90.com
ofiicial mail id: devgujar@devgujar.site90.com, devgujar@gmail.com
__________________
I hate teachers ...off course Google is an exception......
Web-Page: www.invalidsector.com
E_Mail:devgujar [AT] gmail [DOT] com
devgujar is offline  
Old 08-06-2009, 12:05 AM   #3 (permalink)
Always confused
 
vamsi360's Avatar
 
Join Date: May 2008
Location: Mandriva Control Center
Posts: 349
Default Re: How to host my php website

you also need to change the username and password along with the host provider.
I am using 000webhost for hosting my blog at http://vamsisubhash.co.cc
__________________
Vamsi Subhash
visit my blog at www.vamsisubhash.co.cc and taste a bit of IT!
vamsi360 is offline  
Old 08-06-2009, 11:22 AM   #4 (permalink)
Human Spambot
 
Join Date: Jan 2007
Location: Lat 28.38°N , Longt 77.13°E
Posts: 2,431
Default Re: How to host my php website

Don't use co.cc domain names now. They are free for 1 year only. After that you have to pay for using them.
ThinkFree is offline  
Old 08-06-2009, 06:59 PM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Jun 2009
Posts: 1
Default Re: How to host my php website

http://0fees.net

Here php supported

Also fantastico installers
roharme is offline  
Old 10-06-2009, 08:13 AM   #6 (permalink)
Tech Freak
 
josephcs's Avatar
 
Join Date: Jan 2009
Location: 127.0.0.1 / localhost
Posts: 25
Default Re: How to host my php website

When you are transferring your PHP w/ MySQL Database to a host, you need to edit the following MySQL connection settings:

Database User Settings
Server : localhost (same)
Username : yourusername_dbusername
Password : type your DATABASE password here

Database
DB name : yourusername_dbname

I would suggest you to use cPanel based Hosting Provider. AFAIK 000webhost offers cPanel (but I guess it is limited to US Registrations) and X10Hosting and NovaHost also offers cPanel. Be sure to link your DB username with your Database!
__________________
AMD Athlon 64 X2 Dual Core 6000+ 3.0GHz - 320 GB SATA - LG & Lite-On DVD Burner - iBall Designer Series Cabinet - Creative SBS A300 - Samsung 19" WideScreen
Techie | Freelancer | Student
josephcs is offline  
Old 10-06-2009, 03:56 PM   #7 (permalink)
Obsessed with Technology
 
Join Date: Dec 2007
Location: Harihar
Posts: 346
Default Re: How to host my php website

zymic.com too is a good one. I am using it to host my website devrathnd.co.nr
__________________
AMD Athlon 64 X2 Dual Core Processor 4200+ 2.19 GHz, 2.5 GB Ram, 120 GB Hard Disk, XFX 8600GT

Visit my blog devrathnd.blogspot.com
Devrath_ND is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by gforz
- by soumya

Advertisement




All times are GMT +5.5. The time now is 03:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2