Re: [PHP] simplexml_load_file()

2007-08-11 Thread Panquekas
But How? I tried an str_replace, and preg_replace and didn't work at all.. can you help me? Thanks in advantage. On 11/08/07, Bastien Koert < [EMAIL PROTECTED]> wrote: > > > switch to an underscore comment_id instead > > bastien > > > > > > > Date: Fri, 1

[PHP] simplexml_load_file()

2007-08-10 Thread Panquekas
Hello, I'm doing an script which it'll "read" the xml values, but I have one problem doing that. On the xml there is a tag that has an hífen in the middle, so when I do "echo $xml->comment-id" it gives me an error. How can I make this work? Thanks in advantage.

Re: [PHP] Session with microtime

2007-04-20 Thread Panquekas
On 20/04/07, Panquekas <[EMAIL PROTECTED]> wrote: On 19/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Thu, April 19, 2007 11:32 am, Panquekas wrote: > > I'm writting a script where I use the function microtime with sessions > > and I > >

Re: [PHP] Session with microtime

2007-04-20 Thread Panquekas
On 19/04/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Thu, April 19, 2007 11:32 am, Panquekas wrote: > I'm writting a script where I use the function microtime with sessions > and I > have a problem. > > This is my code: > > if( $_SESSION['uperm&#

[PHP] Session with microtime

2007-04-19 Thread Panquekas
hello, I'm writting a script where I use the function microtime with sessions and I have a problem. This is my code: if( $_SESSION['uperm'] == '1' ){ $t_start = microtime(1); } () if( $_SESSION['uperm'] == '1' ){ $t_end = microtime(1) - $t_start; $time .= "\n " . 'This page was lo

[PHP] HTML tab

2007-04-12 Thread Panquekas
Hello, I'm trying to indent my HTML, but I have an problem. So, what I have now is: (...) And I want something like: (...) But when I use "\n\t" in a echo comes out something like this: Hi As you can see, the tab has 4 spaces and in the bottom as 8 spaces and I just want

[PHP] Checking password

2007-04-03 Thread Panquekas
Hello, I just want to ask if when I have the magic_quotes_gpc ON and use the preg_quote is there an problem? One doesn't eliminate the other or does? Anyway, I'm trying to insert values to the DataBase in a secure way.. by checking the special chars (with preg_quote), htmlentities is this a good