Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. The error is pretty self explanatory.
  2. <input name="id" type="text" value="<?php echo $row['id']; ?>">
  3. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=344972.0
  4. preg_match will return false if no match is found. You should check that before assuming it matched anything.
  5. Wat is the question?
  6. With substr.
  7. And you are stuck where?
  8. Google for "ajax auto suggest"
  9. As you can tell by the output of that command Apache runs as a user called apache. this user will need to be granted permission to use sudo without password. Be aware that this also opens massive security holes. You should lockdown the sudo access to only the specific commands you wish to execute.
  10. I don't see how any of that code could produce the errors you are describing. Is your auto_prepend_file directive set to anything within your php.ini?
  11. What is in config.php ? The errors you see are in PEAR itself which you don't appear to even be using.
  12. Ok, so it's riddled with Notices but is still outputting results. PHP Notice: Undefined variable: side in /home/thorpe/foo.php on line 70 Notice: Undefined variable: side in /home/thorpe/foo.php on line 70 PHP Notice: Use of undefined constant b - assumed 'b' in /home/thorpe/foo.php on line 72 Notice: Use of undefined constant b - assumed 'b' in /home/thorpe/foo.php on line 72 PHP Notice: Use of undefined constant a - assumed 'a' in /home/thorpe/foo.php on line 73 Notice: Use of undefined constant a - assumed 'a' in /home/thorpe/foo.php on line 73 PHP Strict Standards: Creating default object from empty value in /home/thorpe/foo.php on line 49 Strict Standards: Creating default object from empty value in /home/thorpe/foo.php on line 49 {"id_":0,"shapeType_":"Hexagon","coordinates_":[{"x_":50,"y_":50},{"x_":41.339745962156,"y_":45},{"x_":41.339745962156,"y_":45},{"x_":50,"y_":45},{"x_":50,"y_":45},{"x_":50,"y_":45}]}<BR>PHP Strict Standards: Creating default object from empty value in /home/thorpe/foo.php on line 23 Strict Standards: Creating default object from empty value in /home/thorpe/foo.php on line 23 {"coordinates_":[{"x_":50,"y_":50},{"x_":41.339745962156,"y_":45},{"x_":41.339745962156,"y_":45},{"x_":50,"y_":45},{"x_":50,"y_":45},{"x_":50,"y_":45}]}<BR> As for why your getting different output. It's a bit hard to explain. But if you declared all your properties within the Pont object it would be fine. Basically, when you are looping through $this it is picking up the properties of the class your function is defined in at the time it is defined.
  13. You shouldn't be. You should be getting errors about undefined variables. I'm still not convinced this is your actual code. Is the Point object being auto loaded? Otherwise, that is missing too.
  14. $publicObject is not defined anywhere in your code.
  15. Actually, I completely misread your first post sorry. I didn't see you had the entire thing within double quotes.
  16. Because strings are surrounded by quotes in PHP.
  17. Why does what require what?
  18. That code will not execute due to several parse errors. Post your actual code.
  19. 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
  20. You where missing the concatenation operator which joins strings. Is VERY rare that the language is at fault and not the user.
  21. 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.
  22. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=344940.0
  23. 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?
  24. The first syntax is fine. You will need to take a look at your /etc/sudoers file. Use sudoedit to open it though.
  25. the syntax is fine. does apache have permission to use sudo?
×
×
  • 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.