use the below script:


$image = "$url";

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


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:
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" "">

Registration Test Page enter name:

enter email:


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.";
echo "Sorry the name: $name and email: $email is already in database. please use defrent name & email.";


Data Ex: user||
Database file for Demo: [url][/url]

login.php file
[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

Login Page Test Script. enter name:

enter email:


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=""]Download Now[/URL]

after Install open WAMP Folder from Your Installed Directory and Open WWW folder and create a folder with any name. remember this is Your Project Folder Name now Open it and Paste your File in it.

Now open Your Web Browser and type [url]http://localhost/Your_Project_Name/File_Name.php[/url]

for example if Your Project Name is abc and your file name is abc.php then use:

if u Face any Problem Then Post your Query Here.
Thank You..