Executing External Programs From PHP4 On Windows98 With Apache 1.3.14 For Win32
I did a search, and did not find anything specific on this topic, so here goes:
Trying to create a webpage button or link that when pressed executes Win98's "dialer.exe" with a phonenumber as a passed parameter. From my understanding, the exec function in PHP seems to work best with Linux (correct me if I am wrong please!). Are there alternatives?
The other bit of knowledge I have not been able to find (and really is outside this forum), is that dialer.exe is supposed to accept control from external programs, but I have yet to find docs or examples of such.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Executing External Programs
I know all the different functions that allow me to execute an external progam, however I have come across and interesting problem that I need to fix if it is at all possible. Is there a way that I can use the php functions and execute an external program by some other user other then who ever owns the apache process?
ImageMagick And Executing External Programs
I have installed ImageMagick and GhostScript (Windows/IIS) and IM is working from the command line (specifically the convert command) so now I need to get it working in php. To that end I have the following code: <?php system("c:Program FilesImageMagick-6.3.4-Q16convert.exe c:InetpubwwwrootexpgraphicsimgMagick est_file.ai c:InetpubwwwrootexpgraphicsimgMagickAIC.png",$retvar); echo $retvar; // Now you can check the $retvar for errors ?> c:Program FilesImageMagick-6.3.4-Q16convert.exe - the root folder for IM, location of convert.exe c:InetpubwwwrootexpgraphicsimgMagick est_file.ai - the location of the target image to use for conversion c:InetpubwwwrootexpgraphicsimgMagickAIC.png - the location, name, and format for the converted image Using the above code, it does not create a new png image. Before I set the permissions for the Internet Guest Account user to "read & execute" for the cmd.exe file located at C:WINDOWSsystem32, $retvar was echoing a value of -1. Once I set the permissions on C:WINDOWSsystem32cmd.exe, $retvar is echoing a value of 1. In either case, the new graphic is NOT generated. Is there something wrong with my syntax?
Executing Programs On A Server
i've written a c++ program that converts one file type to another via two arguments (the input and output filenames). i want to execute this on my server, using something like exec("myprogram.exe $arg1 $arg2"); but then I realized my server is linux, and my program was compiled for windows. so I uploaded the .cpp instead, and now i'm trying to compile it doing something like exec("gccp hello.cpp"); which returns an exit code 127... not really sure what that means. I'm guessing I probably don't have permission to be creating files on my server...is there anyway I can change this permissions or anything?
Executing Large Sclae Programs In Fortran Using PHP
I have some large scale programs in fortran in server and i would like to execute them by giving input through HTML/PHP forms.Iam trying with shell_execute... Is there any other approach to execute the programs (fortran,matlab,'C' etc) in server using PHP.
Running Php Programs On Apache Server
I am using Apache web server and i am trying to run php programs over it My problem is that the php programs aren't running at all. Instead i am receiving messages "BAD REQUEST ERROR 400".
Word Document Properties + PHP4+WIN32
In my PHP script I'm able to update bookmarks without in hassles but document properties just don't work! I know in VB custom properties can be changed with the following: wdApp.ActiveDocument.CustomDocumentProperties(MyPr operty) = "NewValue" How do I do this in PHP?
WIN32 Sendmail Install Note PHP4
How must I install sendmail in PHP4 to send or receive mail I have the Win32 Sendmail.exe and I don`t know what to do with it I have a Apache Webserver on Winnt4 server and PHP4 installed. Everything is working fine. I have made with frontpage a nice FORM with a PHP linked button to order. When I push the button you see that it works and when its ready nothing happend. I have read that I must enable the sendmail but how?
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.
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.
Installing Mod_perl On Apache Win32
I seem to have no apachecore.lib in my Apache Folder, C:Apache, I therefore cannot install Perl, what do I do?? I can't make the perl dll.. I have Visual C++ 6.0 Enterprice.
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.
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?
Php4.3.9 - Apache 2.0.55-mysql 4.0.16
Can php 4.3.9 work with apache 2.0.55 and mysql 4.0.16? I installed mysql 4.0.16 rpm first on Red Hat 9. Then, I downloaded apache 2.0.55 source code and installed it on Red Hat 9 as: ../configure --prefix=/usr/local/apache --enable-so No problem at all.I can start apache. Then I downloaded php 4.3.9 source code and installed as: ../configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql Unfortunately, the make gives me this error ..... ext/ctype/ctype.lo: file not recoganized, file truncated collect2: ld returned 1 exit status make *** [libphp4.la] Error 1
Dom And Excel Under Linux/apache/php4.04
I'm wondering if there is a way for me to create an excel document and fill it with the fields that have been provided to me by the user using a form ? can it be done using dom even if I don't use windows/iis ? I guess that under NT/IIS that whould be possible but I don't use NT/IIS I want to do this using Apache/PHP/Linux. If not, then do you think that I could do this: -create an empty excel document under windows -copy it on linux -now from linux/apache/php, every time instead of creating a new one I copy the empty excel doc to a new doc ex: empty.xls to form.xls -create the sells I need, populate the excel doc and send it via mail ?
Can Only Get Apache To Work With Mod_Perl Or PHP4 Not Both
I am able to start Apache with mod_perl & php3 modules loaded ok. However if I attempt to load PHP4 as well the mod_perl routines abort and cause seg. faults. PHP3 & PHP4 work fine together, PHP4 has support for mysql & pdf built in.
Win98, Apache & Php4.3 Installation
I tried to install php as apache module. Previously it has been cgi. WIn 98 is not supported but cgi worked fine, anyway. I tried to everything according to instructions in php.net, but still it didn't work. - I put php4ts.dll to windows/system32 directory. - I configured http.conf: - I used the path where I had put php download (PHP 4.3.3 zip package [6,180Kb]). - I commented these three lines that were for the CGI-install: # ScriptAlias /php/ "c:/php/" # AddType application/x-httpd-php .php # Action application/x-httpd-php "/php/php.exe" But Apache didn't start. It died because of this line: LoadModule php4_module "c:/HERE_WAS_MYPATH/sapi/php4apache2.dll" http://fi2.php.net/manual/en/install.apache2.php If you would like to use PHP as a module in Apache 2.0, be sure to move php4ts.dll for PHP 4, or php5ts.dll for PHP 5, to winnt/system32 (for Windows NT/2000) or windows/system32 (for Windows XP), overwriting any older file. You need to insert these two lines to your Apache httpd.conf configuration file to set up the PHP-Module for Apache 2.0: Example 3-8. PHP and Apache 2.0 as Module ; For PHP 4 do something like this: LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php ; For PHP 5 do something like this: LoadModule php5_module "c:/php/sapi/php5apache2.dll" AddType application/x-httpd-php .php Note: Remember to substitute the c:/php/ for your actual path to PHP in the above examples. Take care to use either php4apache2.dll or php5apache2.dll in your LoadModule directive and notphp4apache.dll or php5apache.dll as the latter ones are designed to run with Apache 1.3.x. Warning Don't mix up your installation with dll files from different PHP versions . You have the only choice to use the dll's and extensions that ship with your downloaded PHP version.
Select Problem With Apache, Php4.3 And Jet 4.0 Via ODBC On Win 2k/xp
I have done some bizarre things with PHP, but now I am involved in re-writing an application (from ASP.NET). The database however I can't change so easily as there are other dependancies, and it's JET 4.0 This is the table. TableRowID - AutoNumber UCID - Text TransactionTime - Date/Time etc... I have having trouble with getting any information out of it though...! I can complete the following: $db_resource = new accessDB(); $db_resource->host=$dbDSN; $db_resource->username=$dbUsername; $db_resource->open($dbPassword); // build option list based on the field names in the table. Query is run to just get the fieldnames $query='SELECT * FROM TransTable' $db_resource->query($query); $db_resource->get_field_names(); and although the fieldnames are returned through my function, if I try to extract the data from the query none is there... if I add a where statement I get an error which I can't resolve: SELECT * FROM TransTable WHERE ((TransactionTime>="2005-12-16 16:00:01") AND (TransactionTime<="2005-12-21 16:00:00")) ORDER BY TableRowID Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2., SQL state 07001 in SQLExecDirect in c:apache groupapachehtdocswmmcdb_access_class.inc on line 58 ideas?
Php4 With Apache On Macosx: Configuration Question
I have MacOS X 10.3 (not the server edition), which includes apache and php4. But php hasn't been compiled --with-gd, and I need it, so I downloaded the source (4.3.4) and configured it with options '--with-zlib-dir=/usr/local' '--with-libjpeg=/sw' '--with-libtiff=/sw' '--with-libpng' '--with-png-dir=/sw' '--with-gd' '--with-mysql=/usr/local/mysql' '--with-xml' '--with-dom=/sw' '--enable-cli'. After make && make install, I've got my new php in /usr/local/bin, which I can use from the CLI. But how do I get apache to use this version of php instead of the one bundled with MacOS? I guess (though I don't know anything much about httpd.conf) that I should put something like LoadModule php4_module /path/to/new/libphp4.so in httpd.conf but I can't find any libphp4.so anywhere (apart from the old one in /usr/libexec).
Global Variables, Apache, PHP4.4.1Win32, WinXP
How do I get a function to see a global variable without employing a parameter list? The source code: <html><head> <title>Simple Global Variable / Function Test</title> <?php $counter_file = "counter.txt"; // global variable //quickquote function function qq($sQuoteMe, $sQuoteChar) { return("$sQuoteChar$sQuoteMe$sQuoteChar"); } function updatecount() { echo('<p>$counter_file = ' . "$counter_file</p> "); } ?> </head> <body><?php echo('<p>$counter_file = ' . qq($counter_file, """) . "</p> "); // echo('Hits: ' . qq("qq test", '"')); echo('<p>Hits: ' . qq(updatecount(), """) . "</p> "); ?></body></html> ... echos the following HTML to the browser ... <html><head> <title>Simple Global Variable / Function Test</title> </head> <body><p>$counter_file = "counter.txt"</p> <p>Hits: ""</p> </body></html>
PHP Calling Programs On AS/400
I have a website (running on a linux machine) that currently makes use of JSP to access data on an AS/400. I've found information telling me that after setting up ODBC drivers on the linux server I'll be able to access the databases on the AS/400 however I've not found any information about executing programs on the AS/400. I've looked at the docs for exec, passthru, etc. and it appears those will only work on the local operating system. Is it possible for a PHP page to execute a program on a remote machine? If so, how does PHP handle the ASCII <--> EBCDIC conversion for parameters passed and returned?
POST Variables From Programs
we are trying to make a program in C++ that will comminicate with a PHP script. But we dont know how to get the variables from the program. We got it figured out with perl/CGI, but PHP seems to be a better way to connect to SQL server. On PHP the GET works, its easy, but it's not secure enough. I need informtion on what headers does the PHP require to get the POSTed data from a program.
Different PHP Programs - 1 Registered User Possible For All?
I am new to php and I have three php softwares that I want to install on one website. I'm wondering if a person registers for one, is it possible that he can access the other softwares also? Otherwise that person will have to register three different times for the same website to access all the resources. If it is possible, will I have to change anything?
Php Function To Implement C Language Programs
I want to know of a function in PHP that will allow me to run C language code. I am using a C library, for that I need to write C code. So how can I incorporate C code in a PHP program.
Scalability Of Perl Cgi Programs That Load Text Files
Suppose you have a perl program that is called by a web page to generate another web page. The program is written to load data from a text file on the server and make certain substitutions in the loaded text prior to the output of html. If one user is on the site, it should not be a problem. If many users try to access it nearly simultaneously, will it be a problem? example:
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...
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.
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?
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.
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();
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:
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
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.
Editing The Win32 Registry
Does anyone know if the equivalent of PERL's Win32::Registry module exists for PHP anywhere? If so, I'd be grateful for a push in the right direction.
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)?
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.
Standalone WIN32 Application In PHP
Is it possible to write a standalone Win32 application using PHP? Like creating a window from the PHP script, putting buttons and textboxes on it, handling clicks on the buttons etc...,
Win32 Filetime Conversion
I need a function to convert a date/time (dd-mm-yyyy hh:mm:ss) to a 64-bit win32 FILETIME and reversed. Is this possible with PHP ?
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.
Win32 Binaries For Mcrypt Lib
Anyone have any idea where I could get just the binaries for mcrypt? I dont do 'C' anymore (php is too much fun <g> ).
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.
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?
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.
[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.
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
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. >
|