Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

20 October 2007


Total 31 pages. You are browsing page 1/31.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Sat Oct 20 00:00:05 2007
--- Day changed Sat Oct 20 2007
00:00 <****> try iot?
00:00 <****> *it
00:00 <****> does setting session.use_only_cookies have any effect on this?
00:00 <****> If your computer doesn't blow up or melt down then yeah, it was 'safe'
00:01 <****> DigitalCrypto: it shouldn't
00:01 <****> DigitalCrypto: no
00:01 <****> This is really stumping me...
00:01 <****> Everything worked great until we installed Zend...
00:01 <****> Hmm, what is the easiest way to retrieve text that is inbetween HTML tags without using strip_tags?
00:02 <****> preg_match_all?
00:02 <****> preg ftw
00:02 <****> Yeah, that's what I'm using at the moment
00:02 <****> :-)
00:02 <****> but if you want to parse HTML, use DOM
00:02 <****> Pff
00:03 <****> http://htmlparsing.icenine.ca/
00:04 <****> make test gave 4 failed tests
00:08 <****> is strlen() the best command for getting the length of a string? guessing yes, but just makin sure =p
00:08 <****> set_time_limit won't work with sockets
00:08 <****> Is there another way to set the time limit of a socket connection?
00:08 <****> I never mentioned set_time_limit
00:08 <****> RockerMONO: what could be better?
00:09 <****> PovAddict: no idea, jsut wonderin lol
00:09 <****> I recently switched my server from mod_php to suphp and now users are having issues with sessions not lasting as long as they used to and they are getting logged out a couple times a day from their website. Any ideas?
00:10 <****> Is there somethign about sessions and suphp I should know about?
00:10 <****> MACscr: Go ask the suphp people
00:11 <****> Wolfpaws : ok, just thougth the issue would still fall under the general php topic
00:11 <****> Um. No.
00:17 <****> Oh shame shame....I am gonna have to spank the developer.....I turned on register globals for the domain and the script works.
00:17 <****> o_O
00:17 <****> reason to spank!
00:17 <****> I have faith they will correct it.
00:17 <****> :0)
00:17 <****> Spank? That's a reason to anihilate.
00:18 <****> relying on magic_quotes is bad, but relying on register globals... can't even think what that deserves
00:18 <****> I have been guilty of it too
00:19 <****> I don't think it is relying on it....everything else works except for this one form....so it is only a missing variable or typo somewhere I think
00:19 <****> alas it is encrypted so I can't look
00:19 <****> :0(
00:19 <****> is that why you installed zend optimizer?
00:19 <****> yep
00:20 <****> ah HA!
00:20 <****> lolz
00:20 <****> I didnt even need to do preg-match all
00:20 <****> brb
00:20 <****> Just exploded by a div
00:20 <****> :D
00:20 <****> btw, I recently started using mysqli's prepared statements instead of carefully passing input data through mysql_escape_string...
00:20 <****> one of those "I should have done this since the beginning" things
00:21 <****> PovAddict, there are performance implications, and limitations on what queries can run this way
00:21 <****> prepare once, run many times; even faster in those cases
00:21 <****> nope
00:22 <****> you prepare once per request
00:22 <****> unless you run the same query multiple times inside the request, preparing is detrimental to performance
00:22 <****> and then agan, why would you run the same query multiple times in the same request, versus join it all in a single query
00:23 <****> ah 'request' you meant like http request?
00:23 <****> I love prepared statements but I'm afraid they are more useful in persistent "app servers", like some Java apps
00:23 <****> running instance of the script?
00:23 <****> http request indeed
00:23 <****> even with connection pooling, prepped statements won't be pooled
00:24 <****> in MySQL you also lose the cache
00:24 <****> however - in oracle you benifit highly
00:24 <****> could be, not familiar with Oracle
00:25 <****> I've seen something stupid like a 4x speedup just from moving everything over to prepared statements :\
00:25 <****> how about extended inserts
00:25 <****> is it really more performant to do 10x prepped inserts, versus one single extended insert
00:25 <****> you just prepare the insert once, and run it for each set of data
00:26 <****> right but with extended insert you just run one query at all
00:26 <****> which isn't portable across databases...
00:26 <****> what is an extended insert?
00:27 <****> PovAddict: INSERT INTO Table (a,b,c) VALUES (1,2,3), (10,20,30), (40,50,60)...
00:27 <****> PovAddict, inserting multiple VALUE sets in MySQL in a single command
00:27 <****> ah that
00:28 <****> Hey, if i have an empty array, and i do something like this:
00:28 <****>access_levels[$cur_controller]){
00:28 <****> why does it crash?
00:28 <****> whouldn't it just evaluate to false?
00:28 <****> crash?
00:28 <****> It shouldn't crash, it should throw a warning
00:28 <****> HarryR, bottom line, I guess it depends on the db we use.
00:28 <****> no, you need to check first
00:28 <****> Message: Undefined index: Portal
00:29 <****> zaatar, isset() or empty() or array_key_exists()
00:29 <****> zaatar: that's not a crash
00:29 <****> s/crash/give a warning
00:29 <****> eek Xorg used 15 minutes of CPU
00:30 <****> ok, thanks guys
00:32 <****> Thanks for the pointers on the php.ini...
00:32 <****> I was certain that everything was in order on my configs
00:32 <****> DigitalCrypto: that was it?
00:33 <****> Register Globals enabled on the domain allows the variables that ARE set to be passed across apparently
00:33 <****> it works
00:33 <****> I sent an email to the dev explaining "wtf?"
00:33 <****> lol
00:34 <****> I suspect maybe a typo or omission somewhere is all
00:34 <****> <~~guilty too
00:34 <****> :0)
00:36 <****> Hmm


Total 31 pages. You are browsing page 1/31.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo