IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> PHP
Selmir
post Jan 16 2008, 10:48 AM
Post #1


Junior Member


Group: Members
Posts: 2
Joined: 15-January 08
Member No.: 12196



i was just wondering if anyone can instruct me on how to make a php site or upload one and where..and how to get it to work..i also might need somework customizing it lol im pretty sure ill be fine on that part thow never did php.. and a forum where can i get one of those?..lol i should hire someone to do my site but meh i wanna learn..
Go to the top of the page
 
+Quote Post
MarkM
post Jan 16 2008, 02:19 PM
Post #2


Super Moderator


Group: Members
Posts: 420
Joined: 19-December 05
From: Los Angeles, CA
Member No.: 1944



PHP is an extremely powerful thing to know.

This will get you started:
Create three files: index.php, header.php and footer.php

CODE
In index.php put:
<html>
<head>
<title>My Page!</title>
</head>
<body>
<? include 'header.php'; ?>
<? include 'footer.php'; ?>
</body>
</html>


CODE
In header.php put:
<a href="http://google.com">GOOGLE!</a>&nbsp;&nbsp;
<a href="http://hostony.com">HOSTONY!</a>&nbsp;&nbsp;
<a href="http://shoutdrive.com">ShoutDRIVE Radio!</a>


CODE
In footer.php put:
This is my footer. Hello!


You will see that the code in the index.php file, <? include 'whatever.php'; ?> will include all of the contents from the files specified. You can put your content in between the two includes in the index.php file, duplicate the file into different ones like contact.php, etc.

Cheers, bud! Welcome to the world of PHP:
PHP.net Manual
PHP Beginners Guide


--------------------
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| Mark Mutti [Super Moderator]
| I'm not a HOSTONY Staff Member, but if you need a post moderated or spam
| deleted please let me know.

-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Go to the top of the page
 
+Quote Post
MarkM
post May 3 2008, 03:28 PM
Post #3


Super Moderator


Group: Members
Posts: 420
Joined: 19-December 05
From: Los Angeles, CA
Member No.: 1944



Boy, that turned out to be a waste of time. tongue.gif


--------------------
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| Mark Mutti [Super Moderator]
| I'm not a HOSTONY Staff Member, but if you need a post moderated or spam
| deleted please let me know.

-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 22nd June 2017 - 11:50 PM