Jump to content

ip address


vetev

Recommended Posts

does anyone know the code to display a users ip address on my webpage.
It must be just the ip (numbers) very simple as i plan inserting code into photoshop anyways.

I would like as basic as possible that a .html page can read.
As when i save my work it will be .html

thanks, sorry for posting under php but you have good knowlage
Link to comment
https://forums.phpfreaks.com/topic/8655-ip-address/
Share on other sites

the server might not allow PHP on pages with the .html extension

if you change your page to a .php extension is should work fine. if you can't change it to .php & you MUST have it as .html, then use:

AddType application/x-httpd-php .html .php .htm

This will force the server to read .html pages as .php pages & your PHP code will work.
Link to comment
https://forums.phpfreaks.com/topic/8655-ip-address/#findComment-31783
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.