| |
| |
| |
|
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
Comments:
<0> awwa: http://pastebin.com/558808 <--- Fixes your SQL injection <1> google "xss attack" <1> intersting reading <0> But you also have an XSS vulnerability there <2> does anybody of you know if there is a program that can download ALL stuff from links in a txt file? <1> ralle89, I have a nice curl script. oh wait, it's perl <1> you can do it in a shell easily enough, and it's well, trivial with php <2> how do I make it? <2> I can get data from a file on the website <2> but not write it into the file <2> I have a windows machie <2> machine <2> with apache <2> and mysql <2> and php <1> ralle89, just load the text file into a string, split it into an array of "lines", and run your code on (for)each
<0> http://pastebin.com/558811 <--- Fixes your XSS vuln <2> g <0> Don't abuse your enter key <1> well, it fixes *some* problems :/ <3> Pollita, having just tested the code, it works well, again, i thank you :) <2> I only have a problem with saving the stuff into a file <0> awwa: *now* To the question of limiting your select to just your active record. What variable are you using to hold your active record ID? <1> ralle89, saving what stuff? <2> just content <2> into a txt file.. this is my script: $file = fopen('wc3maps/funny.txt','x'); file_put_contents($file,'iloveyou'); <1> $file exists? <2> huh? <1> ralle89, $file is what? <1> oops haha <2> $file is fopen blahvlah <1> but does it exist? <2> fopen() creates it <0> ralle89: Read the manpage <0> Don't use functions if you havn't bothered to read how they work <2> I have.. <0> Liar <1> ralle89, i mised the first part. it's superfluous <0> You might have looked at the manual page <0> But you didn't read it <0> !+func file_get_contents <4> string file_get_contents(string filename [, bool use_include_path]): Read the entire file into a string <0> ts(string filename [, boo <0> WHAT DOES THAT SAY MOTHER ****ER???? <2> file_put_contents looks pretty obvious it puts data into a file <2> and fopen creates a file <0> !+func file_put_contents <4> Unable to find PHP4 proto for file_put_contents <0> Okay wrong func, but my point stands <0> Stupid bot <2> relax Pollita.... <2> dont abuse the enter key <0> int file_put_contents ( string filename, mixed data [, int flags [, resource context]] ) <0> I ASKED YOU A QUESTION <0> WHAT THE **** DOES THAT SAY? <5> lol <2> I dunno.. you didnt finnish the line.. <0> Okay, you want to be banned then <0> fine <2> lol <2> u **** <1> damn! missed the fun! <3> humm, does that happen often? <0> I get so pissed off by people who waste my time. <6> Pollita went Samuel L. Jackson on him. <1> time wasting is probably the only act that really should be criminal, but is it? in *any* locale? <0> It's like they don't even want a manual <0> They probably think all those words get in the way <7> Pollita: i am using $id i think <1> it's their nature. you tell them where to download it, even show them the beauty of IDE-integrated chm files, how to link to an F-key. but still, it's reflex.. IRC.. dumb question first <8> Hello! I have a file called myfile.txt and I use file_put_contents() on it but it doesnt add the content.. whats wrong? <3> is it possible to use fwrite() to append to the bottom of a file bar one line? <1> I just come here for fun, so I prefer to fool around with them and act silly, like they are. but if I was a regular, I guess I'd just get pissed off <0> "a file bar"? <1> Vyker, bar one line? you mean, remove a single line from the end, then append? <3> i.e append to bottom file -1 line <0> Ah
<0> Not trivially, but yes <1> indeed! <1> is the line always empty? or does it vary in size? <0> You need top open it, seek to the end, then seek backwards until you find the end of the previous line, then start writing <8> doesnt file_put_contents() work in windows? <1> hmm <3> i see, your right it in it not being trivial! <0> ILikeCheese: Yes, but only in PHP5+ <7> Pollita: i am using $id i think <9> Pollita: You still using that @? <8> is there a way with normal dos-command line with shell_exec() to add contents into a file? <0> awwa: Then just add WHERE id='$id' to your select statement (sanitizing it with mysql_escape_string() of course <0> What @? <9> My mistake <9> :P <3> [or the line would be closing of a root tag in an xml file. so i guess it wont change. <0> Get them spectacle checked <1> Vyker, basically what Pollita said (fseek back) but if you know how long it is, you don't have to *find*, just do it <7> Pollita: that did not do it <7> Pollita: that did nothing <10> anyone know how to set up php5 with GD, libpng, libjpeg, zlib and exif support from the deb packagtes? <3> thank you [or and Pollita, ill get cracking on it. <0> Then you did it wrong <1> oh that reminds me, has anyone heard of issues with php5 on win32 GD failing? <7> mysql_query("DELETE FROM blog_poster WHERE id='$id']}'"); <7> ? <11> ILikeCheese: try command_that_outputs_something_to_std > file.txt <0> Where did ]} come from? <8> yay that probably works ^^ <0> awwa: And why are you changing the delete query? <7> Pollita: "WHERE id='$id' " <0> You said you wanted to only *SHOW* (e.g. select) the active record <0> pah... <0> I'm going home <7> Pollita: then where should i add it? <1> heh <7> Pollita: ok i got it <7> sorry <7> :) <7> thanx <12> what would be the best way to accomplish this? turning this: "field19 = 'hockey'" into this: "(FieldId=19 AND FieldValue='hockey')" ??? <1> Kaitlyn, are you talking about regular strings here? <13> how do I convert an integer to a string? <12> [or: as oppose to an abnormal string..? what u mean? <14> if mysql_num_rows returns 0 rows, continue transaction... <1> Kaitlyn, I mean, it's just a string, and you want another string back, this isn't MqSQL stuff? (I don't know mySQL very well, so I don't recognize its code) <14> what would this be in PHP? :/ <1> Yodafone, just *use* it <12> [or its a string i want to manipulate into a proper query.. <1> Kaitlyn, see! even though I don't know it, I can still *small* it! <1> smell dammit! <1> heh <9> Man...I hate going bogey on the 14th at Pebble Beach, don't you? <1> brb <14> if mysql_num_rows returns 0 rows, continue transaction... <14> what would this be in PHP? :/ <12> if (mysql_num_rows($result) == 0) { FURTHER TRANSACTION STUFF } <14> thank you <14> how did you know i was using $result ? <12> i am psychic <14> but...i used the same code and it said it was faulty :/ <12> kind of <12> PHP doesn't tell you code is faulty :) lol.. what was the error message? <14> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource <9> Fushuing: That means that your query failed. <14> the query went through, that's what i know <9> $result is not a valid MySQL result resource <1> Fushuing, doesn't phpmyadmin creat php code automatically? <9> Fushuing: "went through"? What does that mean? <9> What did it go through? A war? <14> that too <1> I avoid databases, but I've noticed something like that on my occasional mysql meanderings <9> The laundry? <14> yep
Return to
#php or Go to some related
logs:
when eth is up nv_sata: Secondary device added +rt2570 +dhcp +suse +wpa2 #web renice boinc repeater ultravnc linux cron cedega directdraw dapper vga16fb nvidiafb update(',subroutine,perl keck0f
#web
|
|