note 59711 added to function.urlencode
| From: | jdavilah at gmail dot com | Date: | Wed, 14 Dec 2005 05:27:32 +0000 |
| Subject: | note 59711 added to function.urlencode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100106@lists.php.net to get a copy of this message | ||
In English
Here i post a little app, resolve a host name url to an ip and makes a link for a html page.
------------*********---------------
In spanish...
Es una pequeña aplicacion para convertir una direccion www a una direccion ip, y da el resultado en
una pagina web con la liga pero sobre la ip del resultado.
Me sirvio para resolver una direccion por dns gratuito para unas camaras de video que por medio de
la direccion no podian entrar solamente por direccion ip.
-------------------****-------------------
<?php
$ip = gethostbyname('www.domain-name.com');
$url = $ip;
echo '<a href=http://',$url,'>',
" Clic ", '</a>';
?>
----
Manual Page -- http://www.php.net/manual/en/function.urlencode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59711
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59711&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59711&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59711&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59711&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59711&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59711&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59711&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59711&report=yes
Search -- http://master.php.net/manage/user-notes.php