Jump to content

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/11243-printing-text-vertically-imagestringup/
Share on other sites

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.