use the below script:

[CODE]<?PHP

$image = "http://images.websnapr.com/?size=s&url=$url";

echo "<img src=\"$image\" width=\"202\" height=\"152\" alt=\"Screen Shot.\">";

?>[/CODE]

The above will capture 202*152 size image.

[QUOTE=OmniX;1104614]hemgoyal_1990 can you explain your code in more detail?
example what the -d and -f do?
also in the url what is shown? just /file or /file.php? possibly to remove it completly or just the .php?
if so thats how to remove the file totally and access the get variables as well, like previously stated?
Trying to learn mod_rewrite it a big big topic.[/QUOTE]

[CODE]RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php[/CODE]

in the above code the [B]-d[/B] define for [B]D[/B]irectory and [B]-f[/B] for Regular [B]F[/B]ile.
and the above will remove .php extension from your URL.
for ex: if ur page name is test.php in main directory then you may access your page with the following urls:
[B][url]http://domain/test[/url][/B]
or
[B][url]http://domain/test.php[/url][/B]
the above is work in both condition.

OmniX commented: Very Helpful, Thankyou. +3

Hay nats01282,

I Have created a Registration page and Login page for You. That is Insert Data in data.txt file and also login with this data.txt file. the below script also check the data that is already inserted or not in data.txt file. use the below script:

reg.php file
[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Registration Test Page</title>
</head>

<body>

<form method="post" action="reg.php" >
enter name:
<input type="text" name="name" />
<br/>
<br/>
enter email:
<input type="text" name="email" />
<br/>
<br/>
<input type="submit" value="Register" name="submit" />
</form>

</body>
</html>

<?PHP

if (isset($_POST['submit']))
{

$name = $_POST['name'];
$email = $_POST['email'];

$file = file_get_contents("data.txt");
$string = "$name||$email";
if(!strstr($file, "$string"))
{
$myFile = "data.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "$name||$email\n";
fwrite($fh, $stringData);
echo "your Registration Information Successfully Inserted.";
fclose($fh);
}
else
{
echo "Sorry the name: $name and email: $email is already in database. please use defrent name & email.";
}
}

?>[/CODE]

Data Ex: user||user@user.com
user1||user1@user1.com
Database file for Demo: [url]http://www.kuchamancity.com/test/data.txt[/url]

login.php file
[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login Page Test Script.</title>
</head>

<body>
<form method="post" action="login.php" >
enter name:
<input type="text" name="name" />
<br/>
<br/>
enter email:
<input type="text" name="email" />
<br/>
<br/>
<input type="submit" value="login" name="submit"/>
</form>
</body>
</html>
<?PHP

if (isset($_POST['submit']))
{

$name = $_POST['name'];
$email = $_POST['email'];

$file = file_get_contents("data.txt");
if(!strstr($file, "$name||$email"))
{
echo "Sorry! You Insert an Invalid Name & Email. Please ...

nats01282 commented: Excelent work on login script without mySQL database. solved my question thanks you +1

Why not You Chose the Login System in Your Site Admin Panel because this Make Your Admin Panel More Secure and Only You are Access Your admincp.php page not anyone.

Carrots commented: Thanks man +1

Thanx Atil for Helping me Out.

I am Very Thankful for You. You Solve my Very big Problem.

I m working on a MLM project in which i have to store member automatically in binary tree form like

1 is root
2 is child of 1
3 is child of 1

Then 4 is child of 2
5 is child of 2

6 is child of 3
7 is child of 3

then 8 is child of 4

and so on ......

I Want to Create a Downline in above Structure. Please Help me.

can any body help me

if You don't Have any Web Host then You may RUN Your php file offline by Creating WAMP Server on Your PC:
Simply Download WAMP Server from Below URL and Install it.
[URL="