Search found 7 matches

by valajio
Sun Oct 07, 2007 4:54 pm
Forum: PHP - Code
Topic: Take on PAYING client tomorrow, I must get this working!
Replies: 10
Views: 667

nevermind code above does not work???

so thought the CODE ABOVE would work but no, i think mysql dbase is having issues

only works if there is one row with the clients one ip address and client key

not multiple ip addresses and client key??? gettin smurfed.
by valajio
Sun Oct 07, 2007 4:52 pm
Forum: PHP - Code
Topic: Take on PAYING client tomorrow, I must get this working!
Replies: 10
Views: 667

i think i finally figured out not sure if stable or 100% acc

i think i finally figured out not sure if stable or 100% accurate, but when i change the ip address in the database and make it differ from the domain ip the request came from, it fails which is what its supposed to do!!!! yay! and when i change it back to the exact domain ip address it displays the...
by valajio
Sun Oct 07, 2007 4:24 pm
Forum: PHP - Code
Topic: Take on PAYING client tomorrow, I must get this working!
Replies: 10
Views: 667

get ip address of domain from incoming request

is there a more accurate way to grab the ip address as a variable of the domain that the image request came from than the code i am using above??? $requestedurl = parse_url($_SERVER['HTTP_REFERER']); $site = $requestedurl['host']; $site = str_replace( 'www.', '', $site); $USER_IP = "{$_SERVER['...
by valajio
Sun Oct 07, 2007 4:21 pm
Forum: PHP - Code
Topic: Take on PAYING client tomorrow, I must get this working!
Replies: 10
Views: 667

the domain ip address is what i want the variable $USER_IP

the domain (hostname) ip address is what i want the variable $USER_IP to be, people are going to try to use client accounts to request images from thier website to try to work around using our free service after they have reached thier limit (hits), i want to block other websites from using client a...
by valajio
Sun Oct 07, 2007 2:38 pm
Forum: PHP - Code
Topic: Take on PAYING client tomorrow, I must get this working!
Replies: 10
Views: 667

ok wierd stuff going on here

i've got it to work using mysql database added list of acceptable ip addresses to client table in dbase... but instead of validating the ip address of the domain the request came from it is validating it and showing the image based on my websites ip address??? Do not understand how this is possible ...
by valajio
Sun Oct 07, 2007 1:52 pm
Forum: PHP - Code
Topic: Take on PAYING client tomorrow, I must get this working!
Replies: 10
Views: 667

doesn't work

i tried the code above and that doesn't seem to work either... its almost like the variable $ip is getting lost in the if statement, loses value??? I've tried adding the acceptable ip addresses from the client to a field in the database and check the incoming ip address against those and that isn't ...
by valajio
Sun Oct 07, 2007 12:28 pm
Forum: PHP - Code
Topic: Take on PAYING client tomorrow, I must get this working!
Replies: 10
Views: 667

Take on PAYING client tomorrow, I must get this working!

Hi, my name is brandon i own a website thats serves images to other sites and did not expect to start charging till january 08, last week a very large website contacted us and we took them on as a paying client... I have set up a dedicated account and at first setup thier account to block other webs...