-
Posts
15,229 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
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.
-
Are you sure? The documentation for odbc_exec() says nothing about errors or exceptions - just that the function returns false.
-
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.
-
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.
-
Help comparing entered date with system date.
requinix replied to SpaceChick's topic in PHP Coding Help
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.- 5 replies
-
- date
- stystem date
-
(and 1 more)
Tagged with:
-
Help comparing entered date with system date.
requinix replied to SpaceChick's topic in PHP Coding Help
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.- 5 replies
-
- date
- stystem date
-
(and 1 more)
Tagged with:
-
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.
-
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
-
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.
-
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.
-
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.
-
Can I search for a value from an array without extracting it?
requinix replied to SFADuncan's topic in PHP Coding Help
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. -
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.
- 45 replies
-
- apache
- mod_rewrite
-
(and 1 more)
Tagged with:
-
Can I search for a value from an array without extracting it?
requinix replied to SFADuncan's topic in PHP Coding Help
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. -
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.
- 45 replies
-
- apache
- mod_rewrite
-
(and 1 more)
Tagged with:
-
How to Ask Questions the Smart Way What variable? What INI file? What pages? Explain.
-
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.
-
Pass $user into Lang's constructor as an argument.
-
Have you tried, I dunno, copy and pasting the code into that spot?
-
Put the code in a file somewhere and require_once() that file. Then echo GUtils::normalizarNome("paulo DA SILVA");
-
$con = mysqli_connect('$host','$username','$password','$db');Variables do not work in single-quoted strings. Do away with the quotes entirely.
-
How Can i Make a Conditon to get two diffrent Percentage
requinix replied to allpkresults's topic in PHP Coding Help
What? -
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?