Jump to content

Weird way of calling a function


four4swords

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.