Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Post some code or at very least an example of your form data and the expected XML it will be placed into.
  2. Where exactly are you stuck? XML is just another markup language like HTML.
  3. Your only ever creating a single horse, you just keep changing it's name and age.
  4. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=328917.0
  5. Of course. Look at the manual entry for crontab. man crontab
  6. Hmmm, I smell spam.
  7. localhost refers to the local machine. If you are trying to connect to a remote server obviously you wouldn't use 'localhost' by the hostname or ip address of that remote machine. If you are trying to connect to a server on the local machine the error you are receiving can often be fixed by using the local ip address 127.0.0.1 instead of 'localhost'.
  8. trq

    WebBot in PHP

    What exactly do you want help with?
  9. You should seriously considering using a framework such as jQuery. Not only does it provide mechanism to separate your JavaScript from your markup but tasks like this become one liners.
  10. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=328831.0
  11. Not wanting to put a damper on things but it sounds to me like your tutor has little experience building web applications.
  12. or is also lower in precedence than || but it shouldn't make any difference in this case.
  13. Of course it's recommended. If you want the data, you must ensure you have it and it looks like what your expecting. It's not even worth considering.
  14. Even though you are using JavaScript to validate you should always do another round of validation server side using PHP. JavaScript can be disabled and it should not be relied upon for functionality.
  15. trq

    WebBot in PHP

    Were not going to write a tutorial for you. Where exactly are you stuck? If you can't get started then it is likely you need to learn PHP before trying to make something with it.
  16. Both to and from have special meaning in SQL, you should rename your fields to something better. Or, as a hack your can surround them in `backticks`, be aware however that this will only work with MySql.
  17. Move the call to mail() out of your echo statement.
  18. XML is essentially just another markup language like HTML. So really, your just dealing with strings. PHP does however have some functions that are useful if your trying to parse these strings for data. You haven't mentioned whether or not your receiving XML that needs to be parsed or creating XML that needs to be sent. Either way, it can be done via either hands on string manipulation or using PHP's built in functionality.
  19. Move the call to mail() out of your echo statement.
  20. How would we know? Firstly, we have no idea of your PHP abilities and secondly we haven't see the code your talking about. If it looks like gibberish to you I would say its' going to be quite the difficult task. Personally, I don't read gibberish that well.
  21. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=328802.0
  22. I should add that PHP does have functions for parsing and manipulating data though, depending on what version of ASP your looking at it might not.
  23. Strings are strings.
  24. Because your concatenating a call to the mail() function onto the end of your $result string and mail() is returning true (1).
  25. Yes, if you want to use it within your function you will need to pass it into the function. As you have just noted, post counts are not an indication of knowledge, in fact, there not really an indication of anything except how many times you've hit the submit button. We do not tamper ewith people's counts however.
×
×
  • 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.