ads here
       

Go Back   Rewards1 Forums > Community Support > Guides


 
 
Thread Tools Display Modes
Old 05-06-2009, 02:07 PM   #1
Cookies
Elite
 
Cookies's Avatar
 
Join Date: Sep 2008
Location: Haiti
Posts: 4,274
Cookies has a spectacular aura aboutCookies has a spectacular aura about
Send a message via AIM to Cookies
Default Howto: Make a little php site.

You would like to put the codes html basic codes


index.php
HTML Code:
<?
include "config.php";
?>


<html>
<title> Welcome to <?=$config["title"];?> ! </title>
<body>
<center>
Welcome to <?=$config["title"];?> !

its <?=$config["todaynews"];?> and heres is that happen !
A new forum has been added . No referral guides . Just guide . <3 .

No spamming ;3. 

<?=$config["footer];?>
</center>
</body>
</html>
data.php

Code:
<?
$config['site_name'] = "Your site name : data.php";
$config['title'] = "Your site name : data.php";
$config['footer'] = "&copy; | <a href='<?=$config["forums"];?>'>Check our our forums!</a>";
$config["forum"] = "Your site forums";




$config["todaynews"] = "<p>Do you like how we are today? - <?php
echo date("m/d/y"); 
?>
</p>";

</body>
</html>
?>
Cookies is offline  
Old 05-06-2009, 02:08 PM   #2
ReeceM107
Senior Member
 
ReeceM107's Avatar
 
Join Date: Jul 2008
Posts: 856
ReeceM107 is an unknown quantity at this point
Default

Nice One Cookies :)
__________________
ReeceM107 is offline  
Old 05-06-2009, 02:10 PM   #3
Blockis
Elite Block
 
Blockis's Avatar
 
Join Date: Mar 2009
Location: Rochester, NY
Posts: 4,481
Blockis has a spectacular aura aboutBlockis has a spectacular aura about
Default

I use a lot of code like that now-a-days. My Design site is PHP but I code sites randomly completely using PHP, it's fun.

Blockis
__________________
FileRev - Get Paid To Upload - Up To $0.75 PER Download!

Blockis is offline  
Old 05-06-2009, 02:15 PM   #4
Cookies
Elite
 
Cookies's Avatar
 
Join Date: Sep 2008
Location: Haiti
Posts: 4,274
Cookies has a spectacular aura aboutCookies has a spectacular aura about
Send a message via AIM to Cookies
Default

Lol, I know :] .
Cookies is offline  
Old 05-06-2009, 02:16 PM   #5
IamLegend
Banned
 
Join Date: May 2009
Posts: 509
IamLegend has a little shameless behaviour in the past
Default

include config.php? but code for data.php! i pwn u
IamLegend is offline  
Old 05-06-2009, 02:17 PM   #6
Blockis
Elite Block
 
Blockis's Avatar
 
Join Date: Mar 2009
Location: Rochester, NY
Posts: 4,481
Blockis has a spectacular aura aboutBlockis has a spectacular aura about
Default

Just a question. If I were to have a description (Included in <head>) would a search engine look that up, or would they see, <? incude ('config.php'); ?>. That stumps me.

Blockis
__________________
FileRev - Get Paid To Upload - Up To $0.75 PER Download!

Blockis is offline  
Old 05-06-2009, 02:39 PM   #7
Cookies
Elite
 
Cookies's Avatar
 
Join Date: Sep 2008
Location: Haiti
Posts: 4,274
Cookies has a spectacular aura aboutCookies has a spectacular aura about
Send a message via AIM to Cookies
Default

Blockis . You saying if you have like <?=$config["forums"];?> if your code , can they see it ?
They can't see the real codes, only html views.

Php is good because people cannot copy your codes.
Cookies is offline  
Old 05-06-2009, 02:43 PM   #8
IamLegend
Banned
 
Join Date: May 2009
Posts: 509
IamLegend has a little shameless behaviour in the past
Default

you code is brokes? no include data.php so it wouldnt work
IamLegend is offline  
Old 05-06-2009, 02:47 PM   #9
Blockis
Elite Block
 
Blockis's Avatar
 
Join Date: Mar 2009
Location: Rochester, NY
Posts: 4,481
Blockis has a spectacular aura aboutBlockis has a spectacular aura about
Default

Calm down, it's just an example.

Blockis
__________________
FileRev - Get Paid To Upload - Up To $0.75 PER Download!

Blockis is offline  
Old 05-07-2009, 08:17 AM   #10
IamLegend
Banned
 
Join Date: May 2009
Posts: 509
IamLegend has a little shameless behaviour in the past
Default

Its still broken so people who will try and use it it wont work :/
IamLegend is offline  
 

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

Forum Jump


All times are GMT -8. The time now is 04:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.