Jump to content
xisto Community
Sign in to follow this  
imran

Website Testing Help me to test my code

Recommended Posts

Hi,
I have just finished a template for my website. Its a simple and very basic template. At home page i gonna show the IP address and the country flag of visitor for which i have already written code. But i am not able to test it.
I would appreciate if you people tell me weather my code displaying right country name and flag.

Here is my testing page URL:

http://forums.xisto.com/no_longer_exists/

Please dont click on other links because other pages are not finished and giving error.

Thanks in Advance. :rolleyes:

Share this post


Link to post
Share on other sites

Your IP Address is 192.xx.xx.xx and your are visiting my website from ItalyI'm Definitly not live in Italy :rolleyes: They show my local IP, not external. Try this: <?php$external_IP = $_SERVER['REMOTE_ADDR']; ?>To get external IP, and if you can :lol: write what you use now. I never found how i can get local IP :D

Share this post


Link to post
Share on other sites

Your IP Address is 192.xx.xx.xx and your are visiting my website from Italy

 

I'm Definitly not live in Italy  :rolleyes:

 

They show my local IP, not external. Try this:

<?php

$external_IP = $_SERVER['REMOTE_ADDR'];

?>

To get external IP, and if you can :lol: write what you use now. I never found how i can get local IP  :D

156433[/snapback]


OOPS, you mean it is showing wrong country name? Is it showing corect external IP? I cant use PHP code as my website is in JSP my friend. ARe you behind any proxy?

Share this post


Link to post
Share on other sites

well me being experiance designer i will give you the pros and conspros- fast load-understandable designcons-ip address ( i ighly recommend getting rid of that its tacky and useless to tell people who their ip number is and aslo can be used against them as well since this is the internet-jsp its not a bad programming language to use but since your just doing a personal site about you php would go better with it, thats just me.

Share this post


Link to post
Share on other sites

well me being experiance designer i will give you the pros and conspros

How many websites have you designed?

-jsp its not a bad programming language to use but since your just doing a personal site about you php would go better with it, thats just me.

I would think a 'con' when reviewing a site would be something that detracts from the user's experience. I can't see how whether the site is coded in JSP or PHP or ASP makes one bit of difference to the end user.

Share this post


Link to post
Share on other sites

OOPS, you mean it is showing wrong country name? Is it showing corect external IP? I cant use PHP code as my website is in JSP my friend. ARe you behind any proxy?

156440[/snapback]


Yea i'm after proxy on local LAN network, and you scrip show my internal IP, i live in poland he say i'm italiano :rolleyes:

Share this post


Link to post
Share on other sites

OK it worked for me. As for the comment about jsp and php, it does actually matter because jsp is a more powerful language that is meant to be used for very hard and extremely difficult code to create a dynamic and secure website. PHP is more for the everyday user which is why it matters. If the site is just about someone, php should be used because the code will be cleaner and take up less lines decreasing the size of the site and the load time.

Share this post


Link to post
Share on other sites

If the site is just about someone, php should be used because the code will be cleaner and take up less lines decreasing the size of the site and the load time.

I hardly think a few seconds (probably more like microseconds) worth of time saved on load time is a good enough reason for the guy to ditch everything he's done and start again in PHP, particularly if he doesn't already know it.

Share this post


Link to post
Share on other sites

Yea i'm after proxy on local LAN network, and you scrip show my internal IP, i live in poland he say i'm italiano :unsure:

156467[/snapback]


Hi! I think its Proxy problem. Can you please check now? i have changed something. I hope now it should work. I also request everyone to check again because i need to be sure that this change doesnt effect anywhere else.

Thanks in advance!

Share this post


Link to post
Share on other sites

well me being experiance designer i will give you the pros and cons

pros

 

- fast load

-understandable design

 

cons

 

-ip address ( i ighly recommend getting rid of that its tacky and useless to tell people who their ip number is and aslo can be used against them as well since this is the internet

 

-jsp its not a bad programming language to use but since your just doing a personal site about you php would go better with it, thats just me.

156443[/snapback]


I think you are right, i should not display IP address of the user. Many people will scare by this. Thanks for your advise.

But still i would like to show the Flag and country name.

 

Regarding JSP and PHP, you are right JSP is very powerful and more suitable for big enterprise applications. But i dont know PHP and even dont want to learn because i know JSP and i am able to do everything in JSP which is possible in PHP.

Share this post


Link to post
Share on other sites

I like simple layouts. It's more effective if yuou know what I mean.,The USA flag showed up for me. This computer I'm using is in chinese but I am in england. so.. lol I don't know.

Share this post


Link to post
Share on other sites

Hi! I think its Proxy problem. Can you please check now? i have changed something. I hope now it should work. I also request everyone to check again because i need to be sure that this change doesnt effect anywhere else.Thanks in advance!



Checked, now is evrything OK :unsure:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.