julian chamberl wrote:I am trying to add this to the php file to kick out to the css on the fly but for the love of god i cannot get it to work? I know i dont need the <style> etc but all i want is to be able to include the loaded type into a DIV that i can use and change as per page? Maybe im missing something but everytime i get it to almost work, it changes the whole site layout? This is the code i have and trying to echo out to display in the index.php. How do i just make it into a div or style?
I am not sure what you are asking for.
Are you trying to separate the CSS stylesheet into a separate file such that it can be loaded on the HTML page? If so, then this has nothing to do with PHP, but rather requires the use of the link element or CSS @import.
Are you trying to apply a particular stylesheet chosen by some conditions known just before the page is displayed? If so, then you need to implement the logic in PHP and have PHP come up with the stylesheet (whether the code or the file name), and then use PHP as a template language to get the stylesheet inserted in the clientside code.
Are you trying to show a separate page within the given page? If so, then this has nothing to do with PHP, but rather you would likely reach for an iframe or perhaps some special clientside script activated widget.