quick php advice

Discussion in 'PHP' started by lordofthemorning, Mar 9, 2008.

  1. #1
    I am having trouble getting this site (test site) to load properly in ie7. It loads the way it should in firefox.

    www.cartoonmenace.com/answers/

    The middle section for some reason goes to the bottom instead of being in the middle like it should in IE

    Any ideas?
     
    lordofthemorning, Mar 9, 2008 IP
  2. lordofthemorning

    lordofthemorning Well-Known Member

    Messages:
    435
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    115
    #2
    just wanted to add that I am also looking for code in php that will run a script for a certain percentage of visitors to a page. The rest it will redirect to another page. So say 100 people visit a page, only 10% have the script run and the rest see something else.

    I will pay for each of the quick projects.

    pm me please.
     
    lordofthemorning, Mar 9, 2008 IP
  3. Gonzo4u

    Gonzo4u Well-Known Member

    Messages:
    410
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Well I dont think you will get the "Real Time" solution for this, as the traffic no. of visits to a page is not fixed it varies. Today for eg: the visits can be 100 tomorrow it can be 200. How will you make out the percentage out of it for eg: 10%. For that you need to have an estimated average per day visits value to that page and use that value for getting the percentage to restrict and redirect to other page.
    You can do that by assigning a value to some variable and fetch it through your config file if any or directly or you can even use your logs data to get the no. of per day visit value and use that.

    Simply make a counter to check no. of visits and put a threshold condition to redirect to other page if your condition meets. For this I guess you dont need to pay anyone for this small task and you can do it on your own if you know the programming.

    Regards,
    Gonzo
     
    Gonzo4u, Mar 10, 2008 IP
  4. VernonK

    VernonK Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I might be shooting in the wrong direction here, but your problem doesn't sound related to PHP. It sounds like a CSS issue with IE. I haven't perused your CSS but you might want to check your widths. A quick way to test is just to decrease the width of one of your containers and see if that clears up the problem.

    EDIT:: Sorry, I forgot to mention that it might not necessarily be the "width" but a combination of width and margin/padding. IE is tricky with padding. Do you reset your margin/padding values for elements?
     
    VernonK, Mar 10, 2008 IP
    lordofthemorning likes this.
  5. lordofthemorning

    lordofthemorning Well-Known Member

    Messages:
    435
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    115
    #5
    vernonk,

    you are right. It ended up being css!
     
    lordofthemorning, Mar 10, 2008 IP
  6. VernonK

    VernonK Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Great! Once I have a minute I'll try to come back and look at the PHP question you had. Have a great one! ;)
     
    VernonK, Mar 10, 2008 IP