Jump to content

gw1500se

Members
  • Posts

    1,033
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. You need to understand the difference between accessing an object via pointer (->) and an array element [...] or '=>'.
  2. ["parent"]["_"][1][4] I think. You may need to parse each element to drill down to what you want.
  3. I think you are looking for strpos.
  4. $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.
  5. You need to look at the httpd log to see exactly what the error is.
  6. 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.
  7. Hint: Get the array of children first.
  8. 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.
  9. 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.
  10. 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?
  11. That article explains how to authenticate SMTP. You need to post the code for us to help you .
  12. 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.
  13. Since you didn't post any code it is hard to help. Perhaps this article will answer your question.
  14. What are you using to create the email in your PHP script? You should use PHPMailer. It will make SMTP authentication easier.
  15. So what have you tried and what is not working as expected?
  16. 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.
  17. 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.
  18. My C++ is very rusty but the response codes are not coming from the PHP script per se. I think you need to investigate the C++ code. It obviously not really outputting what comes back from the PHP script. The -11 may mean it cannot properly interpret what comes back. If it is expecting HTML in return you may have some headers messed up in the PHP script. Keep in mind that nothing, not even white space can be output before headers.
  19. That method returns an integer. If it is returning a "blank" then something is interfering with the myslqi calls. Is there a call-back function somewhere?
  20. I agree with requinix. Where is that error coming from? To what "monitor" are you referring? It looks like you may not have posted all your code.
  21. Also I see the OP is not using prepared statements.
×
×
  • 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.