Skip to content

Tag: windows

how to set environment variables in apache xampp ?

I would like to add some environment variables in apache xampp in windows. I already tried the following : adding this in httpd.conf or, run this script but that doesn’t seem to work when I echo phpinfo(), there isn’t ENVIRONMENT variable in the environment section Answer I know this is an old pos…

Run powershell in PHP with new-Object

I have to manage a cash register from PHP. If I run the following commands via cmd there are no problems. The cash register print the string perfectly. I write the commands in this order: The problem comes when I try to do this from php. I created a web server ( XAMPP ) to ensure that it can send

Copy to clipboard from php command line script in Windows 7

I have a php (5.5) script which I run from the command line in Windows 7. Something like this: My question is, is it possible to copy something to windows clipboard from the script? I want users to have some text available in the clipboard after running this script from the command line. How can it be done? A…

How to install ImageMagick for PHP5.3/5.4 on Windows 8 x64

I need install ImageMagick for PHP 5.4.7 on Windows. How do I install it? Answer Step by step: Download the binary version for Windows Install you binary version. Test you install in CMD Execute convert in CMD. If this work, the intall is success. Now, download Imagemagick DLL for PHP Open imagemagick-php54-p…

Gettext will always use system default locale

I need to localise a Windows-only PHP web application and I’m evaluating the gettext extension but I’m having the hardest time trying to make it work in my Windows 7 development box. I’ve used trial and error together with Process Monitor to overcome the poor and inaccurate documentation and…