Dracil Posted April 14, 2015 Share Posted April 14, 2015 As the the title says im looking to run a php file locally. The file dosent connect to a database or anything just has certain function made within php. Is it possible to run this locally? Some how setting up a service for php? Lets say i have this code (this is not what im using, im not making a spam bot, just an example) <?php// The message$message = "Line 1rnLine 2rnLine 3";// In case any of our lines are larger than 70 characters, we should use wordwrap()$message = wordwrap($message, 70, "rn");// Sendmail('caffeinated@example.com', 'My Subject', $message);?> Link to comment Share on other sites More sharing options...
argumentum Posted April 14, 2015 Share Posted April 14, 2015 As the the title says im looking to run a php file locally. The file dosent connect to a database or anything just has certain function made within php. Is it possible to run this locally? Some how setting up a service for php? Lets say i have this code (this is not what im using, im not making a spam bot, just an example) <?php// The message$message = "Line 1rnLine 2rnLine 3";// In case any of our lines are larger than 70 characters, we should use wordwrap()$message = wordwrap($message, 70, "rn");// Sendmail('caffeinated@example.com', 'My Subject', $message);?> put that in a file and read the manual, for php http://php.net/manual/en/features.commandline.php Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now