| |
| |
| |
|
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
Comments:
<0> no.. the 4th argument is the header field ...you can use of for lots of other stuff too <1> and the sytax for that is - 'from:email@email' - this works for a fixed email, but what if its a variable $email? <0> its still because you use ' <2> swimrr: don't use ' <0> and not " <1> ah....so the 4th argument is the header <2> yeah <1> so any changes in the 4th argument effect the email header <2> yeah <2> but your problem is that you are using single quotes <3> any more opnions <3> w.mindview.net/Books/TICPP/ThinkingInCPP2e.html || Pastes to http://cpp.sf.net || Be patient, courteous, and precise...this is C++, we all have our segfaults. We don't do homework.' <3> * Set by orbitz on Tue Sep 06 08:25:09 <3> <3> http://img217.imageshack.us/img217/956/screen1ms.jpg ........hows this looking guys <3> <^hEllL0rd> yeah if i remember right you get a nice item from that <3> <Lugoismad> hey helllord, could you take a look at this program again for me? http://rafb.net/paste/results/eFEdYQ47.html For some reason when I run it on my unix box and try to connect to it with my browser, it never loads anything in
<3> <3> im trying to keep it simple bu yet eye pleasing <3> < <3> oops <1> so why can't I just put - from:$email - ? <2> you can <2> if you use double quotes <2> that's the last time you're allowed to bring that question up <1> lol <1> ok <1> double quote the whole thing? <2> $header = "from:$email"; not $header = 'from:$email'; <3> more opinion please how to make look better certain chnages etc <3> http://img217.imageshack.us/img217/956/screen1ms.jpg <1> ah, my hampster just woke up and turned on my brain <2> :) <0> swimrr, normally if it doesn't work, echo it and see if it writes what you think it does :P <1> thanks istasi <2> swimrr: you can go here for help: http://us3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double <2> scroll down to variable p***ing <1> thanks everyone <2> sure <1> nite all <4> any reliable way to determine the server root directory with php? <5> cyphor: using the $_SERVER var. <4> yes, I've been looking through all those vars. I'm trying to detect the server root though, not the document root.. <6> how would you say - IF this 8 character string starts with the letter S (case insensitive, so s or S) then true <4> if (($str[0] == 's') || ($str[0] == 'S')) { return TRUE; } else { return FALSE; } <6> okay, thansk <7> callipygous: or, you could simply convert the string to upper/lower case and do one comparison <7> strtoupper($str) if($str[0] == 'S') return true; return false; <6> interesting, thanks <6> but the string will also have numbers in it <6> although, it is a session variable <4> it won't effect them <4> affect* <6> so would I if($_SESSION['name'][0] ? <7> i'd use substr, but that's me <4> If I were you I'd start by setting any variables your script recieves first, then inspect them... like $name = $_SESSION['name']; <7> if(substr($_SESSION[name] 0,0) == 'S') .... <4> http://pastebin.com/586419 <4> there you go callipygous <4> you should determine what the name string can contain, then fully inspect it... like if it can only contain alpha-numeric chars run ctype_alnum on it etc.. <6> ahh ok, that won't be necessary <0> return (strtoupper ( $str[0] ) == 'S'); <- wouldn't that just be enough? :) <8> greets <8> whats the maximum size of a function name? <9> technically? <9> There is none. <9> How much ram ya got? <8> a bit :P <8> ok just tryin to rule out some stuff here <10> is using php cli can prevent timeout? <9> set_time_limit(0); <9> zero being "unlimited" <10> Pollita, anyway to know if the script has been timed out? <11> Pollita: Proposterous! Zero is not unlimited! :O <9> "proposterous"? Is that like.... A non-amateur posterouts? <11> Yeah well, my spelling blows. :P <9> brainb0x: Yeah, there's a check for that.... <11> register_shutdown_function() would do it, no? <11> Maybe not :S
<9> Wait... "test if it's timed out"? <10> Pollita, any tips? <9> If it's timed out then it's not running anymore. <9> What are you planning to check? <10> i mean is it possible to handle if the script is going to timed out? <9> Not so much. Just set the timeout to unlimited and build your own timeout mechanism <10> Pollita, many thanks! <12> Pollita: HI MOM! <9> Jymmm: Well, if it isn't the runt of my litter <12> Pollita Aw geeze ma... do ya always have to call me a runt? <12> Pollita: I'll grow big and tall....someday. <13> that's an intelligent quit message <5> haha <11> caffinated: Good news. I might be getting a Rails job here. <12> Yeah... swinging on a BR*** RAIL maybe <12> YOu'll look HAWT in fishnet stockings kuja <11> hah <11> Dammit, this guys are going to make me develop on Windows, using Eclipse. <11> s/this/these/ <4> any idea's on dynamically setting the name of a variable, say to a value stored in an array? <14> hi everybody <13> cyphor: ${$array['key']} = 'value' <13> I would highly recommend against it though, if you do it that way make sure you thoroughly filter out $array['key'] <4> k thanks =) <15> I have input text box in my form for the user to specify a url to an image to be shown on the page, should I do any url encoding, or just p*** it on thru to <img> (escaping " first of course)? <14> you can directly p*** it <15> I guess this is a stupid question; I'm getting tired.. thanks <14> but before using it directly in the tag <12> validate that it's an image <14> ***ign it to some variable and then use that value of the variable in the tag <4> =) <4> also inspect for an xss attempts <4> any* <15> Jymmm: I was first thinking of connecting to the server and checking the content-type, then thought that'd be insecure/slow, then thought maybe just checking file extension <12> void[]: **** no, just use http://php.net/manual/en/function.getimagesize.php <14> yeah dont use direct url in your tag <14> se it through a variable <15> Jymmm: hmm.. cool, thanks <15> guru[1]: hm, why is that so important? because of mixing up the quotes from $_POST ? <14> which one? <15> using a variable <14> yeah thats because to avoid any attempts to cross site scripting <14> that actually in one of his talks Rasmus had insisted to use it that way <14> to avoid Cross site scripting <16> hey i have a large number of sql statements in a file, whats the easiest way to send them to mysql? <16> through php that is <17> Is there any dis/advantage to using a browser's login window as opposed to an HTML form? <16> you mean the popup? <17> Yes. <17> The popup. <16> erm yes, you can't customize the look of it <18> I have php_imagick.dll in my extensions folder and enabled in php.ini but when I restart apache2 I get an error saying it couldn't find the dll. I'm using php 4.4.0 Any idea whats wrong? <4> it's looking somewhere else I'd say <4> check the extension dir <18> hmm.. I have other extensions enabled in that dir with no problems <4> then I have no clue =( <19> Hello everyone! =] <4> sup <7> yo <7> w0rd <19> So what's going on? <7> im procrastinating <7> u? <19> Hmmm I'm doing the same, actually... <7> Hey! Only one person is allowed to procrastinate at a time! And I got here first :) <19> Just you try and stop me! **cackles and avoids work** <20> Slade: I was gonna procrastinate . . . but ummmm I'll do that later . . . <7> nmatrix9: ok,. <7> Techsetsu: im gonna procrastinate doing that too <7> i really dont feel like finishing this custom web ticket system.... <15> does php have goto? :) <19> Oh! I was going to ask a question.
Return to
#php or Go to some related
logs:
caplization game #perl #gaim linuxrc command not found ipmasq wiki Ubuntu aiglx nvidia-glx #web gentoo xmms skin wm0t how do I use pars
|
|