Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. For a development server you should rename php.ini-development to php.ini, production server should use the other.
  2. Well, i'm not going through all of that code, but just as an example. <?php // these could actually come from a database. $lat = '33.434278'; $len = '-112.011583'; //echo your javascript. echo "point = new GLatLng($lat, $len);"; ?>
  3. I've been working allot lately with phpQuery which is an awesome port of the jQuery selector engine to server side php. This would make this kind of task simple.
  4. Why aren't you using jQuery's Ajax implementation? It will make your life much easier and your code code much more stable / easier to maintain.
  5. Why would you want to do this? Your id column should be auto incrementing and should be left under the control of the database. There is no logical reason to do otherwise.
  6. Follow these instructions to add a more up to date LAMP repo to your list of repositories then upgrade php.
  7. Have you defined $this->session anywhere?
  8. Turn off "show friendly error messages" in your browser and see what you get. You'll also need to check iis's logs for clues.
  9. A VPN tunnel would make no difference to your connection method once established. It's not really anything to do with php.
  10. Firstly, there really is no need to mix JavaScript in with your markup these days. There are plenty of frameworks around that make unobtrusive code simple to achieve. You should look into using one of them. Secondly, you would need to pass the I'd numbers into your addEducation function, it's not a URL.
  11. Of course there are ways to do this, seems a pretty straight forward task. Where exactly are you stuck?
  12. Most all of your questions are personal opinion, so really its up to you. Personally, I much prefer using GNU/Linux to any of the Windows offerings, but again, that's just my personal opinion. Are you a patient kind of person? GNU/Linux won't hold your hand much when the going gets tough, you will however find a massive amount of good documentation and a large community of people who are mostly willing to help. Why not start with something like Ubuntu and see how you go? Its probably the most straight forward install with that will likely give you the least amount of trouble once its installed.
  13. This... ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); is php code and does not belong within the php.ini at all.
  14. There is a 'force download' example script in the 'Code Snippets' board. Your not getting this done with html alone.
  15. If your example is anything to go by, its likely because its not within a js script block.
  16. Your passing it $record where you should be passing it $result.
  17. Just serialize it. Json doesn't stand for Javascript object notation for nothing.
  18. PHP execute server side so no, your solution need to execute on the client.
  19. #2 is probably the best option though you will want a LIMIT clause on your query and in reality, #1 is probably just as efficient (it also wants a LIMIT clause though). However, if you need to update the date_stamp anyway (as in example #4) you may as well get it all over and done with in one action. Of course, this is just my opinion. I am in no way "ULTRA PRO GODLIKE MYSQL MASTER!" and I very much doubt you'll find anyone here owning up to that title. Unless of course they are some complete twat.
  20. Write a few little test script and link between them dumping vars as you go. Then test moving between these script with cookies enabled / disabled.
  21. This would be something to bring up with SMF. Were not at all likely to make such a mod.
  22. Have you tested sessions outside of this application?
  23. Its pretty slow for starters + really, adding all that nice formatting makes your response just that little bit larger.
×
×
  • 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.