D3mon
-
Dissapearing pictures (Firefox / Mac OSX)
Oh wait, the bug is generated by the combination of multiple transforms and this code (I'm using LESS): /* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */ .clearfix { zoom:1; &:before, &:after { content:&qu…
-
Dissapearing pictures (Firefox / Mac OSX)
Yes, It's down to this CSS: OL:before, UL:before, DL:before, DD:before, OL:after, UL:after, DL:after, DD:after { content: ""; display: table; } ... which I think may be an issue Firefox is particularly sensitive…
-
Dissapearing pictures (Firefox / Mac OSX)
http://codepen.io/gavincox/pen/iIrcf Have narrowed it down to what I think is part of a clear fix solution for the UL. Not certain if this a bug or just dodgy CSS now ...
-
Dissapearing pictures (Firefox / Mac OSX)
Ah OK, thanks. Hope it doesn't get anyone into trouble :) I'll set it up on CodePen. Hopefully, I can replicate the issue there. It 'feels' like a resource issue when the browser is running two or more transforms at once. Certa…
-
MySQL class - output issues
I'm not that hot on OO PHP yet. So, you're saying this would be better: public function processRowSet($rowSet, $singleRow=false) { $resultArray = array(); if($singleRow === true) return $resultArray[0]; else while($r…
-
MySQL class - output issues
Ah OK. So count($myarray) will return 1 if it's a single row and > 1 if it's an array of arrays? I guess, since the rest of the site relies on the way this class operates already, I'll need to check the array length before loopin…
-
Apache ErrorDocument 404 but without the automatic 404 header?
If the page URL doesn't exist in the DB, then the script responds with a 404 header and custom 404 HTML (not CMS driven).
-
Apache ErrorDocument 404 but without the automatic 404 header?
Got it! (finally) In my .htaccess file, instead of using: ErrorDocument 404 /error/ I used: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . /error/ to execute the error script in the event …
-
Apache ErrorDocument 404 but without the automatic 404 header?
I'm not sure I have acces to the httpd.conf as this project is on shared hosting, even the the.htaccess is locked down to a few 'allowed' options. If I change to a static 404 page, how will I get the server to execute the index.php (…
-
Apache ErrorDocument 404 but without the automatic 404 header?
OK, but the idea here is that my pages are entirely database driven and don't have actual files in the webspace. Do you see what I mean?
-
Apache ErrorDocument 404 but without the automatic 404 header?
Problem is that Apache sends the 404 header BEFORE it runs my 404 script.
-
Apache ErrorDocument 404 but without the automatic 404 header?
My 404 psuedocode: 1. get URL 2. Check URL in Database 3. If it exists: Send 200 header and output DB-driven HTML If not: Send 404 header and output error HTML
-
Iterating through an associative array from SQL query
OK. Scratch that - it was working fine. I was building an output string instead of echo'ing and discovered that I was overwriting the string with each loop! DUH. :)
-
$_GET to $_POST?
Ah of course! I had put the whole query string into a session variable. Thanks again. :D
-
$_GET to $_POST?
Any tips for parsing the values back out of the string - "units=0&value=36.55..."?
-
$_GET to $_POST?
Do you mean use a script to put the query string into a session, then redirect to the shipping calculator page and pull the data back from the session variable?
-
$_GET to $_POST?
Sounds good, if you could elaborate on the concept slightly for me. :D
-
development and production websites confusion
Great, thanks guys. I like to keep my sites as 'portable' as possible, so as they could be picked up from one host and dropped onto another with very little fuss/downtime etc. I've spent years just working on them 'live', bu…
-
development and production websites confusion
No, bespoke sites.
-
development and production websites confusion
Thanks. Yes I had been using the relative paths for the images, which was lucky but I've found that I have some problems with the $_SERVER['DOCUMENT_ROOT'], that I use to reference some resources outside of the web root, being unavoid…
-
Proportionally expanding to fit text content?
Ah perfect, that's just the way iOS handles it too :D
-
Proportionally expanding to fit text content?
Yes. Thanks very much. That looks to be a 'visually tidy' solution. :D
-
Proportionally expanding to fit text content?
A larger circle I think (or smaller text). TBH, though, I'm expecting a reasonable maximum of 999 for this particular project.
-
Two-tone box?
Fantastic, thanks guys. I'd had a feeling that it would be a gradient but wasn't sure I could get a perfect line between the two colours instead of a slight blur. I'll give it a go. :D