Jump to content

gw1500se

Members
  • Posts

    1,029
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by gw1500se

  1. It will have to be an external program, which you can call from PHP. Google "convert wave form to image". There are several programs that will do that.
  2. I am completely lost in this thread. What is the OP trying to accomplish?
  3. You are only changing the extension to lower case. Where are you using strtolower on the file name?.
  4. First, please use the code icon (<>) to insert you code and select PHP. If you say the input value is stored in the session variable, where is the code that does that? It looks like you omitted too much of the code we need to see.
  5. It there a way, without a loop, to remove the leading whitespace from each element of an array of strings? TIA.
  6. First, you should be using PHPMailer. It is much easier and has better control. What does the template contain? Did you print out what you read to make sure it is what you expect?
  7. As I said, post your schema and we will be better able to help you. In the meantime this should be moved to the MySQL forum.
  8. This is really a MySQL question not PHP. You can let MySQL create the ID for you. Create a join table that associates the customer with the invoice ID and make that field auto increment. Each customer can then have multiple invoice IDs.
  9. Put them wherever you want to check the values of variables. Like maybe just before the 'if' statements. Perhaps you will find this useful.
  10. Use 'echo' for individual variables. Use '<pre><?php var_dump($arrayorobject); ?></pre>' for arrays or objects.
  11. Did you printout each variable to make sure it contains what you expect? As ginerjm said, your code is really too tedious to compare. You may need to spend some time rethinking all your 'if's to simplify them somehow.
  12. We need to know what error message you are getting on which line or which line is not producing the results you expect?
  13. Post your code here (use the code icon <>). You will likely get a quicker response.
  14. Use absolute path names in all scripts. You can even set a global variable with the absolute path name and use that in all scripts.
  15. Agree but perhaps the default is missing. That the OP can do this with CLI, implies that the PHP script is not accessing the same host as the CLI. That seems unlikely so I am clutching at straws.
  16. I would expect a different error but you are missing the 'dbname=...' parameter in the connect.
  17. This is really a MySQL question and should be moved to the MySQL forum. You need to make sure your 'GRANT's are correct. From a CLI connection run "SHOW GRANTS FOR 'root'@'localhost'".
  18. I don't understand what you are trying to do. Where is the input (-i) file in that command.
  19. Other than splitting them up on multiple lines to make it more readable, I don't think there is anything like what you are hoping for: if ( $something==$whoknows && $somethingelse==$anything || . . . ) { // do something };
×
×
  • 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.