Re: [PHP] DB access and sessions

2005-08-17 Thread Tyler Kiley
Since you can't be sure to be notified when a user stops editing a page, whatever solution you choose will probably involve some sort of timeout-based system. (e.g. when someone starts editing a page, set a "last_opened" time field on the resources, and when someone else tries to edit the same pag

Re: [PHP] Restarting windows from php

2005-08-10 Thread Tyler Kiley
> I never used this kind of functions before. What's wrong? In IIS for > "Execute Permissions" I have "Scripts and Executables". What > permissions should I set for the Internet Guest Account? Or something > else caused the problem, not the permissions? Please help me.:) On windows, php uses cmd.e

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Tyler Kiley
function named_print($var_name) { return "echo 'the variable named $var_name is set to ' . \$var_name;" } eval(named_print($foo)); ;-) Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: jpgs into database

2005-07-18 Thread Tyler Kiley
I've always liked storing all data in the DB to keep things simple, so I stored images in the DB and then cache them on the filesystem when they're first requested. Granted, it's pretty inefficient with disk space, but if you have a good ORM db lib and caching lib, it's extremely convenient. -- P

Re: [PHP] Missing or wrong reply-to headers in this mailing list

2005-07-18 Thread Tyler Kiley
On 7/12/05, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > Probably just means the lists aren't very technical. That comment amused me greatly, because the only other mailinglist I'm on is the Ruby on Rails list, and that one does reply-to munging. What that says about the respective userbases of PH