Jump to content

gw1500se

Members
  • Posts

    1,033
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. There are lots of them around and asking for advice about which to use could start a religious war. 😀 I use RJ TextEd.
  2. Unlikely you will get any help here without posting the errant code. Perhaps it is just me but your attitude may need changing as well. As for the error, make sure you have error reporting turned on and include the error in your post. error_reporting(E_ALL);
  3. Output the result of json_encode($data) to see exactly what it looks like.
  4. Search engines are your friend. is_null
  5. From the manual: "Returns the value encoded in json in appropriate PHP type. Values true, false and null are returned as true, false and null respectively. null is returned if the json cannot be decoded or if the encoded data is deeper than the nesting limit." The value you are trying to decode is not a JSON encoded string. You need to translate the ' to ".
  6. Search engines are your friend. PHPMyAdmin
  7. First you don't need an 'elseif' just 'else' unless there is more to the 'if' than you posted. When you call the function simply pass a boolean depending on which code you want to execute. if($condition){ run this code else{ run this code }
  8. First please edit your post and use the code icon (<>) at the top of the menu and specify PHP. Second, what did you try and what did not work as expected or that error do you get?
  9. Check your mail log on the public server for error messages. From an SMTP perspective they are different.
  10. Yes, by using exec.
  11. Post the resulting raw HTML source.
  12. I don't think there is a way to do what you want with fgets. I don't know why you think mincom won't work. I haven't tried it but perhaps, as you suggested earlier, using sockets might work.
  13. 'fgets' reads until it finds an EOF, newline or reaches a specified number of bytes. You didn't show any code so if none of those conditions occurs in your case it will hang forever. I am guessing what you are trying to accomplish but I suspect you are using the wrong read for a ttyUSB device. You might try minicom instead.
  14. The manual explains stream_set_timeout.
  15. There are 2 ways. Use either try...catch or the less desirable 'die'.
  16. It is not ignored, it is not being passed anywhere. I suspect you meant to do this: function MySql_Excel_Exporter($firma)
  17. Are you asking how to create a table within a cell of an outer table?
  18. Este é um fórum de língua inglesa.
  19. If I understand correctly, you loop on the outer sorted array. The within that loop you sort each inner array and loop on that to output the table.
  20. asort
  21. You can't just copy and paste code you find on the internet. You need to understand what the code does and how to adapt it to your environment. As a help forum you need to post your code here (using the code icon (<>) in the top menu specifying PHP or HTML as appropriate) along with any error messages and/or what output you expect that is different from what you actually get. The first place to start is to make sure your httpd is running properly. What files are currently in your DocRoot?
  22. Place your credentials in a file outside of DocRoot and read that file from the PHP connection script. Make sure you set permissions so only the user running httpd (usually 'apache' on Linux) can access that file.
  23. Yes. Specify an absolute path (i.e. use a leading '/' in the path name).
×
×
  • 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.