douqiao1887
douqiao1887
2012-07-04 14:34

如何在PHP系统调用中转义引号?

  • php
  • perl

I'm passing to perl from php using escapeshellarg

system("perl -e '" . escapeshellarg($inp) . "' >> /tmp/out");

And get unterminated quoted string from perl.

Input is: 'Single quoted terminated string ';

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐