Dezina Blog

Information: Links: Tips : Tricks : Tutorials
XML Feed
Web Hosting
Web Hosting

Archive for the 'PHP' Category

How to …PHP Redirect

Thursday, May 10th, 2007

Use an index.php file that will redirect the user to whatever URL you want .
< ? php
header("Location: http://www.whereUwant2Go.com/");
exit;
?>

Add text to index.php only

Sunday, July 16th, 2006

The above PHP code works for the index page and doesn’t display on the other pages, perfect.

PHP Tutorials

Saturday, May 6th, 2006

Pixel-Pro..Click
Excellent, found via westernstudios.net

if($sentmessage == ‘5′){
echo “FLOOD PROTECT!!..You have already accessed our downloads module 5 times!”;
exit();
}else{
$num = $sentmessage + 1;
setcookie(”sentmessage”,”$num”,time()+600);
}
600 = 10 minutes, 5 is number of times page can be accesses by IP
Currently added as test to localhost/nuke79/downloads

Inserting PHP into html

Tuesday, January 10th, 2006

Include .php page in html
Code below:

<?php include(“raven.php”);?>

Powered by Wordpress Copyright 1997-2006..Dezina