How can I find the width and height of an image resource?
Answers were Sorted based on User's Feedback
Answer / jude jeevanraj.p
It is often useful to know the width and height of an image
resource. This can be achieved with the functions imagesx
and imagesy, like this:
<?php
$img = imagecreatetruecolor(400, 100);
echo imagesx($img); // 400
echo imagesy($img); // 100
?>
| Is This Answer Correct ? | 3 Yes | 2 No |
Does php need apache?
Explain about the $_GET variable of PHP?
How to set session.gc_divisor properly?
Does php support function overloading?
Explain what does the unset() function means?
How to turn on the session support?
How error handling is being handled by php?
How can I embed a java programme in PHP file and what changes have to be done in PHP.ini file?
1 Answers Sify, Small Biz Express,
Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()
How do I open a file to write content to?
1 Answers Rushmore Consultancy,
This question is regarding version control. If two developers are committing the same php file at same time what will happen ? What error it will show (if any) ?
What is the correct and the most two common way to start and finish a php block of code?