On Oct 27, 2011, at 9:23 AM, Webmaster wrote:
> Thanks for your PHP script. Does it do exactly the same thing as Bruce's PERL > script? I'm not as adept at PERL as I am at PHP and so I couldn't say exactly how they compare but I'm guessing they're similar. (I find PHP to be a bit more readable than PERL but that doesn't mean it runs any better or worse.) > Exactly how would I use your script? See below. > Can the file to be worked on be placed in any location, and then the path > changed for the "$filename" variable, or does the file have to be in > /usr/local? Yes. If you provide an absolute path to the document then it should work no matter where the PHP script resides. > I don't use OS X's built-in PHP installation. I use MAMP Pro for my server > setup, which includes the latest versions of Apache, mySQL and PHP. > > Would I still be able to use your script? If so, how? You'd invoke it from the (terminal) command line from the directory that the PHP script resides by typing "php nameofyourphpscript.php" and hitting "enter". PHP should be configured to work from the command line by default. The documentation is here: http://php.net/manual/en/features.commandline.php > Thanks, and sorry for so many questions. No problem and good luck. James -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
