June 14, 2013
The difference between cookies and sessions is that cookies are stored in the user’s browser, and sessions are not. This difference determines what each is best used for.A cookie can keep information in the user’s browser until deleted. If a person has a login and password, this can be set as a cookie in their […]
June 14, 2013
I jst got this trick lst nytNOW LETS STARTin your logout link put it lyk dz
|
<?php <br /> echo"<a href='logout.php?url=".$_SERVER[PHP_SELF]." '>Logout</a>"; <br /> ?> <br /> |
NOW IN UR logout.php
|
<?php <br /> //assigning $_GET to variable <br /> $url = $_GET[url]; <br /> //checkin if $_GET comes wit a link <br /> if(isset($url)) <br /> { <br /> session_destroy(); <br /> //afta destroyin d session, it redirects back to d link coming with $_GET <br /> header('location: '.$url.''); <br /> die(); <br /> } <br /> //if $_GET does not cum wit a link <br /> if(!$url) <br /> { <br /> session_destroy(); <br /> header('location: index.php'); <br /> die(); <br /> } <br /> ?> <br /> |
June 12, 2013
Hi all, Download files directly to your directory without stress or consumption of Bandwidth, just copy the source code and save then, then run!
|
<?php <br /> if(isset($_POST['link'])) <br /> { <br /> if(!$_POST['link']) <br /> { <br /> die('Empty Link'); <br /> } <br /> elseif(!$_POST['dir']) <br /> { <br /> die('Empty Dir'); <br /> } <br /> else <br /> { <br /> copy($_POST['link'],$_POST['dir'])or die( "Error during upload, Try again later"); <br /> } <br /> } <br /> ?> <br /> <form action="" method="post"> <br /> Source Link<small>(eg. http://yourlink.com/file.exe)</small><br/><input type="text" name="link" placeholder="Source"/><br/> <br /> Destination Folder in your directory with filename<small>(EG /downloaded/file.exe)</small><br/><input type="text" name="dir" placeholder="Destination Folder"/><br/> <br /> <input type="submit" value="Submit"/></form> <br /> <center><b>Powered by DON JAJO (<a href="http://2netlodge.com">2NETLODGE</a>)</b></center> <br /> |
June 12, 2013
Hi all, Setting capital letters automatically without stressing yourself writing it is one of the sweets things I love with PHPWe have four functions here which I listed below: strtoupper() – Make a string all uppercase, as in “HOW ARE YOU”strtolower() – The reverse of strtoupper, removes all capitals.ucwords() – Capitalizes the first letter of […]