Computing.Net > Forums > Web Development > Inexperienced Webmaster

Inexperienced Webmaster

Reply to Message Icon

Original Message
Name: Greensystemsgo
Date: March 11, 2005 at 15:23:41 Pacific
Subject: Inexperienced Webmaster
OS: XP
CPU/Ram: 3....
Comment:

3 Questions.
1. Is their a site out there to get free flash and Shockwave games and movies to put on a website? I want these things to be played online w/out the need to download from my site
2. On some sites it tells you your Ip address and to not hack cause they know who u are, whats the code for that?
3. If you go to my site, http://lqdrapture.homelinux.net/greensystemsgo/Index.html
is their a way to get the picture heading more flush with the top of the page? I have already tried margins

THX in advance!

If your webpage does not need updating, then there is something wrong.


Report Offensive Message For Removal


Response Number 1
Name: Dr. Nick
Date: March 11, 2005 at 22:59:53 Pacific
Subject: Inexperienced Webmaster
Reply: (edit)

1) Stealing content and bandwidth by hotlinking is considered very bad taste by just about everyone.

2) Decide what language you want to use. In PHP, just do: echo $_SERVER['REMOTE_ADDR'];

3) Not quite sure what you mean. There's several things that don't seem to line up right on that page.


Report Offensive Follow Up For Removal

Response Number 2
Name: fambi
Date: March 12, 2005 at 14:00:27 Pacific
Subject: Inexperienced Webmaster
Reply: (edit)

Point 2:

<?php
if(isset($HTTP_X_FORWARDED_FOR))
{
$user_ip = $HTTP_X_FORWARDED_FOR;//if proxy was used, find out the real IP
}
else
{
$user_ip = $REMOTE_ADDR;//otherwise this is user ip
}
?>

If you're interested in SMS, visit section about sms news.


Report Offensive Follow Up For Removal

Response Number 3
Name: Dr. Nick
Date: March 12, 2005 at 15:57:27 Pacific
Subject: Inexperienced Webmaster
Reply: (edit)

Just a note regarding fambi's post: you need to have the "register_globals" option in your PHP.ini file set to "On" for it to work. If you have it Off (the recommended setting for production servers) you need to use $_SERVER['REMOTE_ADDR'] and $_SERVER['HTTP_X_FORWARDED_FOR'] instead.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Inexperienced Webmaster

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge