Jump to content


Photo

Printing text vertically imagestringup()


  • Please log in to reply
2 replies to this topic

#1 pakenney38

pakenney38
  • Members
  • PipPipPip
  • Advanced Member
  • 90 posts

Posted 05 June 2006 - 03:35 PM

imagestringup ( resource image, int font, int x, int y, string s, int col )

Does anyone know how to use this thing?
In the context of what I am working on, I am creating an online form, and I need text to be drawn vertically within a table cell. However, I do not understand the official PHP manual in most cases, but once the functions are demonstrated, I "get it."

So in this case, what is an example of how imagestringup would be used?
Also when I have attempted to use imagestringup(), I get a call to undefined function, as if my PHP server didn't know what imagestringup() is. Not sure that maybe if I used it correctly, then I would not have this error, but in the past when I've had this error, the function is either not enabled in php.ini, or no longer exists.

#2 pakenney38

pakenney38
  • Members
  • PipPipPip
  • Advanced Member
  • 90 posts

Posted 05 June 2006 - 04:12 PM

OK, I've made a little progress. It helps to use my PC as a test PHP server. First of all, I added C:\PHP to the PATH. Then I configured php.ini for GD2. Then I copied all the extension from the zip distribution of PHP 5 into my C:\PHP\ext folder. Now at least I don't get call to undefined function.

So now I am going to start with something like this
imagestringup($image, 1, $x, $y, 'TEXT', $text_color)
I will start plugging in numbers and see what happens.

#3 pakenney38

pakenney38
  • Members
  • PipPipPip
  • Advanced Member
  • 90 posts

Posted 05 June 2006 - 07:44 PM

Does anyone know what I am supposed to use for the $image variable here?
I seem to get this a lot:

Warning: imagestringup(): supplied argument is not a valid Image resource in c:\Inetpub\wwwroot\pprs\pilot_pay_review_sheet.php on line 60




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users