Re: [PHP-WIN] system() call in PHP5 on win2003

2007-07-09 Thread Niel Archer
Hi Sounds like a permission problem. You don't mention which HTTP server you're using, but I know with Apache (and likely so with IIS also) PHP can't run with 'Everyone' permissions as that is not the same as 'Anyone at all'. If memory serves, Everyone is authenticated users + anonymous users +

Re: [PHP-WIN] System integration Step 2

2006-02-16 Thread Martin Alsinet
> But now, does anyone now how to retrieve the username and password that > the user uses to logon to their PC so as to now authenticate for the > application against Active Directory? You got me interested, so I checked it again and there is an apache module that lets you authenticate against AD

RE: [PHP-WIN] System integration Step 2

2006-02-15 Thread Matt Murphy
Well the password will be encrypted I'd think in AD, are you sure you want to retrieve the password, or just authenticate the login? The code I sent should do that just fine, not sure about with the LDAP library you're using. Matt From: [EMAIL PROTECTED] [m

RE: [PHP-WIN] System integration

2006-02-14 Thread Matt Murphy
The easiest way I've found, if you just want to verify their username & password, you can do this: $ds=ldap_connect("ldap://yourdc.yourdomain.com";); // Fix for Windows 2003 AD ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ds, LDAP_OPT_REFERRALS, 0); if ($ds) { [EMAIL PR

Re: [PHP-WIN] System integration

2006-02-14 Thread Martin Alsinet
On 2/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi guys, > > Does anyone know or got an idea of how to access the user accounts of > Active Directory using PHP? You can use adLDAP: http://adldap.sourceforge.net/ ..."adLDAP is a PHP class that provides LDAP authentication with Active Dire

Re: RE: [PHP-WIN] system() on Windows 2003

2005-02-14 Thread Raul IONESCU
February 11, 2005 1:51 AM .To: Jason Beaver; php-windows@lists.php.net .Subject: Re: [PHP-WIN] system() on Windows 2003 . .You shoud type system('cmd /c 'copy /b prnfile lpt4:', $result); .in order to work. ..I have a script that calls: .. system('c

Re: [PHP-WIN] system() on Windows 2003

2005-02-11 Thread Raul IONESCU
You shoud type system('cmd /c 'copy /b prnfile lpt4:', $result); in order to work. .I have a script that calls: . system('copy /b prnfile lpt4:', $result); .or: . system('type prnfile > lpt4', $result); .the result is '1' and it doesn't send it to lpt4. .I have tried: .

RE: [PHP-WIN] system()

2001-10-31 Thread Ross Fleming
OK it's not so important now, I've rewritten the C program to take the input as an argument and handle all the file opening. system("parser filename.xyz"); now works fine. If anyone knows why system("parser filename.xyz"); doesn't work though I'd be interested to hear. anyone? Ross -Orig

Re: [PHP-WIN] system(), Access is denied

2001-06-27 Thread Delbono
> > system("e:\\tmp\file.bat") > > but it gives me "Access is denied try please: > > system("e:\\tmp\\file.bat") furthermore: if you call the script from the server way.. "http://localhost/executeme.php"; you have to either 1. Login to the machine as a user with "execute" Permission on th

Re: [PHP-WIN] system(), Access is denied

2001-06-27 Thread Alessio Bernesco Làvore
I'm afraid you can't reach files on network mapped disks. They're impossible to reach also with commands like fopen and similars, so probably you cannot use system() or exec() and so on. I'm wrong? Alessio. "jong jong" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP-WIN] system(), Access is denied

2001-06-27 Thread Frank M. Kromann
Running jobs from the command line usally uses another userid, with different rights than when run fram the web server. the web server normaly installs an uses IUSER_ to execute scripts. Further more a mapping made from a command line will not be available to other users on the same maschine.

Re: [PHP-WIN] system, exec, passthru gehen nicht

2001-02-25 Thread Markus Wagner
alain samoun wrote: > > Hey! if you start talking german here, I will start talking french ;) I think I will loose this game. (:-) Sorry that I took the wrong language. -- Markus Wagner email: [EMAIL PROTECTED] Hobby: 747 Jumbo-Jet, Pontiac -- PHP Windows Mailing List (http://www.php.net/)

RE: [PHP-WIN] system, exec, passthru gehen nicht

2001-02-25 Thread alain samoun
Hey! if you start talking german here, I will start talking french ;) Alain Message from Alain Samoun [EMAIL PROTECTED] -Original Message- From: Oliver Charlet [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 24, 2001 1:15 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] system

Re: [PHP-WIN] system, exec, passthru gehen nicht

2001-02-24 Thread Oliver Charlet
Hi, wir haben das gleiche Problem und sind damit soweit: läuft nur unter Windows/PHP4/DLL nicht. Als CGI läuft es (wir sind dabei, das CGI als Work Around parallel zur DLL zu betreiben) Falls Dir da was besseres einfällt, lass es uns wissen. Olli p.m.: Dieser BUG ist eine absolute Frechheit!