Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Just use the value stored in a cookie to identify the user. You would then auto login the user behind the scenes using the same code that you already using.
  2. You need to explain what "not working" means.
  3. See http://forums.phpfreaks.com/topic/282534-extract-data/?do=findComment&comment=1451716
  4. My first question would be exactly what was asked in that thread: My second question would be the same as sKunKbad's:
  5. It's not really something you should try and rush. In fact, you should know php well first and be familiar with a lot of OOP concepts. Then, like always, its practice makes perfect.
  6. CodeIgnitor is dead. It is also a terrible example of a php framework. If you are just starting out, I would suggest Laravel.
  7. Why would you want cron to execute a php script via http? You should put your php script somewhere outside of the web accessible directory and call it via php's cli. As for passing variables, if your going via http you have to use whatever mechanism http provides (such as that you have shown in your example).
  8. Assuming that dump is of a variable called $obj echo $obj->GetMediaListResult->string[0]; echo $obj->GetMediaListResult->string[1];
  9. You might also want to have a look at Guzzle, it makes http so much easier / cleaner.
  10. The instructions seems pretty clear. What part do you not understand?
  11. Your question / problem is about as clear as mud.
  12. You cannot use static variables to persist between requests either, no.
  13. How would we know?
  14. You seem to have misunderstood the topic of this board. We do not write code for people.
  15. No opinions really. It might be a nice to have in some specific scenario, but whatever... If this passes I will be angry. Far more useful RFC have been getting knocked on the head of late.
  16. So you don't want to run the code "all the time", you want to attach it to a resize event. http://api.jquery.com/resize
  17. That is a different issue. Your not checking to see that $_POST['submitted'] exists. <?php echo isset($_POST['submitted']) ? "sorted by {$sortType}" : "unsorted"; ?>
  18. Yes. Accessing a php script means that it is served up by your http server. The php script therefor runs with the permissions of this http server. Running the script yourself executes the script with whatever permissions you have.
  19. If you were using the nested set model this would be so much simpler, but anyway, you have described what you need to do... have you tried coding it? Where are you stuck exactly?
×
×
  • 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.