Dynamic Php site with redirects for screen size

Discussion in 'PHP' started by prince718, Jul 10, 2011.

  1. #1
    Ok. I was looking to create sites compatible with different resolutions(and mobile). So my choice was to create different html and css files and use javascript to redirect it. I think if I do it that way the sites will look the best, rather than a fluid design.

    Now my site is a site to view pics from events that I have shot. PartyPrinceProductions.com .... I am studying Php so that I can make it where they have to register, and eventually a cms and Du=ynamic pae creation for the pages with the pics.

    My question is- If I use the javascript method of redirection, can I have that work with the Dynamic Php created pages? Can I build a simple content management system that creates multiple xhtml and css files so that my javascript approach will still be valid.....
     
    prince718, Jul 10, 2011 IP
  2. AdsMakeSense

    AdsMakeSense Active Member

    Messages:
    389
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Yes, Javascript can work with PHP.
    What I would do in your situation is have javascript pass the (screen resolution) values to PHP.
    Then have PHP output the proper redirection.
     
    AdsMakeSense, Jul 10, 2011 IP