Exec(), System() And Win 2003
I have searched high and low for the past 2 days for an answer to my problem. I have found a few references, but nothing has helped me. My problem is this: I am trying to ping a remote server from a PHP script in IE 6.0. When I load the page, the cmd.exe loads on the server and takes up all my CPU. I have to manually stop the process for it to go away.
My setup is this:
Windows 2003 Server
PHP 5.0.1
I have tried
- giving my system32cmd.exe full IUSR_%machinename% rights
- moved the cmd.exe to the script folder, to the PHP folder
And about a million other things that I can't remember =(. I have tried multiple functions, written in mulitple ways and the outcome is always the same. when the cmd.exe is opened it hangs on the 2003 server.
View Complete Forum Thread with Replies
Related Forum Messages:
- PHP System() And Exec()
- System() And Exec()
- Exec(), System()
- Bug In System And Exec Commands
- System() Or Exec() And Permissions
- Exec() And System() Problems
- Using Passthru(), Exec(), System() Etc.
- System/shell/exec/etc
- Use Exec() In PHP 5.2 On A Windows XP Pro System
- Problem Using System/exec Function.
- Using System/exec, How To Backup Database?
- Exec(), System(), Shell_exec(), Etc + Nmap
- System/exec Not Working In Browser
- Command Window - Exec/system
- Exec, Shell_exec, System, And Passthru Not Working At All
- Exec And System Commands Blocked By Host
- Alternates To System() And Exec() In Order To Use ImageMagik?
- Exec - Create An Executable That Return The System Drives
- Running An .exe File Using Exec() Or System(), Unable To Fork Error
- System(), Exec(), Shell_exec(), But "Permission Denied"
- Warning: Ftp_exec() [function.ftp-exec]: SITE EXEC Is An Unknown Extension
- Warning: Exec() [function.exec]:
- PHP And Server 2003
- MS Outlook 2003
- PHP And FrontPage 2003
- PHP Configuration On Window 2003
- IIS Vs Apache On Windows 2003
- 404 Issue On PHP Installation On Win 2003
- Voting In Outlook 2003
- Mail() And Exchange 2003
- IPv6 Summit 2003
- Php And Windows Server 2003
- Forking PHP On Windows 2003.
- How Do I Insert Php Into Frontpage 2003?
- Php On Windows Server 2003
- Windows 2003 Server
- Exporting To Excel 2003
- Window 2003 Sever And Php.
- IIS 6 On Windows 2003 Server
- How Can I Connect Php With MsAccess 2003.
- Win 2003: PEAR Not Detecting GD
- PHP5 And Access 2003
- 5 & Ibm_db2 On Window 2003
- Windows Server 2003
- Installing On Windows 2003
- IIS Issues 404 Error On PHP Installation On Win 2003
- Can't Connect MSSQL In Window 2003
- Php Service On Windows 2003 IIS6
- PHP Installation For Windows Server 2003
- Session Problem - IIS Windows 2003 & PHP 5
- Php.ini Not Found On Windows Server 2003 64 Bit
- Win 2003 IIS6 PHP_AUTH_USER Blank
PHP System() And Exec()
Background: I am trying to execute a binary on the server located in the current directory where the php script is being run. The server is a linux (debian based). I am having trouble getting php to execute the binary properly, below is my code. Code:
View Replies !
System() And Exec()
If you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends. I have tried numerous time by redirecting to a file or other stream to free up a php web page that called a perl script for example, but the php script always hangs...has anyone had any luck freeing up a calling php script from a process, or program that it launched in the background? Code:
View Replies !
Exec(), System()
I write very, very simple script who call external program. The script is run on Linux Slackware, Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.8b PHP/4.4.4 here is my script: <?php echo exec('ls'); ?> this work properly. but if i write: <?php echo exec('xine'); //xine is a multimedia player ?>
View Replies !
Bug In System And Exec Commands
If PHP is running via a web server, and mutiple system calls are made within the script to another script, hundreds of processes are created. Here is an example: Script 1: <?php for ($i=1; $i<=5; $i++) { system("php script2.php"); } ?> Script 2: <?php exit; ?> The effect is the same (and more difficult to stop) when the system calls are made in the background. e.g. system("php script2.php >>/dev/null 2>>/dev/null &"); system("php script2.php >/dev/null 2>&1"); I have even tried calling a shell script, which in turn calls the second PHP script (both in the background), but it still causes lots of processes. The "exec" command is also affected. At first, I thought this was a problem with either Zeus web server of Fast CGI, but I have since tried it with Apache and normal CGI with the same effect. Does anyone have any idea why this happens and whether there is any way to prevent it? I have posted a bug report to bugs.php.net (ID 14997), but so far to no avail.
View Replies !
Exec() And System() Problems
I am trying to use php's exec() or system() to execute a shell script that I wrote. exec and system() work fine with a simple command like ls, but nothing happens when I point it at the shell script. The shell script works fine from my shell login. Can't figure out what tho problem is. Is php just incapable of running shell scripts?
View Replies !
System/shell/exec/etc
I've got PHP 5.1.6, Apache 2.2.2, on Fedora 5. Everything is great except that when I use an of the external launching commands, persistent apps dont stay open. I have a simple shell script set up to load an app, and I have it write a PID file. Immediately after calling exec (milliseconds later) the PID is alive. However, within a few more milliseconds it seems to close. I've made sure that the apache uid/gid have full access to the script and the apps it calls. When sudo'ing manualy in a shell with the apache uid, the script works flawlessly and loads the program, and stays open, as it should. I've verified that the app loads under the uid 'apache' with ps. When running it through PHP, it seems to close almost immediately after succeeding. Is there some fundamental issue with how this works that I'm missing? I can't seem to get any real errors out of php, apache, or even the shell when redirected to a file. Should I try PHP4? Is PHP5 buggy with this kind of thing? I even tried running 'at' to schedule the script (so that it'd be invoked by at instead of the shell itself) but that failed, silently, as well.
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 !
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 System/exec, How To Backup Database?
system("mysqldump --opt myDatabase > backup.sql"); here are my problems, i don't think it works on the webserver. next, where exactly the file, backup.sql be place if it does succeed. i believe we just can't execute commands on the webserver can we? i also tried using the sql query BACKUP TABLE ... TO .. but i'm guessing the problem lies with the TO... how do i know what directory shall i place it therE? for instance, my pages are placed in, home/myname/public_html/... i tried to put home/myname/public_html/backup in the TO but nothing happens.
View Replies !
Exec(), System(), Shell_exec(), Etc + Nmap
i'm trying to create a script that executes nmap from my server, then displays the output. i've tried: $output = passthru('nmap -v -A'.' $ip'); $output = shell_exec('nmap -v -A'.' $ip'); system('nmap -v -A'.' $ip'); the problem i'm having is that using the above methods i only get the first line of output, ie. Starting Nmap 4.20 ( http://insecure.org ) at 2007-08-31 21:46 CST and nothing else. i've managed to find a way around it by sending the nmap output to a textfile, the using file_get_contents() to pull the data back in: exec('nmap -v -A '.$ip.' > /usr/local/www/apache22/data/nmap/'.$ip.'.html'); $file = "/usr/local/www/apache22/data/nmap/$ip.html"; $result = file_get_contents($file); echo "(pre)$result(/pre)"; that works perfectly, but i'd rather not be writing anything to the drive. i guess the problem might be that nmap takes about 5-10 seconds to do its scan, and for some reason php doesn't want to wait that long, i really have no idea. can it be made to work without needing to write to files? and for the curious minds, i'm not doing anything dodgy, i just wanted an online tool i could access from any computer to test networks i support .
View Replies !
System/exec Not Working In Browser
In two files, and I serve foo.php then I notice If I use commandline execution i.e. php foo.php then foo.txt is touched/created all right. i.e. system command is executed as expectedBut If I use browser then I notice that the shell command in config.php is *not* executedAny ideas as to why this might be happening? Code:
View Replies !
Command Window - Exec/system
I'm in the process of developing a script in Windows where I need to use exec/system. Whenever I execute either, Windows spawns a command window which automatically sappears. Is there a clean way to force Windows to NOT display the command window? I've seen this discussed a few times previously, but, none of the solutions seem to be working (tried both exec and system; tried using cmd /c, tried using start /B, etc.)
View Replies !
Exec, Shell_exec, System, And Passthru Not Working At All
Can't get these commands to work! The following page simply doesn't finish loading ( Waiting... Opening... :-( ) <?php echo system("dir"); ?> The same for <?php echo exec("dir"); ?> or <?php echo shell_exec("dir"); ?>, etc... I'm running Apache 2.0.55 & PHP 5.0.5 with Zend Optimizer v2.5.10 on windows XP SP2.
View Replies !
Exec And System Commands Blocked By Host
I've got this code, its the simpliest example I could make. It works perfectly on my windows xp/apache/php box, but doesn't do anything on a commercial website host. The actual code should use gzip to compress a folder but that doesn't work either. Anyone know the reason why they would be blocking these commands? I suspect the problems with commonly used php apps like phpBB to be the real reason. <? exec("ping 127.0.0.1 > test.txt") or die(); // get contents of a file into a string $filename = "test.txt"; $fd = fopen ($filename, "r"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); echo $contents; ?>
View Replies !
Alternates To System() And Exec() In Order To Use ImageMagik?
My Web host apepars to not allow exec() and system(), as a line in my script: system("convert -scale 100x100 $uploadfile $toimage"); gives the error: "Warning: system() has been disabled for security reasons" Is there some other way to use ImageMagik (or is it GhostScript?)'s "convert" command in PHP that may be safer and generally allowed by Web hosts?
View Replies !
Running An .exe File Using Exec() Or System(), Unable To Fork Error
I have a problem with running an .exe file using exec() or system() I have downloaded a file called ffmpeg.exe for converting movie clips. I can use the program thourg the command line in windows (cmd), but I'm not able to have PHP run the file. First PHP gave be an "unable to fork" error. But then I gave users access to the cmd.exe file and solved that problem. So now is no problem running for example exec("dir");
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 !
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 !
PHP And Server 2003
I am using this script: <? $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; mail( "sales@barcoderesale.com", "Feedback Form Results", $message, "From: $email" ); header( "Location: http://www.barcoderesale.com/thankyou.html" ); ?> I was using this on 2000Pro and it worked fine. I then put this same one on Server 2003 and the thankyou.html comes up after submitting but no email is sent. I am using this server only as a web server.
View Replies !
MS Outlook 2003
How can i format the phone number that was entered in digital signature to all the employees automatically? Do i need to write coding in VBScript editor which is available in MS Outlook 2003 or which software do i need to have to this formatting to be done? Do i need to check which version the employees are using MS outlook and how can accomplish this for all the employees. How can i check with the active directory, if a person has email-ID or not? Please help me in finding the solution to format the electronic signature to company standard format.
View Replies !
PHP And FrontPage 2003
Is anyone using FrontPage 2003 with there php applications. I just got FrontPage and am dissapointed in how it handles php pages. Does anyone have any tips?
View Replies !
PHP Configuration On Window 2003
I need to set up php5 in window 2003, everything is okay initially, i can run .php webpages. but later, i need to use the mail() function in php, so i change something in the php.ini. i change the sendmail() & SMTP variable, but then the whole thing cannot run. even normal php page also cannot. Code: <? echo "test" ?> i saved the code in a file call test.php, even this simple codes also fail to run. it shows up page cannot find. any suggestion what can i do?
View Replies !
IIS Vs Apache On Windows 2003
I would like to request more information for the installation and configuration of Apache in windows 2003 and I would like to know which is better IIS or apache in Windows 2003 Server
View Replies !
404 Issue On PHP Installation On Win 2003
I have installed php 5.2.2 on our new server having win 2003 as OS. I have uncommented cgi.force_redirect in php.ini and set its value to 0. I have checked Inetmgr for extension mapping and its proper. Now when i run a php script, IIS issues 404 error. I have checked the file names, locations and similar stuff. but still 404. I could not trace out where the clash is....
View Replies !
Voting In Outlook 2003
I am tring to get my web page on the click of a button to generate a mail from a person to a manager of a department, with voting buttons, so that when the manager approves the request the relevant information gets passed to HR. Is this possible in PHP? i understand the use of mail() and so a message could be drawn up, however th inclusion of votin buttons is the tricky bit!
View Replies !
Mail() And Exchange 2003
I work for a small college in Virginia and we were running Imail up until December. During the Christmas break we migrated to Exchange 2003 and we are running GFI Mail Security and GFI Mail Essentials and it is running on a Server 2003 box. We have all of our web applications housed on a Red Hat 9 box. Since students have came back and started using our applications, we've noticed the mail() function is no longer sending mail. It doesn't seem to give us an error or anything. Just doesn't pass mail to our users even if they use an outside email address such as Hotmail or Yahoo. I looked around and found out that Exchange doesn't have some of the functionality with SMTP and other Internet protocols so is there a way I can get my email forms to work again?
View Replies !
IPv6 Summit 2003
I would like to invite you and your associates to attend the US IPv6 (Internet Protocol version 6) Summit, December 8-11, 2003 in Crystal City, VA, near the Pentagon. This major opportunity to participate in transitioning to the new Internet is in response to both DoD and Industry requests for a concentrated, affordable conference in the Washington, D.C. area. This exciting and informative conference on the Next Generation Internet will attract a remarkable line-up of speakers, including major executives from the Department of Defense and Industry, as well as prominent global scientists and analysts. This gathering should offer your organization great opportunities for forming new strategic relationships. Revenues from new products and services arising from the Next Generation Internet have been estimated at a trillion dollars over the next decade. You have undoubtedly heard of the booming interest in the new Internet, because of its dramatic improvements in end-to-end security, peer-to-peer communication, support of new generations of Internet-enabled consumer electronics and defense systems, and wireless mobility capabilities, as well as the recent announcement by the U.S. Department of Defense (that it was switching all Internet operations over to this new standard beginning in October 2003) and support by major vendors such as Microsoft and Sony. The Department of Commerce recently created a Task Force to generate an IPv6 roadmap. The press has also reported on the enthusiastic support for IPv6 by European and Asian governments, which have already started replacing the present Internet Protocol (in use since 1973). Sponsors for the Summit include IBM, Cisco, Sun Microsystems, Verio/NTT, HP, Nortel, Spirent, Automation Research, Elmic, Cal-(IT)2, IP Infusion, Alcatel, INS, Extreme Networks, Foundry Networks, UNH-IOL, Internet2, Nokia, KMI, Ixia, IPv6 Promotional Council, and the Northern Virginia Technology Council. Everyone who wants to benefit from early adoption of the new generation Internet will be at this conference in order to assess and to influence the 21st Century Internet. You should be there, too. We would sincerely appreciate it if you could put these dates on your calendar. You can read a more complete description of the Summit and register at http://www.usipv6.com. In addition to the presentations on December 9-11, there is also an optional comprehensive IPv6 tutorial on the 8th - please register NOW, because space is limited (and early registration saves you up to 50%). If you live outside the D.C. area, you'll want to reserve a room at the Doubletree Hotel as soon as possible, to be assured of conference rates. I will be happy to discuss our conference and to answer any of your questions at (310) 458-3233 -- or you can send an email to our dedicated information desk at info@usipv6.com. We hope you can attend and join us. We thank you in advance for your support -- and for forwarding this invitation to other individuals and companies who might want to attend the U.S. IPv6
View Replies !
Php And Windows Server 2003
I have a website(html)/eshop running on a 3rd party 'windows server 2003'. I want to include some rss feeds on a html page using a php script. is there a simple way to test a simple php script in that type of server - ie do i just insert the script & leave the page .html or do i have to change it to .php?
View Replies !
Forking PHP On Windows 2003.
We are attempting to fork a php script into a background php script and have the first scrip continue to completion. Is this even possible in the windows version of php? We have used the many code snippets floating around on the Internet claiming to fork on Windows, yet we never get it to work properly, sometimes ending up with hunderds of dead php.exe processes on the machine. Our environment is: Windows 2k3 server PHP 4.3.6 (cgi-fcgi) (built: Apr 14 2004 17:21:37) If there is any other info needed to determine the problem I'll gladly reply with it.
View Replies !
Php On Windows Server 2003
I work on a site with a friend of mine. Recently he transferred the site from being hosted on a Unix server to being hosted on his own server running Windows Advance Server 2003. He seems to know about as much about setting up servers as I do (which isn't much!), and although he's gotten PHP running, none of my PHP scripts that write files work. I've looked up answers and he's tried different things, but so far he hasn't been able to resolve the problem. Without being able to use fwrite() I will have to update several areas of the site by hand. Here's a sample error: Warning: fopen(file.txt): failed to open stream: Permission denied in G:modelsonline estswrite.php on line 11 Warning: fwrite(): supplied argument is not a valid stream resource in G:modelsonline estswrite.php on line 12 Warning: fclose(): supplied argument is not a valid stream resource in G:modelsonline estswrite.php on line 13 Can someone give me the dummies version of how to resolve this so I can explain it to him?
View Replies !
Windows 2003 Server
So here is my situation, I am running a Windows 2003 server (the full version) and have been happily using PHP 5 for a while, however it stopped working, I don't know exactly when as there are currently no critical applications using PHP. When I noticed this I did a little bit of research and decided it was probably a good idea to reinstall PHP 5.2, I consider myself quite knowledgeable with installing php as I have done it a fair few times, however to be safe I always follow the guide on php.net. Code:
View Replies !
Exporting To Excel 2003
I had a PHP script that used to successfully output to Excel 2000. I used the header statements header ('Content-type: application/vnd.ms-excel'); header ('Content-disposition: inline; filename=output.htm'); Last year I upgraded to Excel 2003, and now the output is just a table that shows up in the browser.
View Replies !
Window 2003 Sever And Php.
I installed the php fully on the server and it works fine. but the functions fput fopen flock and fread don't work. does anyone have any idea who to get it to work?
View Replies !
IIS 6 On Windows 2003 Server
I figured that an easy way to check my progress was to just run them on IIS6. Well, troubleshooting time has gone up, and very little in the way of work has gotten done. hoping that someone here can steer me in the right direciton. I have installed PHP 4.3.8, and everytime I try and run a php file I receive this message: No input file specified.
View Replies !
Win 2003: PEAR Not Detecting GD
Solution: Forcing the installation worked great (installation ignores that gd isnt detected) pear install -f <package> Im running Windows 2003 server, and I need to install PEAR's Image_Graph libary, which depends on Image_Canvas and Image_Color. Code:
View Replies !
PHP5 And Access 2003
I can't seem to get my page to insert values into a table. I seem to connect to the database, and if I manually edit the tables, I can see the data on the webpage. No point going on with the language unless I can insert into a table!
View Replies !
5 & Ibm_db2 On Window 2003
When I try to install the ibm_db2-1.1.2.tgz on Window 2003 platform, I type "pear install ibm_db2-1.1.2.tgz" in the command prompt. It returns: 4 source files, building The DSP ibm_db2.dsp does not exist. I use WinRar to view the file and I find ibm_db2.dsp is there under ibm_db2 folder. What I need to do to install this package correctly?
View Replies !
Windows Server 2003
I'm an idiot, but I cannot figure out how to get PHP 5.0 and MySQL to work together. I've tried reading the "installation" files on PHP.net, but they only get me more confused. I am truly a beginner with PHP and MySQL, but i simply need to get PHP and MySQL talking so that some scripts I've purchased will work.
View Replies !
Installing On Windows 2003
I installed PHP, MySQL and Apache as normal as possible. However, when I go to check the install with phpinfo, it says I am forbidden to view the file. Also when I try to load the module in Apache it say's I can't find it.
View Replies !
IIS Issues 404 Error On PHP Installation On Win 2003
404 issue on PHP Installation on win 2003 I have installed php 5.2.2 on our new server having win 2003 as OS. I have uncommented cgi.force_redirect in php.ini and set its value to 0. I have checked Inetmgr for extension mapping and its proper. Now when i run a php script, IIS issues 404 error. I have checked the file names, locations and similar stuff. but still 404. I could not trace out where the clash is.
View Replies !
Can't Connect MSSQL In Window 2003
We can't connect to our mssql database in window 2003. The same script works fine in win2k. I tried to install MDAC2.8, and change the security policy but no change. ========================================= From the Windows Server 2003 machine: Control Panel -> Local Security Settings -> Security Settings -> Local Policies -> Security Options Set "Network access: Let Everyone permissions apply to anonymous users" to Enabled ========================================= Actually, I am using IIS and the administrator account to excute: php.exe sql.php The same result, it can't connect to mssql database. So it should not be a permission problem since I am running it as the administrator. Anything else we need to change?
View Replies !
Php Service On Windows 2003 IIS6
this is the setup: i have 2 computers at home. one of them has a registered domain name, and is acting as a web server (runs under windows 2003 iis6). my second machine has apache configured with php, perl, and mysql installed. i wanted to make my 2nd machine accessible from the internet, so i have created a virtual directory on my 1st machine, pointing to my htdocs directory on the 2nd machine. when i try to access a .html or .txt document (on my 2nd machine) through my 1st machine everything works. but when im trying to access a .php file, i get a 404 error. why does this happen? can anyone please help me? p.s. an example of urls are as follows: 1st machine -> http://www.machine1.com 2nd machine -> http://www.machine1.com/machine2 (machine2 being a virtual directory on the 1st one, pointing to htdocs on the 2nd)
View Replies !
PHP Installation For Windows Server 2003
I'm having an issue installing PHP4 on my IIS 6.0 server. I am using the installer and am told that PHP 4.3.3 has been installed successfully but get the following error. "Due to missing OCX control on your systems, the installation Wizard is unable to configure your web server. However, PHP has been successfully installed, and all you need to do now is manually configure the web server as described in the install.txt file which can be found in your php installation directory." I manually configure for IIS 4.0 or greater and continue to get a "The page cannot be found - 404" error when accessing anything with a php extension? I have defined all the neccessary permissions for the dir. etc but still have an issue with the above error. I'm a first time installer on this platform so does anyone either (a) have a theory as to why this doesn't work or (b) have a solution that they have found.
View Replies !
Session Problem - IIS Windows 2003 & PHP 5
I am having trouble runnign sessions in php on windows and IIS 6. I have edited the php.ini file with a path to "c:program filesphpsessions" and gave full access to everyone on this. If I look in the folder it DOES actually store files, but still be sessions in PHP wont work. They work fine on another server with Apache et..
View Replies !
Php.ini Not Found On Windows Server 2003 64 Bit
I have installed php 5.2 on 64 bit windows server 2003, and it is all working, except it will not read my php.ini file. In phpinfo it just says C:windows I have tried: Setting envt variable PHPRC to c:php Adding registry entry [HKEY_LOCAL_MACHINESOFTWAREPHP] "IniFilePath"="C:PHP" And also registry entry [HKEY_LOCAL_MACHINESOFTWAREWow6432NodePHP] "IniFilePath"="C:PHP" And also just copying my php.ini file to C:windows None of these seem to work. Has anyone set up PHP on 64 bit windows server 2003, and if so, how did you get it to read your php.ini file?
View Replies !
Win 2003 IIS6 PHP_AUTH_USER Blank
I'm trying to publish a site from my dev box to my live box. The site uses PHP Http Authentication to password protect some areas. It works fine on my dev box. However, on my live box, PHP_AUTH_USER and PHP_AUTH_PW are always empty. Even the standard test script below prompts for the username and password 3 times then defaults to "Unauthorized". Code: <?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'Text to send if user hits Cancel button' var_dump($_SERVER); exit; } else { echo "<p>Hello {$_SERVER['PHP_AUTH_USER']}.</p>"; echo "<p>You entered {$_SERVER['PHP_AUTH_PW']} as your password.</p>"; var_dump($_SERVER); } ?> ......................
View Replies !
|