php-reverse-shell.php issue

Type your comment> @Vetka said:

Hello,

You probable use a server that has a php module. When you call your script it executes on your server. That’s why it does not work. To fix this issue you have to delete extension of a php file, than transfers it to the victim machine and add the .php extension after. Normally it should work.

How would you do that? I have the same problem?