| |
| |
| |
|
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 33 34
Comments:
<0> does feenode have a java channel? ##java doesn't seem to work <1> TML: php4-mysql is already the newest version. <2> eighty: It doesn't? It seems to have 200+ people in it. <3> lostage -- That's not it that only returns part of the string <4> fromvega: Did you stop apache and start it again? <3> I need both parts tho <5> eighty: It does. <6> genelisp: once, new PDO(), yes. cant i reuse it? (redoing it makes it work) <1> TML: I've restarted it <0> mmm... can't seem to connect mattmcc <7> TML: understood, have played with suphp which reportedly will help in our adventure, not having success. Asking here to see if there are any ideas we have not thought of yet to solve the problem <0> colloquy on mac... join ##java <8> ***yKen: explode <9> hi ppl. Is there anything like GDB for php ? <0> firefox ;) <2> eighty: Well, you seem to have made it into this channel without difficulty...
<4> wblalok: What, precisely, is the "problem" <0> mattmcc... i know, strange, eh? <0> everything connects, java doesn't <0> so sad :( <0> ;) <10> hi isoTop <2> Maybe it's invite only, or requires you to register first. <11> cain, probably, but you need to make your new variable reference the old one, so you're always working with an object <12> raden, hi <0> aiet, thanks mattmcc... i'll check <12> raidman, hi, sorry :) <10> you are welcome, isoTop <10> are you have experiences with mojavi? <12> raidman, nope <6> genelisp: why cant i reuse it? seems strange to me, its the same connection <8> captbunzo, back from the dead! <11> cain, so something like $x = new Thing(); $y = $x; now you can use $y as if you were using $x since they both reference the same place (I hope - anyone else, correct me if I'm wrong) <10> isoTop, are you got your dotgeek account? ;-) <7> tml: we need to have our CMS function for a couple of clients no matter which path they get to the site from (http https or hostdomain/~user) and would prefer not to make everything chmod 777 <1> TML: do you have any other idea? <12> raidman, yes :) <6> genelisp: i know that. my problem is another here. <4> wblalok: chmod 777 is never the right answer <10> isoTop: cool, but i hang on there for getting one :( <7> tml: agreed on ohhh so many levels :) <4> wblalok: chown the files to realuser:apachegroup <6> obviously $x = new PDO(); $x->prepare(); $x->prepare() ... the second call fails with call to undefined function execute() :-/ <13> i'm gunna try something fancy schmancy this time... <4> wblalok: Then set them rw for user and group <12> raidman, cool, i think this is my 2nd year with dotgeek <10> oh, if i got my account, i sould hang on there too ;-) <14> TML: It isn't? But what if the question is, "what is the command to give all permissions to user, group, and world for a file?" <15> Ahroun, then it's the wrong question :) <16> But the answer is still chmod 0777. :O <7> tml: at present the server is set to user:group being equal (dedicated host) thus the search for other solutions. Thanks for your efforts, I think I am going to rty and find someplace/person who understands suphp and see if we can get that working as advertised seems like the best option at the moment <17> how is a correct way to set the upload_max_filesize to 10MB with ini_set() ? <4> wblalok: Personally, I shy away from suphp. Have you approached the dedicated host to see if they can accomodate your requirements? <15> stoffus, you can't <17> Davey|Work, then how to do? I can't any php.ini file on my hdd <4> You can't any? <4> I think there's a missing verb there. <7> tml: yes, and they are not wanting to do too much in that particular arena <16> TML: There is. <17> TML, sorry <17> I'm running PHP as a FCGI, with lighty <18> mm if i do an update <4> wblalok: That's unfortunate. Is changing providers an option? Because I'd be surprised to find a host which wouldn't do as I suggested, but *would* run a custom suphp... <18> and don't know the id that was used in the WHERE clause <18> whats the best way to get the id of the effected row? <18> affected* <17> so, where does PHP get it's config from? <4> stoffus: If you don't have a php.ini at all, it uses compiled-in defaults. <17> TML, so I have to recompile it with the proper flags? <7> tml: thanks <4> stoffus: !!! NO !!! <4> :) <4> stoffus: All you have to do is drop a php.ini in the appropriate spot. <17> hehe <17> puh <19> im including a language file in my site that just uses $DATE[january] $TITLE[here] to translate, but dont want to global each lang var in each function.. anyone know a workaround.. making it act like $_SESSION or $_POST?
<17> TML, and how do I know where that 'appropriate spot' is? <20> K\sd $GLOBALS perhaps? :) <4> stoffus: It's at the top of every phpinfo() page, for your convenience <17> Just found it, sorry ;) <4> stoffus: configuration settings are set by a series of cascading rules: compiled in default -> php.ini -> httpd.conf (or appropriate equivalent) -> .htaccess (or appropriate equivalent) -> ini_set <17> thanks <4> stoffus: Note that not all of those rules are available for all configuration settings, as Davey|Work already implied. <13> in 'foreach($array as $something){} will $something still be set after it? <4> php.net/configuration has a link to a table that tells you which levels are valid for which settings. <4> itrebal: Yes <13> TML: wonderfull, thanks <4> itrebal: PHP doesn't have block-scoped variables <13> ok <4> heh <4> "Tired of being called criminals, a group of Swedish filesharers have started a new political party, The Piracy Party (Piratpartiet in Swedish). The party wants to abolish all intellectual property laws, reverse the data retention directive p***ed by the EU last month, and protect privacy with new laws." <21> hi guys <4> I applaud their courage even while mourning their naivety. <13> TML: hehe, thats funny <15> TML; they could have at least called it like, the Digital Freedom party <4> Davey|Work: heh <19> $GLOBALS[TITLE][here] <22> I feel like a lot of colleges in the US have "Pirate Parties" <23> K\sd: Ew. <19> well, i cant do $GLOBALS[here] <19> $GLOBAL even <24> Hi there <21> is it possible to write a not safe mail() function? somebody mailed me saying that the way i wrote it , it was not safe. blablabla <8> $_GLOBALS <23> lost_and_unfound: wrong <8> err.... - s <15> Mosselmaniac, for sure it's possible <21> is the mail() deprecated? :S is there some default error you can make? <19> mail isnt deprecated as far as i know <23> Well... I *was* close o.O <19> i still use it <13> Mosselmaniac: yea, it is very possible to make it secure, but its also very possible to make it insecure <15> Mosselmaniac, you need to check your user input <21> davey, i just hard coded the first parameter, the receiver <15> Mosselmaniac, it's the extra headers that is the problem <15> (mostly) <21> thanks, what could be wrong with it? <21> $headers .= "From: ".$_POST['contact']."<".$_POST['email'].">\n"; <21> $headers = "MIME-Version: 1.0\n"; <8> oh ouch...I was really wront <8> err...wrong <21> $headers .= "Content-type: text/html; charset=iso-8859-1\n"; <21> $headers .= "From: ".$_POST['contact']."<".$_POST['email'].">\n"; <21> that's all <4> Mosselmaniac: That allows a user to set any "From" address they want. <25> Mosselmaniac: you should use \r\n <21> that depends on the server i thought <13> Mosselmaniac: no, its not <4> Mosselmaniac: Additionally, if they craft it carefully enough, they could inject other stuff <21> tml, i do check for a @ <23> Mosselmaniac: Do the *proper* checking <21> but still, the only 'spam' that could be send, will always go to the hard coded receiver, right? <21> it can't be spammed to others <4> Mosselmaniac: $_POST['contact'] = "a@b.com\r\nBcc: anyoneIwant@anywhere.com; youvegotspam@otherhost.com\r\n X-Ignore-Everything:" <23> Mosselmaniac: not quite. <21> oh lol <4> See the problem now? <15> you can set CC and BCC headers <21> yep :) <4> :) <21> so, the fix? :P <25> Mosselmaniac: validating user input <23> Mosselmaniac: preg_match has a pretty good example <21> hmm when you guys create an easy contact form. you do it that way? <23> yes <4> Mosselmaniac: Actually, I'm a bit lazy. I just go get formmail.pl because it's already done all of that for me. <21> hehe :) <21> so i should look at preg_match? <4> If you're a masochist. ;)
Return to
#php or Go to some related
logs:
statically linking python arpwatch how to gentoo libexpat.so.1 #php #web how do I emerge netconfig #perl apachetop cannot connect to fam: Success bad transport type: mime_header_checks= #web
|
|