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
Share on other sites

the server may not allow php to be shown on pages with the .html extension. Is this site on an Apache server?

if so, you can add this to a .htaccess file to get your html pages to be read as php

AddType application/x-httpd-php .html .php .htm
Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.