Đã Đóng

PHP Coder Needed

Well, I had this all typed up and the stupid thing erased everything when I had to click 'OK' that there where invalid fields. (Even though the fields were needed for my example! Anyway, I need a few lines of code. I need something that will check a persons IP or TLD (do reverse lookup if needed) and display a message if it meets what I specify. I know this isn't the right way to do it, but maybe this will give you an idea:

Do reverse IP lookup if needed.

If ENV(ip) == ".ru or .tr or .tw"

echo "Visitors from your country need access before they can post at helloghost.com."

end if

Let me know if I was unclear in some way. Thanks.

Kỹ năng: PHP

Xem thêm: were, though, ru, php click, php display, php lookup, give idea, php reverse lookup, country php, reverse lookup php code, access needed, lines code, visitors needed, php country, click access, php message, php check, code display, access reverse code, php reverse, reverse php, needed something, reverse code lines php, reverse access, ru

Về Bên Thuê:
( 0 nhận xét ) Cincinnati, United States

Mã Dự Án: #41945

6 freelancer đang chào giá trung bình $33 cho công việc này

noopie

Wouldn't take long to fix, I guess. I'm out of projects now so... make your deal in PM :)

$30 USD trong 0 ngày
(25 Đánh Giá)
5.0
svitja

Thanks, I am ready to start

$30 USD trong 0 ngày
(1 Đánh Giá)
1.4
ObjectCoder

Nice code by arie1 but he forgot to do the dns lookup up required to get the tld. Please see pmb.

$30 USD trong 1 ngày
(1 Đánh Giá)
1.0
arie1st

hi sir.. try to use this code /************************************************** $ip= getenv("REMOTE_ADDR"); $env_ip = ENV($ip); $domain = print substr($env_ip, strlen($env_ip) - 3); if ($domain = ".tw") ||($dom Thêm

$50 USD trong 1 ngày
(0 Đánh Giá)
0.0
romziki

Is it a good job to start :) ?

$30 USD trong 1 ngày
(0 Đánh Giá)
1.2
impetusoft

We are professional CUSTOM SOFTWARE DEVELOPMENT COMPANY which successfully operates on the IT market for over THREE YEARS. We provide our clients with the FULL RANGE OF RELATED SERVICES starting from project specificat Thêm

$30 USD trong 2 ngày
(0 Đánh Giá)
0.0