Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6129237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:43:08+00:00 2026-05-23T16:43:08+00:00

As I type a script into it, or even something like this: $ php

  • 0

As I type a script into it, or even something like this:

$ php -v

absolutely nothing happens.

Edit: Operating System: Windows 7

$ echo %PATH%

absolutely nothings happens

Full path to PHP:

C:/Program Files(x86)/PHP
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:43:08+00:00Added an answer on May 23, 2026 at 4:43 pm

    I am willing to bet that you are running something like WAMP or another application that allows you to run a web server from your local machine. The problem with this is you are not running PHP directly on your machine. What instead is going on is that the Apache web server is launching a PHP instance on the fly.

    The PHP instance that runs from a command line is completely separate from the one that Apache launches. Sometimes it is from the same codebase/copy of PHP, but one does not suggest the other. So you can have PHP working in one but not the other. It can be a little confusing but it has to do with how the web server operates more than anything else.

    So you need to actually install PHP in Windows. This copy of PHP WILL NOT be the copy that your web server is using. For example, my work computer is running Mac OS X (my home is Win7) and it comes with PHP and Apache installed. But I don’t use the original install. Instead I use Zend Server Community Edition (for my own reasons) most of the time and sometimes I even run XAMPP. So in my case I actually have 3 different copies of PHP on my machine. The one that came with my machine (and that runs in the command line), the one in Zend, and the one in XAMPP.

    For my situation running a command line PHP instance will use separate settings/config from Zend and XAMPP.

    You can find the Windows binaries for PHP here: http://windows.php.net/download/
    I would recommend PHP 5.2.x for compatibility reasons (with most PHP apps): http://windows.php.net/download/#php-5.2-ts-VC6-x86

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a javascript guy getting too deep into php (even though this question is
I was wondering if anyone here had some experience writing this type of script
Using the following Webservice definition using aClientArgs as a complex type: [System.Web.Script.Services.ScriptService] public class
I want to make sure people can't type the name of a PHP script
<script type=text/javascript> function testing() { $.ajax({ type: POST, url: testing.php, data: call=+$(#abc).val(), success: function(msg){
look at this code, <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <script> function change() {
I am working on an image upload script and ran into this problem. Using
<script type=text/javascript> var dataString2 = 'run=captchagood&comment=' + comment; $.ajax({ type: POST, url: process.php, data:
So I've got a directory that looks something like this: home\ setup.py some_python_file.py ext\
I have script like this : $(#addk).bind(click, function(event){ //alert(here!); $(#loader-overlay).show(); $.ajax({ 'async':False, 'type': POST,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.