@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> when you've learned enough to fix the stuff it generates, imho, you've outgrown it
<0> since most people don't even realize it's broken ;)
<1> Does Eclipse even have a built in preview pane, etc?
<0> heh
<0> textmate does ;)
<2> the problem is when someone commits code saved with those whitespace changes.. it is more work to see what was changed via the cvs diff
<0> yeah
<1> Least with DW I can create one page in html, use the templating system and if I change the one template it'll update all the other pages for me as well
<0> suddnely 1000 lines of code turned into 1
<0> ENJOY
<2> Zule|BBL: ctrl-r in firefox
<2> :)
<0> if you're on a mac
<0> several editors use the built in webkit to provide previews
<1> Refresh? :)
<0> subethatedit, textmate, etc



<0> haha, I flipped my channel view, and couldn't remember where I was having a conversation on text editors :P
<2> Pooky: i think it was at cat'ing /dev/random to get the characters you need
<0> alright
<0> happy hour
<0> here I come
<2> forever live and die
<3> hey has anyone here used PHP with litespeed lsapi ?
<1> I have :)
<3> hye man
<3> cool
<1> I even used the litspeed webserver.
<3> i need a bit of help
<3> nice
<3> thats what i am up against
<1> Woaah, I don't do the help thing :D
<3> oh come on
<1> Their forum tech support is pretty good
<3> i am confused by the "address" for the external app
<4> hey guys
<4> i know the answer to this question which is yes but i dont see why it doesnt work
<4> anyone see anythng wrong with this line
<4> <?php include("Chat.php"); ?>
<2> clop: 'address' fo the extern app?
<5> DiGiTaL no
<6> DiGiTaL: It doesn't work... HOW?
<2> DiGiTaL: you have an error to help?
<4> sorry guys ignore it
<4> it was chat not Chat :)
<5> omg
<2> DiGiTaL: how did you figure that out? trial an error or by error messages?
<2> and*
<2> xshad: no.. mg
<7> heh, another unixism that makes no sense. filename case sensitivity
<4> i might still have the problem, just one second plz
<4> *please
<4> damn
<4> its still not working
<2> caffinated: how does that not make sense?
<2> make !== Make
<8> is there a way to tell if php is running in safe mode, I mean, is there a way to tell from a script?
<2> ini_get i believe
<4> Here is my code
<4> http://rafb.net/paste/results/tQwoBM44.html
<4> very small
<2> hmm.. php.net/ini_get doesn't have the appendix like ini_set has
<9> does anyone know about how @mail() works?
<9> on Unicies
<10> mail(to, subject, body, from:from);
<2> bluefoxicy: @mail?
<11> mail() == system('/usr/bin/sendmail')
<9> particularly, does (subject) get p***ed by command line parameter -s?
<11> no
<12> I need some infrastructure help real quick in one of my programs
<9> Pollita: then how?
<11> It gets written on the pipe
<2> bluefoxicy: sendmail is opened via pipe and data is sent
<11> fwrite(sendmail, "To: %s\nSubject: %s\n", recipient, subject);



<9> zircu: good, no possible attacks here then?
<2> bluefoxicy: that is a good idea to do
<11> erm fprintf rather
<8> zircu, was that for me? The ini_get thing, my question is, I want to know if there's a way of finding out whether php is running in safe mode through a php script, phpinfo doesn't work, so I think I am in safemode, I just want to make sure
<13> blank_ yeah it probably was heh
<14> DiGiTaL: what does chat.php have in it, and how do you know it's not working?
<12> It's "sort of" a CMS but for a few programmer friends. Basically a users "page" has "objects" these objects have differen functionalities (example: mail, invites, codebin, photos, videos, links, etc) these blocks can be in any position, left column, center column, right column, etc... they are weighted as well. I am trying to figure out the most efficient way to sort through a users objects (or his layout, stored in a database) right now i loop t
<2> blank_: yeah, ini_get will let you know
<4> cause it shows a blank page
<4> and in chat.php there are some forms
<8> zircu, oo okay thanks, ini_get() ?
<11> bluefoxicy: If there's a \n in subject, you could create a bogus header, but that's about it
<4> html forms
<11> like.... mail($recipient, "This is a subject\ncc: morepeople.com", $message);
<2> bluefoxicy: i would keep with your sanitizing
<13> blank_ yup
<11> erm more@people.com
<11> whatever
<9> zircu: nod
<8> thanks :) rioter
<14> DiGiTaL: the blank page, when you do view source, has the HTML tags from the parent php file there?
<9> zircu: rats was complaining args 1, 2, 4, and 5 could be p***ed to a unix program on command line
<2> as Pollita pointed out
<11> Well 5 certainly is
<9> which is why I was looking in the first place :)
<4> I see
<4> in the blank page
<4> when i viewed the source
<11> Anyway, ext/standard/mail.c
<4> it had this line
<4> <?php include("chat.php"); ?>
<9> I don't even see where the **** $extra is even set in this code.
<4> instead there should be html
<14> DiGiTaL: save your file as .php or .php3
<2> yeah #5 of mail() is the most dangerous
<13> php3?
<9> $extra = "From: $name <$email>\r\nReply-To: $email\r\n";
<14> just .php :D
<4> k
<4> done
<8> zircu, oh I have to p*** ini_get some arguments? which one do I have to p*** to find out if it's running safe mode, or does ini_get() without any arguments return everything?
<11> $extra is tantamount to shell_exec()
<14> should work now
<11> blue: No, that's something for headers
<11> arg 4
<9> Pollita: @mail($to, $subject, $message, $extra)
<9> ok
<11> blue: It's arg 5 you need to fear
<9> good
<2> blank_: hmm..i believe it is 'safe_mode'
<9> this code is clean then.
<4> it worked
<4> :D
<4> thanks
<8> zircu, thanks! let me try that
<4> sweet
<11> "clean enough"
<11> again, you can get email header injection
<9> I don't know how the hell to do TOCTOU checks
<2> bluefoxicy see the appendix on php.net/ini_set for a list of settings to use for ini_get
<11> which you may or may not be concerned about
<4> what was wrong with it
<9> Pollita: return str_replace(array("\r", "\n"), "", trim($content));
<9> Pollita: the sanitization function this guy uses
<11> That'll work
<4> cause when i change the new file to index.php it does the samething again :o
<4> actually nvm
<4> its fixed now
<4> :)
<8> zircu, I did
<8> <?php
<8> echo ini_get('safe_mode');
<8> ?>
<8> and it doesn't display anything when I run it lol


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

ping dmesg not permited ubuntu
wmii notification area
cmd-owner personal firewall
#linux
#bash
filezilla for gentoo
#osdev
gmail configuration sendmail.mc
#gentoo
#css



Home  |  disclaimer  |  contact  |  submit quotes