Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. That code will not execute due to several parse errors. Post your actual code.
  2. Frameworks are always worth learning and will help you organise your code better once you know how to use them. A great framework for organising Javascript is backbone. You would still preferably combine this with another framework (such as jQuery) to help with implementation. Edit KP - Fixed URL format
  3. You where missing the concatenation operator which joins strings. Is VERY rare that the language is at fault and not the user.
  4. No you don't. Linux systems have multiple users even if you haven't setup any. There are system users which various pieces of software run as. Apache runs as one of these users. You can find out which user apache is running as by looking for the User and Group directives within your configuration. Assuming your main configuration file is /etc/apache/httpd.conf, this command should show you which user Apache is running as. grep User /etc/apache/httpd.conf I say should because not all configs are setup the same. You will need to investigate this further yourself, or let us know which distribution you are using.
  5. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=344940.0
  6. 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?
  7. The first syntax is fine. You will need to take a look at your /etc/sudoers file. Use sudoedit to open it though.
  8. the syntax is fine. does apache have permission to use sudo?
  9. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=344932.0
  10. The $_SERVER array doe snot exist when using php's cli.
  11. 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.
  12. Cron jobs already run in the background. sleep.
  13. trq

    An Odity

    That is indeed what is happening.
  14. Not with the (lack of) information provided. Are you hosting DNS locally?
  15. Have you looked at any of the documentation provided by Twitter? Where exactly are you stuck?
  16. 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.
  17. 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.
  18. Late static binding has it's uses. There is no hard and fast rule that says you should or shouldn't use it though.
  19. 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.
×
×
  • 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.