Jump to content

Sulman

Members
  • Posts

    150
  • Joined

  • Last visited

    Never

About Sulman

  • Birthday 06/30/1973

Contact Methods

  • Website URL
    http://www.digitalsymmetry.co.uk

Profile Information

  • Gender
    Male
  • Location
    Shropshire, UK.

Sulman's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi all, I'm currently using Maxminds geoip and geoipcity databases to determine the users country but it struggles to determine if a visitor is from Northern Ireland (it just shows them as United Kingdom). Has anyone got (any) GeoIP to accurately determine Northern Ireland visitors? Thanks
  2. Thanks for the reply chris, but as mentioned in my original post I am unable to alter the structure of the table. Thanks.
  3. Hi All, I am trying to style a table that I have no control over (I can not add or remove elements from it or restructure it etc.). Very simply it looks like so: <div class="wrapper"> <table> <tr> <td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td> <td>bbbbbbbbbbbbbbbbbbbbbbbbbbb</td> </tr> </table> </div> This results in: aaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbb But I need bb... to drop below aa... If I set a width to the wrapper div of 50px and float the td's left in almost all browsers the tds drop to below each other: aaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbb But this does not work in IE6 or IE7... Does anyone know a workaround to make it work in these 2 browsers? Thanks!
  4. It seems that the server is not configured to share the sessions between http & https. Anyone know how I would go about enabling this? Thanks
  5. Hi all, I'm having a right old headache with a magento installation on our virtual dedicated server that we hire. It is running PHP 5.2.13 and the problem is as follows: When a product is added in to the cart and proceed to checkout is clicked the checkout url flips to https but because the product is sitting in a http cart the checkout can't find any products in the cart because it's looking at a https version... I have installed an exact snapshot of the site on 2 other servers and it works fine...So to me this sounds like a server config issue (either PHP or Apache) right? Does anyone have any thoughts as to what needs to be changed on the server? Thanks very much!
  6. It looks ok. The problem is most likely in you db class: <?php $id = $db->insert_id(); ?> It looks like the insert_id method is not returning the correct data. If you echo out $id what do you get? Can you post the insert_id code.
  7. Thanks teamatomic that function has worked a treat! Many thanks!
  8. Thanks for that. I'll look into your solution.
  9. Hi all, I have an array that i need to order but I'm looking for some advice as how to do it. The array looks like this: <?php $myarray[0]['order'] = 39; $myarray[0]['title'] = "title 1"; $myarray[1]['order'] = 39; $myarray[1]['title'] = "title 2"; $myarray[2]['order'] = 5; $myarray[2]['title'] = "title 3"; $myarray[3]['order'] = 0; $myarray[3]['title'] = "title 4"; etc... ?> I need to be able to order the array in ascending order based on the "order" element so it will look like this: <?php $myarray[0]['order'] = 0; $myarray[0]['title'] = "title 4"; $myarray[1]['order'] = 5; $myarray[1]['title'] = "title 3"; $myarray[2]['order'] = 39; $myarray[2]['title'] = "title 1"; $myarray[3]['order'] = 39; $myarray[3]['title'] = "title 2"; etc... ?> Any ideas how i would achieve this? Normally it would be pretty easy: simply use the order as the index of the array, but the problem with that is that I would lose one because there are two 39's! Any clues?! Thanks
  10. As PFMaBiSmAd said there wil be something happening, you just aren't seeing it. If you are just getting a blank page it could be that the new server has errors turned off. This means that no error messages will be displayed and you will just get a blank page. Try adding the above in to the config or on the top of the page in question: error_reporting(E_ALL); ini_set('display_errors','On'); That might help...
  11. Thanks for all your replies, I've increased the session timeout with no performance hit so far and will take your suggestions on board and look at implementing a cookie based secure solution. Thanks all.
  12. Thanks I was thinking about cookies but this is a "logged in" flag so I didn't want people to be able to hack it. will setting 12 hours cause any problems?
  13. Hey all, I'm looking to extend the session timeout in the ini file to about 12 hours. Will setting the session this long have any impact on server performance etc? Thanks
  14. Thanks dzelenika for the reply. That would mean that I am querying the DB (potentially) thousands of times per page loads (if I have 1000+ unread feeds). Currently I pull every single feed into a table with the link as the PK. This way it will only import feeds that are not already in there (due to the unique PK constraint). Then I choose the feeds I want and export them into a new table. I then set the original table status flag to 1. Finally I list all feeds for approval from the first table that have a status of 0. This should ensure I only see feeds that I haven't seen already. The only drawback with this is that the tables could get very big very quickly so I'll have a cron running every week or so that deletes anything past a certain date. Thanks
×
×
  • 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.