Register if You want to join the community.
toolbar powered by Conduit
Programming Guides!
March 29, 2024, 05:13:36 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Programming Guides!
 
  Home   Forum    Forum   Help Search Arcade Site BIO Gallery Scripts Filefront Staff List Login Register  

Tutorial 1 - Getting you XAMPP setup.

Pages: [1]
  Print  
Author Topic: Tutorial 1 - Getting you XAMPP setup.  (Read 563 times)
Hondaman
Administrator
Full Member
*

Karma: +200/-0
Offline Offline

Posts: 98



View Profile WWW
« on: December 29, 2009, 09:59:02 am »

This is the first in the series of PHP tutorials.

In this tutorial i will be telling you how to download XAMPP and run your first PHP script.

Firstly you will need XAMPP so go to google and search "XAMPP".
The first option you get should be "Apache Friends - XAMPP"
Click on that and then click your opertating System.
please note for windows - You will want to click on the exe download for XAMPP unless you want to install it manually (not recommended) so click on the exe.
When you are installing it you will need to say yes to all of the options until you reach a part of the installation that promts you to choose between roughly seven options, below these options you will see a function saying - "x - Exit"
type "x" and tap enter, and XAMPP is now installed.

Secondly you will need to open the control panel which should be on your desktop if you installed properly.
open this and select the start button for apache.
This should then start apache, if it doesnt you may find that the problem is that XAMPP apache runs on port 80 in your computer and this will cause a problem if you have a system idle process overrunning in that port, (overrunning as in using CPU)
If this starts open your XAMPP folder that should be in drive C and find the htdocs folder and in that folder create another file called "test.php"
In this folder type the following code.
Code:
<?php
          
echo "test"
?>


Then open your internet and in the address bar type "http://localhost/test.php"
This should then display "test" on your screen.

Thanks for viewing this tutorial.
PHP tut 1
Your Admin; Hondaman.

Edit:
Forgot to add, when you are done with the "test.php"
find your XAMPP folder and paste the file onto the folder "htdocs"
Then open the internet and type in the address bar "http://localhost/test.php"
« Last Edit: January 08, 2010, 04:55:00 am by Hondaman » Report Spam   Logged



Share on Facebook Share on Twitter

xboi209
Guest
« Reply #1 on: January 04, 2010, 05:01:43 pm »

got a question, whaat you replace localhost with?
Report Spam   Logged
Hondaman
Administrator
Full Member
*

Karma: +200/-0
Offline Offline

Posts: 98



View Profile WWW
« Reply #2 on: January 07, 2010, 07:00:54 pm »

It has to be localhost or it wont work
The only bit you can edit is the filename
Sorry if I didnt mension that
I edited the post and added what i forgot so it will work now.
« Last Edit: January 08, 2010, 04:56:50 am by Hondaman » Report Spam   Logged



xboi209
Guest
« Reply #3 on: January 16, 2010, 02:32:02 pm »

so how are you suppose to display it so everyone can see
Report Spam   Logged
Hondaman
Administrator
Full Member
*

Karma: +200/-0
Offline Offline

Posts: 98



View Profile WWW
« Reply #4 on: January 18, 2010, 11:43:23 am »

You will need to look for hosting somewhere,
I could recommend a few sites but its probebly better if you look for yourself.
If you want top notch hosting you would need to pay for it, But if you you are still learning you dont need to be thinking about hosting yet,
If you want though i will post a paragraph in the Random-/-Tutorials board on what to look for before buying a host.
Report Spam   Logged



AshleyBarns
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
« Reply #5 on: December 13, 2012, 12:50:11 pm »

 Smiley
Report Spam   Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy