Jump to content

requinix

Administrators
  • Posts

    15,229
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. I cannot reproduce the behavior you're describing. I don't even know that it is redirecting as you say it is, considering how the domain name you say you're being sent to does not exist.
  2. Are you sure? The documentation for odbc_exec() says nothing about errors or exceptions - just that the function returns false.
  3. That's the problem. You need a third table that associates these signoff records with the files being signed off. Using your example it would contain at a minimum signoff_id | file_id -----------+-------- 1 | 10001 1 | 10003 1 | 10010 2 | 10001 3 | 10003 3 | 10010 3 | 10015Then JOIN the three tables together to get the employee/supervisor and the file names.
  4. And as long as index.php is a DirectoryIndex and as long as you don't actually link to "/index.php" then it will work without changes. I guess I was confused and thought that when you said to remove the extension that you wanted to remove the extension. I should have known you meant the entire file name. It's not going to do that after you remove any code that tries to remove the "www" subdomain. So... put the code back in. If you have problems making it work then we need to see what you have, not what you don't have.
  5. No, that is PHP. Submit the form, check the date, and if it's too soon then redisplay the form but including the message. If you want it entirely Javascript then we need a different approach.
  6. Make the datepicker return a yyyy-mm-dd string, then compare if ($date . $time <= date("Y-m-dHi", strtotime("+72 hours")) { // too soon }Don't think that it's doing some kind of date comparison - it's not. It's just a regular string comparison. Normally that's bad for numbers but you can do it here because each piece of the date and time is (1) in the same place in both strings, (2) padded to the same number of digits on both sides without any kind of AM/PM confusion in the time, and (3) arranged in most-significant to least-significant (largest to smallest intervals) order. If that's confusing you can stick to actual numbers. Unix timestamps, specifically: the number of seconds since 1970 began. if (strtotime($date . " " . $time) <= strtotime("+72 hours")) {Side note: timezones will matter here. If your server's timezone is not the timezone you want to use in the comparison then you should change it before doing any work with date and time strings.
  7. There is no such domain ssl.candystand.com, and if I try https://www.candystand.com I get a big ol' warning about a wrong SSL cert.
  8. Indexes. IDs are typically primary keys which means they have unique indexes. You can put indexes on any column or combination of columns you want, so if you want to search based on a unique string key then put a unique index on that column. The only real limitation is that the index must be
  9. The/an identifier for the record is "acer-aspire-e1-571G". If you think that you can only get "fast results" by searching on an ID number then you don't understand databases.
  10. Help with what? I don't know a single person here who would even consider looking through all that code for the source of a problem you haven't even told us.
  11. Don't include "ssl" in the new URL. If you're not doing that, which I can only assume you aren't since that'd be a really silly thing to overlook, then there is some mechanism somewhere else that's doing the redirect. That's what you have to find and fix.
  12. Yep. But this "up to 300 times"... Are you talking about running this query hundreds of times in one script? I sure hope not. Not even close. It's what databases are specifically designed for.
  13. Not for me it isn't. In fact it shouldn't work period because you've created an infinite loop of redirects. Add a line at the bottom of your .htaccess saying TestDirective 1Do you get a 500 error when trying to browse your website? Oh, and next time you post code, use tags.
  14. Fix your SQL query so it only returns the information you want. I'm guessing select content from user_lists where user_id='$user_id' and list_title_id='$list_title_id' and list_meta='list_title'Oh, and don't SELECT * when you only need the one content column.
  15. phpinfo() cannot tell you that information. Ask whoever manages your server. [edit] Looks like GoDaddy. Seems like a dedicated server so even if it's not installed you might be able to add it.
  16. # ---- Prevent directory file listing index IndexIgnore * Options -Indexes is better. .php extension? Enabling MultiViews should let you do that already. Try it. Then don't put /index.php in the link.
  17. requinix

    w3c HELP!

    X-UA-Compatible
  18. How to Ask Questions the Smart Way What variable? What INI file? What pages? Explain.
  19. 1. It's not really documented but the --with-config-file-scan-dir compile option. Meaning you'd have to build your own version of PHP to set that directory. 2. You have to install a "sendmail"-type client on Windows. Unix and Linux almost always have one to begin with while Windows (desktop versions at least) don't.
  20. Pass $user into Lang's constructor as an argument.
  21. Have you tried, I dunno, copy and pasting the code into that spot?
  22. Put the code in a file somewhere and require_once() that file. Then echo GUtils::normalizarNome("paulo DA SILVA");
  23. $con = mysqli_connect('$host','$username','$password','$db');Variables do not work in single-quoted strings. Do away with the quotes entirely.
  24. The only thing I got out of those three posts was that the XML file is 850 MB and that the script isn't outputting anything. The XML may be too large to load into memory. Open up your php.ini and change error_reporting = -1 display_errors = on memory_limit = 0then restart the web server (if you're running this script from a web page) and try again. Any errors?
×
×
  • 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.