Re: [PHP] Unexcepted $this

2008-03-13 Thread Anup Shukla
Murat BEŞER wrote: So what do you thing about on this thing ? I really would like to figure out the problem. However, my simple script to mimic your code did not throw any errors. If you could provide some more details, maybe we can figure out the problem. -- Regards, Anup Shukla -- PHP

Re: [PHP] Unexcepted $this

2008-03-09 Thread Anup Shukla
I am sorry. Please disregard my previous post. I think i am wrong on that. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unexcepted $this

2008-03-09 Thread Anup Shukla
Murat BEŞER wrote: Thank you Anup, But why I getting this error ? is this a bug ? Its not a bug. It has to do with operator precindence and associativity. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unexcepted $this

2008-03-09 Thread Anup Shukla
your code ... } $images[] = array('name'=>$file); } } } return $images; } -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Where is FAM ?

2008-01-31 Thread Anup Shukla
? -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] potentially __sleep() bug

2008-01-30 Thread Anup Shukla
string(2) "a2" ["a3"]=> NULL } = and == a3 = 'a3'; } public function __sleep() { echo __FUNCTION__ . PHP_EOL; return array('a1', 'a2', 'a3'); } } var_du

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Anup Shukla
ect? new essentially invokes __construct() and passes along its return value, near as i can tell. Christoph, if you dont want to write a function in the global namespace, as suggested in the article, Eric posted, just add a simple factory method in your class, eg. doSomething(); ?> -nathan

Re: [PHP] avoid server folder reading

2008-01-20 Thread Anup Shukla
in an index.php file: If it's index.html, you could use the following: <!-- location.href = '/'; --> Try the PHP version first. Will that not result in an infinite redirection loop? Or am i missing something very obvious ! -- Regards, Anup Shukla -- PHP

Re: [PHP] Any way to use header() or another function to force user to "top level"

2008-01-12 Thread Anup Shukla
Chuck wrote: That is exactly what I am using now but the location I am redirecting to is loading within the tags and at the top level of the browser. Are you using AJAX to load the page? -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] session_start problems with FireFox on Mac

2008-01-12 Thread Anup Shukla
idn't replicate. It took me a long time to figure out that was the problem. What a killer! You may use ob_clean() just before the header() to get rid of the extra whitespaces. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find .php3 files

2008-01-09 Thread Anup Shukla
t have to involve Apache, just the file systems. The admin.php3 seems to be 2 levels above the current dir. What about print realpath("../admin/admin.php3") in the same script? -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ereg help!

2008-01-09 Thread Anup Shukla
ke xyz.php.txt . (otherwise I'd just use a straight str_replace). Thanks Guess i was just trying to over think it. Have not done much with files. Steve $out = basename($file, ".html") . ".com"; fairly limited i think, but simple. -- Regards, Anup Shukla -- PHP

Re: [PHP] is_executable() ???

2008-01-07 Thread Anup Shukla
, using is_uploaded_file() and move_uploaded_file() functions is recommended while dealing with uploaded content. I'm on a NIX with Apache, etc. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php