RE: [PHP] Script to add domain users to local groups on remote machines

2010-06-04 Thread Mayer, Jonathan
-Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: 04 June 2010 15:34 To: Mayer, Jonathan; php-general@lists.php.net Subject: Re: [PHP] Script to add domain users to local groups on remote machines At 11:16 AM +0100 6/4/10, Mayer, Jonathan wrote: >Hello, > >H

[PHP] Script to add domain users to local groups on remote machines

2010-06-04 Thread Mayer, Jonathan
Hello, Has anyone got any ideas how I might add a user to a local group on a remote networked Windows machine via a PHP script? The idea is to make an automated tool where users can request access to a shared folder via our intranet, and after suitable approval the system add them to a group wh

[PHP] COM/DCOM

2010-05-25 Thread Mayer, Jonathan
Hello, I'm trying to write a few scripts to help automate some Windows administration tasks. One of these is to add people to groups on different networked machines. I've written something like the following: TestComputer' , 'Username' => 'TestUser' , 'Password' => 'TestPass'); // lis

RE: [PHP] Problem with date

2009-09-15 Thread Mayer, Jonathan
strtotime would be a neater way of solving the problem... ie (untested): $n = 0; while ($n <= 9) { $date = "d".$n; $$date = date("Y-m-d", strtotime("+ $n days") $n++; } If you are just enquiring about the maths though, I'm not sure! -Original Message- From: Korga

RE: [PHP] Timestamps and strftime

2009-06-03 Thread Mayer, Jonathan
Off the top of my head, would strtotime work? ie strftime("%j",strtotime($row['UpdateDate'])) -Original Message- From: John Comerford [mailto:jo...@optionsystems.com.au] Sent: 04 June 2009 07:10 To: php-general@lists.php.net Subject: [PHP] Timestamps and strftime Hi, I am having a pro

RE: [PHP] More PHP Includes

2009-03-11 Thread Mayer, Jonathan
-Original Message- From: Gary [mailto:gwp...@ptd.net] Sent: 11 March 2009 00:17 To: php-general@lists.php.net Subject: Re: [PHP] More PHP Includes >Jochem > >Thanks for your reply, the project seven and DW was just for a point of >information, same as if you have an issue with a comput

RE: [PHP] Re: PHP includes

2009-03-10 Thread Mayer, Jonathan
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 09 March 2009 19:55 To: Mayer, Jonathan Cc: Gary; php-general@lists.php.net Subject: RE: [PHP] Re: PHP includes On Mon, 2009-03-09 at 15:10 +, Mayer, Jonathan wrote: > >Thank you to everybod

RE: [PHP] Re: PHP includes

2009-03-09 Thread Mayer, Jonathan
>Thank you to everybody that replied...but it almost seems it is making extra >work. >I can understand using an include for a menu, since they tend to change >often and it is on every page, but the normal content I am not understanding >the benefit. If I have a page that has unique content on

RE: [PHP] Downloading file from local network machine

2008-12-08 Thread Mayer, Jonathan
December 2008 20:23 To: Mayer, Jonathan Cc: Wolf; php-general@lists.php.net Subject: RE: [PHP] Downloading file from local network machine On Fri, 2008-12-05 at 17:32 +, Mayer, Jonathan wrote: > Thanks Wolf :) > > Yup, I had considered that, although there could be up to 8 differen

RE: [PHP] Downloading file from local network machine

2008-12-05 Thread Mayer, Jonathan
riginal Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: 05 December 2008 17:29 To: Mayer, Jonathan; php-general@lists.php.net Subject: Re: [PHP] Downloading file from local network machine > I would like to present users to our internal intranet with a link to > download a file from a

[PHP] Downloading file from local network machine

2008-12-05 Thread Mayer, Jonathan
Hiya everyone, I would like to present users to our internal intranet with a link to download a file from a folder on a different machine on our local network (such as \\computername\folder\file) The file may be an HTML file, in which case the page should show in the browser, or a file whi

RE: [PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Mayer, Jonathan
Thanks for your suggestion!! Sounds like a good route to go down with the API access. Really struggling with the pending 'list' at the moment. Suppose I have got 2 tables `product` and `description`. `product` contains `EAN`, `name`, `last_modified` and `description` contains `EAN` and `descript

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Mayer, Jonathan
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 08 July 2008 17:01 To: Eric Butera Cc: Mayer, Jonathan; Bastien Koert; Philip Thompson; PHP-General List Subject: Re: [PHP] Keeping POST values when paging On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: >

RE: [PHP] Keeping POST values when paging

2008-07-08 Thread Mayer, Jonathan
on Cc: PHP-General List Subject: Re: [PHP] Keeping POST values when paging On Tue, Jul 8, 2008 at 9:29 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jul 7, 2008, at 12:46 PM, tedd wrote: > > At 2:51 PM +0100 7/7/08, Mayer, Jonathan wrote: >> >>> Hiya all, >&g

RE: [PHP] Keeping POST values when paging

2008-07-07 Thread Mayer, Jonathan
Thanks Wolf and Eric, I shall experiment with the two options you have suggested. Cheers, Jon. -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: 07 July 2008 14:58 To: Mayer, Jonathan Cc: 'php-general@lists.php.net' Subject: Re: [PHP] Keeping POST values w

[PHP] Keeping POST values when paging

2008-07-07 Thread Mayer, Jonathan
Hiya all, I have coded a PHP site on an intranet which forms a MySQL query based on multiple inputs on a large form. The form results are POSTed back to itself, and query is formed, and the results are returned from the database and echoed. I am looking to set up a basic paging system (back/next,

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Mayer, Jonathan
ECTED] Sent: 05 June 2008 13:26 To: php-general@lists.php.net Subject: Re: [PHP] Dynamic form changes without refresh Mayer, Jonathan wrote: > Using some basic javascript/AJAX, I have set up a link next to each > text box, which calls code that updates the database in the background > wit

[PHP] Dynamic form changes without refresh

2008-06-05 Thread Mayer, Jonathan
Hiya all, I have a PHP page with a form holding a large number of textarea boxes. These text boxes are individually set as enabled or disabled based on a flag held in a MySQL database. I want to be able to dynamically enable or disable a specific box without the page being recalled (potentially