PHP And Win32 API - GetOpenFileNameA

Jan 20, 2004

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();

ADVERTISEMENT

Using PHP From Win32

Apr 22, 2002

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 2 Replies View Related

GIF On Win32

Sep 4, 2001

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 4 Replies View Related

What User Does Php Run As On Win32

Oct 16, 2002

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 5 Replies View Related

PHP Extensions Win32

Oct 2, 2003

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 4 Replies View Related

Sendmail_from Win32

Feb 12, 2007

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 5 Replies View Related

Php-5.2.0-win32-installer

Jan 22, 2007

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 3 Replies View Related

Mod_rewrite In Win32

Apr 17, 2005

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 6 Replies View Related

Win32 File Upload

Nov 17, 1999

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 1 Replies View Related

Enabling GIF Support In Win32

Nov 2, 2001

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 3 Replies View Related

Problem Enabling DOM XML On Win32

Jul 17, 2005

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 2 Replies View Related

Can't Get PHP To Work With Apache For Win32

Jul 17, 2005

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 2 Replies View Related

Standalone WIN32 Application In PHP

Jul 17, 2005

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...,

View 11 Replies View Related

Win32 Filetime Conversion

Nov 26, 2006

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 ?

View 2 Replies View Related

PECL Dll's For Win32 / ImageMagick 6.0.3

Jul 17, 2005

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 3 Replies View Related

Win32 Binaries For Mcrypt Lib

Feb 13, 2000

Anyone have any idea where I could get just the binaries for mcrypt? I dont do 'C' anymore (php is too much fun <g> ).

View 3 Replies View Related

Function Like Pcntl_fork For Win32

Aug 29, 2006

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 4 Replies View Related

Work With Apache For Win32

Jul 17, 2005

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 2 Replies View Related

Creating Win32 Sercice In PHp

Apr 11, 2007

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 3 Replies View Related

Updated SNMP Support For Win32?

Dec 5, 2006

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 1 Replies View Related

Problems Writing With Exec() On Win32

Jul 17, 2005

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 4 Replies View Related

Session_start Causes Apache To Crash (Win32, PHP 5.1.1)

Dec 20, 2005

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 4 Replies View Related

[PHP 5 MySQL 5 Apache2 Win32]Hi Everybody, I'm Really Stuck

Feb 21, 2006

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 12 Replies View Related

Apache Win32 + Php + Mysql Issues

Jul 17, 2005

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 2 Replies View Related

Run Win32 Executable In Browser/client ?

Aug 10, 2007

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 1 Replies View Related

Install PEAR On Win32 System

Jul 21, 2006

how to install PEAR on Win32 system?

View 1 Replies View Related

Apache/2.0.54 (Win32) PHP/5.0.5 Multiple Output

Sep 13, 2005

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 2 Replies View Related

APC Locking Mechanisme Alternative For Win32?

Mar 10, 2010

I want to use APC for php for storing and fetching values (function calls and return values) between a endless running php process and multiple client processes. The endless running process constantly checks for newly stored values. I am running php as a Apache module on WinXP. For each APC function call a apc.lock.* file is placed in the windows temp directory. My harddisk runs overtime. Is there an other locking mechanisme that can be used (or disable locking) in for APC?

View 1 Replies View Related

Installing LibXml DOM Support For Win32?

Jan 23, 2003

get the libxml DOM extensions installed PHP uses the Gnome XML library which is developed by [URL] For Windows 32 platforms, the maintainer is Igor Zlatkovic.You can obtain the Windows 32 binaries here:[URL] Download the libxml and iconv distributions Copy iconv.dll and lib2xml.dll in the windowssystem32 directory Open up the php.ini file located in the windows directory Remove the semicolon to enable:

extension=php_domxml.dll

Add the following:

extension_dir = c:Phpphp-4.2.2-Win32extensions

Run phpinfo() and you will see the following:

domxml
DOM/XML enabled
libxml Version 2.4.21

[code]....

To prove binding, run a simple call:

$dom = domxml_new_doc('1.0');

View 3 Replies View Related

Php5 - Make Win32 API Calls?

Sep 11, 2009

I know that I can consume COM components but is there a way to directly call into the Win32 API's (user32.dll, advapi32.dll etc) from PHP or do I need to wrap in a PHP extension or COM object?

View 2 Replies View Related

PHP Editor/IDE - NuSphere-phped-5.0.1evl-Win32. Exe

Oct 8, 2007

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 12 Replies View Related

Apache2/PHP5/MySQL4 Problems On Win32

Jul 17, 2005

I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.

I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll'
and copied libmySQL.dll to WindowsSystem32 (as well as Windows,
Apache2in, and anywhere else I could think of).

Now, whenever Apache starts it gives the following error:

PHP Startup: Unable to load dynamic library
'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified
procedure could not be found.

The file exists on that path, everyone has permission to read/execute it.

View 4 Replies View Related

Shockwave/Flash Library (PHP Extension (win32))

Dec 16, 2000

I'm looking for the SWF library... any one know where I can find the dll file?

View 2 Replies View Related

WIN32 Sendmail Install Note PHP4

Jun 15, 2001

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?

View 2 Replies View Related

[Win32] Regexing A Pattern From A Binary File?

Jul 17, 2005

Hi,

I'm a PHP newbie, and am stuck as to why I can't find a pattern in a
Win32 binary file.

I'm actually trying to extract the FileVersion information myself
since PHP under Unix doesn't seem to offer support for the PE file
format:

-------------
<?php
$file = "C: emp est.exe";
$fp = fopen($file, "rb");
$contents = fread($fp, filesize($file));
fclose($fp);

//Unicode?
//If (eregi('F.i.l.e.V.e.r.s.i.o.n', $contents)) {
//if (eregi('FileVersion', $contents)) {

if (eregi("This program cannot be run in DOS mode",
$contents)) {
print "OK!";
} else {
print "Outta luck...";
}
exit;

?>
-------------

Any idea?

Thank you for any tip
Fred.

View 2 Replies View Related

Use One Apache-Win32 Server Setup With SSPI?

Feb 15, 2010

I am wanting to use one Apache-Win32 server setup with SSPI to act as an authentication server. In doing so setting a cookie and redirecting to my application server running on Lighttpd/FastCGI that will make use of the cookie set by the SSPI page earlier. For one server to set a cookie and have another use the cooke set by the other server? Or is this a security breach?I was trying to use

[PHPNET]setcookie("REMOTE_USER",$_SERVER[REMOTE_USER],0,"/","domain.local");[/PHPNET]
and then reuse the cookie by accessing of course $_COOKIE["REMOTE_USER"];

View 2 Replies View Related

Strange Behavior When Loading MySQLi Extension On Win32

Feb 12, 2007

I have come to love the ease of updating PHP, since getting used to
using it these past few years. Recently, however, when I upgraded from
PHP 5.1 to PHP 5.2.0 and again when moving to 5.2.1, I noticed strange
behavior when trying to load php_mysqli.dll. I am using Apache 2.2.3
on Windows XP Pro (32-bit). I use the php5apache2_2.dll to load PHP as
an Apache module. The PHPIniDir directive in httpd.conf points to the
correct directory. I also have the older php_mysql.dll extension
loaded simultaneously, which works fine. However, in phpinfo(), MySQLi
is nowhere to be found, and trying to use any mysqli functions or its
class will yield an error saying that they're undefined. In php.ini,
the extension_dir directive points to "C:php5ext".

As for the environment, I have my PHP install dir in the _System_ PATH
(it's been there for a long time): C:php5. When I install, I just
move new release into the php5 directory, so necessary DLLs for
extensions do not need to be moved, and older versions can be
overwritten for newer releases. In fact, mb_string, mcrypt, GD2, cURL,
php_mysql, and many other extensions load just fine. However, the only
way I can get MySQLi to load correctly is by moving libmysql.dll into
my C:WINDOWSsystem or C:WINDOWSsystem32 folders.

I simply can't understand why the problem lies only with MySQLi. Also,
when I restart Apache, there are no errors. The MySQLi extension
directive in php.ini is also uncommented, by the way. :-)

This has only started to happen since my past couple upgrades, so I'm
not sure exactly what to make of that.

View 2 Replies View Related

Install Apache,mysql Through Xampp-win32 Installer?

Mar 7, 2009

I am trying to install php,apache,mysql through xampp-win32 installer. But i am getting an error that "apache installation failed.port 80 and 443 already in use". I am using windows xp os.

View 1 Replies View Related

Getting Error Appserv-win32-2.5.10 / "The Requested URL /xxxxfile.html Was Not Found On This Server?

Jun 14, 2011

I have an error with appserv-win32-2.5.10 (localhost). I am new to appserv. The error message is "The requested URL /xxxxfile.html was not found on this server. I'm tired to fix this.

View 1 Replies View Related

ADVERTISEMENT