Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Jul 2008
    Location
    Peterborough - UK
    Posts
    63
    Thanks
    4
    Thanked 9 Times in 9 Posts

    Adding Namespace with php

    Hi all,

    I'm trying to use php to add a VML namespace to a page on my pages, but only for IE

    I have a variable ($browser) that denotes the browser, basically my code consists of:

    PHP Code:

    if($browser=="MSIE")
    {
    //add VML namespace
    }
    else
    {
    //link SVG file

    can thins be done using somthing silimar to:

    PHP Code:
    header('Content-Type: image/svg+xml'); 
    (which is used in an external SVG file)

    Also - any tips you mgiht have on dynamic vector graphics would be very well recieved! (if you hadn't guessed thats what I'm attempting already )

    Thanks in advance
    Mike
    Last edited by Mikebert4; 08-01-2008 at 12:09 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •