Jump to content

gw1500se

Members
  • Posts

    1,033
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Happens to all of us on occasion. We see what we expect not what is there. New eyes always help.
  2. You have an extra '('. if(isset($_SESSION['id']) && isset($_SESSION['user_name'])){
  3. There is an example in the manual. You simply create a datetime object using your date string then use the timezone function to get what you need.
  4. Start at the beginning. Post the query you use to update/insert the password.
  5. First please use the code icon (<>) in the menu for your code and specify PHP. 1. How did you define the password column in MySQL? 2. How did you store the password in the database? 3. Assuming you used 'password' to do the store you must use the same function in the query to retrieve the row. 4. 'password' is a MySQL reserved word so you should avoid it for a column name. If you do use it, you must always enclose it in back ticks(`) in your queries. As an aside, I suggest you use PDO as it is easier and more flexible. You should also never use post data directly in any MySQL query. Validate it and use prepared statements.
  6. You need to tell HTML that you are uploading multiple files. See "Uploading multiple files".
  7. You still will need something on the client side to run the API. That means, again, PHP must ask the user to execute whatever code.
  8. First please use the code icon (<>) in the menu for your code and select PHP. As to your problem, keep in mind that PHP is stateless and server side. It does not know anything about a previous display of a page. To accomplish what you want you need to use sessions.
  9. Post your code here. Not many will go to a 3rd party site to look at your code. Be sure to use the code icon (<>) in the menu and select PHP.
  10. You launch it from javascript but you would need to have the client register an application.
  11. What do you mean browser script? PHP is server side only. It cannot see anything on the client side (javascript). As a matter of security, a browser will not execute programs on the client. You need to look around line 33 in that script for a syntax error. It may occur before line 33.
  12. Now you have to look in your IIS log.
  13. I think you still have the wrong path. I think you really want: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  14. Show your corrected code.
  15. I believe using single quotes (') instead of double quotes (") will work also. However that will also make the script non-portable to *nix but then power shell does not exist on *nix either.
  16. There is your answer. You have the wrong path.
  17. Insufficient information. What is returned from 'exec'? You are not checking that. What error are you getting? Be sure to have error reporting in you script. error_reporting(E_ALL);
  18. PHP mail can be finicky which is why almost all programmers use PHPMailer.
  19. As I originally said, you should use PHPMailer and it won't be as difficult to debug. You could have easily had it re-coded by now.
  20. Do you have errors turn on error_reporting(E_ALL); ?
  21. Comment out everything in the body except 1 line and see where the error goes.
  22. Again, you are not checking the return code from 'mail'. Also the reply to header does not look like a valid email address.
×
×
  • 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.