#php
13 October 2007
Total 32 pages. You are browsing page 1/32.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sat Oct 13 00:00:02 2007
--- Day changed Sat Oct 13 2007
00:00 <****> i LOVE itunes for their podcasts management
00:00 <****> I could be happy with a cellphone with almost no features
00:00 <****> and i only use my ipod for that anyway
00:00 <****> if free minutes
00:00 <****> Im a basic kinda guy
00:00 <****> o btw, openmoko, some of you might find it interesting if you don't know it already ;)
00:00 <****> and no, not you jony
00:01 <****> im more of a sandisk type of guy :p
00:01 <****> does php have the ability to execute commands on the host machine?
00:02 <****> on linux ye
00:02 <****> on windows, not sure
00:02 <****>?
00:02 <****> thats fine then, i want to setup one of my php servers to execute iptables commands
00:02 <****> PaulB_: depends entirely upon the queries
00:03 <****> nite
00:03 <****> if you add 10000 records to a heavily indexed table...then yes :D
00:03 <****> ok i'm just doing some calculations
00:03 <****> not adding any ifno
00:03 <****> info
00:03 <****> PaulB_: make sure you index your database well
00:03 <****> its a huge performance booster
00:03 <****> each queries is calling about 20 rows or so
00:03 <****> ok
00:03 <****> how ofteN
00:04 <****> and can i cron that?
00:04 <****> how do I make a join of two tables and display a count of the records in one of the two, for example, I have the tables "articles" and "comments", I want to display the number of comments and the comments records for a certain article. Can anyone help me?
00:04 <****> you just have to indicate which fields to index
00:04 <****> no need to cron it
00:04 <****> index everything you put in the "WHERE" clause
00:05 <****> PaulB_: exceptions are usually text related, though mysql (and some others) support special text searching indexes
00:05 <****> if the query is comon
00:05 <****> k
00:05 <****> i stand corrected ;)
00:05 <****> http://www.cnn.com/2007/US/10/11/youth.violence/index.html
00:09 <****> qwe.
00:11 <****> ipod is pretty darn good
00:11 <****> but i held off buying cause of the new Sandisk View coming
00:12 <****> ok gents
00:12 <****> is the manual the best tutorial for a programming beginner?
00:12 <****> no
00:12 <****> IM like bash only guy sofar
00:12 <****> but its a hell of a tool
00:12 <****> Id liek to get into some webby stuff
00:12 <****> you will always need the manual, but its not a good place to learn the basics
00:12 <****> look for some hello world examples and such
00:13 <****> html :)
00:15 <****> I has 12 books and always looking for more. I think a good programmer has plenty of FM's around and knows when to RTFM
00:16 <****> there goes the hub lol
00:18 <****> oh, a split..
00:18 <****> what function was it that could cut down the length of a string?
00:19 <****> hm
00:23 <****> element?
00:24 <****> it doesn't like it.
00:24 <****> its got xmlns and everything
00:26 <****> is there an equivalent to disticnt for a php array?
00:31 <****> PaulB: array_unique
00:37 <****> oh ok
00:37 <****> thanks caffinated
00:39 <****> most porn sites are php
00:39 <****> so it must work well
00:39 <****> I mean
00:39 <****> what is more batle tested than a porn site?
00:40 <****> google to find porn sites
00:40 <****> How much do you guys use exceptions?
00:41 <****> i like shemales
00:41 <****> as much as it's great to have specific exceptions and know exactly what's going on ... sometimes you just dont want to bother with try/catch
00:41 <****> method() ) ...
00:41 <****> lepine: I don't use exceptions for web-based scripts
00:41 <****> what are your preferences?
00:42 <****> it's not like a nuclear central would explode if you don't catch an exception
00:42 <****> but it could help to debug in case of problems
00:43 <****> What's the function that strips html tags?
00:44 <****> Cahaan indeed ... there's no explosion ... but it's not fun to have the exception prompted to a user ...
00:44 <****> is there a way to have certain exceptions that are ignored?
00:44 <****> question: true or TRUE?
00:44 <****> or can you return exceptions?
00:44 <****> erflynn: doesnt matter
00:44 <****> dunno... I only use exception in C++ and Java
00:44 <****> i know but which is preferable?
00:45 <****> it doesnt matter
00:45 <****> i use caps because its clearer for me
00:45 <****> (visually)
00:45 <****> TRUE looks more like C
00:45 <****> true looks more like Java/C++
00:45 <****> or javascript
00:45 <****> true
00:45 <****> Cahaan: js accepts both capped and not
00:45 <****> okay
00:48 <****> Is there a reason for header("Location to send 302 instead of 303/
00:51 <****> hey
00:51 <****> time to code
00:51 <****> ;)
00:51 <****> garotosopa: read the rfc specs
00:51 <****> erflynn, this http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html ?
00:52 <****> garotosopa: rfc2616. also you can override the response code in php
00:52 <****> guys how do i find the difference between two datetime objects?
00:52 <****> erflynn, yes I do that. I was just thinking why 303 over others 3xx codes
00:53 <****> I would like to have a class with three (already existing) sub-class in order to pass this class as argument for a function and be able to access all that three classes by using only one function argument. This because the classes will be more than three soon, and i can't pass 20 arguments to a function if i'll have 20 classes. Any suggest?
Total 32 pages. You are browsing page 1/32.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
