Jump to content

gw1500se

Members
  • Posts

    1,041
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. The error message seems clear to me. The path you specified in the require statement is not correct.
  2. It seems to be pretty straight forward. You replace your mail code with this and use the same $_POST values to set the respective values as shown in the example. The only difference is you set the from address to whatever you want. That being said your ISP may munge it as it passes through the mail server. Nothing you can do about that.
  3. Because you are not setting the from parameter. You should be using PHPMailer which is simpler and gives you much better control.
  4. Very bad practice. You need to use prepared statements as suggested by Barand. In the mean time what is the error you are getting or what do you get that you don't expect. I notice that you are not doing any error checking after the query.
  5. The most common way to accomplish this is with sessions and post/redirect/get.
  6. It is not clear what you are asking. Keep in mind that javascript is client side and php is server side. The two do not know about each other. Your code will produce 5 buttons on the displayed page. Each one will execute the javascript function 'test' when clicked by the user.
  7. You did not read the documentation. The variable $html is not an HTML string which is what loadHTML expects. You want 'loadHTMLFile' instead.
  8. You need to understand the difference between accessing an object via pointer (->) and an array element [...] or '=>'.
  9. ["parent"]["_"][1][4] I think. You may need to parse each element to drill down to what you want.
  10. I think you are looking for strpos.
  11. $str1 is not a string so you can't treat it that way. It is an array. You can see that $str1[0] is the element you are looking for.
  12. You need to look at the httpd log to see exactly what the error is.
  13. You need to learn some debugging techniques so you can help yourself. First use: echo "<pre>"; var_dump($html->find('li')); echo "</pre>"; to see exactly what you are retrieving. From there you should be able to figure out what to use to parse that result or if you are not getting what you expect.
  14. Hint: Get the array of children first.
  15. Yes, you always should validate any data coming back from a form. However, if the objective is to obscure the data from the user as well, then use some form of encryption for those fields.
  16. It is not clear what you mean. Your code certainly will not do what you ask. You don't save the text from the <li> that follows the first <ul>. It sounds like you want an associative array where the key is 'text1' and the value is an array of 'text2', 'text3', etc.
  17. W3school is the last resource you should try. In any case the code you omitted is the code we need to see, particularly the headers you are setting to send. Yo don't send post data in the UR per se. Are you using curl or pecl?
  18. That article explains how to authenticate SMTP. You need to post the code for us to help you .
  19. First using 777 is very dangerous so you really don't want those permissions. Second, just because the directory 'db' has those permissions, it does not mean the upper level directories have the correct ownership or permissions. You have to look at each level.
  20. Since you didn't post any code it is hard to help. Perhaps this article will answer your question.
  21. What are you using to create the email in your PHP script? You should use PHPMailer. It will make SMTP authentication easier.
  22. So what have you tried and what is not working as expected?
  23. You are missing the point. The PHP script is working with respect to MySQL. But it is not outputting a valid HTML page that the C++ code can interpret. I highly suspect that is what the -11 is trying to tell you.
  24. You need to look at the HTML source being returned by the PHP script to the C++ code. If it is blank or just -1 or 0 then the headers are not being output and that is why the C++ code cannot interpret it. Thus, perhaps, the -11.
×
×
  • 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.