Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,768 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,125 people online right now. Registration is fast and FREE... Join Now!




Making php behave....

 
Reply to this topicStart new topic

> Making php behave...., like it does on *nix

snoj
Group Icon



post 9 May, 2006 - 11:17 PM
Post #1


One of the things I HATE about Windows is that you just can't have a /bin folder to use things like PHP from the command line where ever you are...or so you'd think. It's actually very simple to mimic this seemingly *nix only behavior.

WARNING: CHANGING ENVIRONMENT VARIABLES CAN CAUSE HAVOK WITH YOUR COMPUTER IF YOU DON'T KNOW WHAT YOU ARE DOING! YOU HAVE BEEN WARNED.


Just head on over to Control Panel -> System (or the shortcut, Windows Key+Pause/Break) -> Advanced -> Environment variables -> Choose the "Path" variable -> Add the path to your install of PHP and save the changes. You may have to restart.

When you're all done, open the command prompt and type in "php -v". If you've done everything right, it should print out PHP's version information.
Go to the top of the page
+Quote Post


Register to Make This Ad Go Away!

William_Wilson
Group Icon



post 9 May, 2006 - 11:23 PM
Post #2
I am currently learning PHP, and I assumed there must be a way to get this behaviour. Thanks for the info, i will definatly be implementing this.
Go to the top of the page
+Quote Post

MarkoDaGeek
Group Icon



post 30 Jun, 2006 - 05:36 AM
Post #3
This is slick, Thanks!
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 11/20/08 01:32PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month