PHP WIN2003 IIS4+ And RUN Win32 PE .exe
How can I run by PHP on SERVER side calculator application it has name
calc.exe in c:windowssystem32 folder
View Complete Forum Thread with Replies
Related Forum Messages:
NT Installation (with IIS4)
After installing PHP on an NT we are having a few problems. First we can't seem to pull up files with the extension .html but the same files will work using the extension .phtml Is this normal for NT use? No big deal if so. Second, and most important, (in a PHP program that does work on another server) I am getting the following error from pages that use ' if ($submit) '. ************************** Warning: Undefined variable: submit in includes/product.inc on line 20 ************************** The program does work correctly, it just gives this warning. What have we missed? Oh yea, we are also getting warnings referring to variables used in an email() at the end of the entire site. But the variables are coming through with the email.
View Replies !
Encryption In WinNT/IIS4
I'm using Windows NT with IIS 4 (it's not my fault ), and I'm wondering what encryption possibilities there are. Crypt/mcrypt/encrypt/decrypt don't seem to work. I'm using PHP4...
View Replies !
Get Auth'd Username From IIS4 Challenge?
I'd like to setup some intranet pages that are personalized by user. However, I'd like to keep my users with one name/password that's dynamically updated in all "places" when they change their userame and password. Thus, I think I want to use IIS4's built in NT Domain auhentication. Now, I know how to suck the current authenticated user in VBScript ASP code... is there any way to get this same info in PHP? Would a session variable be the way to go, putting the auth routines in ASP and then transfering the info to PHP with session vars? or something else "Secure"? I'm not a pro on session variables.
View Replies !
Php_gd And Win2003
I'm doing a migration of my web serve from iis 5 to iis 6. I solved nearly all my problems but i can't solve this one with php_dg when id do ImageGif($Im) i get an error imagegif: unable to open temporary file in <b>C:UMOunimedlibphpcurseur.php</b> on line <b>73</b><br> My question is : what temporary directory php_gd use on win 2003 ?
View Replies !
Win2003 Server
I would like to install and configre PHP on 2003 but I cannot do it. I have tried all the procedures on the web but still not able to do it.
View Replies !
Win2003 PHP 5.2 Install Using Installer
I am unsure what IIS to select - We are running IIS6 and the closest option I see is IIS/PWS Which WEB Server do I select during the install for IIS6 Also when I selected IIS/PWS the install failed saying it could nto locate a file which needed to run and I should contact the package supplier which of couse is php.net Running 2003 Server Standard 64bit edition.
View Replies !
Ssh2_exec() With Cygwin On Win2003
I'm having troubles with ssh2_exec() agains SSH on Windows 2003. I can connect from Linux/Apache2/Php5 to a Cygwin SSH service running on Windows 2003 server. (Actually, tested with the same Cygwin configuration on multiple Windows 2003 servers) Each first time that I use ssh2_exec() it works fine. I can read from the resulting stream. When calling ssh2_exec() a second time or more on the same connection, it fails without returning an error. It produces also an empty stream output (nothing on stdout and nothing on stderr). When using ssh2_connect() and ssh2_auth_password() again to get a new connection between each ssh2_exec() call the script works fine. But this dirty trick isn't very resource friendly :( When I test my instructions manually by using putty to connect to the Windows 2003 servers, all works just fine. When I test the same script against some Cygwin SSH services running on Windows 2000 servers it also works fine. Maybe someone has got an expierence with ssh2_exec() and an SSH service running on Windows 2003 ? Or a clue?
View Replies !
Problem LDAP And Win2003 AD
I'm trying simple scripts to browse an Active Directory via LDAP functions ... My domain is: schoollm.lan The script I'm trying: ---------- $root_dn = "administrator@mascheroni.lan"; $root_pw = "secret"; $conn = ldap_connect("192.168.10.1") or die("Could not connect to server"); ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3); $r = ldap_bind($conn, $root_dn, $root_pw) or die("Could not bind to server"); $result = ldap_search($conn,"dc=schoollm, dc=lan","(cn=*)") or die ("Error in search query"); $info = ldap_get_entries($conn, $result); for ($i=0; $i<$info["count"]; $i++) { echo "dn is: ". $info[$i]["dn"] ."<br>"; echo "first cn is: ". $info[$i]["cn"][0] ."<br>"; echo "first email address is: ". $info[$i]["mail"][0] ."<p>"; } echo "Number of entries found: " . ldap_count_entries($conn, $result) ldap_close($conn); ---------- I always get this error:
View Replies !
Schizophrenic PHP Under Win2003 Server
I am experiencing a MAJOR issue on getting PHP to run properly under Windows Server 2003. Each and every time I worked with PHP I double-checked several places: The Web Server Extensions inside Computer Management / Internet Information Services (C:php5php5isapi.dll)The Application Extensions inside Computer Management / Internet Information Services / Web Sites Properties / Application Configuration (C:php5php5isapi.dll)The Path inside My Computer / System Properties / Environment Properties (C:PHP5; )Each and every time, these were set to what they should have been. The first several times, I tried to use the MSI Installer. This would work for one or two tries (of loading phpinfo.php), and then it would crash, especially so after restarting the www service. Even rebooting didn't fix the problem. Once PHP crashed, it would crash PERMANENTLY, without any chance of reversing the problem except by uninstalling and reinstalling. All it would give is either a totally blank page, or a complaint about an exception. Rebooting didn’t solve the problem, and neither did leaving it alone for a day or two. Once the error occurred, that was it. Game over. Then I tried using the plain ZIP package, and unzipped PHP into its own directory under C:. This *did* work, and still does work, somewhat. However, I am unable to change any PHP options, BECAUSE IT SEEMS TO COMPLETELY IGNORE PHP.INI Yes, you read right. My PHP installation completely ignores the php.ini file, no matter where I put it (such as C:Windows... yes, that too is ignored). As such, I am unable to get PHP to connect (via phpMyAdmin) to the MySQL server I have installed, and I am unable to get PHP to accept any other config options (such as setting the correct time zone to America/Vancouver). Once again, rebooting does not solve the problem. Could someone either tell me where I need to put php.ini in order for PHP to truly “see” it, or tell me where the “master config file” that PHP really uses (prior to accessing php.ini) is. PS, I only have one machine available to act as a server, and it already is doing a lot of jobs, so setting up a second server - such as a dedicated Linux box - is currently not possible.
View Replies !
Problem With GD On Win2003 Server
I am having problems with a hosting script that uses GD to display images in the browser. It is on a Windows 2003 standard with PHP 4.3.11 and mySQL 4.0.25. I have tried many many different ideas so far and searched through this forum however have been unable to find a resolution to this problem! Code:
View Replies !
MAIL On Win2003 Server With IIS6
I'm running a webserver: Win2003 w-IIS 6 We have a separate Windows box for email. An SMTP server. I'd like to use the PHP mail() function to send email messages from webpages (as in submitting forms), but this PHP mail function does nothing. I cannot get the webserver to send mail. The PHP mail functions are coded properly. Originally I had php.ini pointing to my smtp server (other box), and when this did not work, I set up in IIS an SMTP virtual server on my webserver, and then had this point to my real smtp server. I changed php.ini to point then to localhost for smtp. Still no luck. Code:
View Replies !
5 Setup Problem Win2003 IIS6
i have just decided to install php5 on my server, i have done a manual install and done every by the book in regards to setting it up via isapi however whenever i try and load a php file through the web browser i get a login box pop up and i have no idea how to get rid of it or get past it. using IIS 6 (no option in changing currently hosting 10webpages off it) windows server enterprise 2003 php5 mysql 4.1 (not setup with php yet, currently just for web stats) also to note that i don't use the default directory (C:webphpbb) for the forum that i am setting up....
View Replies !
Odd Behaviour With Session Variable/ Win2003 / Php App ..
My app is basically a few php pages linked together, nothin fancy. To use the app one must login. Once someone is logged in, I keep track of their page requestes and what not in a postgresql database via $_SESSION. Today at 13:00, my stats tracking stopped. No changes were made to the code or anything related to the site (that Im aware of..). Everything looks like it is working properly, except my login/usage has stopped working, that is, no more records are being added to my usage table. Code:
View Replies !
Fatal Error: Win2003 & Mysql_connect Function [PLEASE HELP]
I am running Win2k3 Server and when I try to use the mysql_connect function I am getting an error: Fatal error: Call to undefined function mysql_connect() in C:Inetpubwwwrootprogramsindex.php on line 8 Now, I def know I've configured my php.ini correctly (its literally the same as my XP machine) and I know that mysql works fine with PHP as I can run it from the command line :D I've got the files (tried in multiple places - but happiest with it in my php & php/ext dirs with Windows path set.) PHP 5 is running as an ISAPI (for some reason I cant get the CGI to parse php files). I have amended my php.ini with the doc_root, and cgi-force_redirect and extension dir - all the permissions on my php / inetpub folders have been given set for iusr, iwam and IWG full control (purely for troubleshooting). MySQL is 4.1, IIS 6.0 on Windows 2003 with PHP 5.
View Replies !
PHP5, Win2003, Create Any File Or Folder On The Server
If I create any file or folder on the server and run the php file it works with no problem. As soon as I copy a website from another server onto this one none of the php code works and the browser only shows the actual php code. Is there a permission I need to set? I have never had this problem...
View Replies !
Problem Executing Command Line Scripts On Win2003 IIS6 PHP4 Box
we're running an Win2003server with IIS6 and PHP4 in fastCGI config. When i try to use system() command to execute ffmpeg.exe it works ok when i run the PHP script from the commandline on the server, but when i run it from the webbrowser i get a return value: 128 and nothing happens. I checked for all the security settings, and everything seems fine. Does anybody have a clue where i should be looking?
View Replies !
Using PHP From Win32
I am writing an app (in Delphi) that loads a template with HTML and PHP and my own custom tags on it. I would like to know if I can pass this data (maybe as a phar or stream) somehow to php.exe or a php dll and receive back my parsed template (now php free). I can then parse for my own custom tags...
View Replies !
GIF On Win32
I am primarily a Cold-Fusion developer and am looking for a way to create GIF images on the fly.. I have installed php-4.0.6-Win32 and enabled php_gd.dll but I find no GIF support.. I need to make a series of gif images. I will pass two strings one for the maroon underline the other for the black text the image width has to be 160 pix and the height dynamic based on how many lines of text you end up with.
View Replies !
APC And PHP 5.0.5 On Win32?
I'm looking for APC compiled for PHP 5.0.5. It's not included the PECL extension bundle on php.net or anywhere else. There is a PHP 5.1 version but I don't (yet) know if that will work (I'm assuming not). Does anyone have a Win32 compiled version of APC for PHP 5.0.5?
View Replies !
What User Does Php Run As On Win32
I need to know what user php runs as on win2k/iss 5 installed as cgi. Basically what i'm trying to do is modify files on another server with php, and I can't figure out what user needs access to those files/directories so php can get at them.
View Replies !
PHP And Win32 API - GetOpenFileNameA
I am have been looking at using the Win32 API library with PHP and have managed to get the sample code working to produce message boxes. <?php define ("MB_OK", 0); dl('php_w32api.dll') or die ("can't load w32api"); w32api_register_function("User32.dll", "MessageBoxA", "long"); MessageBoxA(NULL, "sample text", "msg box title", MB_OK); ?> What I need is some advice or pointers to tutorials, which show how to invoke the standard windows open dialog box. I have the following code which runs but doesn't open a dialog box. w32api_register_function("comdlg32.dll", "GetOpenFileNameA", "bool"); GetOpenFileNameA();
View Replies !
PHP Extensions Win32
I'm trying to get some different extensions loaded and no matter what extension I try it always comes up with an error saying it could not find the module. Even though the pathname is correct. I have php loaded in c:php4 and the extensions c:php4extensions ; Directory in which the loadable extensions (modules) reside. extension_dir = "C:/php4/extenstions/" Here are the two changes I've made, Code:
View Replies !
OpenSSL With PHP On Win32
I need a little shove in the right direction. I've got the openSSL extension successfully installed for PHP http://www.php.net/manual/en/ref.openssl.php But I'm not having any luck using it. FYI. I'm wanting to encrypt data in a database with a public key and decrypt with a private key (openSSL seems to be the best solution..). system: Apache/1.3.24 PHP Version 4.3.3 NT 4 echo '<PRE>' $privkey = openssl_pkey_new(); echo gettype($privkey)." "; while (($e = openssl_error_string()) !== false) { echo $e . " "; } echo '</PRE>' outputs: resource error:0E06D06C:configuration file routines:NCONF_get_string:no value (above error a total of 6 times) same prob with $privkey = openssl_pkey_new(array('config'=>'c:/php/openssl/openssl.cnf')); I'm using the openssl.cnf that came with php
View Replies !
Sendmail_from Win32
using the mail() function i am getting this error Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:Program FilesxamppxampphtdocsJayform_p.php on line 38 Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:Program FilesxamppxampphtdocsJayform_p.php on line 40 although i have defined a sendmail_from user in my php.ini Code:
View Replies !
Php-5.2.0-win32-installer
I have a Windows XP system with iis 5.1 seems that my iis 5.1 is not listed during the installation of the downloaded php-5.2.0-win32-installer.msi , Lots of others, but not 5.1. What is the best way to get php working on iis 5.1.
View Replies !
Mod_rewrite In Win32
I have Apache installed on Win2K, and can't get it to work. I've tried countless tutorials utilizing Apache configuration settings, as well as .htaccess, and can't get it working. Typically, I get 404 errors which would indicate to me that it is looking for the literal path, instead of using the rules I have set up.
View Replies !
Win32 File Upload
I'm trying to stage up a our salesman's Windows 98 laptop to be used for demonstrating our php/mysql products. I've got Apache, php3, and mysql all working except the file upload is giving me the following Warning message: Warning: Unable to open d:tempphpphp2 in d:/apache/apache/htdocs/ulimg.phtml on line 28 The tempphp directory exists and it is also explicitly specified in the php.ini file.
View Replies !
Enabling GIF Support In Win32
I'm writing a script that will automatically resize uploaded images into Thumbnails. I'm running Apache with PHP on Windows 2000 and I have enabled the GD extension in the PHP.ini. My code works fine for JPEG but for GIFs it claims that GIFs are not supported in the build I'm using. GIF is not listed as enabled under the GD section of phpinfo();. How do I enable GIF support on the Win32 PHP version of the GD library (php_gd.dll)?
View Replies !
Problem Enabling DOM XML On Win32
I'm running PHP 4.3.2 with Apache 2.0.46 on Windows XP Home. Intel P4 1.5GHz chip with plenty of memory. I'm trying to enable DOM XML functions in PHP and having a bit of trouble. Per the PHP manual's instructions, I've done the following: 1. Edited my php.ini file like so: [snip] ;Windows Extensions [snip] ;extension=php_gettext.dll ;extension=php_hyperwave.dll extension=php_iconv.dll <-- removed the ; ;extension=php_ifx.dll ;extension=php_iisfunc.dll 2. Installed iconv.dll (ver. 1.9.1.win32 downloaded from http://www.zlatkovic.com/libxml.en.html) in C:WindowsSYSTEM32 3. Restarted Apache I created a test PHP file with the following code: <?php $storyfile = "story.xml"; $storydoc = domxml_open_file($storyfile); $storyroot = $storydoc->root(); $nodes = $storyroot->children(); printr($nodes); ?> to test everything out. PHP returned the following error: Fatal error: Call to undefined function: domxml_open_file() in C:Apache2htdocsxmldom.php on line 5 Just to make sure I wasn't using the wrong function, I replaced domxml_open_file() with the deprecated xmldocfile() function, and got the same result.
View Replies !
Can't Get PHP To Work With Apache For Win32
the strange thing is that there is no php4apache.dll file supplied in the downloaded PHP package. I even search my complete disk. Strange because I downloaded PHP v4.3.7 from PHP.NET a couple of months ago, and it has been working OK with the Abyss webserver since then.
View Replies !
LDAP Configuration On Win32
I have php 4 installed on a win 2k prof machine. I can't seem to get LDAP configured correctly. In the php.ini file I included the 'c:phpextensions' for the extension_dire. Then I uncommented the extension=php_ldap.dll line and copied the phpldap.dll to the 'c:phpextensions' location. I restarted IIS but had no luck loading the ldap.dll. The web site couldn't it seemed to be trying the load the ldap.dll but just timed out.
View Replies !
Creating Win32 Sercice In PHp
any one have worked on creating windows service using PHP. php has win32_service library for creating, deleting .. etc but could any one guide me how to use these library to crate a windows service.
View Replies !
Function Like Pcntl_fork For Win32
I am attempting to fork a socket script in a windows enviroment and am running into a serious problem. As you may know pcntl is not available in windows. I have thought about using ticks but that would not realy fork the script. I also thought about using an exec function but that will only run the script in the background.
View Replies !
Work With Apache For Win32
I have the Abyss webserver installed on my Windows 2000 workstation, and it works OK with PHP (v4.3.7). Since I also have a Linux server at an other location, I wanted to have similiar web server setup at home, so I tried to install Apache webserver for Win32 (v1.3.33), but can't get it to work with PHP. My PHP.INI has the, ; Enable the PHP scripting language engine under Apache. engine = On There's nothing about PHP inside the httpd.conf file. Have I missed something here?
View Replies !
Updated SNMP Support For Win32?
I performed binary installs of Net-SNMP and PHP 4.4.4 on my Windows XP laptop so that I can do some offline development/testing away from my Linux server. Anyway, I attempted to do some SNMPv3 gets/sets and I am greeted with "Encryption support not enabled" whenever I try and do any SNMPv3 call. I thought it was Net-SNMP, so I did some googling and found that you need to compile Net-SNMP from scrtach with OpenSSL support to get SNMPv3 to work. I did, and I am now able to do SNMPv3 gets with Net-SNMP. However, I cannot execute snmp3_get() from any of my PHP scripts, I get the above encryption message. I ran phpinfo() on my XP machine and on my linux server and the SNMP section is quite different, my XP machine has support for "ucd-snmp-4.2.3" and my linux server has support for "Net-SNMP-5.1.2" Are there updated versions of php_snmp.dll for a Windows install of PHP? If so, where can I get them and are they compatible with PHP 4?
View Replies !
Problems Writing With Exec() On Win32
I'm having trouble executing commands using exec() or system() that need to write files. I've set the permissions on CMD.EXE but I can't use exec() to write any files, even if the folder I'm writing to has write access to IUSER account and PHP can write to the folder directly. eg. Calling exec('echo hello >C:writablefolder ext.txt') does nothing, but if I type that same command into a shell prompt it works fine. Also just calling exec('echo hello') returns "hello" so it's definatly executing the command. Does anyone know how I can fix this? What I'm trying to do is use ImageMagick to do some image manipulation. Version of PHP I'm using is 5 rc2 on Win2k IIS using the isapi module.
View Replies !
Session_start Causes Apache To Crash (Win32, PHP 5.1.1)
Does anyone have a problem with Apache2 crashing after executing a PHP script with session_start()? I notice if session_start() is placed anywhere except at the start of the file, APache will crash. Can anyone explain to me why? I don't want session_start to be at the start of the file because I need to override some session methods. So session_start has to happen after the declaration of custom session methods.
View Replies !
[PHP 5 MySQL 5 Apache2 Win32]Hi Everybody, I'm Really Stuck
Am I the only one on this planet to try: PHP 5 MySQL 5 Apache 2 On Windows XP no firewall With Symantec Norton Internet I got apache 2 and PHP 5 to work fine. Previously, using a package called Wamp 5 ( PHP5, Apache 1.3., MySQL 4) , I managed to read a table in a PHP page. No I got an error message at the first MYSQL function: $database = mysql_connect( $server, $user, $password ) PHP complains that he doesn't know this function. I have these lines in the php.ini file: extension_dir = "c:phpext" and both extension=php_mysqli.dll extension=php_mysql.dll just in case he wants to pick one. Also I copied this dll in c:windowssystem32 libmysql.dll So I'm really at a loss, and frustrated, I feel like I done my homework and got an F--. I really do need MySQL 5 for the triggers and I don't feel like configuring Apache 1.3 for security now and having to do it again later for Apache 2 from scratch. I'm ready to everything, even reading some wikipedia faq if I have to.
View Replies !
PECL Dll's For Win32 / ImageMagick 6.0.3
I have tried to install ImageMagick on my server, but my apache stalls when i try to start it with the following line added to my php.ini file: extension=php_imagick.dll I can't even kill the apache procees when I try to run it with this option added, so I have to restart the entire server each time I have to return to the original setting of php.ini I have installed ImageMagick on my server, downloaded from http://www.imagemagick.org/ and the php api for it from http://kromann.info/pecl.php (rediredted from) http://pecl.php.net. According to the 'kromann' page I must install another dll as well for the extension to work, and I have placed this dll in the dll directery under php along with the 'php_imagick.dll', but the result is the same. I have also tried copying the dll's to the root of the php installation, the winNT root and the winNT/system32 folder, but the result is the same. Im running php 4.3.7 , apache 1.3.31 and win2000
View Replies !
Php_threads.dll Crashed My Php5 Win32
It turns out that the culprit that crashed my php5ts.dll as below is php_threads.dll. Is there any fix for this? BTW: I remove php_threads.dll from extensions and it works now. Am I going to miss any any critical php5 functionality withouth php_threads.dll? Thanks "Sarah Tanembaum" <sarahtanembaum@yahoo.com> wrote in message news:2mq6b2Fp1in7U1@uni-berlin.de...[color=blue] > I have Apache 2.0.50, PHP 5, Windows 2003 Server and have the following > error in EventViewer: > > Faulting application Apache.exe, version 2.0.50.0, faulting module > php5ts.dll, version 5.0.0.0, > fault address 0x0003e2fd > > And when I execute <?php phpinfo(); ?>, it display almost instantly but[/color] the[color=blue] > status bar show that its still opening the file and then give me error. >
View Replies !
Apache Win32 + Php + Mysql Issues
i've just recently reinstalled windows, and i'm having a very bad problem with apache (win32) + mysql + php. For starters i installed everything like normal. Apache v. 2.0.50 PHP v. 4.3.8 Mysql 4.1.4Gamma I then installed phpmyadmin, i noticed it was having a problem connecting to the database, citing an incompatible/outdated client. I looked up some infos in the documentation and it told me to check the version of the php api by calling phpinfo(); Client API version 3.23.49 Why is it only 3.x? Shouldn't it be 4.xx.xx? Is this the reason phpmyadmin won't work? How do i fix this? btw i've deleted all occurances of libmysql.dll and still have the same issue.
View Replies !
Run Win32 Executable In Browser/client ?
I have a intranet website on one of our windows machines that runs apache 2.0 and php5. In the browser, for one particular link on the site, I want to run a win32 command line program on the client windows machine, (if the program is there). This command line utility returns a string to standard output. I want to capture the string and return it to the server and then process it in some php (compare it to existing records in a mysql database. and write it if new). Once I have the string in php I can handle it from there. I know this isn't strictly a php question, but I hoped someone could give me pointers as to what techiques I might need to use so I can investigate further, or suggest a more suitable forum for this problem ?
View Replies !
Apache/2.0.54 (Win32) PHP/5.0.5 Multiple Output
With the config mentioned in the topic, all on localhost, Win xpsp2, i created a caledar-table. The output should be a daily calendar for half a year with about 15 cols. So everything works fine on the console, output is as it should be. But when calling the script via apache, the table is either truncated or it comes twice or three times or i get an 404-Error with the table appended.
View Replies !
Providing Encoding With Setlocale On Win32
I need to set the encoding that the locale data is returned with from the OS. In a linux server setlocale(LC_TIME, 'he_IL.utf-8') works fine. However I'm unable to set utf-8 with any locale code when the host OS is windows.
View Replies !
PHP Editor/IDE - NuSphere-phped-5.0.1evl-Win32. Exe
I am very, very new to PHP. I have managed to get 'Hello World' and phpinfo to run (XP Pro, Apache, php 5) but I would appreciate the ability to debug my way through a script. I have down-loaded NuSphere-phped-5.0.1evl-Win32. exe and php_editor_php5.exe and I am pretty confused as they seem to be (almost)...
View Replies !
|