Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Exec() Function Under Windows 2000 With IIS?


Are there any tricks to getting the exec() function to work under
Windows 2000 with IIS? PHP v4.0.2 is installed on the server.




View Complete Forum Thread with Replies

Related Forum Messages:
V4.0.2 And Exec() In Windows 2000 / IIS
Are there any tricks to getting the exec() function to work under
Windows 2000 with IIS? PHP v4.0.2 is installed on the server.

View Replies !
Ms Sql Serveur 2000 On Windows 2000 !!!
I've an error with php & win 2000 & ms sql serveur 2000! listen, i've write an program with win xp easyphp1.7 and ms sql serveur 2000 all is ok on localhost ! all i use some store procedures , triggers and so on all will be ok on local ! Code:

View Replies !
Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
From a PHP webpage, is it possible to authenticate users running Apache on MacOS X (with PHP 4) and an active directory on Windows 2000 or Windows XP?

View Replies !
Windows 2000 Problems
when I open IE and enter in "http://localhost" I get:

"The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings."

blah blah blah....

Then, when I click the Personal Web Manager icon in the Admin tools, I get this error:

"Error connecting to servernamehere: Unexpected error 0x80074002 occurred. Do you wish to continue to attempt to connect to it in the future?"

View Replies !
PHP On IIS Windows 2000 Server
I've downloaded the latest PHP (EXE & ZIP)....

I followed all the instructions I can find and yet PHP will not work with
my IIS !!

Can anyone talk me though exactly how to get them working together?

View Replies !
Installing Php On Windows 2000
I've just installed php on windows 2000 with a pws. How can I test it to see if it's installed correctly.

View Replies !
Installing On Windows 2000 Iis 5
for some odd reason the installer program doesn't set the file extension
..php to be associated with anything, my guess is that it should be
php-win.exe (i've tried all 3 .exe files, and the php.exe produces the
correct results in a command window)... when running a .php in IE I can see
it execute in task manager but the IE screen will not change to display the
correct info.. anyone have any idea about this? IE settings wrong or
something?

View Replies !
Use Gettext In Windows 2000
How can i use gettext in windows 2000. problem in compile .po file. how can i make the .po file. tell me in detail step by step. also unable to find msgfmt.exe, libiconv.dll, libintl.dll to compile .po file in windows.

View Replies !
Problems With MS-SQL, Apace, PHP On Windows 2000
I want to use PHP for a project at work. This project requires Windows 2000 running Apache and accessing MS-SQL Server 2000. I am using the mssql php extension to access the db and have all the required files to access the db. If the environment was not correct, it shouldn't connect and successfully query int data types.

Everything works fine as long as I query for numeric datatypes such as int. However, every single time I try to query a text, char, var or datetime field, Apache crashes and I get a Windows error dialog saying that an error is being logged. Unfortunately, there is no error logged to either the Windows 2000 Event Log or the Apache log.

I love PHP and would really like to be able to use it for this project rather than JSP or ASP on IIS.

If anyone knows why this is crashing the server, I'd greatly appreciate any advice or help.

By the way, this is an enterprise-wide database so switching to MySQL is not an option.

View Replies !
How Can Windows 2000 Be Shut Down/ Restarted Via PHP?
How can windows 2000 be shut down/ restarted via PHP?

View Replies !
EGroupWare - With Windows 2000 Install
using Apache, PHP and MySQL on my own PC - been using
it for a while on ISP hosted servers and plesk to create oline forums using
things like Invision and PHPBB but decided to give running eGroupWare a go
on my own PC.

I have windows 2000 Pro and followed some online tutorial to the letter
(excpet downloaded the very latest version of MySQl, PHP, etc) to install
Apache, PHP and MySQL and all worked fine.

Now downloaded eGroupWare and put it in the c:web folder and ran the setup
file

but when I go to my browser and tpye:
http://localhost/egroupware/login.php

I get the following below can anyone point me in the direction of what it
all means??

Warning: main(C:/php/phpgwapi/setup/setup.inc.php): failed to open stream:
No such file or directory in c:webegroupwareheader.inc.php on line 102

Warning: main(): Failed opening 'C:/php/phpgwapi/setup/setup.inc.php' for
inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 102

Warning: main(C:/php/phpgwapi/inc/functions.inc.php): failed to open stream:
No such file or directory in c:webegroupwareheader.inc.php on line 110

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/functions.inc.php' for
inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 110

Warning: main(C:/php/phpgwapi/inc/xml_functions.inc.php): failed to open
stream: No such file or directory in c:webegroupwareheader.inc.php on
line 111

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/xml_functions.inc.php'
for inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 111

Warning: main(C:/php/phpgwapi/inc/soap_functions.inc.php): failed to open
stream: No such file or directory in c:webegroupwareheader.inc.php on
line 112

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/soap_functions.inc.php'
for inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 112

Fatal error: Call to undefined function: createobject() in
c:webegroupwarelogin.php on line 26

View Replies !
Why I Cant Setup Apache In Windows 2000
i can install apache in windows 2000 professional
but when i was to install it in a LAN it cant run correctly
when i type http://localhost/ in browser i recieve The page can not find
why?

View Replies !
Installing Php4 On Windows 2000 Webserver
Is this possible? If so, how do I do it exactly? All I can find is tutorials on how to install it on Apache. If anyone knows the answer can you please help me? I'm desparate. Thanks in advance.

View Replies !
PHP5 Installation With MySQL, Windows 2000
Why I still have "undefined function error" messages?


I included path c:php to my windows env.
Edited php.ini file: include directory value. removed comment mark
from extension=php_mysql.dll
copied libmysql.dll to system32 directory
Apache2 runs fine.
I can run phpinfo.php
I can create a database into the MySQL.

View Replies !
Include PEAR DB Framework Using PHP 5.0.4 On Windows 2000
Get the following errors when trying to include PEAR DB framework using
PHP 5.0.4 on Windows 2000 with Apache 2.

Warning: main(PEAR-1.3.3/DB/DB.php) [function.main]: failed to open
stream: No such file or directory in E:Program FilesApache
GroupApache2htdocsservusincludesinclude.php on line 19

Fatal error: main() [function.require]: Failed opening required
'PEAR-1.3.3/DB/DB.php' (include_path='.includes;.') in E:Program
FilesApache GroupApache2htdocsservusincludesinclude.php on line 19

The include_path config variable looks like this:
include_path = ".includes;."

PHP is installed in
e:php-5.0.4
and the PEAR Class defs are in
e:php-5.0.4includesPEAR-1.3.3DBDB.php

The includes that fail are:
include_once("PEAR-1.3.3/DB/DB.php");

These worked with 4.4.0, but fail with 5.0.4 ...

View Replies !
UPDATE Command Is Not Working On MySQL, Windows 2000 Server
Hi all,

I encountered mysterious problem with MySQL and PHP.

UPDATE command is not working on MySQL configured on Apache 2 with Windows 2000 Server.

It pulled my hairs for atleast 5 hours.

MySQL says Affected rows: 0 (Query took ~ sec) always?

Now, I've decided to move all PHP files and db to remote server.

Can anyone suggest possible reasons for above errors?

View Replies !
Configuring Jpgraph On Windows 2000+Apache+PHP+MySql Server
Could someone walk me step by step on how to install and get JpGraph
running on a Windows 2000+Apache+PHP+MySql server?

View Replies !
Warning: Ftp_exec() [function.ftp-exec]: SITE EXEC Is An Unknown Extension
This is kind of a part II to a question a posted earlier about exec and shell_exec not working.

I'm trying to use ftp_exec to execute some simple command:

$conn_id = ftp_connect("$server") or die ("Cannot initiate connection to host");
ftp_login($conn_id, "$username", "$userpass") or die("Cannot login");
$command = 'cd..'
if (ftp_exec($conn_id, $command)) {
   echo "$command executed successfully";
} else {
   echo "could not execute $command";
}
ftp_close($conn_id);


I'm getting the following error:

Warning: ftp_exec() [function.ftp-exec]: SITE EXEC is an unknown extension in /home/urieilam/public_html/work/video/test1.1.php on line 21
could not execute cd..

Have tried other commands as well, get the same. Could this be a security issue or something to do with p Safe Mode? I don't know much about commands, shell, etc..

View Replies !
Exec() On Windows
this is my problem: I need to "exec" the following command:

C:ProgrammiSoftsoft.exe -v -d C:dati$nomefile
C:datipdf$filename

and i tried to execute it in php with (one of) the following lines....

exec("C:ProgrammiSoftsoft.exe -v -d C:dati.$nomefile
C:datipdf.$filename");
exec("C:ProgrammiSoftsoft.exe" -v -d "C:dati".$nomefile
"C:datipdf".$filename);
exec("C:ProgrammiSoftsoft.exe -v -d C:dati.$nomefile
C:datipdf.$filename");
exec("C:/Programmi/Soft/soft.exe -v -d C:/dati/.$nomefile
C:/dati/pdf/.$filename");
exec("C:/Programmi/Soft/soft.exe" -v -d "C:/dati/".$nomefile
"C:/dati/pdf/".$filename);

but there is something wrong and that i.. do not understand...
Is there anyone so kind to show me the correct line and a couple of
comments on how to built it? I tried to search for it (manual,
newsgroups...) but i haven't found it (and my mistakes are the result
:-P)

View Replies !
Exec() In Windows
With safe_mode_exec_dir set in php.ini, the Apache service set to 'allow service to interact with the desktop', all of the executables required in the script in the safe_mode_exec_dir and cmd.exe with read/execute rights I still, after days of head-banging and gis'ing and php-freaking, can't get this to work.  I hope it is a stupid simple oversight, even if it leaves me looking stupid and simple, I'll live 

Right: - Windows XPSP2, Apache 2.2.4 and PHP 5.2.0 on Localhost
I'll set the scene.  I need to accept two files from a user and using a third party exe convert one into the other.  I realise using exec() with user input is dodgy so I have concatenated the user input to a long executable string and I'll do extra checking (that they are an msi and wxs file) later.
 
The files are passed to procConvertWix() by the user and from there passed to convertwix() where the concatination is done, and returned back to procConvertWix() for execution.

In procConvertWix() I have displayed the fully concatenated string in the browser, copied and ran it from cmd.exe and it executes perfectly, so that's not the problem.
Displaying the $ouput of exec() simply gives me: Code:

View Replies !
Warning: Exec() [function.exec]:
I'm using PHP Version 5.0.4 in IIS5, Window 2003. When I execute my script, it prompt me the following error :

Warning: exec() [function.exec]: Unable to fork [ping 10.8.1.70] in c:Inetpubwwwrootswitch.php on line 62
Below is my script :

<?php
$line1 = exec("ping 10.8.1.70", $output);
exit;
?>

View Replies !
Exec In Background On Windows
How can I get an /exec'ed/ process to run in the background on an XP box?

I have a monitor-like process which I am starting as
'exec("something.exe");' and, of course the exec function blocks until
something.exe terminates. Just what I /don't/ want. (Wouldn't an & be
nice here! Sigh)

I need something.exe to disconnect and run in the background while I
continue on with my script.

View Replies !
Use Exec() In PHP 5.2 On A Windows XP Pro System
I'm trying to use exec() in PHP 5.2 on a Windows XP Pro system. What I'm trying to do is use it to tell an already running program what to.

For example:
X:pathprogram.exe /something
or
X:pathprogram.exe /something_else

If I do the command through the command line, it works, but so far I have been unsuccessful in PHP. Usually it PHP just hangs, and give no error message, and does nothing to the program.

View Replies !
'exec' Creates Popup Windows
I'm running php under apache (I'm using the uniserv distribution) on Windows XP. Every time I execute an external command using backticks or exec or system, I get a cmd windows that pops up for the 1/4 second the command executes. This would all be fine, except that I'm deploying the server to run locally on the user's box, and needless to say, the popups are annoying.

I've search everything I'm clever enough to understand and
can't find a way to get the external commands to run in the 'background'. All of the input and output of the commands have been redirected, any shell command causes this behavious, and in all other respects it all seems to work great.

View Replies !
PHP Exec() And Zipping Upload File In Windows
I have the following code. What I need is to zip the file
(c:webuploadsomeFile) to d:websomeFile.zip.

$cmd = 'c:zipzip.exe '. $movedFile. ' '. $finalFile;
exec( $cmd, $cmd_output );

File is being uploaded by the apache server, but it's not being zipped.
My guess "", escaping, is causing problem in windows path. Do I also
have to escape the $movedFile content? Forexample $movedFile=
"c:webuploadsomeFile".

View Replies !
Deos Exec() Support A Popup Windows?
I am using exec() to run a .exe file which call another function to popup a new window? It does not work. Anyone know how to make it work?

View Replies !
Exec Function
Iv tried using this exec function and iv never used it before today.. im not completely sure what it does.

<?php

$command = "/movie/Without a Paddle.avi";

echo exec($command); ?>

I hoped that this script would open up a movie, but it doesnt.
I am using this function completely wrong or is there a problem with my code?

View Replies !
Exec() Function
I'm having trouble getting the exec() function to work in my script. I have never worked with this function and before I contact my server admin I want to verify my code is correct. script_name.php is in the same directory as this script that is running exec(). Is this correct?

exec("./script_name.php &");

View Replies !
Function Exec
I'm trying to execute a command with "exec" but it doesn't work. Here is my code : PHP Code:

exec("../../blast/blastall -p blastn -d est.txt -i testseq.txt -o test.txt");

I'm sure that my scrypt reads this line but nothing happen. Does someone know how to use this function ?

View Replies !
PHP Running Exec() Windows Program Very Slow In Comparison To UNIX Equivalent Program
Does anyone have an explanation or solution for the following.
I have a PHP script that uses exec() to call a program to do certain
calculations.

The UNIX version of this program I call runs in about 4 to 5 seconds.
When I run the same PHP script using exec() to call the Windows equivalent
of this same program on my Windows desktop, it takes about 32 seconds....

View Replies !
PHP Exec Function No Output
I am running PHP 5.1.6 (cli) on Linux. When i use the exec($cmd,
$output, $return) command the $output array is always blank if the
command had an error in it. There are only values if the command was
successful. How do I capture the error text returned?...

View Replies !
Php Exec() Function Is Not Working
I am trying to execute linux command with php. I am try to log on as super user, so I have used the following code:

exec("su root");
exec("<password>");

But I dont think its working, becuase if I want to change my directory and view the list, I find myself in the same directory.
I have used the following code:

exec("cd /");
Passthru("ls -l");

View Replies !
Ssh2 Mod And Exec Function
Something very strangne happens with the function ssh2_exec, i can't
read the stream answer after execution in the remote computer. I work
with apache 1.3.30 and php 4.3.10 , libssh 2.0.5 . the ssh2 module
looks to work correctly but sftp functions cause a big delay causing
server timeout and ssh2_exec can't read the output. Tryed many things
recommeded in php website and forums but always the first ssh2_exec
reading success and the following ones fail.

$stream=ssh2_exec($conn_id,'/usr/bin/ls ./public_html');

I tryed to read the output with:

stream_set_blocking( $stream, true );
$cmd=fread( $stream, 4096 );

after

while($line = fgets($stream)) {
$cmd .= $line;
}

and

while( !feof($stream) ) {
$cmd .= fgets($stream)
}

Nothing success to catch the output for the second execute order. In
the same process only the first exec could be read.
Anybody know

View Replies !
Disable The 'exec' Function
How do I disable the 'exec' function in my linux php server? It's important in order to prevent users from planting PHP browsers on their shell account.

View Replies !
Can Not Execute Exec Function In Php
I am facing a strange problem , in linux server system commands like exec, system are enabled but one particular command is not working properly , either its returning null or 127. Command is exec(whois -h whois.crsnic.net "bnbnmnmbnmn.com") But this command is working properly in another linux server.

Any suggestion is well come excepting reinstall or re-configuration as its not possible . Commands like exec('whoami') are working . Server:linhost161.prod.mesa1.secureserver.net 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686

View Replies !
Using Exec() Function In PHP5
I have problem by using exec() function in PHP5, Apache and Windows XP to run an external program from my PHP page reside on server. When I call my program using exec() the page just stops (waiting for www.mysite.com...). I have used by absolute path and result was same.

Also, I have tested my PHP page by running by using PHP (or PHP-cgi) interpreter in command line and it just works fine without any problem. I don't know why it doesn't work when I call it from my page. Can anybody help ? I think it is something wrong with Apache or PHP settings. Am I right ?

View Replies !
Exec() Function And Shell Scripts
I have a shell script written that basically grabs a selected .jpg or .png image file and wraps it as an .swf file for use in a dynamic Flash site. My question is this: What are the limitations of the exec() or system() commands? I can get them to work just fine with common linux commands(ie. ls -l, pwd, etc.), but it won't run these sort of commands:
./thisisascirptname
or
sh wrapper.sh

I get no results with these and yet when I perform the same operation on the command line by hand, it works just fine. This is the script I'm using to test it, by the way.

$lastline = exec("sh wrapper.sh", $all_output, $return_value);

print("<b>Last Line:</b><br>$lastline <p>
");

print("<b>All Output:</b><br>
");
for($index = 0; $index < count($all_output); $index++)
{
print("$all_output[$index] <br>
");
}

print("<br><br>
");

print("Return Value: $return_value<br>
");

The "ls" and other similar functions all return properly. I can't figure this out and it's driving me nuts. Any help?

View Replies !
Problem Using System/exec Function.
I am faced with strange problem. Basically I want to make a script which would take mysql back up for me. I have come up with following. [ basically code is borrowed from some other place ]
PHP Code:

View Replies !
Using Exec Function To Get A .exe Return Status Gives CGI Error
I'm trying to make a web page to work. It worked before so it has to
be something related with the configuration.
My problem is a call to a compiled executable (made for me) that
returns 1 or 0. It does not print any text to the standard ouput so
the error is strange:
CGI Error: The script can .. because of the HTTP headers (I have it in
spanish so the message is not the exact one).

As supposed, the HTTP headers are needed only if the executable prints
out a text to the browser but it's not the case. And (I repeat) It
worked as it before. The machine had to be formatted and the guy in
charge of that is not with me anymore.

View Replies !
Exec() Function Warning: Unable To Fork (Access Violation At 77F81B4D)
I am trying to execute a DOS command with the exec() function. All I get is fork errors or access errors, regardless of what file I try to execute. Example:

<?php
exec("sync.bat");
`sync.bat`;?>

Warning: Unable to fork [sync.bat] in C:testexec.php on line 3
Warning: Unable to execute 'sync.bat' in C:testexec.php on line 4
PHP has encountered an Access Violation at 77F81B4D


Id doesn't seem to matter what kind of file I try to execute, .exe, .bat or .com. Any ideas? Has ANYONE executed an external program under php/Windows?

View Replies !
System() Function On Windows
Trying to use the system() function in my php code on a windows server 2003 system. Simple commands like:

system('dir');
work fine, but
Code:
system('net stop spooler');
doesn't work.

I guess this is a problem with windows user rights, but is there anything I can change in my script to make it work without having to start changing the windows user rights as I don't want to affect the security of windows?

View Replies !
Alternative To Link() Function In Windows
I am using wamp 1.4.5. I want to use 'link()' in windows to create a link of my file and folder. Can any body tell me how to use 'link()' function in php on windows platforms?

View Replies !
System() Function Is Not Working In Windows
I want to encrypt a text file's content using public key of other user. I'm working in windows NT and running my php in apache server. I've installed my gnupg in c:gnupg.
To encrypt the content I used the following code: PHP Code:

View Replies !
Enable Mail Function For PHP Under Windows XP
I have installed Apache2.0 and PHP4.3 on my PC under Windows XP.
What are the different steps to make the mail function work.
I think I have to install first a mail server, but I don't know where
to find one that is relatively 'easy' to install and configure.

View Replies !
Is There A Php Function That Can Create Folders In Windows Os
i cannot seem to find away of creating a folder using php for example a client could make a folder on the server using php.

View Replies !
[function Mail() Windows XP]SMTP Localhost
I'm trying to send an e-mail from a .php script and ie6 returns this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:wampwwwPAMWDchap11emailsendmail.php on line 12

I checked php.ini (line 606):

[mail function]
; For Win32 only.
SMTP = localhost

OTOH I didn't find "smtp_port" in php.ini. Maybe I should add :80 as port in php.ini?

View Replies !
Function Exhibits Bizarre Behavior In Windows XP
function getResponse() {
  $responseID = @fopen('php://stdin', 'r') or die('Cannot read from stdin');
   while (($response = @fgets($responseID, 1024)) !== false) {
     @fclose($responseID);
     return $response;
   }
}

This function works just fine if using CLI PHP in a Unix platform. But this same function is required to be used in an application that is housed within a Windows XP platform, and in that platform, this function seems to ignore user input and returns null every time.

Does anyone have any idea why this would specifically happen only in Windows XP using CLI PHP and nowhere else? Is there some issue involving XP's version of stdin?

View Replies !
Mail() Php Function Not Working In Windows Server 2003
I tried the mail() php function and it ends up with error message. I tried different tests with port configuration and Smtp server, though it ended up in error.

Error: Code: Original - Code Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-7wwwmailerman.php on line 19 Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-7wwwmailerman.php on line 19.

View Replies !
Pass The Php Variable To A Windows Open Function To Display?
I want to pass the php variable to a windows open function to display. How can I do that?

View Replies !
Undefined Function Mysql_connect() - Windows XP With Service Pack2
I just installed Apache/PHP/MySQL all newest versions today on windows XP with service pack2, everything seems to be working fine, cept for when I went to connect to MySQL.

I'm getting this error:

Fatal error: Call to undefined function mysql_connect() in C:Program FilesApache GroupApache2htdocs
ationalincconntemp.inc on line 3

line 3 of conntemp is:

$db_selected = mysql_select_db('National', $link) or die('Database name incorrect');

but i know the code is good, it works fine on my linux server. can anyone tell me if i'm missing something? like a module maybe? and if so what one and where can i get it?

View Replies !
[function.date]: Windows Does Not Support Dates Prior To Midnight (00:00:00)
I'm working with PHP in a Windows environment and ended up with the following message:

Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:Inetpubincludecommonereken.inc.php on line 29
Whether I'm working in Windows or Linux is all the same, because I'm dealing with dates prior to the year 1700 as well.

I've found the following library:
http://phplens.com/phpeverywhere/adodb_date_library

It replaces a number of standard php functions such as date(), but for strtotime() there's no replacement. Anybody got an efficient code solution for this?

View Replies !
Php Setup On Win 2000 IIS
php setup on win 2000 IIS how is it done, i've try but the pages dont show up . any one know of a step by step setup tutrioal on this please. I have phpMyAdmin 2.3.3 and My SQL.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved