Need php update?

Discussion in 'PHP' started by fex, Apr 8, 2009.

  1. #1
    Hello,

    I've had to reinstall my OS (windows vista 32 bit) and I think I still need to update something related to php. The pic below shows how php-pages are now shown in Expression Web. It should just be small white icons, so not with the 'php' written over it. I've had something installed on my comp called 'SQL Server 2005' that had got something to do with it?

    http://img5.imageshack.us/img5/7306/picmri.jpg

    Tia
     
    fex, Apr 8, 2009 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't understand - why do you care what the icons look like?
     
    SmallPotatoes, Apr 8, 2009 IP
  3. fex

    fex Peon

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Of course it's not because of the icons.. But they tell me something is not as before.

    When I save my pages again (with the very same code) the browser displays the pages differently. I'm guessing it is because the php saves the code in another way (?).

    Take a look at this piece of code for exemple:
    echo "<div id=\"box admin_output error\"><p>Could not log in. Wrong login information.<br/><a href=\"login.php#anc\" class=\"silent\">Try again</a></p></div>";
    Code (markup):
    This div has multiple id's which worked perfectly before, now it doesn't show any of the 3 id styles.
     
    fex, Apr 8, 2009 IP
  4. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You'll probably want to do a "view source" on the page to see if the generated HTML looks okay. If it does, then your problem lies elsewhere - maybe it's not finding the style sheet, for example.
     
    SmallPotatoes, Apr 8, 2009 IP
  5. fex

    fex Peon

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The generated HTML does look okay and the style sheet is found because other styles are applied. If I set only 1 id it applies that single id, but when setting 2 or 3 id's it applies none.

    EDIT: This should be working according to me and doesn't.. http://www.verplrke.be/Kkuba/test.htm
     
    fex, Apr 8, 2009 IP
  6. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Can an object have two ids? I thought it could have multiple classes but only one id. In any case, this has nothing to do with PHP.
     
    SmallPotatoes, Apr 8, 2009 IP
  7. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #7
    It just means that you've an application which can open .php files ( and probably it's set as a default editor ). Right click -> Properties and check what's set as a default editor ( or Open With ) !
     
    ActiveFrost, Apr 8, 2009 IP
  8. fex

    fex Peon

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    #ActiveFrost
    Okay, I get your point. When setting notepad as default editor the notepad icon shows up on it.
    #SmallPotatoes
    Changed to multiple classes, works.

    Well, isn't it PHP because it's written in PHP (under echo) or is it HTML because it shows as HTML eventually (when being echoed)? I thought PHP saved it incorrectly (like in a previous version or so).
     
    fex, Apr 9, 2009 IP
  9. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Well, the actual problem was HTML/CSS.

    Yes, PHP generated the HTML/CSS in question, but if the same HTML/CSS had been generated by ASP or JSP or ColdFusion or anything else, the results would have been the same.

    I guess you could also say it was a coal-related problem since the server running the code was probably powered by electricity generated from burning coal. I don't mean to belabour the issue, but it seems to me it's more helpful to drill down to the most salient variable and work from there.
     
    SmallPotatoes, Apr 9, 2009 IP