Jump to content


PHP script works in webpage - but not from CMD line!!

  • Please log in to reply
1 reply to this topic

#1 delta101

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 16 May 2006 - 02:58 PM


I was wondering why I'm unable to run a php script from the CMD line of a linux server - where it returns an error on every single line

BUT - when it's uploaded in a webpage on a linux server it runs perfectly.

Does anyone have any ideas?

#2 kenrbnsn

  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 16 May 2006 - 04:20 PM

We need more information from you before we could suggest any solutions:
  • How are you invoking PHP at the command level?
  • What version of PHP?
  • Does it fail with every script you try? or just some?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users