| |
| |
| |
|
Page: 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
Comments:
<0> Davey are you using a seperate cl*** to access PDO? <1> well i did it <2> i want to attach a rubber tube with a needle on one end and the other on my cock then i can cum straight into my veins <1> 535 timezones in a php array! :P <1> i shall call it "php compat for date_default_timezone_set" <1> on an amd 64 3500+ recursing the array times in at 0.0077 :P <3> krz: I use an ActiveRecord implementation <3> krz: you know that PDO is just an RDBMS wrapper, right? <0> right now, i cant dont really have any ideas what methods to put in the cl*** thats supposed to extend PDO <0> Davey yea <4> how do I put php into "safe mode" my server suggests it and the docs tell a lot about safe mode...except how to enable it <1> your server suggests it? you had a conversation with it? <4> ya, dont you talk to your server? <1> you must be insane if you're asking how to turn on safe mode, so it's not surprising <1> :p <4> im running a XAMPP server
<1> no, i dont talk to my server <1> but thats besides the point <1> so do you host for other people then or what? <4> well im setting up a webpage for my clan <1> so is this xampp on a dedicated machine? <4> ya <1> hmm <1> you manage it completely? :\ <4> ive just spent the last few hours setting it up <1> alright well <1> if you're going to write the php, there's no need for safe mode <1> if someone else is going to use the server, safe mode is still a bad idea because it doesnt really work all that well <1> i've had good experiences with suphp with apache <4> so if i leave it as is it should be fine? <1> well like i said, if you're worried about a problem with exploits from other people, look into something dont leave it as is, but if you're the only one messing about on it, then i don't think safe mode is required <4> ya its only me on the server, im just worried about vulnerabilities from outside <1> safe mode doesnt have much to do with protecting you from things from the outside <4> ah ok <1> unless a script has some form input vulnerabilites, then some damage can occur, but in most circumstances, what's affected is SQL data, which, safe mode doesnt do anything about <4> alright then <4> thanks for the info <1> no problemo <5> Nice quote in the topic. <1> lol <1> i'm inclined to agree <5> Well let me know when the jury's back in. <5> Seems quiet now. <6> That's easy. Code always does exactly what you told it to do. <1> i've had moments where i think 'what the hell was i on when i did this?' <5> TML, I seem to remember somebody in here arguing the deterministic nature of code. <5> Which was a huge ***ault on my worldview, of course. <7> i need help with the send_headers, send_header & the flush callback pointer into the sapi_module_struct <5> cdqs, not familiar with that. <5> cdqs, what's the problem? <7> i need to identify what i need with my sapi, i don't really understand the differences between flush, header_handler, send_header and send_headers <5> Sounds over my head. Are you writing a compiled PHP extension or something? <7> i think send_header should be use when PHP sent one header, and send_headers should be exec when PHP wants to send all headers <7> i am writing a PHP SAPI module <5> Connecting PHP to another webserver? <7> yes <5> Ah, alright. I bet the source code for the other SAPIs is available, and hopefully can be used as an example. <5> Apache's would be fairly straightforward, hopefully. <5> Out of curiosity, which webserver? <7> mine <5> Ah, heh <8> cdqs: Open source? <7> tws, not atm <5> I'd suggest looking at the Apache source and the source of the PHP/Apache module. <7> I have study all sapi module, but it's little difficult to understand what the way you need to choice ... <7> i have a good knowlegde with the Apache module development, but there is some part.... little nightmare :P <5> cdqs, if you wait long enough in here, some of the more core members might be able to help. <5> But most of them are asleep or gone now. <7> ohhh it would be good <7> okay no problems. Moreover i am doing a SAPI documentation <5> That'll be useful for the next cdqs who comes through. :P <7> yes sure <7> X13, i am also a php commiter i am working in the GTK team but i have to finish another branch of PHP that'll allow you to make Visual application like GTK but with all GUI engine available like GTK, WGUI, Cocoa, OpenGL & Directx... <7> but i don't have the Zeev knowledge in PHP :P <5> lol <5> cdqs, I bet that mailing list is the next best place to look. <5> Kudos for contributing though. I wish I were at that level.
<7> yess sure but the problem is that the subscribe doesn't seen work :/ <7> php-dev <7> i was subscribed to this list but now i get many problem :/ <9> you can also subscribe by sending an e-mail to either subscribe-internals@php.net or internals-subscribe@php.net <9> I can never remember which <7> what is it ? <9> the way you subscribe when the form on php.net doesn't work <9> to php-dev <7> ok i am trying it <9> Alot of the php-dev developers hang out on efnet too <9> #php.pecl <7> thank you <10> I'm using the date function my problem is my server is in California and where I access it from is Central Time how can I have that changed? <9> be forwarned it's a quiet channel most of the time, so it might take a bit to get a response <8> BlueIce: Which version of PHP? <9> I'd help you here but I don't know much about the sapi side of things. I prefer playing in the OO stuff :P <10> PHP 4.4.0 <8> BlueIce: Okay. One way to work around the issues is to store the timestamp in GMT and when you're to show it, either add or substract it with the time difference between your viewing timezone and GMT. Gosh, hope you understand my English. <10> ya <10> thats that I was thinking <11> http://fantasysportscrew.com/phpBB/index.php <--- ?! since when does phpbb use _vti_cnf? <5> Isn't that Frontpage extension BS? <11> thats what i thought <6> cdqs: header_handler allows PHP to modify the headers that are already queued up. send_headers is what sends the sapi_header_struct to the HTTP server, basically saying "I'm done now". flush lets PHP explicitly request that the server flush its output buffer(s). <5> And there you have it. <6> cdqs: An example of what header_handler is used for is the php.ini parameters "default_mimetype" and "default_charset". <6> Which lets PHP change the mime-type from "x-httpd-php" (which is what Apache considers the mimetype of PHP files) to "text/html". <6> And to set a default charset <7> can you wait a min i am phoning <7> :P <7> you are interessing <8> cdqs: TML's the man. <6> As for send_header, I've never seen it in use. The only SAPI of any consequence that I can see making use of it is the servelet. <6> Which is so far outside my area of interest that you can't even see it from where I'm sitting. <6> But if I were to take a wild guess, it looks like it might be used for SAPIs that don't have a struct for storing headers. <6> Anyways, my Amitriptyline just kicked in, so best of luck <6> I'm not sure why the world needs another HTTPD, but *shrug* <6> Hmm...lines 194 and 195 of mod_php4.c seem to be a dead branch. <12> how can i ***ign a variable with another variable's value? i.e $b_$i = "foobar": <6> Nope, nevermind. :) <6> likewhoa: Use an array there: $b[$i] <12> rgr <13> how do I get rid of all undisplayable chars from some html output? it's not strip_tags or htmlspecialchars <13> i want to get rid of chars like <13> lol that wouldnt type <13> but chars that look like a hollow square <12> TML: how does that work with foreach (array('1','2','3','4') as $i) : $b[$i] = "foobar"; endforeach; outputs Array 4 times.. <8> TML: Amitriptyline, antidepressant drug? <13> take your time, i'll be eating, when i get back i want an answer! <6> likewhoa: That code shouldn't output anything at all. You only did ***ignment. <12> TML: no after i do echo for it.. <6> likewhoa: You can't echo an array. <6> It'll just echo the string "Array" <12> TML: no i was echoing the variable $b1 is any.. <6> likewhoa: You need to echo $b[1] <12> i need [1] to be a variable in the foreach <12> TML: since it's 4 arrays.. so i'm trying to ***ign variables $b1 through $b4 <6> likewhoa: "foreach (array('1','2','3','4') as $i) : $b[$i] = "foobar"; endforeach;" creates one array, $b. It has 4 indexes, '1', through '4', each contains the string 'foobar'. <6> It's not 4 arrays, it's one <12> foobar is only an example it's actually gonna be different values for each variable.. <6> likewhoa: Maybe if you actually explained to us what you're trying to do, we could be of more help. As things currently stand, you're not making very much sense. <7> okay i am later TML sorry my friend talk too much ;) <14> re <12> TML: ok let me explain in detail <12> TML: i'm doing a foreach (array'1','2','3','4') as $i) : <insert into tlbname....> blah and i want to make 4 variables that contain the output of mysql_insert_id(); <15> wb lig <14> hey Jymmm <6> likewhoa: foreach(array(1,2,3,4) as $i) { $result[$i] = do_your_insert_and_get_id(); } <14> How's life going Jymmm? <15> lig: could be better =) <6> likewhoa: or: foreach(range(1,4) as $i), which is a bit easier to read <12> TML: that doesn't work.. it outputs Array four times.. and thanks forgot about range..
Return to
#php or Go to some related
logs:
#kde your session has been saved ubuntu #php #perl #web fglrx tv-out 2-monitors element isn't support+ajax dccallow irssi flaucinaucihilipilification, definition #fedora
|
|