Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. PHP executes on the server, onClick is a client side event (JavaScript). The two happen in a completely different context.
  2. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=359084.0
  3. You would be looking for the Other Libraries and Frameworks board.
  4. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=359072.0
  5. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=359077.0
  6. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=359061.0
  7. Quite easy. Say you want a random number that must have a length of 5. Given that information, we know that it must be between 10000 and 99999, so: mt_rand(10000, 99999); Done.
  8. You are trying to append to the variable $test_complete, however, the first time you try and do this, it wouldn't have been defined yet. You can fix this by defining it before you try to append to it. eg; $test_complete = '';
  9. /usr/bin/libexec is not a directory where php files would normally be stored. What documentation are you reading that says it should be stored there and what exactly does this php file do? Is it meant to be requested by a browser?
  10. Why exactly are you going about things so awkwardly? function get_specific_att($att,$lang) { echo $this->$att['L' . $lang]; } Should do what you want. It's a terrible way of writing code though, on many, many levels.
  11. If the property really is defined you shouldn't be getting the error you are getting. When asking a question, it helps to post your actual code. As for why I consider your code to be ugly. It's the caps. It is very unconventional and if I had to look at code like that all day, I would quit my job, seriously.
  12. Once your code has done the update, you need to redirect back to this same page in order for the changes to appear to take effect.
  13. Judging by the code provided, the property $BRANCH_NAME is not defined. ps: What's with all the caps? That's some of the ugliest code Ive seen.
  14. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=358978.0
  15. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=359016.0
  16. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=358972.0
  17. Take another look, the true argument is not in debug_backtrace(). It is in var_export(), and I already linked you to that documentation. As did I in my very first reply.
  18. I was referring to the term HMVC. I think you will find that most frameworks support this functionality, there is no need to come up with yet another acronym for it and try and hype up as a new concept.
  19. It's no different to outputting html, and sorry, I haven't read a php tutorial in about 7 years.
  20. Depends how your doing things. You could simply echo it with php when you create the page, or use Ajax to populate it dynamically.
  21. There is nothing stopping anyone from using your script now to look at whatever images they like though. You need to put the actual permissions checks in this file itself and maybe serve an "Unauthorised" image or something if your user doesn't have sufficient permissions.
×
×
  • 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.