four4swords Posted February 12, 2011 Share Posted February 12, 2011 Hi, I was looking around the web for a image resizer script and I came across this one. http://www.scriptol.com/scripts/thumbnail-maker.php The weird thing is, it says to use this syntax to get it to work php resizer.php -j myimage.png Well.. I don't seem to understand how that makes it work, Normally I would run a php script by looking for it's main function and running it like: mainfunction(); Maybe I'm interpreting it wrong, but how is this script suppose to run? Link to comment https://forums.phpfreaks.com/topic/227490-weird-way-of-calling-a-function/ Share on other sites More sharing options...
Pikachu2000 Posted February 12, 2011 Share Posted February 12, 2011 It's telling you how to run it from the command line. Link to comment https://forums.phpfreaks.com/topic/227490-weird-way-of-calling-a-function/#findComment-1173407 Share on other sites More sharing options...
four4swords Posted February 12, 2011 Author Share Posted February 12, 2011 Ah I get it. I never knew php could use the command line too. Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/227490-weird-way-of-calling-a-function/#findComment-1173410 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.