Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Yes it's a bad idea. So is using the global keyword. This suggests that whatever examples it is your looking at are crap.
  2. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=354053.0
  3. Your post is very unclear. What exactly is the issue?
  4. I understand *what* your trying to do and as I stated, it is quite a common design. You haven't said where you are stuck.
  5. Simply echoing it wont work. You need to send the data back to JavaScript and then have JavaScript place the output in some element on the current page.
  6. This is a pretty straight forward and common approach, where exactly are you stuck?
  7. Thanks to his help getting mysql back online and his continued support around the boards, KingPhilip has been promoted to Administrator. Thanks heaps bud and congrats.
  8. Yeah, Google analytics. http://www.google.com/analytics
  9. Because test_user does not have permission to access the server from localhost.
  10. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=353984.0
  11. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=353875.0
  12. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=353870.0
  13. Note that your post count is still only 1? See http://www.phpfreaks.com/forums/index.php?topic=353866.msg1671401#new
  14. Absolute positioning components of a layout is never a good idea. Find yourself some tutorials on the CSS box model.
  15. The @ symbol is used to suppress errors and should really be avoided and only used when it really is necessary. In this instance, I think they are trying to hide any "divide by zero" error. This could (and should) be better handled by ensuring that $count is bigger than 0 before using it.
  16. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=353775.0
  17. You could find out for yourself by using: var_dump($_FILES['thumbnail']);
  18. Either will work. Browsers ignore the type directive anyway though I believe it is required if you want your document to validate as xhtml or html 4.
  19. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=353735.0
  20. A web-based text editor comes to mind. How? [edit] You might be talking about a kind of site administration thing, but in that case the .htaccess is just a normal file you'd want to edit as your site evolves. We're talking about something that needs the .htaccess to change dynamically and (I assume) automatically for whatever reason. Yes, this is for administration for a CMS that's uber-user-friendly. So yea. You'd have a set of settings for your website that would dynamically change htaccess files based on decision. So you don't really need a developer to set things up. That being the case you would likely use the RewriteMap directive (http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap) instead to retrieve data directly from your database rather than using php to rewrite your .htaccess file.
  21. There is nothing stupid about getting an error when you try to use a variable that isn't defined. In fact it makes perfect sense that it would cause an error. What would be stupid would be if php where to simply overlook poor programming.
×
×
  • 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.