php-windows Digest 25 Oct 2005 09:07:40 -0000 Issue 2804
Topics (messages 26428 through 26432):
Re: INI Path problems
26428 by: Jay Blanchard
26429 by: Jay Blanchard
26431 by: Jay Blanchard
Mysql support in PHP 5.0.5
26430 by: Beau Newcomb
Re: Win2k3 - IIS 6.0 - PHP5 - EXEC Function - Stopping/starting a Service
26432 by: David Collard
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 ---
[snip]
I am running W2K with IIS 5.0 and PHP 4.4.n (nsapi)
I am attempting to get the curl extension working but I keep getting an
undefined function. I check phpinfo and find that the extension is not
loading. I check further and find that, although the ini file states that
the extension directory should be c:\php\extensions phpinfo shows it as
being c:\php4. The extension is uncommented, and the proper dlls have been
moved to the c:\winnt\system folder.
Can anyone tell me why the ini file is not being read for the extension
folder or how to fix it? I have looked at
http://docs.php.net/en/configuration.html for more information. This is
getting frustrating, perhaps I should install Apache.
[/snip]
Well, now I have made some adjustments and it still appeared that the ini
file was not being read. I rebooted the server.
That was a bad thing to do.
Now all I get when attempting to access a .php file is a 404 error.
--- End Message ---
--- Begin Message ---
[snip]
Check your drive for other php.ini files. It looks 1st in the
window/systems folder but it can also be in the apache/bin directory.
Do a search on your drive for php.ini. There may be more.
[/snip]
I have done this and there are no others. Still no luck.
--- End Message ---
--- Begin Message ---
[snip]
...tons of good stuff....
[/snip]
I decided to go ahead and install apache...20 minutes ago. Apache installed
and configured with all the stuff that needed to be changed in the
httpd.conf to allow PHP to play nice. It came right up. All of my extensions
were installed. Confirmed via phpinfo.
cool...
--- End Message ---
--- Begin Message ---
I've tried everything the faqs say and I'm still unable to get mysql support
in PHP5..
I've added H:\php to my Windows PATH variable (H: is my main drive)
I've uncommented php_mysql.dll
I've added the extension directory to php.ini
Rebooted the server
Before doing the above, phpinfo had absolutely no instances of mysql in it,
showing it neither disable or enabled. After doing the above, phpinfo does
show mysql added to environment paths, but still no table showing whether
it's enabled or disabled.
Am I missing something? One faq says not to use mysql.dll but mysqli.dll ??
where is this? Can anyone shed some light on this subject for me?
When I run a mysql test script php returns an error in the line with
mysql_connect saying it doesn't understand the function. (which tells me
mysql support isn't working)
--- End Message ---
--- Begin Message ---
it should have quotes before the 'net' and after 'servicename'
<?php
exec("net stop servicename");
?>
also, if php's safe_mode is on, you can only run programs in the
safe_mode_exec_dir folder, which would need to be 'C:/WINDOWS/system32'
if you are using the net command.
Jayvd wrote:
I'm trying to start and stop a service with PHP.
I've given cmd.exe the right permissions (so IIS can execute etc.) but it still
doesn't work.
The script I use:
<?php
exec(net stop SERVICENAME);
?>
Does anyone know how to solve this problem?
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
--- End Message ---