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

Join 95,475 Programmers for FREE!. Ask your question and get quick answers from Dream.In.Code experts. There are 970 online right now! We're the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert

Register to Make This Box Go Away!


Making php behave....

 
Reply to this topicStart new topic

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

snoj
Group Icon



post 10 May, 2006 - 12:17 AM
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.


Register to Make This Ad Go Away!

William_Wilson
Group Icon



post 10 May, 2006 - 12:23 AM
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.

MarkoDaGeek
Group Icon



post 30 Jun, 2006 - 06:36 AM
Post #3
This is slick, Thanks!


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

 

Lo-Fi Version Time is now: 7/5/08 03:48AM

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
-->