php-windows Digest 8 Sep 2006 10:58:49 -0000 Issue 3033
Topics (messages 27129 through 27132):
Problem with execution external script
27129 by: DevPhp
27132 by: Alex Turner
Re: Issue saving session on windows xp
27130 by: Kathy Lessa
Re: Installation problems - Win XP with IIS and MySQ
27131 by: zerof
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
I've a problem with php and the execution of an external script.
The script is adutil.vbs , belonging to the IIS administration Script on
windows 2000 server.
The vbs have to be execute with Cscript.exe.
When I execute it from Dos shell there's no problems: for examples
c:\Cscript adsutil.vbs
But when I try to execute it from a php web page, using exec or system,
directly or calling a C script, I've this error : Error Cscript: error
loading...Access denied
Example of direct execution from a php web page:
<?
echo system('%SYSTEMROOT%/system327cscript.exe adsutil.vbs');
?>
Example of execution calling a C script
<?
echo system('run_adsutil.exe'); //run_adsutil.exe is a C program that run
the vbs with system()
?>
Any Ideas? Anyone can help me?
Thanks
Bye
--- End Message ---
--- Begin Message ---
DevPhp wrote:
Hi,
I've a problem with php and the execution of an external script.
The script is adutil.vbs , belonging to the IIS administration Script on
windows 2000 server.
The vbs have to be execute with Cscript.exe.
When I execute it from Dos shell there's no problems: for examples
c:\Cscript adsutil.vbs
But when I try to execute it from a php web page, using exec or system,
directly or calling a C script, I've this error : Error Cscript: error
loading...Access denied
Example of direct execution from a php web page:
<?
echo system('%SYSTEMROOT%/system327cscript.exe adsutil.vbs');
?>
Example of execution calling a C script
<?
echo system('run_adsutil.exe'); //run_adsutil.exe is a C program that run
the vbs with system()
?>
Any Ideas? Anyone can help me?
Thanks
Bye
I guess that your server is running as a user with reduced permissions
and thus cannot access the exec.
Also - why double launch? Why not launch csript directly?
Cheers
AJ
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--- End Message ---
--- Begin Message ---
FYI, problem has been resolved, thanks to the help of Alex Turner, who
gave me a number of great suggestions. Alex recommended that I use a
different folder to write session files, rather than c:\windows\temp.
I did that, and voila it worked.
It does however highlight some curiosities. The Windows\temp directory
returned a status of WRITABLE when I checked its status through the
web browser, which would imply that I should have been able to save
session files there.... but none were ever saved there. No errors just
didn't save them. As soon as I pointed the session path to another
folder, it worked like a champ.
On 9/6/06, Alex Turner <[EMAIL PROTECTED]> wrote:
Kathy Lessa wrote:
> I am running PHP v5.1.6 on Windows XP Pro. I have been unable to save
> session variables, and I've tried everything I can think of with no
> luck so far.
>
> I have confirmed that I have writable access to my session save path,
> but session variables are still not saved. Does anyone have
> suggestions for configuration changes, etc.?
>
> Reproduce code:
> ---------------
> ini_set("session.save_path","C:\\WINDOWS\\temp");
>
> session_start();
>
> echo (($sp=ini_get('session.save_path'))?$sp:'Not set<br>');
> echo is_writable($sp) ? ' writable<br>':' not writable<br>';
>
> if (!isset($_SESSION['count'])) {
> $_SESSION['count'] = 0;
> }
> else {
> $_SESSION['count']++;
> }
>
> echo $_SESSION['count'];
> ?>
>
> Expected result:
> ----------------
> c:\windows\temp writable
> 0, 1, 2, 3 , 4...
>
> Actual result:
> --------------
> c:\windows\temp writable
> 0, 0, 0, 0, 0...
Have you tried setting up the session from php.ini? I have never tried
doing it from ini_set like this.
Can you send us your php.ini? Or part of it.
Thanks
AJ
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Kathy D. Lessa
http://www.kathylessa.com
--- End Message ---
--- Begin Message ---
Bradley Davidson escreveu:
I have tried to follow the instructions to manually install PHP on Windows
XP, using IIS and MySQL. I have been unable to test if PHP is installed
because when I try to open a PHP file in a browser (either firefox or IE6)
it launches Dreamweaver.
What should I try?
IMHO, forget IIS and strat using Apache.
http://www.educar.pro.br/
-----
zerof
--- End Message ---