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

Channels


#php

03 November 2007


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

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

--- Log opened Sat Nov 03 00:00:10 2007
00:00 <****> thanks
00:01 <****> ok
00:01 <****> would 10 be considered a float?
00:02 <****> integers are floats too, sure
00:02 <****> not according to the manual.
00:02 <****> is_float(23) returns false.
00:02 <****> i mean when using is_float
00:02 <****> oO
00:02 <****> is there a channel to run that stuff?
00:02 <****> irc channel
00:02 <****> http://php.net/is_float <-- examples
00:03 <****> oh ok
00:03 <****> i thought there was an irc channel with a php bot in it
00:03 <****> i can do is_float || is_numeric
00:03 <****> wow, I didn't expect that to happen :/
00:04 <****> why ask for a 0.00 pattern if you dont actuall want that?
00:04 <****> why not just ask for a numeric check?
00:04 <****> is_numeric() checks it all.
00:04 <****> oh ok
00:04 <****> cool
00:07 <****> carrierBag: he wrote about checking for something like 0.00 (#.##) and not for float/integer check, whatsoever ... ;)
00:09 <****> if a user is submitting a url from a form, how can i check if the first part is http:// ?
00:09 <****> PHPhil: yeah, but I was pretty sure, he didn't want to only allow numbers with a #.##-pattern, regardless what he wrote :)
00:09 <****> i can't read people minds ;-)
00:09 <****> wanderingii: See http://php.net/parse_url
00:09 <****> PHPhil: I can! xD
00:10 <****> So basically eval() takes a string and basically evaluates it in PHP?
00:10 <****> StevenBao: Yeah
00:10 <****> !+eval
00:10 <****> If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP
00:10 <****> MarkL: ah, cool. Thanks.
00:10 <****> Hahaha.
00:11 <****> I wonder. $str = "eval($str)"; eval($str);
00:11 <****> can anyone confirm that i have the correct syntax for my curl send? specificially the CURLOPT_HTTPHEADER value. it doesnt seem to be sending, and if it is, i'm not quite sure how to fetch it... http://pastebin.ca/759201
00:11 <****> MarkL: so what can I do then?
00:12 <****> tifflor: No idea, there's no reason why changing the value in your php.ini file (the one php -i | grep php.ini returns) isn't having any effect unless the code overrides it somewhere.
00:13 <****> MarkL: that's the same thing I thought, but I don't know what or where to search for it
00:13 <****> MarkL: see the funciton at the very bottom of the url you provided, is it a function to strip a variable and put it together to ensure its a valid url?
00:14 <****> StevenBao: php will throw an error :)
00:14 <****> wanderingii: Looks like it, yeah
00:14 <****> but a quite interesting antempt :D
00:14 <****> *attempt
00:14 <****> Anyone used proc_open() with binary data before?
00:17 <****> hello
00:17 <****> can you add info to 2 different tables at the same time
00:19 <****> one processor can't do two actions at the (very) same time
00:19 <****> so hmm
00:19 <****> how can i do it than?
00:20 <****> mhm, what do you wanna do exactly?
00:20 <****> Maerley: like serial instead of parallel?
00:21 <****> Mar1ey: you could read about transactions (sql)
00:21 <****> http://en.wikipedia.org/wiki/Database_transaction
00:21 <****> Hmm it doesnt seem to work
00:23 <****> hmm
00:24 <****> hi, what's the better for an index.php the content file: include ? include_once ? require or require_once ? any url about the differences between them ? thanks
00:25 <****> hi
00:26 <****> there is some gentoo user here who want to help me?
00:27 <****> macsim: you wanna know about the diffrence of include/require/... ? Well, guess what: rtfm.
00:28 <****> carrierBag, oh what a very intelligent answer ... you're here for idle only ?
00:29 <****> macsim: When the answer is in the manual, so it's reasonable to direct people who ask to the manual.
00:29 <****> Otherwise, we'd spend all our time regurgigating the manual for people who didn't think to look there first.
00:29 <****> mattmcc, I know what does requires & include I look for exemples, blog about it, test etc...
00:30 <****> mattmcc, ok so the logic want you to let the chan empty with a link to www.php.net and stop you waste your bandwith
00:31 <****> No, that doesn't follow.
00:32 <****> Questions that require a judgement, such as what the best approach to solve a problem is, aren't things a language reference can answer.
00:34 <****> mattmcc, if you can't solve a problem the anwser is rtfm or go to #algo or buy a brain I suppose
00:35 <****> No, problem-solving questions are discussed here fairly routinely.
00:36 <****> You can strawman this all you want, but you're just going to continue being wrong.
00:36 <****> mattmcc, anyway I found what I was looking for, explications about the diffences and why use one of them insteed of an other
00:36 <****> Yes, it's discussed in detail in the very top of the manual page for include.
00:36 <****> hey, using pgsql's module in php
00:37 <****> is there a way I can tell if a connection is being reused
00:37 <****> (persistent connections)
00:37 <****> mattmcc, and I lean include_once is loader than include because it made a test include don't do
00:37 <****> macsim: see, you don't need us to figure that out, do you?
00:38 <****> carrierBag, you should know a very good url ? you should know a very good tips
00:38 <****> Kronuz: I doubt it. Why would it matter?
00:38 <****> carrierBag, that's what I was looking here
00:38 <****> I needed it for the prepared statements
00:38 <****> as to not prepare already prepared ones
00:38 <****> macsim: ask google/php.net first next time...
00:39 <****> if it's a new connection then I want to prepare stuff, not otherwise
00:39 <****> "If a second call is made to pg_connect() with the same connection_string as an existing connection, the existing connection will be returned unless you pass PGSQL_CONNECT_FORCE_NEW as connect_type."
00:39 <****> I'll have to try to prepare stuff on every client connection :(
00:39 <****> carrierBag, you mean only why should I ask here ? you think you know something google don't ?
00:39 <****> Kronuz: But a prepared statement is held as a resource, which doesn't persist.
00:39 <****> Kronuz: shouldn't your application/controller know if it already has connected or not?
00:40 <****> PHPhil, yeah, but that doesn't tell me if it was already connected
00:40 <****> carrierBag, well, not among clients in persistent connections
00:40 <****> how would that be done, PHP loses memory as soon as a client disconnects so I can't keep that info
00:40 <****> Kronuz: pg_connection_status?
00:40 <****> macsim: what the heck are you babbeling about?
00:40 <****> (but the connections still persist)
00:40 <****> hmm
00:41 <****> Can anyone recommend some php books for advanced developers ? All the books I have tried so far is for beginners or just too simple
00:41 <****> pg_connection_status doesn't say anything about persistent connections
00:41 <****> Jippi: Such books tend to be specialized.
00:41 <****> I wonder if it only works as I expect witn non-persistent
00:41 <****> mattmcc, anything goes :)


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo