Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. That is a hack. Organizing your code properly in the first place is always going to be the better option.
  2. I would have a look at session_get_cookie_params firstly in both php 4 and then again in php5 to see if this is the actual problem. If your path is different in each, you might be able to fix it by simply setting them both to use the same path. You would do this using ini_set or better yet, use a .htaccess directive or edit your php.ini files if you have access to them.
  3. You need to call session_start() prior to using any other session functions.
  4. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=322839.0
  5. The categories are set using setCategories().
  6. Are you switching between php 5 and php 4 ? Chances are these store the session cookies in a different location.
  7. The error tells you exactly what line is producing output. What is on line 74?
  8. That sounds like a terrible idea. Why would *all* your classes be of the same type?
  9. Take a look at json_decode. What your seeing isn't a mess, it's JSON.
  10. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=322750.0
  11. The code you have posted does not produce the output you have described.
  12. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=322686.0
  13. You haven't exactly described your problem. The first thing I would ask is why are you using php to do a mysql task in the first place? The second would be why (if really you need to use php) are you executing your script via a request to your http server?
  14. Calm down buddy. There is a big difference between simply not knowing where to start and not knowing anything at all. You sound like you don't know anything at all in regards to what you want done. The first thing you need to do is learn PHP, this is not something you learn along the way. Once you have learnt the language you will be able to come back and ask more specific questions relating to actual code. Until then, there is not much we can do but post very broad help like that provided by ManiacDan.
  15. No one is going to write the code for you. If your looking to hire a programmer, we have a freelance board. You'll want to read the stickies within thaty board before posting in there however.
  16. trq

    sql question

    HTML uses <br> tags to indicate a newline. Hence, you'll need to insert a <br> tag everywhere there is a newline char. There is a builtin function for this: nl2br. This only needs to be used when youi want to display your data, not on the way into the database.
  17. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=322595.0
  18. Your probably better off just supressing errors and then checking to see that $xmlmetades is true before using it. $xmlmetades = @simplexml_load_file($file); if ($xmlmetades) { // safe to use }
  19. LIKE is probably your best option. You shouldn't be storing your data as a comma delimtered string if you wanted efficient.
  20. I'm not sure you understand. HTTP is stateless, you make a request, the server responds. That's it.
  21. You need DomDocument not DomComment.
  22. When the script finishes executing and the script executes once per request.
×
×
  • 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.