| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Comments:
<0> } <0> anybody? <1> Razz3r, so fix it yourself ;) <2> Can anyone help me on OO please ? <0> is there any code to check ips fast and will not use server resources? <3> check ips as in "is this string a valid ip" ?! <0> yes <1> AxL, post the relevant code to a pastebin... maybe someone else can help with a more specific question <0> $ip = getenv("HTTP_CLIENT_IP"); <4> lig, I was asking you! <0> or $ip = getenv("REMOTE_ADDR"); <0> its extract exect ip <0> but script use all server resuocses to verify ips from mysql <0> my site on shared host so have prolam <0> ? <3> i think if you like to check it against a regexp maybe ereg(i) is your friend
<0> ? <4> can anyone help me with an array object error: http://pastebin.com/632326 <5> !$affiliate_banners->EOF $affiliate_banners['affiliate_banners_id'] <5> One of those is obviously wrong <4> Dragnslcr: I will double check <5> A variable can't be both an object and an array at the same time <4> Dragnslcr: so if I give the array a different name it should work <5> You have to use whatever name you ***igned the array to <2> Apache seems crashing with it : http://pastebin.com/632437 <2> Is this code correct ? <4> Dragnslcr, so this would work http://pastebin.com/632440 <5> AxL- it's correct if creating an infinite loop is your goal <2> Dragnslcr: a infinite loop ?! <5> Yeah <5> You create a new instance of Cl***1 <2> Dragnslcr: ok .. I see now ... <5> The constructor creates a new instance of Cl***2 <2> etc .. <5> Yeah <2> oh yes ... That s why it crashes lol <2> Thanks <6> I'm trying to create a forum with special features ... which php forum software is easiest to modify? <4> Dragnslcr, how would I go about correcting this because it is reqired in order to retrive my query. here is a link to my full section of code to help explain http://pastebin.com/632442 <7> Is there a name for this type of array: ' $arr = array("id" => 0283, "text" => "Testing"); ' ? It's single-dimentional but uses some sort of hashmap to make the array "index-able" by a string in stead of position (int) <8> ***ociativew <9> ***ociative? <8> ***ociative <9> oh burn <7> Thanks :)) <5> Or hashtable <7> Could also be dictionary. I'm not actually sure what the difference is between hashtable and dictionary <10> hi guys, i want to make a new dir with php but uhm, i get permission denied (mkdir("backup", 0775)) <11> hello, i use a simple contact form on my site,which allow people to send me email, but recently the script is abused by a script, so that i got so many mails from my site, how can i prevent this? <8> set a cookie in the first time of the form, wich is controlled in the second part (before the sending) and look for the time... <8> or maybe a database witch stores all the ips in the last N minutes <10> hi guys, i want to make a new dir with php but uhm, i get permission denied (mkdir("backup", 0775)) <8> the form checks if the ip already sent something in the last N minutes and eventually denies it <7> Aap: Don't repeate your self! Have you checked the permissions on the root folder? <8> Aap, check the topmost root permission <12> Set objSXH = server.CreateObject("msxml2.ServerXMLHttp.3.0") can someone give me some insight into making this asp code into php? <11> Ashura,with database system, i can only get max 1 mail per N minutes, does it mean, there is nothing to prevent sending the mail if it is run by bot? <11> if the script runs 60 minutes, and my N is 1 minute, i will still get 60 mails <10> drwxr-x--- (= my parent dir) <8> pretty hard, i think... i bot usually simulates a real evniroment (USERAgent and so on) <10> and sry for repeating but i'm fed up with this prob <8> Aap: try to chmod it 770 <10> well i do this mkdir("mydir", 0775) <13> Hi <4> Dragonslicr, thanks a lot for your help <13> Is there any builtin function to check the format of the date <8> bernouli, the use cookies... split the form in 2 parts, the firts page gets informations and sets a cookie, the second part checks for the cookie. It the cookie does'nt exists, denyes the request... <8> Aap, nu... you need to manually chmod the dir (or try to chmod('.',0770)) - '.' means 'current directory in witch i'm on' <10> okay, thx, i'll try <11> Ashura, cant the bot also accept the cookies and resend the cookies? <10> the operation chmod is not permitted <14> Can someone tell me why PHP dislikes this script <8> Aap, another usefull thing should be set the owner of the dir to the user witch the apache server runs on <14> http://pastebin.ca/47679 <8> bernouli, it depends on the bot. <13> Is there any builtin function to check the format of the date
<13> Ashura: <11> so, if the bot is smart enough and can handle cookies, what else can we prevent this problem? <8> bernouli, make the form verbose and let it send the message plus some headers, maybe we can find a way to cut the bot off <10> well Ashura, that's the case <8> bernouli, maybe an image with some write on it (like the registration form of ebay, paypal and phpbb) <11> Ashura, that will bother normal users, damn <8> bernouli, well... you have to sacrifice something :( <8> ah! idea!!! use javascript... bots usually doesn't implement js <11> what can javascript help me? <8> make a script that writes the value of some kind of hidden text, php should check che correctness of this text <14> did someone hear my question <13> Ashura: please can u answer my question <8> uhm... check in the php man, under date related function... i think you can use regexp to check the syntax, but not for the time correctness (like 31 Feb) <10> Ashura, it doesn't work still <11> Ashura, after securing my script, do you know how can i test if it is secure enough, anywhere i can download the bot to test my site? <14> can someone have a look at this script and tell me a possible cause of the email saying \n $whatever http://pastebin.ca/47679 <8> bernouli, no idea...try google <8> Aap, do you have shell access to the server? <10> yes <11> mrtechguy, use " instead of ' <10> the server is here next to me (linux Debian) <8> aap, report in query the ouput of: "ls -la <dir containing the script>" <10> did that <8> i need the first 4 lines <10> can i post here? <11> Ashura, can you tell me how i can read the value in javascript and test it in php? <8> nu <8> query or pastebin <8> bernouli, just a sec <10> http://pastebin.ca/47683 <12> what is the php equivalent to the hashmap function in java? <14> try again http://pastebin.ca/47684 <14> sorry i have put double quotes <8> Aap, who is the user apache uses? <14> this time it doesn't send anything where the variables are <10> www-data <8> www-data doesn't have the write permission on that directory <10> is that the .. ? <10> so make it 770? <8> yup <10> i'll try it <10> ahaaaaaaaa it works <10> Ashura, I thank you very much. I was becoming frustrated about it. Sorry for my intro <8> ;) <15> hello all... this is a mysql question but i am sure (i hope) that you guys can help... the thing is that i have to search in a database for word1 word2 word3 and i want to get the results regardless of the order but i want to have all three words in the query result <10> select * from your_TBL where foo = "word1" and foo2 = "word2" and foo3 = "word3" ; <15> foo=? <10> Ashura? i want to copy a few config files (out of /etc), can i change dat dir too? (chmod/chown) ? <10> just an example <8> BigSinep, you plan to use full text search? <15> yes <8> do not touch the permission of /etc :D <10> so, what can i do about it then? <8> BigSinep, there is a full chapter in the mysql doc... is not so simple... <15> aha <8> Aap, you can safely copy the files out of etc but... is dangerous... <16> hi guys <10> so you have a suggestion? <16> <?php echo ".$linha["aluno"]". ?> is error"? <16> <?php echo ".$linha["aluno"]". ?> is error ? <8> Aap, which files do you want to copy out? <16> Parse error: parse error, unexpected '\\"', expecting T_STRING or T_VARIABLE or T_NUM_ <16> ;/ <8> contraventor, yes... <10> yes it is echo $linha["aluno"]; <16> Ashura who ? <16> hmm <16> ok <8> <?php echo $linha['aluno'] ?> <10> i want to copy a few configs out of a directory in /etc <8> you cannot modify them, obiovously <10> maybe write a bash script ? <8> watchout for correct excaping, a bare crack could be to force your script to expose /etc/p***wd or /etc/shadow... <10> yeah
Return to
#php or Go to some related
logs:
OMG TEH LUNIX compiz ctrl-click ipod shuffle partion fix gentoo PORTAGE_ELOG_SYSTEM freebsd make.conf sempron #gentoo man cpan css for page baground unmount volume 6.10 ubuntu #sql
|
|