Jump to content

ToonMariner

Members
  • Posts

    3,342
  • Joined

  • Last visited

Everything posted by ToonMariner

  1. 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)
  2. 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...
  3. 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...
  4. 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....
  5. 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; ?>" />
  6. 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....
  7. ???? 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...
  8. $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']; ?>
  9. 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...
  10. sorry I am naive but what is an fnm file?
  11. 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.
  12. 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.
  13. You will use a larger portion of you systems resources but I doubt it will be noticed...
  14. that is because its an internal address. That ip address is on your own machine/router NOT on the www.
  15. 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..
  16. if you are creating an image from an uplod file make sure the file you are uploading does not exceeed the upload_max_filesize php ini setting.
  17. $find = array('/r%#d/', '/b\*%d/'); $rep = array('<','>'); preg_replace($find,$rep,$str);
  18. 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.
  19. 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
  20. http://www.alistapart.com/articles/succeed/ An excellent place to start....
  21. 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.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.