Hosting PHP website that uses unix command "convert" on IIS - php

I thought I had checked so that everything would work when hosting this website on IIS but I missed a tiny detail.
Apparantly an image upload form on the website requires a unix command or program called "convert" (usr/bin/convert) to resize, set quality and generate a thumbnail for the images. I think it's called ImageMagick.
What would be the best approach to fix this? Is there perhaps a "convert" version for Windows or equivalent? I want to avoid rewriting the upload system too much. All suggestions except moving to a unix system are greatly appreciated.

There is a Windows version of ImageMagick:
ftp://mirror.aarnet.edu.au/pub/imagemagick/windows/ (or use any one of the other mirrors)
You will need administrator access to install it, though.

You can install ImageMagick on Windows

ImageMagick is available for windows as well: Link

What would be the best approach to fix this? Is there perhaps a "convert" version for Windows or equivalent? I want to avoid rewriting the upload system too much. All suggestions except moving to a unix system are greatly appreciated.
Wouldn't you be able to simply install convert on Windows? ImageMagick (where the convert binary comes from) has a Windows version too.

That is indeed ImageMagick, they have windows binaries available on their website here: Link

Related

How to install php on windows xp

every time I try to install php on windows I get a file called php-5.4.8.tar.bz2 I dont know how to install this kind of file can someone help me?
If you are new to PHP, then I would suggest you to use WAMP Server. Link below:
http://www.wampserver.com/en/
Install it, execute it, start working. Real fast and easy. It comes pre-configured with Apache, MySQL and PHP.
You're using the wrong file, you're on Windows not Unix!
This should help:
http://www.php.net/manual/en/install.php
yet, use a wamp server, it's simple and easy to use. enjoy your PHP trip ! :)
In case you're looking for a place to start learning PHP, I highly suggest this simple tutorial:
http://www.w3schools.com/php/
It's a very straight forward tutorial that'll get you started with PHP in no time!
You have downloaded the installation package for Unix based systems. You want to download the Windows Version. Note that you will also need to download an install Apache with this.
You may find it easier to install a full development package. I recommend WAMP or XAMPP. These contain all the tools you need to get started, including Apache, PHP, and MySQL.
Compressed archive created by bzip2, a file compression program often found on Unix-based systems; incorporates the Burrows-Wheeler compression algorithm as well as Run-Length Encoding (RLE) for high levels of compression; often used for Linux software package distributions.
Info about .bz2
You can unrar it using winrar

Simple way to setup PHP/MySQL in OS X?

Web-development novice here. I want to try implementing a simple web site that uses PHP and MySQL but I don't want to pay for server/domain hosting. Is there a simple way to just try out my implementation using only the local resources on my MacBook Pro (OS X 10.7) before making it live online? If so, what do I have to install? Thanks!
Check MAMP
http://www.mamp.info/en/mamp/index.html
Of course you can download source codes and compile everything as you want, but I strongly recommend MAMP. It contains probably all you need out of the box.
You can use Apache as webserver and install PHP, if i'm right apache is already installed in you OS, you can google for an apache+php instal tutorial for mac.
and if you dont want to mess with anything, use xamp
Just download Xampp, it contains anything you need.
http://www.apachefriends.org/de/xampp.html

Which is the simplest way to install PHP

I am very new to php.... please tell me the most easiest way to install it and run a sample app, some tutorials which do that....
I read something on internet but most of the time, all the tutorials were not ok... so i decided to ask here to find someone's else opinion...
Thanks
If you're on Windows, you can use WampServer which is pretty straightforward (just click next 3 times and you have Apache+mySql+PHP. For you development box of course (not for production).
In windows I would use WAMP or XAMP, in OSX I would use either the Native php installs or MAMP if you want to make it easy to configure.. On linux you should compile it from source.
Edit: As samuel says, only use these on Development machines, you should always compile your own versions for a production box!
You could use the MS Web Platform Installer.
I use AppServ it sets up Apache/PHP/MySQL and phpMyAdmin in about 5 clicks!

What's a Robust but Simple Apache / PHP / MySQL Installer for Windows Vista

I tried easyphp but i think it's not enough, I want an Apache / PHP / MySQL installer which has the latest PHP and MySQL version, and with curl and htaccess support.
Opensource solutions are preferred, should be windows vista compatible.
I have never heard of a PHP / mySQL emulator. What purpose would such a tool serve?
If you are looking for a ready-made installer package for Windows, containing everything necessary to install and run PHP, XAMPP is probably one of the best ones around.
WAMP Server is excellent, easy to install and easy to configure:
http://www.wampserver.com/en/index.php
If you want the last version of each piece of software, and to really do it the way you want, the best solution is to download an install each component separatly :
Apache : http://httpd.apache.org/
MySQL : http://dev.mysql.com/downloads/
And PHP : http://www.php.net/downloads.php
Of course, you'll have a bit more work to plug all those together than if using WAMP or anything like that -- but it also mean you'll know more about how they work and can be configured, which is always nice to know ;-)
Never heard of PHP or mySql emulators before. To run a php script you will need a webserver and the PHP engine to parse and execute the script. This cannot be emulated by another engine besides PHP.
I would suggest using Acquia Dev Desktop.
It installs Apache, MySQL & PHP with one click. Most importantly, unlike many other WAMP stacks, it works well under Windows Vista (32- or 64-bit). And as an extra, it installs Acquia Drupal for you as well, so if you ever want to get into Drupal development, you have everything you need to do so.
Get it at http://network.acquia.com/documentation/acquia-drupal-stack
I'm a BitNami developer and I personally suggest to use BitNami WAMPStack. It is free, it also includes phpMyAdmin for managing the MySQL databases and GUI management tool for the servers. Per your requirements, it is open source, compatible with Windows Vista and Windows 7, includes curl and htaccess support and we keep it fairly up to date.
XAMPP Lite USB
"XAMPP Lite" is an additional extra small XAMPP edition. Configured with relative paths you can use it on usb devices.

How to work with PHP on Windows XP?

I want to do a sample program in PHP on Windows XP.
Do I need any special software to get this to work?
I am afraid that I simply open notepad type the PHP program and save it with php extension. Then I open it with the browser as a HTML file. But it does not work.
Please help
Thanks in advance
However you decide to install a webserver and php (or just php and use it in the console like someone mentioned):
Check out the PHP Manual, especially the Getting Started section.
Apache (Very, very easy)
Check out the WampServer getting started presentation.
Download and install WampServer.
And you are ready to go.
Microsoft (Not tested this myself)
Check out PHP on Windows.
Download and install the Microsoft Web Platform Installer.
Let me know how that work out... (never tried it myself, since WampServer is so easy)
You need to have a web server with PHP installed on your PC to make this work.
I highly recommend installing wampserver on your computer. It is a Windows installer that will put PHP, MySQL and Apache in your computer and let you manage all the services and such very easily. If you have problems getting it to work, you can also try out XAMPP, although I've never used it myself.
Some answers containing the hint for using wamp.
You should better use the Zend Server Community Edition.
This is also free and can be downloaded here:
http://www.zend.com/de/community/zend-server-ce
This contains Apache, Mysql, PHP and some Zend related Tools.
Benefit: its much better preconfigured than wamp.
Another easy one to set up (though it takes extra config to support PHP5) is easyPHP
you can simply install PHP, and then run the program and redirect the output
php foo.php > output.html
and then use any browser to open up that html file.
Since you have IIS on the windows cd I would suggest you go to control panel, install/uninstall programs and click on windows components and install IIS. Then install ASP.NET 3.5 from www.asp.net and finally install Phalanger from http://www.php-compiler.net/
That will give you the benefit of both worlds, you can program in ASP.NET using PHP as the language, you can use only PHP if you prefer that or you can mix using ASP.NET/C# on some pages and PHP on other pages within the same application.
I use XAMPP, works out of the box with his installer and is more than enough for a simple developer windows environment.
The simplest way - use www.microsoft.com/web platform installer. get the whole stack to run PHP all from one place.
i would like to share that before starting PHP we have to set environment for that and then we can start working with PHP.
http://code.freefeast.info/php-tutorials/setting-up-the-environment-for-php-php-tutorial/

Categories