Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Why don't you simply sync all your servers times using NTP?
  2. Have you looked at Doctrine's DBAL?
  3. Of course there is. Just have your site map generated by php.
  4. The part you are likely missing is a mod for apache called mod_rewrite. This allows your server to process requests for non existent pages as though they actually existed. eg; A url like: /some-article.html can be processed by your blog.php file and you can have the "some-article" part passed in as a parameter allowing you to do a database lookup by article title. A simple rule for this might look something like: RewriteRule ^([^.]+)\.html$ blog.php?article=$1 Then, in blog.php you will have $_GET['article'] which will contain the string "some-article" (given the above example).
  5. You can configure Linux to not use the BIOS clock. I prefer to always get my time through ntp.
  6. This topic has been moved to PHP Applications. http://forums.phpfreaks.com/index.php?topic=365229.0
  7. How exactly does that address the question at hand? It doesn't. This is the Linux board, how do you know the OP is even using PHP on these servers? Op: I see no reason this restriction would exist, and have never experienced the issue at hand. You should have complete control of a VPS. What happens why you try and set the date/time ?
  8. Your missing error handling. Have you tried actually checking for errors? We are unable to help you without more information.
  9. This topic has been moved to mod_rewrite. http://forums.phpfreaks.com/index.php?topic=365219.0
  10. So what do you want? If you want to use OOP you need to learn it. If you want a quick solution, stick to what you know already. It's not as simple as "What classes do I need?"
  11. You would need to write a script which looked through the html and recursively downloaded all assets as well.
  12. OOP is not simply the structure of classes, nor is it something that can be simply explained within a forum reply. At minimum, I would suggest reading the series of OOP tutorials on this site.
  13. The global keyword means nothing outside of a function. It is used: $a = 'foo'; function something() { global $a; echo $a; } something(); Having said that. Globals completely break the encapsulation that function provide. You should pass data to functions via there arguments.
  14. $_SERVER['DOCUMENT_ROOT'] . '/mywebsitefolder'
  15. trq

    bbcode help

    Have you actually written any code to implement it?
  16. This topic has been moved to MySQL Help. http://forums.phpfreaks.com/index.php?topic=365155.0
  17. trq

    JOIN WHERE

    Your going to need to form a proper question before you can expect help.
  18. mysql_fetch_array expects a result resource (see mysql_query) not a string.
  19. /css/error.css is an absolute path that will be valid from anywhere.
  20. This topic has been moved to Third Party PHP Scripts. http://forums.phpfreaks.com/index.php?topic=365079.0
  21. You can't mix and match the two different extensions, so if your changing everything else to mysqli, fine.
  22. This topic has been moved to Other Libraries and Frameworks. http://forums.phpfreaks.com/index.php?topic=365074.0
  23. Sorry, but I think you have missed the entire point of this forum.
  24. That statement makes little sense, care to clarify?
×
×
  • 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.