SubZero. Posted April 20, 2007 Share Posted April 20, 2007 Hello guys, in the beginning I was thinking where exactly I can post this topic, here or in CSS section? But you guys are experts in PHP so I am asking here :-)I've found something like this: <link rel="stylesheet" type="text/css" media="screen" href="http://www.EXAMPLE.com/file-with-css.php" /> Of course this php file nothing showed to my browser (no echo functions?).I am really guy who knows a LITTLE BIT of PHP, so I am asking you guys how to do this? Link to comment Share on other sites More sharing options...
vijay Posted April 20, 2007 Share Posted April 20, 2007 Hi.. It would be working fine if that file containg css.. but you must enter css name over there as a standards..Regards,Vijay Link to comment Share on other sites More sharing options...
SubZero. Posted April 20, 2007 Author Share Posted April 20, 2007 It's working thanks!My next question is... as I said, I couldn't see what this php file had.I am doing like this:index.html: <html><head> <link rel="stylesheet" type="text/css" media="screen" href="s.php" /></head><body>TEST</body></html> s.php body { margin: 0; padding: 0; background: #000000; color: #FFFFFF; font-size: 100px; font-family: sans-serif;} and when I open with my browser file s.php I see everything what that file have in (so in this example i see body{...}), how to make this php file to prevent from seeing whats inside? Link to comment Share on other sites More sharing options...
vijay Posted April 20, 2007 Share Posted April 20, 2007 Hi..u can do that by following..ob_start();include('s.php');ob_clean();tell this file as t.php..but with this you can not apply css in ur pagebut may I know why u r doing silly thing.. am not getting..Regards,Vijay Link to comment Share on other sites More sharing options...
SubZero. Posted April 20, 2007 Author Share Posted April 20, 2007 Nevermind vijay, I just wanted to know who it works, but I wont learn now php, maybe l8er, thank you Link to comment Share on other sites More sharing options...
smiles Posted April 20, 2007 Share Posted April 20, 2007 your doing similar to disabling View Source that is impossiblehtml.php still contain html code in View Source Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now