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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-26
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
37
38
39
40
41
42
43
44
45
Next >
[00:00]<vnxsvnv>Yarden: yah, looks okay
[00:00]<znmpjpp>tehstev, do you sleep :) ?
[00:00]<znmpjpp>like.. ever?
[00:01]<vnxsvnv>um, its 5pm here
[00:01]<znmpjpp>oh
[00:01]<vnxsvnv>hehe, where are you?
[00:02]<znmpjpp>where's here?
[00:02]<znmpjpp>poland, 22:59
[00:02]<vnxsvnv>i mean i'm in the same timezone as nyc
[00:02]<vnxsvnv>ohhh
[00:02]<vnxsvnv>florida
[00:02]<znmpjpp>my
[00:02]<znmpjpp>nice distance
[00:02]<vnxsvnv>yah, the long distance bill is going to suck
[00:03]<znmpjpp>:F
[00:03]<znmpjpp>suck out all the savings ;]
[00:03]<vnxsvnv>why is it that everyone knows english? is english really that popular?
[00:03]<znmpjpp>yeah, it's universal
[00:03]<znmpjpp>somehow
[00:03]<vnxsvnv>cool, screw unicode then!!
[00:04]<znmpjpp>oh, I would gladly give up all encoding
[00:04]<drfajwd>soon CPUs will speak English too
[00:04]<drfajwd>so coders will become linguists
[00:05]<znmpjpp>whoa, nice
[00:05]<znmpjpp>topic for a book at least
[00:05]<cyffnzslrd>heya
[00:05]<vnxsvnv>actually unicode is really nice, as long as thats all you work with
[00:06]<cyffnzslrd>I've got a problem I can't quite crack....
[00:06]<vnxsvnv>if you start mixing them, ew
[00:06]<afmygmjz>is there a function to get file suffix?
[00:06]<cyffnzslrd>I need to be able to create a multi-tiered menu, and store the structure in mysql
[00:06]<vnxsvnv>killerspam: you have a primary id field?
[00:07]<cyffnzslrd>I can have
[00:07]<cyffnzslrd>what i've got at the moment is an ID, title, parent_id and order
[00:07]<vnxsvnv>have a self-referential foreign key representing the parent... if parent is null, its a top-level menu
[00:07]<cyffnzslrd>and im looping through and executing another SELECT where parent_id = id
[00:08]<vnxsvnv>i would select them all, order by parent_id ASC, order ASC, and then loop through and build an array
[00:08]<cyffnzslrd>this menu needs to go 5 levels deep to
[00:08]<cyffnzslrd>yeah that what im thinking, although im not quite sure of the best approach to building the array
[00:09]<vnxsvnv>killerspam: it doesn't really matter, its going to be complicated no matter what.
[00:11]<vnxsvnv>killerspam probly something like array('title'=>$t, 'href'=>$href, 'id'=>$id, 'children'=array());
[00:11]<vnxsvnv>killerspam: and then just append if parent is null, otherwise search the array for parent and append
[00:16]<cyffnzslrd>ok tehstev ill have a look at that, just munching a slice of pizza
[00:16]<znmpjpp>I oficially give up: it works periodically, I didn't change nothing, and the url that worked befor doesn't work now
[00:17]<vnxsvnv>redloff: try #apache maybe? we all might be missing something, and i don't think there are any apache experts here right now
[00:17]<cyffnzslrd>would be cool to use a recursive function actually
[00:17]<zjzzjswjzdsdrg>anyone know of a good template engine class that supports loops and such?
[00:18]<ffnnffiak>hi, how can i find out if PHP is running without using phpinfo?
[00:18]<ffnnffiak>is there a command using ps?
[00:21]<svjzcc>how can i put something like... "hi 'lol'" (including quotes) into a value="" element?
[00:21]<cyffnzslrd>use backslash
[00:21]<sdyvxw606n>tehstev, killerspam: I don't know if realize exactly what you are trying to accomplish, but wouldn't a serialized RecursiveArrayIterator do the job?
[00:21]<cyffnzslrd>$myvar = "hi \"lol\" ";
[00:21]<svjzcc>nvm got it
[00:21]<svjzcc>killerspam, doesn't work
[00:22]<svjzcc>i need to use htmlentities($str)
[00:22]<svjzcc>which adds like "
[00:22]<cyffnzslrd>fair enough
[00:22]<cyffnzslrd>i dont know what that is smithw6079 :D
[00:22]<sdyvxw606n>or some class extending it
[00:22]<svjzcc>php.net ftw
[00:22]<sdyvxw606n>http://www.php.net/~helly/php/ext/spl/classRecursiveArrayIterator.html
[00:22]<cyffnzslrd>i only have php4 btw
[00:23]<sdyvxw606n>killerspam: Whoops... This is PHP 5 only. Sorry...
[00:23]<cyffnzslrd>ah well, no sweat, thanks for trying
[00:23]<vnxsvnv>Storkk: htmlspecialchars with ENT_QUOTES is usually safer
[00:24]<vnxsvnv>smithw6079: yah it might
[00:24]<cyffnzslrd>if anyone can solve my problem i'll send them $10 via paypal ;)
[00:24]<vnxsvnv>killerspam: lol
[00:24]<vnxsvnv>killerspam: its a simple recursive function
[00:25]<cyffnzslrd>yeah im working through it now :)
[00:25]<cyffnzslrd>i've got it in my head
[00:25]<vnxsvnv>i'll do it for $10 though ;)
[00:25]<vnxsvnv>crap. nm i'm supposed to be working on my site
[00:26]<vnxsvnv>stupid site.....
[00:26]<cyffnzslrd>i've got so much bloody work on at the moment :'(
[00:26]<cyffnzslrd>oh, another question
[00:26]<cyffnzslrd>im going to have articles for each of these 5 depths
[00:26]<cyffnzslrd>which I want to access like .com/solutions/sms/premiumsms/shortcodes/shared
[00:27]<cyffnzslrd>I've got mod_rewrite breaking that up, and I need to point that to a unique ID for a page
[00:28]<cyffnzslrd>atm im using a "path" field, so I can just take the entire query string and SELECT WHERE path = "/solutions/sms/....."
[00:28]<vnxsvnv>damn it, i need to get into freelancing.
[00:28]<cyffnzslrd>I am, lol
[00:29]<cyffnzslrd>but i need to get this project in for tomorrow ideally! 2 days late on contract
[00:29]<vnxsvnv>i know, and no offense, but i rock compared to you :P
[00:29]<vnxsvnv>oh snap
[00:29]<cyffnzslrd>http://clients.stasismedia.com/txtnation/mbill/
[00:29]<cyffnzslrd>click on solutions 3
[00:29]<vnxsvnv>hi!
[00:30]<vnxsvnv>okay
[00:30]<vnxsvnv>beautiful desine
[00:30]<vnxsvnv>design
[00:30]<cyffnzslrd>sarcasm?
[00:30]<cyffnzslrd>:)
[00:31]<vnxsvnv>no, i love the colors
[00:31]<cyffnzslrd>:)
[00:31]<vnxsvnv>yours?
[00:31]<cyffnzslrd>yeah this is the project im doing
[00:31]<cyffnzslrd>actually part 1 of 2 designs







