Solved

Install php locally

Posted on 2011-09-07
12
187 Views
Last Modified: 2012-05-12
Is it possible to install php locally on a Windows7 machine?
0
Comment
Question by:hrolsons
  • 6
  • 5
12 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 36499366
0
 
LVL 8

Expert Comment

by:PranjalShah
ID: 36499400
If you are planning to use Apache then WAMP is also an option...

http://www.wampserver.com/en/
0
 
LVL 82

Expert Comment

by:leakim971
ID: 36499412
0
 

Author Comment

by:hrolsons
ID: 36499603
I'm actually using it for this application:

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_27291199.html

I'm manipulating .jpg files

Not sure which of the above would fit best for that.

Everything works fine on my web server, I just want to process the files locally.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36499638
Take a trial of PHPEd it will help you a lot.
Else PHP is just a set of files, always the same depending the version
So choose a good IDE, PHPEd is a very good one
0
 

Author Comment

by:hrolsons
ID: 36500534
So, I installed phpED, but I'm having trouble.

In Visual Basic, I usually issue the command:
WebBrowser1.Navigate ("http://website.com/myfile.php")

Now, since I have it local, I thought I could do:
WebBrowser1.Navigate ("C:/directory/myfile.php")

But it does not run the php, it simply displays it as a text file.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 82

Expert Comment

by:leakim971
ID: 36500550
When you run the page, you've the url to use or choose an rxternal browser instead phped browser
0
 

Author Comment

by:hrolsons
ID: 36517511
0
 
LVL 82

Expert Comment

by:leakim971
ID: 36517571
http://www.php.net/manual/en/features.commandline.php
php C:\directory\myfile.php

Open in new window

0
 

Author Comment

by:hrolsons
ID: 36517991
capture
0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 500 total points
ID: 36518001
check the link provided :

Add the location of the PHP executable (php.exe, php-win.exe or php-cli.exe depending upon your PHP version and display preferences) to the PATH environment variable. Read more about how to add your PHP directory to PATH in the corresponding FAQ entry.

php.exe should be under phped folder

the easy way to run it (php.exe) is to go to the folder and run from there (in this case you need to specify the full path to test.php of course)
0
 

Author Comment

by:hrolsons
ID: 36520692
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now