#php
02 October 2007
Total 41 pages. You are browsing page 1/41.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Tue Oct 02 00:00:43 2007
00:03 <****> sdf
00:03 <****> hio
00:03 <****> wenn ich die sekunden von time() /3600 , zählt dann nur die Zahl vorm Komma oder muss ich auf, oder ab runden ?
00:04 <****> can you select * left join on criteria left join on more criteria?
00:04 <****> or, put another way, have 2 left joins in the same query?
00:04 <****>
00:04 <****> If I were to add the mono framework to a LAMP box to run some asp.net, it wouldn't bring the box to its knees would it?
00:06 <****> swimrr: yes, you can
00:06 <****> Naktibalda: can you do the second join on results from the first join?
00:07 <****> select * from table 1 left join table2 on() left join table3 on()
00:07 <****> swimrr: no
00:07 <****> okay, thanks
00:07 <****> you can add more conditions to join or where
00:07 <****> you've saved me hours trying to do it
00:07 <****> Any idea?
00:08 <****> swimrr: don't understood what exactly you want to do
00:09 <****> Naktibalda: thanks....I was probably trying to do it an inefficient way anyway
00:13 <****> any thoughts on what would cause a file uploaded via a form (with the proper enctype) to return an empty array for $_FILES?
00:15 <****> I see there is a way to parse a URL, but how can i go about parsing a URI?
00:15 <****> what is URI ?
00:15 <****> Another name for a URL.
00:15 <****> it's the second half
00:16 <****> Eg. whatever/whatever.html
00:16 <****>
00:16 <****> why do i have to say 'global $foo' just to do a var_dump($foo) inside a function when $foo is global? in python you only need to use the global keyword if you're changing the value. i take it this is just a php issue, or is it somethin in my php.ini?
00:16 <****> flexo: That's the path component.
00:16 <****> yes
00:16 <****> Is there a way to add that qbxml part?
00:16 <****> flexo, okay then... since you define it like that, why not simply parse_url( 'http://'. $URI );
00:16 <****> I want to parse that.
00:17 <****> flexo: It's still part of a URL. URL and URI are effectively synonymous.
00:17 <****> codenin: well, that's how php works, php is not python
00:17 <****> Okay, well, how do I split up the path?
00:18 <****> flexo: You want to subdivide the path component itself? dirname/basename? Or simply explode.
00:18 <****> Xyphoid cause what i need to do is var_dump a global variable based on a variable variable, unfortonuagtely i'd have to call the global keyword on like 20 variables just to make this work
00:18 <****> otherwise i can't wrap it in a function :[
00:19 <****> mattmcc, that basically answered my question...my mind isn't with me today...I just wanted explode.
00:19 <****> is the # anything special in php?
00:19 <****> A comment.
00:20 <****> really, huh
00:20 <****> ty
00:21 <****> Good evening! I am working on a website on my localhost and I want, e.g. include("/include/header.html") to go from the subdomain root I have as opposed to the file system root.
00:21 <****> codenin: you can use $GLOBALS too
00:21 <****> i.e. I want PHP to find the files the same way the browser would.
00:21 <****> You might find $_SERVER['DOCUMENT_ROOT'] useful, then.
00:22 <****> how can i verify a string is a timestamp?
00:22 <****> Fantastic, thank you. I was hoping it would be so simple. :-)
00:23 <****> pclip_: if(date('Y-m-d', $string ) != false ) echo 'timestamp';
00:24 <****> Bang bang, all is well. Thanks, mattmc.
00:24 <****> is smarty any good?
00:25 <****> hi
00:25 <****> lubix, depends what do you want to use it for?
00:25 <****> does post_max_size in php.ini also take into account $_FILES? or is it independant of the uploaded filesize?
00:25 <****> it includes $_FILES
00:25 <****> cyth: my book wants me to use it im wondering whether or not to bother with it right now
00:25 <****> deshymers, ty
00:26 <****> smarty sucks, php works fine as a templating engine by itself,
00:26 <****> hows that?
00:26 <****> ohh, i lie, i need to verify it's a valid datetime from the mysql engine
00:26 <****> cyth: perfect
00:27 <****> this books takes tangents off from teaching useful stuff to just recommending a certain way of doing things
00:28 <****> I have a strange problem, I try to get a movie file into a streaming vid player with this code part: http://phpfi.com/266337, so my stream does work, but when I try to open another link while the streaming is in process it won't work until the streaming has ended, does someone has an idea why or a tip how to fix this?
00:28 <****> cyth: preach on brotha
00:28 <****> aunes: I think that post_max_size has to be bigger than max_upload_size
00:28 <****> Naktibalda, apparently so. Thanks a bunch!
00:28 <****> deshymers, do I need to? I think I said all that needs to be said :p
00:29 <****> selim i'm having the same problem
00:29 <****> cyth: lol, I'll stop when it dies and people stop using it :)
00:29 <****> boddah: so it sound like you don't have a solution for that problem, do you?
00:30 <****> no
00:30 <****> is it better programming practice to have html and php in the same file or keep it seperate?
00:30 <****> lubix: Generally, separating the two makes it easier to manage.
00:30 <****> lubix, neither
00:30 <****> lubix: i think it depends
00:30 <****> it is good practice to separate logic from output
00:30 <****> lubix business logic goes into one file, the html/php template in another (or 3)
00:30 <****> selim if you figure it out, please let me know
00:31 <****> lubix: the whole point of templating is to separate logic from interface
00:31 <****> boddah: I do
00:31 <****> selim the only difference is that i'm forcing a download
00:31 <****> but it's happening the same thing
00:31 <****> anyone here got a treo 700p?
00:31 <****> pretty weird, i've never seen this before
00:31 <****> amen - it's much easier to treat a php file as a program and keep your HTML separately.
00:32 <****> so if i have a user enter input X on an html page and have that submit to php cod can i turn around and render another html with data based on the php that is now a third different file
00:34 <****> for example).
00:35 <****> cyth: can you point me to somewhere that i can learn how to call that second html page
00:35 <****> lubix, php.net/include
00:36 <****> oh! so in the output page you just include the actual html logic?
00:36 <****> just make sure that the data you want to pass in the template is in the same scope as the include
00:36 <****> actual php logic rather
00:37 <****> also, it's starting to become common practice to call php/html templates with a .phtml extension
00:37 <****> cyth is there a good tutorial for this practice?
00:37 * itrebal thinks its a bad idea
00:37 <****> phtml? weird
00:37 <****> cyth: Interesting, from what I recall, that's a very old practice from the PHP3 days which isn't used as much anymore.
00:38 <****> yea, me too :P
00:38 <****> i would prefer .php for php/html templates myself
00:40 <****> so what is the standard? can anyone produce an example of what a simple
Total 41 pages. You are browsing page 1/41.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
