Re: [PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread Jason Barnett
John Yu wrote: Runas has a /savecred to load a saved credential, maybe that will help? I did try that before. When I was in the shell I could use runas /savecred with a php script and only had to input the password once. However, I couldn't get this to work within PHP when using exec(). I thin

RE: [PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread John Yu
Runas has a /savecred to load a saved credential, maybe that will help? -Original Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 10:41 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Running PHP scripts as a different user De Greef SéBastien wrote: > w

[PHP-WIN] Re: Serialization

2004-05-04 Thread Jason Barnett
Ron: You need to use stripslashes() when passing a serialized string via HTTP requests. error_reporting(E_ALL); if (isset($_POST['serialArray'])) { $stripped = stripslashes($_POST['serialArray']); echo ""; // Works $unserialized = unserialize($stripped); print_r($unserialized); } else

[PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread Jason Barnett
De Greef SéBastien wrote: why don't you try runas in the exec() function ? runas requires you to enter the password credentials after you've executed the command. I'm not aware of how to pass information like that while PHP is trying to use exec(), it just hangs waiting for input that never com

[PHP-WIN] Re: Session and Cookie error on Windows+Apache

2004-05-04 Thread Kapten Nemo
I've set variables for session.save_path = c:/php4/tmp in the php.ini, when starting request from the browser to the server (Win+Apache+PHP) for example http://localhost/test/test_session.php the temporary sessions files are created, and stored session information. When second request arrived to th

[PHP-WIN] PHP5/Win: instantiation of .net objects does not work

2004-05-04 Thread Matthias HALDIMANN
PHP 5 should allow you to instantiante .net classes. However, I can't get the classic example Push(".Net"); $stack->Push("Hello "); echo $stack->Pop() . $stack->Pop(); ?> to work. It gives a "Failed to instantiate .Net object" error, although the .NET framework is installed. Does anyo

[PHP-WIN] RE: Session and Cookie error on Windows+Apache

2004-05-04 Thread Jonathan Pilborough
In my (limited)experience, session variables won't work with Apache on windows until you set the session.save_path variable in the php.ini file to a directory for the temporary session files to go in. Why it works in IIS I'm not sure - I have never used it. Regards, Jonathan Pilborough = --

[PHP-WIN] Session and Cookie not working on windows-apache

2004-05-04 Thread nemo
Hi, i am newby, My PHP Session and Cookie working fine with Windows and IIS webserver, but dont work at all on windows and apache web server php.ini and httd.conf are default setting, and folows the instalations instructions. can anyone help? __

[PHP-WIN] Registered PHP Streams on Win32: missing https

2004-05-04 Thread Madani Cheurfa
Hi there, Using php 4.3.6 with apache 2.0.49 on XP. mod_ssl is correctly loaded: my server correctly listens and reacts on ssl port. However I can't access any other https url from a PHP script. file_get_contents("https://www) always fails with : "Unable to find the wrapper "https" - did you f

[PHP-WIN] Session and Cookie error on Windows+Apache

2004-05-04 Thread nemo
Hi, i am newby, My PHP Session and Cookie working fine with Windows and IIS webserver, but dont work at all on windows and apache web server php.ini and httd.conf are default setting, and folows the instalations instructions. can anyone help? _