The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
|||
|
|||
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.
|
#3
|
||||
|
||||
heres the code
PHP Code:
|
#4
|
|||
|
|||
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.
|
#5
|
||||
|
||||
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 Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in \groups\groups.php on line 180 Warning: getimagesize(image.php?u=10&dateline=1063118771): failed to open stream: Invalid argument in \groups\groups.php on line 181 PHP Code:
|
#6
|
|||
|
|||
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 |
#7
|
||||
|
||||
thanks, will that help me to make the data into a string too?
|
#8
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|