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.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-14
Pages: < Prev
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
37
38
39
40
41
42
43
Next >
[01:52]<2gdsjg>+can't php retrieve files from other servers and process them, while building it's page
[01:52]<zdzxzzmfdgzx>+nvicf: It's called short_tags, it's in php.ini, and it's going away permanently in PHP6, so start converting.
[01:52]<nddfdfjvn>+Easy question: Is there a way to obtain in an array the names of all member variables of a given class?
[01:52]<zdzxzzmfdgzx>+bemson: It can, if php.ini has allow_url_fopen on
[01:52]<2gdsjg>+kewl - thanks richardlynch
[01:54]<nddfdfjvn>+I know I could make a member variable array that has the info and return it but I'd rather have it automated...
[01:54]<2gdsjg>+EmilyLove - try get_class_vars
[01:54]<2gdsjg>+and then when you look that up on php.net (tongue-in-cheek), check out the other class/object methods
[01:55]<2gdsjg>+;-)
[01:55]<nddfdfjvn>+thanks bemsen! that looks like it!
[01:55]<burxrggjg>-if I want to add on to a variable, it's $var += "bla bla"; right?
[01:56]<zdzxzzmfdgzx>+Buchannon: += does Math. You probably want .=
[01:56]<2gdsjg>+Buchannon - not for text - the "+" operator is for numbers
[01:56]<gvyap>+richardlynch, thanks
[01:56]<2gdsjg>+*sorry rich ;-)
[01:56]<jnnajdnv>-how do i delete a file from the server?
[01:56]<burxrggjg>-ahh that's where it was doing wrong, thanks again =)
[01:56]<zdzxzzmfdgzx>+ozzcomet: http://php.net/unlink
[01:56]<burxrggjg>-I thought += was for everything, is it just php that it's .=?
[01:57]<bfu1>+buchannon, no, different languages use different things
[01:57]<2gdsjg>+I know this ain't the asp forum yall... but *no one* is there - he he... how do i tell asp to open an external url (like with php's fopen)??
[01:57]<zdzxzzmfdgzx>+Buchannon: Errr. In some languages + is used to concatenate strings, and in some of THOSE languages, += is defined, and means the same thing, but, really, there's not any way to make a blanket statement about all languages.
[01:57]<zdzxzzmfdgzx>+bemson: Far as I know, you don't. Switch to PHP. :-)
[01:58]<burxrggjg>-ah - I always thought stuff like that was pretty universal, but I guess not, thanks guys
[01:58]<2gdsjg>+har har.... (sigh)
[01:58]<2gdsjg>+common sense is always uncommon
[01:58]<zdzxzzmfdgzx>+Buchannon: If you want to see how not universal that stuff is, try learning Lisp some day :-)
[01:58]<zdzxzzmfdgzx>+Oooh, or APL, even better.
[01:59]<burxrggjg>-richardlynch: hehe
[01:59]<zdzxzzmfdgzx>+bemson: Common sense is not so common -- Voltaire
[01:59]<zdzxzzmfdgzx>+:-)
[02:00]<2gdsjg>+*see what I mean!?!
[02:00]<2gdsjg>+:-p
[02:00]<pjj>+Anyone in here use APC ? http://pecl.php.net/package/APC ... was thinking about using it as an alternative to Zend. I was looking for some input
[02:01]<wjlllrws>+foo: #pecl on efnet maybe
[02:01]<burxrggjg>-APC = a perfect circle? one of the greatest bands of all time, and that is != opinion
[02:01]<jufyzg|wjzc>+I'm afraid it is.
[02:01]<burxrggjg>-!
[02:01]<jufyzg|wjzc>+Although I like them too.
[02:01]<sgzrjgyud>+bad taste
[02:01]<burxrggjg>-!
[02:02]<jufyzg|wjzc>+Exclamation points!
[02:02]<rexy_drxrcr>-I prefer Tool
[02:02]<burxrggjg>-ugh, I hate tool for some reason, but love APC
[02:02]<rexy_drxrcr>-Why do you hate Tool?
[02:02]<jufyzg|wjzc>+That's weird.
[02:02]<burxrggjg>-I dunno, just dont like them - isn't it like the same singer and everything?
[02:02]<rexy_drxrcr>-Yep
[02:02]<rexy_drxrcr>-APC i like Lite Tool
[02:03]<rexy_drxrcr>-APC is like Lite Tool
[02:03]<pjj>+Wolfpaws: thanks
[02:03]<burxrggjg>-tool is too bitter and angry for me, I know that APC is pretty bitter as well, but it's very different IMO
[02:03]<amnacnz>-hmmm..
[02:03]<pjj>+Haha. I didn't even know APC was a band.
[02:04]<slzjuvwjzcs>-richardlynch: they are not removing short tags from php 6, only asp tags
[02:04]<pjj>+ACTION sees trouble
[02:04]<jufyzg|wjzc>+Random-letter nicks! Oh noes!
[02:04]<pjj>+ACTION tips hat at Julian|Work
[02:04]<burxrggjg>-hm... is it bad for some reason to do while loops in while loops? It's not working for me, but it's probably a type or something
[02:05]<jufyzg|wjzc>+It's not bad.
[02:05]<fzzsndyf>-http://pastebin.com/707575 <-- i have a problem that this if syntax is running every time even thoug $_POST['trackback_url'] is empty....
[02:05]<zdzxzzmfdgzx>+Nested loops of any kind are not inherently "bad"
[02:05]<burxrggjg>-richardlynch: nested, that was the word I couldn't think of... hm ok
[02:06]<zdzxzzmfdgzx>+Buchannon: Pastebin your code. http://pastebin.org
[02:06]<kyddja>+Is it true that PHP doesn't like threads?
[02:06]<rexy_drxrcr>-Yeah
[02:07]<zdzxzzmfdgzx>+larsemil: isset() only checks if the POST data is "there" or not -- it does not test if it's an empty string... Perahps you want if (isset($_POST['talkback_url']) && strlen($_POST['talkback_url'))
[02:07]<kyddja>+I am installing Apache 2.2 for the 634th time, and I am considering switching off the "threads support" flag.
[02:07]<rexy_drxrcr>-Threads used to steal PHP's lunch on primary school
[02:07]<kyddja>+However, PHP (5) seems to be working great on installs with thread support...
[02:07]<kyddja>+I am confused.
[02:07]<fzzsndyf>-richardlynch, so to say. that if i did not write any data in that field, it still exists because created in the form?
[02:07]<zdzxzzmfdgzx>+KimmoA: I believe that there are some EXTENSIONS of PHP which are not thread-safe. Nobody has an exhaustive list, as it's almost impossible to test for thread-safety.
[02:08]<burxrggjg>-richardlynch: here it is http://pastebin.com/707581
[02:08]<kyddja>+richardlynch: So what's the purpose of enabling thread support?
[02:08]<zdzxzzmfdgzx>+larsemil: All TEXT inputs are sent with '' in them. Checkboxes that are not set are not sent. That's just how HTTP works...
[02:08]<burxrggjg>-richardlynch: if I comment out the second while loop, it works fine, but if I leave it, it just prints the first value for the first while, then stops
[02:08]<fzzsndyf>-richardlynch, thx mate
[02:08]<zdzxzzmfdgzx>+KimmoA: I got no idea what it does. Ask #apache
[02:09]<c9sv>+is there a difference between ++$i and $i++ or is it just a coding preference by some people?
[02:09]<burxrggjg>-k4st: I dunno about php, but there definitely is in C#...
[02:09]<gzznvxzdzds>+k4st: it makes a difference when you use the ++ in an expression
[02:10]<gzznvxzdzds>+$x = 1; $y = ++$x // y == 2
[02:10]<gzznvxzdzds>+$x = 1; $y = $x++ // y == 1
[02:10]<zdzxzzmfdgzx>+Buchannon: Your inner loop keeps going until it runs out of rows. it only PRINTS the ones that match up with the column. An easier way to do what you want is about to be pastebinned.
[02:10]<amnacnz>-.
[02:10]<zdzxzzmfdgzx>+Please check the meaning of ++ in PHP versus C -- it's NOT the same at all...
[02:10]<gzznvxzdzds>+k4st: in the first one, the increment is done before the assignment
[02:11]<burxrggjg>-richardlynch: that's all I want the inner while loop to do though...
[02:11]<zxnzvnz>+what does ++ mean in C?
[02:11]<amnacnz>-so wait...are they or aren't they getting rid of short tags in PHP6?
[02:11]<fjggvzjg>-is there any way for php to cache a document in memory between web users so that it doesnt have to access disk each time to pickup the same config file?
[02:12]<amnacnz>-and when exactly are they expecting to come out with 6? Anywhere I can read up on this?
[02:12]<zdzxzzmfdgzx>+Buchannon: So it works?...
[02:12]<zxnzvnz>+lonetron: not really
[02:12]<burxrggjg>-richardlynch: no... that's what I was saying hehe...
[02:12]<zdzxzzmfdgzx>+cdecker: Google for "PHP 6 Roadman"
[02:13]<zdzxzzmfdgzx>+lonetron: There are 3rd-party tools for that, such as Zend Cache and APC and so forth.
[02:13]<amnacnz>-ah...the wonderful google.
[02:13]<burxrggjg>-richardlynch: I dont get what I'm doing wrong in there... but I'll keep looking at it I guess







