Jump to content

gw1500se

Members
  • Posts

    1,029
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by gw1500se

  1. You need to post those lines and a few before them.
  2. OK, I'll allow myself to get sucked in. You remove it by editing the script and deleting that line. Sheesh.
  3. Either that or the OP is should not be programming.
  4. Yes, remove that statement. It was intended to show your current system configuration and was supposed to be in a script by itself (when spelled correctly). It has nothing to do with your current script.
  5. Then your PC is the server. If curl is there then you must be getting a different error or you did not restart httpd on your server (PC).
  6. You need to post your code. Off hand you simply change the URL you are using to access that page.
  7. Ask your system administrator to enable curl on your server.
  8. Mine was a typo. It is phpinfo() as Barand said, which for some reason you did not post.
  9. It would appear that curl is not compiled into your version of PHP or some libraries are missing. Post the output of: php_info();
  10. Then post your code here as I suggested and post the error you are getting as well.
  11. Almost as important is to post your code here. You'll get a quicker response and be sure to use the code icon (<>) and specify PHP. The automatic formatting makes it easier to read.
  12. Keep in mind that PHP is stateless. That means each time the page is output by the server it is as if it is the first time and nothing about what happened on that page previously is known. What Barand is trying to get at, is whether or not you need to use a session variable to keep track of the state of that button.
  13. Correct. The mysql extensions have been deprecated for decades. I suggest switching to PDO although mysqlI is also available but IMO as a second choice.
  14. Your ?> is misplaced. It needs to be at the end of the PHP code and before the HTML code.
  15. There is no column named "UserID" in the table named "UserLIst".
  16. That was a suggestion. If you want to query unread for receiver_id that is what it does. If you want to query any unread then leave that off. As I asked, you need to be more specific about what you are trying to query.
  17. You need to add error checking but in the right places. Like after the 'execute'. In any case you need to be more specific about what you are trying to query.
  18. You need to RTFM. 'fetch' returns a result and you are not assigning it. That result object is what you check for rows. /* Fetch the value */ $result=$stmt->fetch(); $numberofrows = $result->num_rows;
  19. If I understand, you don't care if the file actually exists, you only want to know if a string represents a valid file/directory name? You could use rawurlencode and compare that result with the original string. If they are different then the original string is not a valid filename.
  20. What do you mean "validate?" Check that it exists and is a regular file? If so use is_file.
  21. Sorry, I misunderstood what you are asking. I think your problem is here: if ($position1 == "2,4,6,8,10") Are you expect this to return true/false if $postion1 matches any one of those? That will only return true if $position1 matches that entire string. You need to use in_arry() with one for the even numbers and one for the odd.
  22. It appears to me that you need to learn more about HTML. Using "\r\n" does not reliably create a new line, you use "<br />" instead. If you want to set a color you need something like <font style="color:red">.
×
×
  • 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.