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

Channels


#php

12 October 2007


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

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

--- Log opened Fri Oct 12 00:00:10 2007
00:01 <****> hey, erm
00:01 <****> does anyone think they can help me
00:01 <****> here's the situation: http://pastebin.ca/733570
00:02 <****> how do I get the page name? wasn't it something like phpself()?
00:02 <****> TheShadow: phpself is a dangerous thing to use, and can be injected
00:02 <****> tag, but output differently when navigated to?
00:03 <****> itrebal: fair enough. What would be a good suggestion?
00:03 <****> TheShadow: try __FILE__
00:03 <****> itrebal: ah yes, thanks :)
00:05 <****> gausie: I think you could check HTTP_REFERER
00:05 <****> gausie, not really
00:06 <****> does anyone know what this error means? QLSTATE[HY000]: General error: 20019 Attempt to initiate a new SQL Server operation with results pending. [20019] (severity 7)
00:06 <****> Using PDO and sybase driver
00:06 <****> happens when executing this query: EXEC sp_columns @table_name = pbcatedt
00:06 <****> jwage: I think that is a sybase error, ask in sybase channel :)
00:06 <****> thanks
00:06 <****> i have a DateTime object in $time. how can i get the difference in seconds between then and now?
00:06 <****> hmmm no sybase channel
00:07 <****> Naktibalda: The error obviously is coming from sybase. What is the sybase channel?
00:07 <****> I don't know :)
00:07 <****> lol k
00:08 <****> #sybase maybe?
00:08 <****> I tried :)
00:08 <****> then it's google heh :D
00:10 <****> don-o
00:10 <****> have you tried fr.php.net/microtime
00:10 <****> example 590
00:11 <****> I realise this is a technical help channel and not a physcological support channel, but I was just wondering how you established coders manage to get past the 'I don't understand and I can't find the answer' barrier. How do you avoid just throwing the towel in?
00:11 <****> anyone know the windows command for the unix command print? I'm trying to write a PHP script and it's causing some probs lol
00:11 <****> windows command?
00:12 <****> Naktibalda correct
00:12 <****> whats is a windows command?
00:13 <****> Naktibalda: lol
00:13 <****> bash: print: command not found
00:13 <****> is there documentation for this DateTime object? it comes from date_parse
00:14 <****> don-o: it isn't standadt object
00:14 <****> whoops i mean date_create
00:14 <****> Naktibalda: how can that be since date_create is standard?
00:14 <****> never heard about it
00:14 <****> Naktibalda: see http://php.net/date_create
00:15 <****> Naktibalda: 'Returns DateTime object on success'
00:15 <****>= 5.1.0)
00:16 <****>;
00:16 <****> whats wrong with this
00:17 <****> vigilant: almost everything
00:17 <****> vigilant, a lot - starting with invalid php syntax
00:18 <****> why Naktibalda :(
00:18 <****> I am reading this tutorial, it might be a little old...
00:19 <****> Can someone flip out a similar code?
00:19 <****> Mh.. i need to pass an object by reference in order to make it works with PHP4 but i have problems with PHP5. I tried to try a "conditional call" (checking the PHP version before call the function w/ or w/o the '&' operator) but i get the same thing. This because PHP is not a compiled language than the interpreter read the call with the '&' operator, even if it'll never be executed. The question is: how
00:19 <****> can i solve the probblem?
00:19 <****> "
00:19 <****> Oh.. sory for my english.
00:20 <****> claudio`, do not use reference by call
00:20 <****> declare it
00:20 <****> subj: do you mean something like function prototype?
00:20 <****> is there a php function which lets you put a certain char after n chars in a string?
00:20 <****> function foo(&$refparam) { ... }
00:20 <****> subj: ah
00:20 <****> subj: this fix the problem?!?!
00:20 <****> subj: really?!
00:20 <****> -.-
00:20 <****> subj: cool! I'll try.
00:20 <****> "bla/bla/bla" for / for example
00:20 <****> subj: THX
00:21 <****> claudio`, yes - reference by call is deprecated
00:21 <****> tomh-: wordwrap ? :)
00:21 <****> ok lemme look that up thanks
00:21 <****> subj: this is a better way to implement "pointers"
00:21 <****> subj: good, i didn't know this.
00:21 * claudio` is enjoy now ;)
00:21 <****> Well, references aren't pointers.
00:21 <****> Hey, err... does anyone have a moment or two to spare with me?
00:21 <****>picurl at the top, then use it twice in the main code below.
00:22 <****>___<
00:22 <****> It might take 7 minutes or so
00:22 <****> but you'd have a friend for life :3
00:22 <****> Do I really have to make a function to set a global?
00:22 <****> (that would be me btw, i'm not selling friends or something...)
00:22 <****> are you are girl? nice girl?
00:23 <****> a girl
00:23 <****> haha, erm..
00:23 <****> hi, I have created a captcha, now when I include the file to get the image I get errors because of headers
00:23 <****> for PHP, i could be...
00:23 <****> hahaha
00:23 <****> Coppershade-org^, i don't unterstand your problem
00:23 <****> nah i'm a guy, trying to make his security forum work
00:23 <****> but i don't know much php =P
00:23 <****> any idea about how to include a file that is containing sessions?
00:24 <****> http://pastebin.ca/raw/733570
00:24 <****> subj, well, after first <? I get the database data into vars, none of which are global - like $row.
00:24 <****> Alloos2, "include the file"?
00:24 <****>picurl string twice below to render the data into tables.
00:24 <****> Coppershade-org^, in your sample $row _is_ a global var
00:25 <****> If anyone's reading that link i posted, i'll wait paitently for you to read it through :D
00:25 <****> subj: yes, I have created captcha, and called the file captcha.php, now I need to show the verification image in different file, and I get error because of headers
00:25 <****>picurl returns an empty string.
00:25 <****> Alloos2, how do you "include" the image file?
00:25 <****> variables are auto-global unless otherwise specified?


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo