Skip to main content
Tweeted twitter.com/StackDrupal/status/865806959496265728
Post Reopened by mpdonadio
added 1 character in body; edited title
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

Pass How to pass argument to php file via terminalusing a drush command?

I've small php script in my public folder called sample.php. I run this file using drush command drush scr sample.php. I

I want to know how to pass argument to php file using drush command and how to get arguments in php file?

Pass argument to php file via terminal

I've small php script in my public folder called sample.php. I run this file using drush command drush scr sample.php. I want to know how to pass argument to php file using drush command and how to get arguments in php file?

How to pass argument to php file using a drush command?

I've small php script in my public folder called sample.php. I run this file using drush command drush scr sample.php.

I want to know how to pass argument to php file using drush command and how to get arguments in php file?

Post Closed as "Not suitable for this site" by Mołot, Krishna Mohan, Scott Joudry, avpaderno
Source Link
Guru
  • 599
  • 2
  • 11
  • 21

Pass argument to php file via terminal

I've small php script in my public folder called sample.php. I run this file using drush command drush scr sample.php. I want to know how to pass argument to php file using drush command and how to get arguments in php file?