| |
| |
| |
|
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
Comments:
<0> anyone know anything about sockets.use_system_read? <1> Buchannon, usually the session cookie expires at the end of the session. you might change setting a new expiration time. beyond this sessions are supposed to expire at the sever in 30 minutes (although I guess it doesn't happen at all) <2> richardlynch: ahhh it is registering www.domain.com and domain.com as two seperate sites <3> One more question i need a wait function, it doesnt look like i have m_uwait in my version of php <4> Buchannon: I think you want to put ".domain.com" into your Cookie parameters... http://php.net/session_set_cookie_parameters The "." in front matters. <4> menthol616: http://php.net/usleep <2> richardlynch: I dont have any cookie parameters even set yet - it was doing it automatically - is that an option I'd change in my php configuration ? <5> richardlynch: Yup, did that. I added a memory_get_usage() right before and after the call to xml_parse(). That's how I finally figured this out. <6> hey guys in PHP how do you see if a string is within a string, for example, if I have "blah bob joe truck", and I want to know if that string includes "bob", how would I do that <1> blanky, php.net/strpos <6> diogo86, thanks sir <2> richardlynch: is this the line I'm looking for on php.conf? //domain for which cookie is valid, session.cookie_domain = .domain.com ? <7> php.ini <4> Buchannon: You can change that there, or just call the function in your PHP code... <2> richardlynch: ahh - that worked. everything is good now - sorry for all the questions and junk, thanks so much <4> Buchannon: TIP: For session/cookie stuff, ALWAYS start off with the browser prompting for each cookie. keep your sanity.
<8> i have a problem with logging out of an HTTP AUTH session: http://pastebin.com/770833 <1> RommeDeSerieux, do you get any error message or it just does not work? <2> richardlynch: so in my index.php file I can have a line that says "$session.cookie_domain = .blabla.com" ?? <8> whenever i log out, my program enters an infinite loop, and keeps asking for login/p***word <4> Buchannon: No, but you can call the session_set_cookie_params function. <4> Same thing, different spelling. <1> RommeDeSerieux, try if( ... == logout ) first and then the else if comparing the p***word <9> is it possible to set a timeout for the file_get_contents function? <10> Yes <10> And by "set a timeout for the function" I presume you mean "set a timeout for the http:// wrapper" <4> johnm1019: You use ini_set on the fopen timeout setting thingie. <8> diogo86: no way, still keeps asking <10> ; Default timeout for socket based streams (seconds) <10> default_socket_timeout = 60 <9> Pollita, yes -- how do i do that? the php.net/file_get_contents isn't revealing much -- and are you and richard talking about the same thing? <2> richardlynch: ah so just call "session.cookie_domain .blabla.com" before session_start() <4> Buchannon: Yes. <10> Yes, we are. <2> richardlynch: sweet, that makes sense I guess for subdomains and such - <11> Ricer... Sounds familliar... Pollita: Isn't that a 'bot? A broken bot? <2> richardlynch: yay - thanks again /bow <10> Wolf: Yes, yes it is. <10> Wolfpaws: I'll give *your* bot some slack. but not one who's *** on channels: #fvwm #idlerpg @#init #p***key #botpark #nluug @##init #tfp <11> Pollita: My bot is bit less agressive... Still needs a bit of redoing, tho... <6> hey guys im in a bit of a problem here, and I don't do much php so even though this might be a really simple problem, I don't know what to do. The thing is I have html code which I want to output only if a certain condition is met, so this is what I have (two lines long) http://pastebin.com/770850 <6> but it doesn't seem to work, because since the html isn't within the conditional statement (is it?), it always evaluates/executes the html <12> add brackets <6> bracketes? <6> ah okay <6> i tried that, hold on <12> curly braces. whatever <1> blanky, try <? if( ... ){ ?> htmlhtmlthml <? } ?> <12> yes <12> that <6> yeah I tried that, let me try once again, thanks guys <11> ew. <11> !+short tags <13> Short tags are <? or <%, and should never be used. They are scheduled for removal from PHP6, and are configuration dependant. Use <?php, period. <1> Wolfpaws, he did. <4> blanky: http://pastebin.com/770853 <6> heh <11> diogo86: But you didn't <6> richardlynch, will try, thanks <1> Wolfpaws, i wil. <6> thanks, worked <14> news://teknikev.hopto.org <11> !+g7 <13> Guideline #7) No spam, bots, scripts, trolls, job postings (no job posting / asking for jobs on ##php. You might want to check out: ##php.jobs http://www.geekfinder.com, http://www.monster.com, http://www.rentacoder.com or http://www.getacoder.com, or php.net/links, "Developers and Job Opportunities"), advertisements or onjoin/away/back messages. <15> why is short tags in php if nobody should ever use it? <4> eric: It was very handy, until the XML guys stole it. :-) <11> thing "portability" <15> i grew to love <?= in my template files <11> *think <4> <?= in particular is quite nice. <16> eric: It won't be soon. PHP 6 will remove it completely. <15> yes i know <4> I will miss <?= :-( <4> I don't care about <? versus <?php, mind you. <12> good riddence <15> ive learned quite a bit of what not to do from the php mailing list from richard ;) <16> I won't miss scripts breaking on my system because they use short tags.
<4> I don't install other people's scripts on my system very much... :-) <4> And if they need something innocuous changed, I've got .htaccess for that. But if they can't run with E_NOTICE on, it's bad script, so won't use it. Different strokes for different folks. <9> whats the best way to check if a given instance of php has support for function X or y? <15> function_exists ? <4> http://php.net/function_exists for most functions. <16> johnm1019: http://php.net/function_exists <9> sounds good <9> thanks <16> jeebus my head hurts. :\ <16> only 30 more minutes. <4> 32 minutes. :-) <12> till what? <4> Friday, 5 pm. :-) <16> Eh, 27 by my clcok, but I was rounding anyway. <12> ah, i have several more hours <12> sad day <17> I need.. some help with writing a letter to someone important, anyone have a few minutes :-/ <12> but that is life when you dont get in to the office until around noon <4> Actually, me too... And then I just go to be sound engineer at second job. <12> writing a letter to me? <8> lol <4> Ah, yeah. Came in at 1:30 pm today. <17> hehe nah <12> got here at noon, watched some world cup matches on my computer for a while <17> but seriously, if anyone has a few minutes I just need some help with a few words <18> sound engineering? <12> will leave as soon as im last man standing, which on fridays shouldnt take too long <1> endra, i'd help you if at least I knew english =P <12> endra: how long is your letter? <17> like 1 page but I just need to get some words right <17> its to an amb***ador, quite important <12> which words do you need help with? <17> the ones that I dont remember <4> L1nX: Yes. http://uncommonground.com is my second day job... :-) <12> hehe well clearly, how about...what are you trying to convey that you can't find the words for <4> endra:Chillax: How about just pastebin-ing it?... <18> what equip. do u have there? <9> is there any other way to force a timeout of the file_get_contents -- this needs to work on servers (which includes ours) that have ini_set disabled <12> maybe some thesaurus work is in order endra <9> otherwise i could just ini_set the fopen wrappers <17> "[I have been cooperative], but one can [only be so cooperative]" <4> L1nX: http://uncommonground.com/sound.htm -- The monitors and the Rane amp have been replaced with Yorkville, and we swapped the two amps FOH/monitor 2 weeks ago. Still need to update that page. <17> I just need the 'I can be cooperative to an extent" <17> type of sentence :-/ <4> We use PHP in the sound booth, so we're on-topic :-) <11> L1nX: Care to speak english? <4> endra: Just stop at cooperative. It doesn't imply complete and total submission. :-) <17> but repeating aint good is it <11> nope <19> is there a function to split lines of text entered in a textarea into an array? <18> Wolfpaws: may bad... sorry.. I am used to typing AOL speak :P <11> L1nX: not here. <10> L1nX: Nothing to be proud of. <12> aol...the downfall of our youth <12> s/youth/language <16> FearMoth: nl2br() might be what you need... http://php.net/nl2br <4> Text messaging didn't exactly help... :-) <16> er wait <18> yes... well its because of Counter-Strike and Texting <16> into an array... then it would be exlpode() :P <12> i text in proper english (save the capitalization and punctuation) <19> BigE: is textbox newlines in the form of \n or \r\n ? <4> I don't even know how to make my blackberry send or receive text -- don't even know what the email? phone? would be to send one to me. <16> FearMoth: Depends on the users OS :) <16> Could be \r \rn or \n <4> FearMoth: It is dependent on the user OS: $input = str_replace("\r\n", "\n", $input); $input = str_replace("\r", "\n", $input); //now it's Unix \n only. <11> !+nl <13> Newlines are hidden (not normally visible) control characters that distinguish the end-of-a-line of text and are different for each platform as follows: [Windows = \r\n] [*nix & OSX = \n] [Cl***ic Mac = \r] And can be seen as: [LF (linefeed) = \n, 10d, 0x0A, 0001010b] [CR (carriage return) = \r, 13d, 0x0D, 0001101b] <16> Er, cut that down to one line... str_replace() takes arrays. <4> Oh yeah. I keep forgetting they added that... :-) <16> $input = str_replace(array("\r\n", "\r"), "\n", $input); <4> But the order is important. Is it documented to do it in a specific cascadding order?... <19> thank you
Return to
#php or Go to some related
logs:
tightvnc connection refused 111 #perl #perl #perl #debian mod_python apr_table_compress #physics #ai what is url_fopen sqlyog import csv problem collation
|
|