Dezina Blog

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

Archive for the 'PHP' Category

How to..Install curl when using wamp

Thursday, May 26th, 2011

Click the WAMP icon in task tray, then go to PHP > PHP Extensions > php_curl. Then restart apache.

How to..Determine Server Root Path for domain

Wednesday, May 4th, 2011

To find out the full (and correct) pathway to the root of your domain do this:
1. Create a new text document on your desktop and name it cwd.php. Ignore the warning about changing the file type.
2. Put this code into it:
< ?php
$p = getcwd();
echo $p;
?>
3. Upload it to the root of your domain via FTP.
4. […]

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

Powered by Wordpress Copyright 1997-2006..Dezina