Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. I'll just ignore that rant. Can we see your .htaccess file?
  2. I understand perfectly what your trying to do.
  3. Either will work but generally yes, you will use the url re-written version.
  4. Sorry, you've lost me. Again, meta tag data is just data, the same as the rest of your data.
  5. This topic has been moved to PHP Coding Help. [iurl=http://www.phpfreaks.com/forums/index.php?topic=324086.0]http://www.phpfreaks.com/forums/index.php?topic=324086.0[/iurl]
  6. http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_count
  7. Meta tags are just another form of data. Considering your already dynamically generating data for each page (presumably from a database), I don't see how meta tag data is any different. I'm really not sure where your stuck here? Just create the meta tags as you would any other content.
  8. Ok, firstly I said relevant code, not the entire program. You need to narrow your issue down somewhat if you expect help. How exactly does this code relate to Wordpress? Are you trying to extend Wordpress somehow or are you just putting this code within the same site? Wordpress can use a .htaccess file to make pretty urls, if this is indeed the case, we need to see this .htaccess file.
  9. You'll need to be more specific.
  10. PHP will of course take care of that for you. I know of no language where you would need to do such a thing.
  11. In any language it's better to provide a clear interface using methods rather than properties in my opinion. Variables created within a function (or a method) are only available within said function. Often it is best to keep the inner workings of a class private. If you don't need access to the variable from outside of an object, it should be private. Even then, I would suggest still keeping variables private and creating getter setters.
  12. There is a link in my signature to a free book (Hudzilla). That book has an entire chapter dedicated to using php with databases. read that, and you want need any more specific tutorials.
  13. This topic has been moved to Installation on Linux. http://www.phpfreaks.com/forums/index.php?topic=324020.0
  14. If it's a dedicated server you may need to do this yourself. Again however, what error are you getting? If your not getting any error then you need to ensure that error reporting is set to at least E_ALL and that display errors are on, then let us know if you receive any errors and what they are.
  15. Again, why would you want/need to do this?
  16. Have you installed and configured a mail server properly? What error are you getting?
  17. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=324009.0
  18. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=323892.0
  19. Yeah, those arrays are a killer.
  20. The header function is used to set http headers. You want to set the location header. header('Location: index.php?name=Next'); Also, the http states that the location header should be a complete uri, this includes the domain name, not just a relative uri. (Most browsers will handle it either way, but best to be safe than sorry) So, you'll want something like.... header('Location: yourdomain.com/index.php?name=Next');
  21. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=323879.0
  22. mkdir($_SERVER['DOCUMENT_ROOT'] . '/../private_html');
×
×
  • 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.