![]() |
getimagesize() on a php file: fix or workaround?
ok i can use this perfectly for image files but if i wanna use itfortheavatar file lets say image.php then i seem to run into an errorofitgiving me 0's for height and width is their anyway to fix this?
* sabret00the using supermerge powers to supply extra info that may or may not help Code:
Warning: getimagesize(image.php?u=10&dateline=1063118771):failed to open stream: Invalid argument in groups\groups.php on line172 |
You don't show your actual code, but my guess is that you are not pointing getimagesize() at an actual file. You may have to try to use imagecreatefromstring() and then use imagesy() and imagesx() for your demensions.
|
heres the code
PHP Code:
|
Don't forget, it was posted at vb.com that iif() is being phased out and using it for data like that is highly inefficent.
:) |
iif's are being phased out?
ok now just read it, could i just PHP Code:
just got back, it can't create the image from string it appears Code:
Warning: imagecreatefromstring(): Passed data is not in 'WBMP' format in \groups\groups.php on line 180 PHP Code:
|
getimagesize expects a file from the file system with a valid path and name.
imagecreatefromstring gives you a GD handle to use imagesy() imagesx(). This page has all the info ya need. http://us4.php.net/manual/en/ref.image.php |
thanks, will that help me to make the data into a string too?
|
Quote:
|
yup that's what i meant cos it's saying
Warning: imagecreatefromstring(): Passed data is not in 'WBMP' format in \groups\groups.php on line 179 my initial plan was to use file_get_contents() and go from there but that never worked :-S |
All times are GMT. The time now is 10:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|