| |
| |
| |
|
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
Comments:
<0> yes.. i read it on this site http://www.htmlgoodies.com/beyond/reference/article.php/3472881 <0> do you know how to make it support them all (browsers)? <1> CyberMad: google or #web is the place for such questions <2> CyberMad: just use the header() function all browsers /should/ implement the http protocol to the spec. <3> simple script, not working: http://pastebin.com/566458 <4> CyberMad: none of them work <4> CyberMad: 99% of caches will completely ignore any crap you try and put there <0> thanks :) <5> __a: www.php.net/shell_exec <6> hi, with php in safemode, i cannot make a "copy/cp" of a file in SO, how can i do this with php in safemode? <5> backblue: what is SO? <7> is there any easy way of making sure an int is above 0 <6> dools: linux. <7> like $ProcessedInt = (intabovezero) $_POST['UnProcessedInt']; <8> max(1, $_POST['UnProcessedInt']); <5> kestas: *-1
<5> kestas: erm <5> scratch that :-) <5> kestas: didn't read your q properly <5> kestas: square it <5> kestas: then sqaure root it <9> haha <9> simple if statement is easier :) <10> rofl <8> no its not, read above :) <9> $i=$i>0?$i:0-$i; <9> \o/ <9> Ruud: your's is elegant too ;-) <5> hehe **** you guys, i like mine :-) <8> ^^ <5> $i = sqrt(pow($i,2)); <5> $i = (int)preg_replace('/-/','',$i); <5> now that's elegance <5> backblue: theres a function copy, is that what you need? <11> which functions do I hav eto use to get a safe sql-query? <11> or, well, safe overall, using it in if-statements and stuff like that <4> eml: http://hashphp.org/knowledge_base?kb_id=24 <6> dools: php safe mode, dont let me do copy! <4> kestas: $n = ($n<0)?-$n:$n; <11> thanks aidan <4> kestas: Pierre had a nifty trick for it which was incredibly fast <12> my eyes be tired could someome help me debug this query? $query="SELECT * FROM raauth.users WHERE id='".$_SESSION["id"]."'"; <4> I'm asking him now <4> rolemodel: use single quotes in the key index, otherwise nothing is wrong with it, what error do you get? <13> JoshX: how shall I find out which user runs webserver? <12> aidan Parse error: parse error, expecting `T_CASE' or `T_DEFAULT' or `'}'' i <14> hi guys... I have written a short mail-form sending out message to a fixed address, but the form defines the sender and message. do I have to filter the strings somehow? I p*** them over by POST... <6> how can i do some copy() with php in safe mode? <15> backblue: Are your trying to do a file upload? <15> -r <14> hi guys... I have written a short mail-form sending out message to a fixed address, but the form defines the sender and <14> message. do I have to filter the strings somehow? I p*** them over by POST... <14> ( sorry if this was a repost I was not sure if I was identified by nickserv <16> is there a way to call the value of an array in its ***iciative form and get its index? (i.e. myArray[1] = "string";, would myArray["string"] == 1?) <4> rolemodel: link above it? <4> line* <15> vyrus: http://us2.php.net/manual/en/function.array-search.php <12> aidan: line above it is switch($status){ <16> Frixon: thanx... pays to rtfm ;) <12> aidan: http://pastebin.com/566501 <17> hi aidan <6> Frixon: no, just a copy() <18> plbgnr: if it is *nix, do a ps aux | grep apache <15> backblue: What kind of error do you get? <18> plbgnr: or something like that <17> i am using this to send mails, $email_both=$email.",".$alter_email; and mail($email_both, $subject, $body, $headers) but i want to use $alter_email which is alternate email address as a BCC how do i? <4> satsonic: php.net/function.mail <6> Frixon: copy() its not able to be used in safe mode, if the file its not owned by the user apache. <6> it have read access, but it does not let me copy() it <4> rolemodel: $x=@mysql_Fetch_array($row); ? why are you using @ there <4> rolemodel: what's the line above the switch? <4> backblue: what error message do you get? <15> backblue: That's OK. You can't use copy() if the file doesn't belong to the propper user. <12> function checkLoggedIn($status){ is the line above the switch <6> Frixon: but it have o+r permition, it should copy it. <6> aidan: i dont have here the line <15> backblue: Erm...if the user ID is not right, it won't work...
<15> That's what Safe Mode does with copy() <19> postgres 8.1.1 pg_last_oid() returns null. <15> backblue: You can turn of safe_mode_gid. That should work. <17> aidan, looking at it thanks <20> is there a function that will push all of the elements in an array together without sorting it? <15> push together? <20> like $x[0] = 150, $x[2] = 110 <20> and make 2, [1] <20> and so on <20> sort() pushes them all together <15> I don't understand <20> but then it sorts the numbers which I don't want <20> What I mean is that I have empty values in the array <20> like $x[1] is null or blank <20> so I want to remove all the empty ones <20> which would make [2] to [1] <13> JoshX:ok I tried change mod of my 'web home dir' for writable for others, and it worked ...writable access for group was set before that, so user who runs apache isn't in my group. (btw. i have restricted results of 'ps aux' as user) <20> this is after doing an array_intersect <15> Draoc: You have to write a function yourself.. <20> okay <12> aidan found the foulup. thanks again. <20> I was just wondering if there was a function I overlooked that did that <11> I'm making a registration script, and I want to create a p***word by creating 10 random characters between a-z A-Z and 0-9, what functions should I read about? <18> plbgnr: ok.. well good you fixed it :) <15> Draoc: $count = 0; $res = array(); foreach($ary as $key => $val) { if $val !== '' { $res[$count] = $val; $count++;} } <18> eml: rand() and chr() <11> ok <11> thank you. <18> 65 - 90 = A - Z <18> 97 - 122 = a - z <11> ye <18> and 48 - 57 = 0 - 9 <18> have fun :) <11> =) thanks a lot <21> rand("a","z").rand("a","z").rand("a","z").rand("a","z").rand("0","9").rand("0","9").rand("0","9").rand("0","9").rand("0","9"); <13> JoshX: yes safety is on 1st place :) <11> pnk, you can figure out a 'good' way to bruteforce that :P <18> hm? <21> eml: ? <11> uhm, nm.. :P <18> pnk: rand can do strings?! <21> JoshX: It can do chars =) <18> pnk: eh joshx@city:~/public_html/t$ php -r 'echo rand("a", "z");' <18> Warning: rand() expects parameter 1 to be long, string given in Command line code on line 1 <18> no it cant :) <21> heh aparently not <15> rand() only accepts integer values <18> indeed <21> i must have dreamed it could <21> haha <18> anyway <18> <-- away <11> chr(rand(0,25)+65); <- what would the +65 do? <18> offset <21> eml: You know the ascii table right? <18> so you would get 65 + (rand 0,25) == A - Z <11> pnk, not too great <18> eml: i just gave them to you! <11> oh, ok <11> =) <11> well, I just didn't know what +65 was <18> 65 - 90 = A - Z 97 - 122 = a - z 48 - 57 = 0 - 9 <15> $foo = range("A", "Z"); echo $foo[rand(0, 25)]; <15> ... <11> JoshX, yeah, I know a-z A-Z 0-9, wasn't "pointing" out that <21> Frixon: :D <18> Frixon: that is quite nice as well :) <22> chr(mt_rand(65,90)); <18> :) <18> 'there are many roads...' <18> anyway <18> <-- as i said, off! :D <22> is there a place to make requestions/suggestions for additions/augmentations to the php language? <22> not meaning to sound arrogant about it, really
Return to
#php or Go to some related
logs:
emerge binpkgs #web #perl logitech fusion alsa aoss not working dapper #perl can't log into samba from xp asterisk-classic repository gentoo64 mplayer win32codecs #perl
|
|