Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Both of the syntaxes you posted are fine. That entry within your sudoers file simply means that root can execute all commands. You need to make sure your Apache user (whatever that is) is allowed to execute sudo. This also assumes you are trying to execute this line of php from a page requested via Apache?
  2. The first syntax is fine. You will need to take a look at your /etc/sudoers file. Use sudoedit to open it though.
  3. the syntax is fine. does apache have permission to use sudo?
  4. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=344932.0
  5. The $_SERVER array doe snot exist when using php's cli.
  6. Turn display errors on.
  7. Are you sure sqlite is installed? Sounds like it might be throwing a fatal error which you obviously can't see because your error reporting is off.
  8. Yes.
  9. Cron jobs already run in the background. sleep.
  10. trq

    An Odity

    That is indeed what is happening.
  11. Not with the (lack of) information provided. Are you hosting DNS locally?
  12. Have you looked at any of the documentation provided by Twitter? Where exactly are you stuck?
  13. You just described how.
  14. trq

    An Odity

    Here is an oddity I just accidentally bumped into. #!/usr/bin/php <?php class foo { public function bar() { echo "this is bar"; } public function callBar() { $this->bar(); } } class someother { public function callFooBar() { echo foo::callBar(); } } $so = new someother; $so->callFooBar(); This means you can now do.... #!/usr/bin/php <?php class foo { public function bar() { echo "this is bar"; } public function callBar() { $this->bar(); } } class someother { public function callFooBar() { echo foo::callBar(); } public function bar() { echo "this is someother bar"; } } $so = new someother; $so->callFooBar(); Not sure it's useful, or just weird behaviour.
  15. The changelog is a great OSS resource. http://thechangelog.com It's pretty Ruby, Javascript eccentric but well worth keeping in your feed reader. They also have podcasts available.
  16. Late static binding has it's uses. There is no hard and fast rule that says you should or shouldn't use it though.
  17. You need to get your data into the view somehow. Generally, it's passed in through arrays, or turns up as properties of the view object itself. Unless $model actually represents an actual model, I don't see an issue here.
  18. That makes no sense.
  19. Without calling the parent's constructor the properties are never assigned any values.
  20. You need to call the parent's construct in your child. eg; public function __construct() { parent::__construct(); // rest of your code }
  21. It really depends on who owns the file and what group they are in. 644 will make a file read/write buy the owner, and readable to everyone else. 755 will make a directory the same.
  22. Obviously your not reading it properly. The syntax is [ic]foreach ($array as $value) {}[/ci] You need to use list.
  23. In general, files will only need to be readable by the web server. You might also need to grant write permissions to certain file and directories though depending on your needs.
  24. In this example, what exactly is $model?
×
×
  • 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.