Jump to content

Opening a PHP file in the command prompt?


EXiT

Recommended Posts

 

I'm trying to open a .php file in the cmd.The location of the file is c:\Apache2\Apache2\htdocs\test.php

In this book im reading it says, it should run in the cmd window but when i type in cd \Apache2\Apache2\htdocs\test.php, it opens the file in a text editor.

 

So, how do i get this to run in the command prompt?

 

Cheers

Here is a bit of the book:

 

Windows allows you to set up filename associations such that a program can be associated with filenames that end with a particular suffix. This means that you can set up associations so that Perl, Ruby, PHP, or Python are used to execute files with names that end in .pl, .rb, .php, or .py, respectively.

 

It doesn't show you how to do this though.

 

I'm lost  :'(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.