Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by BB101

  1. BB101

    PHP versus HTML

    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
  2. BB101

    Cookies

    Thank you very much, I think I'll add a little script to force people to go from the non www. url to the www. url. Again, thank you. --BB
  3. BB101

    Cookies

    Here's a dump of the HTTP_COOKIE variable to add clarity:[HTTP_COOKIE] => ayn=MDEyMjA0MjAzNDc4QjE5SlRhdUxUOEE2Z2F4VWt5VnBRbmRDVG83NkgxOUM3MWR5SExiQ1Rvag; PHPSESSID=oakp2ruq120pt3ja1n83qqo267; ayn=MDMwNDM1NTEzNDc5clMzRkhQb2FIRFVSOVBqN2xla09kdUl3SHEwUkdZM3dHUzFNMDI5VE9J...
  4. BB101

    Cookies

    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...
  5. BB101

    Cookies

    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; }...
  6. BB101

    Cookies

    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...
  7. BB101

    Microphone not working

    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...
  8. BB101

    Images within calculation fields

    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
  9. BB101

    Images within calculation fields

    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
  10. BB101

    INSERT DELAYED, wheres the equivelent for UPDATE?

    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")...
  11. BB101

    INSERT DELAYED, wheres the equivelent for UPDATE?

    I know this, I want my UPDATE to return immediately as soon as it is queued, is this possible? --BB
  12. BB101

    INSERT DELAYED, wheres the equivelent for UPDATE?

    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
  13. BB101

    Separating HTML and PHP

    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...
  14. BB101

    sending instant messages

    Thank you, exactly what I needed --BB
  15. BB101

    sending instant messages

    Can you give me anything more than that? --BB

Part and Inventory Search

Back
Top