28rain Posted February 15, 2009 Share Posted February 15, 2009 I have set up the database, i have the scripting to add data to the database, and php on the site pages to extract data from the database, so what do i do now!?! Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/ Share on other sites More sharing options...
trq Posted February 15, 2009 Share Posted February 15, 2009 Upload them (your scripts) to a host via ftp or scp. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762803 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 Do i need to rename the html page as .php sp they get parsed? Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762804 Share on other sites More sharing options...
.josh Posted February 15, 2009 Share Posted February 15, 2009 if you have php in your html page, then yes (unless you set your server to parse html pages as php...) Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762805 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 How do you set the server? Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762806 Share on other sites More sharing options...
trq Posted February 15, 2009 Share Posted February 15, 2009 How do you set the server? Â Sorry, thats a little vague. You need to find a host (server) that supports php. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762807 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 this server doesnt support it does it? http://www.123-reg.co.uk/web-hosting/ Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762808 Share on other sites More sharing options...
.josh Posted February 15, 2009 Share Posted February 15, 2009 It depends on your server. Apache? IIS? Using cpanel? there are 100 questions that would need to be answered. That's like asking where/how to change the oil in your car but not telling us what year/make/model/etc.. your car is.  Anyways, I don't think you really want to have your html files parse as php. Assuming your server even has php installed, it would be easier for you to just rename your file. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762809 Share on other sites More sharing options...
Mchl Posted February 15, 2009 Share Posted February 15, 2009 It's not mentioned anywhere, so it's safe to assume it doesn't. Same for MySQL Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762810 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 Im sorry im using apache. What should i do with apache? Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762811 Share on other sites More sharing options...
trq Posted February 15, 2009 Share Posted February 15, 2009 What should i do with apache? Â In order to do what? Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762812 Share on other sites More sharing options...
.josh Posted February 15, 2009 Share Posted February 15, 2009 Im sorry im using apache. What should i do with apache? Ask for a hit on the peace pipe? Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762813 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 If i want to put my database on the website? So it can be accessed by the pages Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762814 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 Lmao crayon ok im a noob! Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762815 Share on other sites More sharing options...
trq Posted February 15, 2009 Share Posted February 15, 2009 Tell me this. how exactly did you make a php script without knowing how the different components work together? Â You need to make a dump of your database then import that dump using either phpmyadmin or the mysql cli. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762816 Share on other sites More sharing options...
Mchl Posted February 15, 2009 Share Posted February 15, 2009 And find a host that supports both PHP and MySQL first. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762817 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 I have always been using localhost Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762818 Share on other sites More sharing options...
Mchl Posted February 15, 2009 Share Posted February 15, 2009 localhost == your computer If you want your site to be visible in the Internet, you have to 1. Upload it to remote hosting company or 2. Turn your computer into a web server... which I'm pretty sure you both don't want and are not ready to. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762820 Share on other sites More sharing options...
.josh Posted February 15, 2009 Share Posted February 15, 2009 If i want to put my database on the website? So it can be accessed by the pages  Okay here's the bottom line: You went and setup some database locally, which doesn't really help you out at all, as far as having a database on a server, except that I suppose you can export the structure and data and import it (hopefully, if it's compatible) into the server's database. You went and got some scripts that theoretically interact with this database, but judging from your questions, I wouldn't doubt if you just got some random script and you have no idea whether it can interact with database or not.  On top of that, you went and got a host that offers some webspace for like what, $5 a year? You are not going to be able to setup a database and run scripts on a server with a plan like that. Quick skim of that place and it looks like they basically let you upload some static files to make a static website. I think they might actually let you use some perl scripting if you upgrade. I didn't look that far into it.  Point is, at the very least, you're going to have to get a better hosting plan. And after that, you're going to need to make an effort to learn how everything works together, or else hire someone to do it for you. It's not some easy 1-2-3 easy process, unless you know the environment in the first place.  (edited to fix some grammar) Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762822 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 Actually Crayon i didnt get the web hosting, and havnt made the database, and even if i had i have made enough php for it to be a 5 minute process. Just there is verry little explanation for my query, seeing as im trying to learn from a very narrow source. Im going to get http://www.eukhost.com/cpanel-web-hosting.php copper it should be fine, and thanks for all your help I had no idea, now i have very little lol x Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762826 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 actually that site wont support php 6?! What is a good web-hosting site for this? Â Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762829 Share on other sites More sharing options...
Mchl Posted February 15, 2009 Share Posted February 15, 2009 If you're looking for some cheap hosting you might try https://www.nearlyfreespeech.net/ They charge you on disk space and transfer actually used, so it might be good for starting a small site. Â PHP6 is not recommended for production sites. It has not been released yet you know. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762831 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 Ahh man why's it never simple! Is it supported by any servers yet? If not whats reccomended? Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762833 Share on other sites More sharing options...
Mchl Posted February 15, 2009 Share Posted February 15, 2009 I doubt any hosting company supports it. It is still in early alpha testing phase. Most recent PHP version is 5.2.8. If the host supports anything below 5.2.0, it's a bit behind schedule. Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762840 Share on other sites More sharing options...
28rain Posted February 15, 2009 Author Share Posted February 15, 2009 Its hardly worth me going and learning php 5 is it? Whats the best option? Quote Link to comment https://forums.phpfreaks.com/topic/145306-how-to-you-put-the-php-on-your-site/#findComment-762841 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.