How do you execute a PHP script from the command line?
sushants -5 Light Poster
Recommended Answers
Jump to Postphp.exe yourscript.php
Make sure your path includes the php bin folder.
Jump to PostVia windows?? or Linux??
Jump to PostFor Windows:
Open Cmd
set a path using:-
set PATH = %PATH%;c:\xampp\php //temporary setting a path
OR
Control Panel > System > Advanced System Settings > Environment Variables > look for and highlight the Path variable and click Edit.Append the PHP folder path //permanent setting a pathAfter setting a …
All 10 Replies
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
Webville312 14 Newbie Poster
NardCake 30 Posting Pro in Training
Webville312 14 Newbie Poster
code_rum 8 Junior Poster in Training
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
Webville312 14 Newbie Poster
Squidge 101 Newbie Poster

diafol
NardCake 30 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.