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 PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=359523.0
  2. This post explains the concept pretty simply.
  3. Because they are not actually set until your script has finished executing and the headers are sent ( this is what actually sets the cookies).
  4. Storing serialised (or even simple comma separated data) data is never a good idea for this very issue. It's nopt something that is easily searched or manipulated using a database. Whatever that data is, if it needs to be stored in a database there is a better way.
  5. You might want to narrow your problem down somewhat. Saying sorry for posting too much code just means that you yourself are aware you have posted too much code. Fix it.
  6. That is indeed the case. Once you create your cookie, redirect the page back to itself.
  7. Once you set your cookie, redirect back to the current page.
  8. This is normal behaviour.
  9. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=359538.0
  10. I don't see how this relates to php at all. You already said your using jQuery.
  11. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=359534.0
  12. The error is pretty self explanatory. The user "application" does not have permission to access mysql using the password "application" from localhost.
  13. Where are you trying to store comma separated id's? If it's a database, why?
  14. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=359470.0
  15. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=359491.0
  16. Another option is to look at one of the many "dependency injection" libraries around. Using these, your classes depend on a single "DI Manager" object, which in turn, stores all your dependencies. Proem has one (there is a link in my signature) but there are also numerous stand alone options around.
  17. If you have a class that depends on the Page class, the Page class should be passed in via dependency injection. This means you either pass it into the __construct, or create a specialised method for passing it into the object.
  18. It expects a DateTime object. it has nothing to do with the fact that your mysql datatype is datetime or not.
  19. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=359434.0
  20. trq

    2 logins

    More than likely it's because your paths have changed and php can't find some libraries or whatever. Anyway, it's a pretty weird idea and pretty bad practice IMO to have two complete copies of the website just to make it work on a mobile device.
  21. HTML does not have an interface to anything, it's not a programming language. Why can't you use PHP? I understand what you want, but as I said, HTML is not a programming language. How exactly do you expect to check if a user is logged in or not using HTML?
  22. Clicking a link makes a new request to the web server. Thats how the web works. If you want to change content without refreshing the entire page you will need to use Ajax.
  23. You need to track wether of not the user is logged in, so no, html cannot do this. What is your issue with using php? It can easily serve static content if that's what you need.
  24. Firstly, HTML is not a scripting language, it is a simple markup language. As for your questions, of course you can. Practically all web applications are made with a mix of client side scripting (JavaScript) and some server side language (ie; PHP).
×
×
  • 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.