|
|
It is currently Wed Feb 11, 2026 8:55 am
|
Offered a small php and mySQL task
| Author |
Message |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|
So i suppose the question is: What is that script referring to?
This bit, in particular:
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
| Tue Mar 07, 2006 8:30 pm |
|
 |
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
That's all javascript. PHP is server side, so you will never see it unless you download the pages via ftp.
|
| Tue Mar 07, 2006 8:42 pm |
|
 |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|

Great, so does that mean, ill have to get my head around JS too?
Heres my response code to that:
 |  |  |  | Code: _.._ .,c=""" _JLccccc, ,r=" ,,-' "=c ,J" ,c$?$ $ `$c `=, ,c"' ,J"" J ( j' "$. "c, ?????????????""""""???"=hcJ$" JL `r `$r "$q `.`.`.`.`.`.`.`.`.`.`.`.`J" j'L `L \ ?c "g `.`.`.`.`.`.`.`.`.`.`.`.J j'`?c ?. t `$. `=hc,;c??? `.`.`.`.`.`.`.`.`.`.`_,$ z'.`.?L $ `h "=c, ,cJ????""`.`.`.` `.`.`.`.`.`,cPP?"""'? J ;,?.`z$$h`"$.'L3, `L $ "" $`.`.`.`.`.`.`.`.` `.`.`.,c??" ,f $ / $.`.,,,`"=`?h`?$c `r 3r .$`.`.`.`.`.`.`.`.` "hcr=" j F j P.`$$$h3$,`.`???$c `cc$r.P.`.`.`.`.`.`.,r`.` `.$ ( J d$ j'.`?.$$$$`.`.,`.`="$c.,cP"" $.`.$??"??$hc$".`.` `.`h ( $ $$ $`.`.`.""""`.J:`hJ?$h,`.$ JF.`$" .$.`.`.` `.`.?. `j' ($$ $`.`.`.`.`.`f.`?$$$$$$r'3 J"`.J" \ .P`.`.`.` `.`.`?. $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`;;;;.`.`.`.`.`;;;;;`.`.`.`.`.`.`.`.`.`.`.`.`.3. ?`.;;;;`.`.`.`.`.;;;;`.`.`.`.`.`.`.`.`.`.`.`.`.`$ $`.;;;;,`.`.`.`.`.;$`.`.`.`.`.`.`.`.`.`.`.`.`.``L $`.`;;;;.`.`.`.`.;$`.`.`.`.`.`.`.`.`.`.`.`.`.`.$ $;`.;;;;;.`.`.`.;9`.`.`.`.`.`.`.`.`.`.`.`.`.`.3 $;,`.`;;.`.`.`.;?`.`.`.`.`.`.`.`.`.`.`.`.`.`.3 $h;;`.`.`.`.`.;;L.`.`.`.`.`.`.`.`.`.`.`.`.`.3 $'"$;;;;;;;;;;;j$.`.`.`.`.`.`.`.`.`.`.`.`.`.$ $.```?;;;;;;jjJ?$.`.`.`.`.`.`.`.`.`.`.`.`.`.$ J'`.`.`"hiii?";;;?h`.`.`.`.`.`.`.`.`.`.`.`.`.$ ,$`.`.`.`.``?i;;;;;;$`.`.`.`.`.`.`.`.`.`.`.`.`j' c"`.`.`.`.`.`.?$i;;;;$`.`.`.`.`.`.`.`.`.`.`.`.`$ .P`.`.`.`.`.`.`.`.`?iii9`.`.`.`.`.`.`.`.`.`.`.`.`f z?.`.`.`.`.`.`.`.`.`.`.`3).`.`.`.`.`.`.`.`.`.`.`.j' J'`.`.`.`.`.`.`.`.`.`.`.`?).`.`.`.`.`.`.`.`.`.`.`.3 j"`.`.`.`.`.`.`.`.`.`.`.`.`.h.`.`.`.`.`.`.`.`.`.`.`.3 ,P`.`.`.`.`.`.`.`.`.`.`.`.`.`.$.`.`.`.`.`.`.`.`.`.`.`.3 |  |  |  |  |
|
| Tue Mar 07, 2006 8:53 pm |
|
 |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|
Whoa, that didnt work as planned. Maybe i should stick to php.
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
| Tue Mar 07, 2006 8:55 pm |
|
 |
|
Pig
Duke
Joined: Mon Mar 31, 2003 8:59 am Posts: 1358 Location: right behind you
|
Probably not. It depends on whether you can edit the form directly. But like I said earlier, if you have only 5 hours, I wouldn't bother.
|
| Tue Mar 07, 2006 9:08 pm |
|
 |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|
I have until tomorrow night to decide.
Its for £32.50 btw. Im toying with the idea of giving it to someone else for a £10, and me keeping the rest.
But then again, they might ask me for more, and it would be hard to dig myself out from that hole.
|
| Tue Mar 07, 2006 9:16 pm |
|
 |
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16704 Location: On a slope
|
I wouldn't bother. You don't know enough.
The code you posted, as Pig says, is javascript. Specifically it looks like an AJAX implementation. Not that it matters, but it has nothing to do with PHP.
Given more information and access to their production environment, I could probably get something like that up and running in an hour or less. But I know php.
Here's a quick outline of what I'd do. I may have fuxored something here or there (especially the sql query) but the general idea is solid.
*edit* OMFG, Pig is right on...PHPbb sucks my balls. HTMLEntities or something SURE WOULD BE FUCKING NICE.
|
| Wed Mar 08, 2006 10:54 am |
|
 |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|
Looks like i'll be turning this task down.
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
| Wed Mar 08, 2006 11:06 am |
|
 |
|
ElevenBravo
King
Joined: Wed Apr 16, 2003 2:18 pm Posts: 1976 Location: Sexy Town
|
Correct me if Im wrong but wouldnt having the webserver trying to figure out what country the person is from cause it to use bandwidth in doing a whois or ping?
I mean when a client connects to a website, he just brings his IP with him. The ip/data packet doesnt contain "country" information right? The server who have to execute some kind of command to get it , right? So if you have 100 people hitting your site the server is trying to get 100 peoples country info which would cause some unnessary server loads.
|
| Wed Mar 08, 2006 11:26 am |
|
 |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|
The country name is stored in a MySQL table beside the IP range. This is queried. I dont know all the details.
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
| Wed Mar 08, 2006 1:21 pm |
|
 |
|
ElevenBravo
King
Joined: Wed Apr 16, 2003 2:18 pm Posts: 1976 Location: Sexy Town
|
no no. Im talking about when you visit a website the packets of data you send to the webserver doesnt contain your country of origin. It just sends your IP address in the packet. For the webserver to know what your country it is it would need to take your IP address and run scripts/command/ something to to query your ip address and figure out what country you are from. That would require server resources and or bandwidth to find that out. Which would be really unnessary give it only takes an extra 2 secs to select your country.
Last edited by ElevenBravo on Wed Mar 08, 2006 1:51 pm, edited 1 time in total.
|
| Wed Mar 08, 2006 1:34 pm |
|
 |
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16704 Location: On a slope
|
nah, not necessarily. Different IP rangers are reserved for different countries. Like China is 99.0.0.0 - 99.255.255.255 (not really, but an example). These ranges are available, so you could just grab the requesting IP and then bounce it off a database.
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
| Wed Mar 08, 2006 1:41 pm |
|
 |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|
Satis/Pig
Don't get your hopes high. Would you be interested in implementing this for £15 via paypal if my boss aprooves of the idea?
Obviously, ill provide more info/links/access to resources.
|
| Wed Mar 08, 2006 2:39 pm |
|
 |
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16704 Location: On a slope
|
give me the csv and I'll do it. Not in the next 5 hours, though.
And how are you going to pay me?
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
| Wed Mar 08, 2006 4:18 pm |
|
 |
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7740 Location: Centre of the sun
|
Again, dont get your hopes high, i havent got an aprooval yet.
No, of course not in the next 5 hrs. Don't know the exact time frame he wants it for, but im pretty sure its not due before Sunday night.
I'd pay (like i said!!!) via paypal. I think paypal charge something like 5% for transactions under £50, so i'd actually have to put through £17.50.
Might get the reply tomorrow.
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
| Wed Mar 08, 2006 5:07 pm |
|
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|