Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=359072.0
  2. Firstly, why on earth would you want to do that?
  3. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=359077.0
  4. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=359061.0
  5. Of course, PHP is a programming language.
  6. 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.
  7. 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 = '';
  8. /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?
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=358978.0
  14. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=359016.0
  15. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=358972.0
  16. 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.
  17. 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.
  18. It's no different to outputting html, and sorry, I haven't read a php tutorial in about 7 years.
  19. Depends how your doing things. You could simply echo it with php when you create the page, or use Ajax to populate it dynamically.
  20. 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.
  21. This is the script I was thinking of. Not exactly what you need, as this will force a download, but hopefully you'll get the idea. The idea is to create a php file called image.php or whatever, have it do the database check and all that jazz, then if the user has access set the appropriate headers to make the image.php file serve an image. All you would need to do then is place it in your src attribute. eg; echo "<img src='image.php?f=somefile' />"; I'd post an example except the in laws are on there way.
  22. The F:\ drive will not be accessible because it is outside of the web servers root. You will need to use a php script to serve up the file. There is an example of how to do so in our code snippet / repository board.
  23. I assume this is line 65? while($transaction = mysqli_fetch_assoc($transactionbalance)) { Where is $transactionbalance defined?
×
×
  • 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.