IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.23 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-10
Pages: 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
35
36
Next >
[00:01]<2gdsjg>anyone know anything about sockets.use_system_read?
[00:01]<myjrjo7>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)
[00:01]<burxrggjg>richardlynch: ahhh it is registering www.domain.com and domain.com as two seperate sites
[00:02]<dggvxjf7w7>One more question i need a wait function, it doesnt look like i have m_uwait in my version of php
[00:02]<zdzxzzmfdgzx>Buchannon: I think you want to put ".domain.com" into your Cookie parameters... http://php.net/session_set_cookie_parameters The "." in front matters.
[00:02]<zdzxzzmfdgzx>menthol616: http://php.net/usleep
[00:05]<tjwdrggg>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.
[00:05]<burxrggjg>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 ?
[00:06]<2frgcd>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
[00:06]<myjrjo7>blanky, php.net/strpos
[00:06]<2frgcd>diogo86, thanks sir
[00:08]<burxrggjg>richardlynch: is this the line I'm looking for on php.conf? //domain for which cookie is valid, session.cookie_domain = .domain.com ?
[00:08]<rrdrdr>php.ini
[00:09]<zdzxzzmfdgzx>Buchannon: You can change that there, or just call the function in your PHP code...
[00:09]<burxrggjg>richardlynch: ahh - that worked. everything is good now - sorry for all the questions and junk, thanks so much
[00:10]<zdzxzzmfdgzx>Buchannon: TIP: For session/cookie stuff, ALWAYS start off with the browser prompting for each cookie. keep your sanity.
[00:10]<zjddndnsnzynuw>i have a problem with logging out of an HTTP AUTH session: http://pastebin.com/770833
[00:12]<myjrjo7>RommeDeSerieux, do you get any error message or it just does not work?
[00:12]<burxrggjg>richardlynch: so in my index.php file I can have a line that says "$session.cookie_domain = .blabla.com" ??
[00:12]<zjddndnsnzynuw>whenever i log out, my program enters an infinite loop, and keeps asking for login/password
[00:12]<zdzxzzmfdgzx>Buchannon: No, but you can call the session_set_cookie_params function.
[00:12]<zdzxzzmfdgzx>Same thing, different spelling.
[00:12]<myjrjo7>RommeDeSerieux, try if( ... == logout ) first and then the else if comparing the password
[00:14]<ajxgdw0wn>is it possible to set a timeout for the file_get_contents function?
[00:14]<pjffyvr>Yes
[00:14]<pjffyvr>And by "set a timeout for the function" I presume you mean "set a timeout for the http:// wrapper"
[00:14]<zdzxzzmfdgzx>johnm1019: You use ini_set on the fopen timeout setting thingie.
[00:14]<zjddndnsnzynuw>diogo86: no way, still keeps asking
[00:15]<pjffyvr>; Default timeout for socket based streams (seconds)
[00:15]<pjffyvr>default_socket_timeout = 60
[00:15]<ajxgdw0wn>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?
[00:15]<burxrggjg>richardlynch: ah so just call "session.cookie_domain .blabla.com" before session_start()
[00:15]<zdzxzzmfdgzx>Buchannon: Yes.
[00:16]<pjffyvr>Yes, we are.
[00:16]<burxrggjg>richardlynch: sweet, that makes sense I guess for subdomains and such -
[00:16]<wjlllrws>Ricer... Sounds familliar... Pollita: Isn't that a 'bot? A broken bot?
[00:16]<burxrggjg>richardlynch: yay - thanks again /bow
[00:16]<pjffyvr>Wolf: Yes, yes it is.
[00:17]<pjffyvr>Wolfpaws: I'll give *your* bot some slack. but not one who's *** on channels: #fvwm #idlerpg @#init #passkey #botpark #nluug @##init #tfp
[00:18]<wjlllrws>Pollita: My bot is bit less agressive... Still needs a bit of redoing, tho...
[00:21]<2frgcd>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
[00:21]<2frgcd>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
[00:22]<cwyffrw>add brackets
[00:22]<2frgcd>bracketes?
[00:22]<2frgcd>ah okay
[00:22]<2frgcd>i tried that, hold on
[00:22]<cwyffrw>curly braces. whatever
[00:22]<myjrjo7>blanky, try <? if( ... ){ ?> htmlhtmlthml <? } ?>
[00:22]<cwyffrw>yes
[00:22]<cwyffrw>that
[00:22]<2frgcd>yeah I tried that, let me try once again, thanks guys
[00:22]<wjlllrws>ew.
[00:22]<wjlllrws>!+short tags
[00:22]<svjzd2jv>Short tags are <? or <%, and should never be used. They are scheduled for removal from PHP6, and are configuration dependant. Use <?php, period.
[00:23]<myjrjo7>Wolfpaws, he did.
[00:23]<zdzxzzmfdgzx>blanky: http://pastebin.com/770853
[00:23]<2frgcd>heh
[00:23]<wjlllrws>diogo86: But you didn't
[00:23]<2frgcd>richardlynch, will try, thanks
[00:23]<myjrjo7>Wolfpaws, i wil.
[00:24]<2frgcd>thanks, worked
[00:24]<zzzgz>news://teknikev.hopto.org
[00:24]<wjlllrws>!+g7
[00:24]<svjzd2jv>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.
[00:25]<nzya>why is short tags in php if nobody should ever use it?
[00:25]<zdzxzzmfdgzx>eric: It was very handy, until the XML guys stole it. :-)
[00:25]<wjlllrws>thing "portability"
[00:25]<nzya>i grew to love <?= in my template files
[00:25]<wjlllrws>*think
[00:25]<zdzxzzmfdgzx><?= in particular is quite nice.
[00:26]<byre>eric: It won't be soon. PHP 6 will remove it completely.
[00:26]<nzya>yes i know
[00:26]<zdzxzzmfdgzx>I will miss <?= :-(
[00:26]<zdzxzzmfdgzx>I don't care about <? versus <?php, mind you.
[00:26]<cwyffrw>good riddence
[00:26]<nzya>ive learned quite a bit of what not to do from the php mailing list from richard ;)
[00:26]<byre>I won't miss scripts breaking on my system because they use short tags.
[00:27]<zdzxzzmfdgzx>I don't install other people's scripts on my system very much... :-)
[00:28]<zdzxzzmfdgzx>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.
[00:28]<ajxgdw0wn>whats the best way to check if a given instance of php has support for function X or y?
[00:28]<nzya>function_exists ?
[00:28]<zdzxzzmfdgzx>http://php.net/function_exists for most functions.
[00:28]<byre>johnm1019: http://php.net/function_exists
[00:28]<ajxgdw0wn>sounds good
[00:28]<ajxgdw0wn>thanks
[00:28]<byre>jeebus my head hurts. :\
[00:29]<byre>only 30 more minutes.
[00:29]<zdzxzzmfdgzx>32 minutes. :-)
[00:29]<cwyffrw>till what?
[00:29]<zdzxzzmfdgzx>Friday, 5 pm. :-)
[00:29]<byre>Eh, 27 by my clcok, but I was rounding anyway.
[00:29]<cwyffrw>ah, i have several more hours
[00:29]<cwyffrw>sad day
[00:29]<ggmzr>I need.. some help with writing a letter to someone important, anyone have a few minutes :-/
[00:30]<cwyffrw>but that is life when you dont get in to the office until around noon
[00:30]<zdzxzzmfdgzx>Actually, me too... And then I just go to be sound engineer at second job.
[00:30]<cwyffrw>writing a letter to me?
[00:30]<zjddndnsnzynuw>lol
[00:30]<zdzxzzmfdgzx>Ah, yeah. Came in at 1:30 pm today.
[00:30]<ggmzr>hehe nah







