ToonMariner
Members-
Posts
3,342 -
Joined
-
Last visited
Everything posted by ToonMariner
-
mate I just did it for you!!!!
-
vey simple - you have designed for IE rather than for a standards compliant browser and not used a doc type declaration. the best way to design a site is to design to a compliant browser - than if you need any fixes for ie either use the ie html condiftional statements to link another css file or use hacks (you can design out the need for most if not all hacks by using a strict dtd and getting ie out of quirks mode)
-
internet explorer css - page displaying incorrectly
ToonMariner replied to map200uk's topic in CSS Help
without seeing the html it sounds like the old boxmodel problem. if so his page will explin why and how to fix. http://css-discuss.incutio.com/?page=BoxModelHack the alternative is using a strict dtd which forces ie into standards mode... -
it is returning a value now - you just aren't doing anything with that value. Notice in my second solution I assign the returned value to a var called $im and then echo that out...
-
well perhaps if you gave us an example of what should be in the fanny mae file we may be able to offer some solutions....
-
you need to echo the value out... either swap return $image for echo $image OR repalce this <img src="<?php imagerot() ?>" /> with $im = imagerot() ; ?> <img src="<?php echo $im; ?>" />
-
lots of reading fo you fella http://uk.php.net/manual/en/ref.pdf.php but when you get to it you can set the width greater than teh height in the creat page function http://uk.php.net/manual/en/function.pdf-begin-page-ext.php or http://uk.php.net/manual/en/function.pdf-begin-template-ext.php hope they are helpful....
-
Change Default Value of HTML FileUpload Object
ToonMariner replied to lazycrane's topic in PHP Coding Help
???? that makes no sense at all... the name attribute of the input can be what ever you like - and its only use is in the $_FILES array in the next script. this is a super global so instead of trying to change it just use it. before you can change something you need to know what it is first.... alternatively do you mean you wish to change the actual filename - like me.gif to xyz.gif? if so you can change the filename when using he move_uploaded_file function... -
[SOLVED] If statement on one line. How?
ToonMariner replied to Moon-Man.net's topic in PHP Coding Help
$x = $y >= 20 ? 10 : 5; OK $x = is the assignment part - this means that you will be assigning a value to $x the next term before the ? is the conditional statement - in this if ($y > 20).... ? means condition is met (true) then use the next value (or calculation) ---- $x = 10; : means condition is not met (false) then use this value (or calculation) ---- $x = 5; so you could do..... <?php $x = $_GET['foo'] > $_GET['bar'] ? $_GET['foo'] / $_GET['bar'] : $_GET['bar'] / $_GET['foo']; ?> -
how is it defined at present? you can always set a default value before hand... <?php $bodyID = isset($bodyID) ? $bodyID : 'b1'; switch($bodyID) { case 'b1': $aid = 'active'; break; case 'b2': $aid = 'working'; break; case 'b3': $aid = 'lazy'; break; case 'b4': $aid = 'sleeping'; break; case 'b5': $aid = 'running'; break; case 'b6': $aid = 'falling'; break; case 'b7': $aid = 'screaming'; break; default: $adi = 'finished'; } ?> <a id="<?php echo $aid; ?>" href="#no">Link</a> that is how I woudl approch it anyway...
-
sorry I am naive but what is an fnm file?
-
[SOLVED] If statement on one line. How?
ToonMariner replied to Moon-Man.net's topic in PHP Coding Help
If you are referring to teh ternary operator it works like this... $x = isset($y) ? 10 : 5; so if y isset x will be 10 otherwise it will be 5. This method is only for assignment - you can't use for constructs or functions directly. You can however use the result for such operations. -
Change Default Value of HTML FileUpload Object
ToonMariner replied to lazycrane's topic in PHP Coding Help
well what ever you call the file input field it will be available in the $_FILES array in the next page. so if you simply grab the field name in the accpeting script you can do what ever you like. $name = array_keys($_FILES); $name = $name[0]; that should giv you your dynamic input name. -
Sorry Azu but everyone on this thread agrees - you cannot do it on a single word that is in the same tage as other words without either JS doing a regular expresion replacement. If you want css to do it then you MUST place something like <span> around the word and uss css to style that element..
-
shouldn't affect it that much
-
[SOLVED] how to match ".\" using preg_match??
ToonMariner replied to chenloong's topic in PHP Coding Help
'\.\\' -
$find = array('/r%#d/', '/b\*%d/'); $rep = array('<','>'); preg_replace($find,$rep,$str);
-
That's what images do - you are taking the same data and trying to place it all in a smaller (or larger) visual space. this means that some interpolation will occur between pixels to try and replicate the colours. The GD Library is not as sophisticated as graphic apps such as photoshop - they have sophistcaed algorithms and can far better utilise vector based algorithms to maintain the 'quality' of an image.
-
DON'T!!!! I know it means you don't type as much but short tags enabled can cause more hassel than its wort - say you have a large site and then want to add some kind of xml like rss or similar - short tgas will screw it all up fur you in an instant. Leave it as is and used the preferred (stricter) method of <?php
-
http://www.alistapart.com/articles/succeed/ An excellent place to start....
-
[SOLVED] centering a container <div> on a page?
ToonMariner replied to immanuelx2's topic in CSS Help
margin: auto is the preferred method... IE7 is much closer to a standards compliant browser than previous incartnations so the need for separate css should diminish over time.