I've noticed the opposite, HTML pages being higher ranked than PHP (or other scripts) ones. I think this has to do with the If-Modified-Since header. HTML pages will automagically send this header, where PHP will always say this is a brand new page.
--BB
Here's a dump of the HTTP_COOKIE variable to add clarity:[HTTP_COOKIE] => ayn=MDEyMjA0MjAzNDc4QjE5SlRhdUxUOEE2Z2F4VWt5VnBRbmRDVG83NkgxOUM3MWR5SExiQ1Rvag; PHPSESSID=oakp2ruq120pt3ja1n83qqo267; ayn=MDMwNDM1NTEzNDc5clMzRkhQb2FIRFVSOVBqN2xla09kdUl3SHEwUkdZM3dHUzFNMDI5VE9J...
The problem arrises when IE keeps duplicate cookies with the same key. The version of PHP is not important, I get the same problem regardless of whether I use Javascript, meta tags or http headers, i am however running PHP5.
PHP reads the HTTP_COOKIE variable and overwrites the values with the...
I have written a bodge that seems to be doing the trick, I submit it here for your review; comments and suggestions welcome:
$c = explode("; ", $_SERVER['HTTP_COOKIE']);
$cv = array();
foreach ($c as $p) {
list($k,$v) = explode("=", $p);
if (isset($cv[$k])) continue;
$cv[$k] = $v;
}...
Wasn't sure if this belonged here, in the javascript section or somewhere completely different, but you lot seem like a nice bunch, so here goes.
I'm basically having the same problem as this chap: http://www.webhostingtalk.com/archive/thread/133249-1.html
This problem is frustrating and...
I have a Sitecom modem, all seems to work fine, dials numbers, can hear the noise from the internal speaker and the headset, but I cannot send voice through the microphone.
The mic is connected to the mic slot on the modem, next to the speaker one.
Please help as I have run out of ideas...
I want the text and images to flow as one, so the text will mvoe the image down as it needs to (so it is in the correct position at all times).
I've had a google and a play and I don't see it being possible, becuase a field is either text or a container (for images).
Cheers anyway
--BB
Is it possible to insert an image into a calculation field? I'm having problems positioning the image as the text is fairly dynamic.
Thanks in advance
--BB
I found a better way, only ever send a maximum of 100 things in the where clause!
I got it running in less than 0.5 seconds (an acceptable level for now).
snippet:
$rs = $this->_db->GetAll("SELECT town_id FROM lk_user_town WHERE user_id = '".$uid."' AND active = 1")...
I'm having fun doing a large scale UPDATE on a database table. I found I can do an INSERT DELAYED to do bulk inserts without blocking the apache thread, but there doesn't seem to be an equivelent for updating. Can anyone help?
Thanks
--BB
Avoid loading lots of data into variables or you'll use a lot of memory on the server, if your getting a lot of hits you'll notice the performance, but I agree with imstillatwork's comment about doing most of the logic at the top of the file.
Reuse as much as possible! When I build sites, I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.