Reply to Re: getting the IP address

Your name:

Reply:


Posted by Floortje on 01/18/07 20:22

J.O. Aho schreef:
> sachinmehta@gmail.com wrote:
>
>> im sorry, i don't have knowledge of PHP, so could you explain how PHP
>> is used along with HTML to get this information?
>
> PHP is a server side script language, which means all the code is
> executed on the server and the result is usually a HTML page that the
> visitor see.
>
> You can use PHP to generate graphics, pdf files and many other file
> formats.
>
> PHP is one of the most used server side script language and have
> advantage over visual basic (ASP), as it runs almost on any platform,
> while visual basic work only on microsoft based servers (there are hacks
> to make a limited asp work on other platforms too).
>
> For more information about PHP, you can visit the main site, www.php.net


I have a minute to kill.

<a href ="redir.php?url=http://example.com">example.com</a>

redir.php
<?php
if (isset($_GET['url']))
{
$f = fopen('/path/to/file/file.txt', 'a');
fwrite($f, $url.'->'.$_SERVER['REMOTE_ADDR']."\n");
fclose($f);
header("Location: $url");
}
else
{
echo "No url specified";
}
?>

--
Arjen
http://www.hondenpage.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация