Re: [PHP] adduser & php

2010-07-15 Thread Gautam Bhatia
gt; > Matt, one problem I see: > > output=exec('/usr/bin/sudo adduser -unencrypted -batch $username hosting > > "$firstname $lastname" $password'); > > > The code won't replace the variables (i.e., variables are not expanded) > because they're contained within single quotes and will be evaluated > literally: > http://php.net/manual/en/language.types.string.php > > That said, as others have pointed out, be very, very careful with this type > of functionality. Even just viewing the code makes me feel like I should > smoke a cigarette to calm my nerves (and I've never been a smoker ;) > > Adam > Regards, Gautam Bhatia mail2gautambha...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-21 Thread Gautam Bhatia
person logs in change it to true , so even if the person is using other browser, you can check the value from dbase, if user is already logged in or not. If that makes sense to you , good luck. regards, Gautam Bhatia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with regex (search/replace) please

2010-02-08 Thread Gautam Bhatia
e full code and pass that to php script via ajax , Other methods are welcome too '); } } } Regards, Gautam Bhatia On Sat, 2010-02-06 at 07:41 -0800, Ryan S wrote: > Hey guys, > > As many of you might know, i totally suck at regex..so would really > appreciate some help here.

[PHP] Merry Xmas and Happy New year

2009-12-28 Thread Gautam Bhatia
Hey Guys, Have a great new year and merry Christmas. Regards, Gautam Bhatia mail2gautambha...@gmail.com

RE: [PHP] 404 page

2009-12-28 Thread Gautam Bhatia
#x27;username'@'%' . good luck. Regards, Gautam Bhatia -Original Message- From: Sudhakar [mailto:sudhakarar...@gmail.com] Sent: Monday, December 28, 2009 11:14 AM To: php-general@lists.php.net Subject: [PHP] 404 page hi 1. i have a .htaccess file in my root directory o

Re: [PHP] PHP and SEO Workarounds

2009-12-20 Thread Gautam Bhatia
hey guys, Thanks a lot everyone for the links and suggestions , I will take a look into mod_rewrite and search engine friendly URL's To make the site more efficient , Regards, Gautam bhatia. mail2gautambha...@gmail.com On Sun, 2009-12-20 at 12:44 +, Ashley She

Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Gautam Bhatia
hello, You can also try using AJAX technology to communicate with the server side code that is your php :). Regards, Gautam Bhatia Punjab,India mail2gautambha...@gmail.com On Fri, 2009-09-18 at 02:16 +0700, saeed ahmed wrote: > hello guys, > > i'm new here in this list.

[PHP] Regarding Accesing mp3 with php

2009-06-25 Thread Gautam Bhatia
hello all, Is there anyway in php by which i can get the total play time of a mp3 , I found some information while doing the google thing using some 3rd party plug ins like getID3 but without any luck, Any help in this case would be helpful. Thank you. Regards, Gautam Bhatia .