Ok, so let's say I want to change the text size depending on the number in the url, so something like this, correct?
PHP Code:
header('Content-Type: text/css');
$fontsize = $_GET['fontsize'];
echo (
'body{
font-size: '.$fontsize.';');
The quotes aren't making a whole lot of sense to me?
First of all, why're we using the () instead of just a normal echo? And, why are we using single quotes for the text and double quotes for the \n's?
ps - tried the image thing. Didn't work. It says the header information couldn't be modified because headers were already sent? http://flamehtmlstudios.com/projects/gd/image.php
you can see it there
The code I used for that:
PHP Code:
header ("Content-type: image/png");
$img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color);
ImagePng ($img_handle);
Bookmarks