Jump to content

gw1500se

Members
  • Posts

    1,040
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. It is not clear to me what you are asking since "empty" returns a boolean value. Is the objective to return the first $postal* that is not empty?
  2. Did you look at the resulting HTML source to see if it looks like you expect?
  3. It may not necessarily be in error_log. There may be several different error logs depending on your configuration. Check all error logs.
  4. 500 is an internal server error. What does your httpd log say?
  5. Sorry, I didn't realize that was what you wanted to do. Someone has already done that for you on github.
  6. Check out the json_encode documentation and the JSON_PRETTY_PRINT option.
  7. Yes, the mysql extensions have been deprecated for decades. You should have switched to PDO years ago. Now you have no choice.
  8. Did you check your mail server logs and/or httpd logs?
  9. What did you try and what error did you get or unexpected output?
  10. Once you have the redirect in place, does it matter?
  11. Yes. No.
  12. Use .htaccess to redirect references to the old link to the new one.
  13. Post your code. Be sure to use the code icon (<>) on the menu and specify PHP.
  14. I forgot to mention, not HTML is needed since no browser is involved. Simply write the script as if it were any other scripting language (bsh, Python, perl, etc.).
  15. Eliminate the meta refresh. When you create a cronjob you tell it how often to run the script. This tutorial tells you how to set up cron.
  16. Not directly but writing your own is pretty simple in both PHP and Javascript.
  17. This is not really a PHP question. You need to create a .htaccess file with redirect. You can see how here.
  18. You could start by posting the offending code and the full error message. When posting code be sure to use the code icon (<>) in the menu and specify PHP.
  19. This is not really a PHP issue. I suggest you ask this on the appropriate *NIX forum.
  20. One additional note. You need to check for 11, 12 and 13 since they are not 11st, 12nd or 13rd. Teens are all 'th'.
  21. Where do you check for 3 and append 'rd'? I can only see 'st', 'nd' and 'th'.
  22. What have you tried? Post your code and be sure to use the code icon (<>) on the menu and specify PHP. List any error messages and/or what you get instead of what you expect.
  23. If that is the case, it sounds like your database schema needs to be rethought.
  24. One way is to translate all <> characters to &lt; and &gt; respectively. You may need to wrap it in <pre>...</pre> tags to format it.
  25. Not sure what you are asking. This is all done on the client side so JavaScript can control what is displayed. Calling a PHP function with Ajax does not change anything on that page unless the JavaScript makes the change. Keep in mind that PHP is server side only and is stateless. JavaScript is client side and can control the current page completely. Thus a different JavaScript/Ajax function will not effect this function.
×
×
  • 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.