16. november 2005 - 17:51Der er
6 kommentarer og 1 løsning
Css i Php
Hejsa, jeg skulle bruge en lille hjælp til ang. php og css.
Jeg har en php fil som jeg vil gerne have CSS fil i. Hvordan kan det gøres?
PHP Fil: <?php $check = @fsockopen ("123.123.123.123","8000",$errno, $errstr,1); // change 123.123.123.123 to your shoucast ip and 8123 to the port if($check) { header('content-type: image/gif'); readfile('on.gif'); // change this to an image you want when shoutcast is on } else { header('content-type: image/gif'); readfile('off.gif'); // change this to an image you want when shoutcast is off } ?>
Mød en af Nordens fremmeste eksperter i adfærdsdesign – Morten Münster, der bl.a. har skrevet ” Jytte fra marketing er desværre gået for i dag” – på Computerworld Cloud & AI Festival.
Du kan bruge CSS stylesheet på koden uden om det kode du har vist der. <style> blabla </style> <?php $check = @fsockopen ("123.123.123.123","8000",$errno, $errstr,1); // change 123.123.123.123 to your shoucast ip and 8123 to the port if($check) { header('content-type: image/gif'); readfile('on.gif'); // change this to an image you want when shoutcast is on } else { header('content-type: image/gif'); readfile('off.gif'); // change this to an image you want when shoutcast is off } ?>
jacobdo, den vil melde fejl hvis den så sådan ud ..
dco, den skal se sådan her ud: <head><style> <!-- body { margin-left: 0px; margin-top: 0px; } --> </style></head> <?php $check = @fsockopen ("123.123.123.123","8000",$errno, $errstr,1); // change 123.123.123.123 to your shoucast ip and 8123 to the port if($check) { header('content-type: image/gif'); readfile('on.gif'); // change this to an image you want when shoutcast is on } else { header('content-type: image/gif'); readfile('off.gif'); // change this to an image you want when shoutcast is off } ?>
pidgeot, du har ret... Det skal lave sådan her: <style> blabla </style> <img src="dinShoutcast.php">
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.