473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Script Needed

'Ello mates. I'm currently learning PHP from a book that I got at a
Barnes and Noble (the one near times square in new york; one of my
friends got kicked out for somehow managing to move ALL the bibles to
the fiction section...lol...but that's another story). Its a good
book, very easy to learn with, but the only trouble has been my
attention span and neverending lust for video games.

XD

Anyways, I was browsing through some forums and I saw a signature from
sloganizer.com and thought immediately "Must...have...now" so I went to
google (:huzzah:) and I found a PHP script that was supposed to do the
same thing. Unfortunately it doesn't want to work for me and I'm not
advanced enough yet to debug the code.

So...Can someone give me a script that allows you to have dynamic text
put onto an defined image? Also, comments in the code explaining what
does what would be nice and would help me in learning PHP. :)

Thanks
-- Pimpalicious Nerd (Forizzle Foshizzle) (XD)

Aug 2 '05 #1
4 1656
Pimpalicious Nerd wrote:

Hi,
'Ello mates. I'm currently learning PHP from a book that I got at a
Barnes and Noble (the one near times square in new york; one of my
friends got kicked out for somehow managing to move ALL the bibles to
the fiction section...lol...but that's another story).
LOL, excactly where they should be. :-)

<snip>

So...Can someone give me a script that allows you to have dynamic text
put onto an defined image? Also, comments in the code explaining what
does what would be nice and would help me in learning PHP. :)

Well, actually, that is NOT completely the same on every machine.

I am going to tell you how to proceed, not giving a ready-to-go script.
You'll have the most fun making this run by yourself, and it is hard to give
you a ready-to-go script without knowing anything about your
machine/setup/php.ini/graphicslibraries/etc.
Your PHP needs to have access to some kind of imagelibs.
On GNU/Linux the most popular is the GD-library.

Having that installed and configured well will make your life immensely more
easy.
Try phpinfo() to see what PHP has to say about it.
If you see somewhere some mention of GD, you are probably ready-set-go to
start coding.
If not, just go to php.net and search a little for help on GD.

If you are on a W$ machine: Who knows (not me). I don't even know if GD-libs
have been ported to W$. If not, I am sure you can find some equivalent.

This is a good place to start: http://nl3.php.net/manual/en/ref.image.php

IF you have your imagelibs up and running (try some examplescript as can be
found on php.net), you just look through the image-functionlist for
functions you need.

The following steps will be needed somehow:
- Open your image
- add some dynamic text to it
- safe/deliver the image to the client.

One warning: If you are using huge images you can hit the 8MB internal
memory limit of PHP.
That can be ajusted in PHP.ini, if you have access to that.

Thanks
-- Pimpalicious Nerd (Forizzle Foshizzle) (XD)


Hope this helps!

Regards,
Erwin Moller
Aug 2 '05 #2
Erwin Moller wrote:
friends got kicked out for somehow managing to move ALL the bibles to
the fiction section...lol...but that's another story).
LOL, excactly where they should be. :-)


I completely and totally agree. XD My take on the issue is that there
is a "God" so to speak, most definately more likely to be some kind of
advanced form of ascended intelligence, though sometimes I even doubt
that too when I think about the Tsunami that just happened (more like
six months) which makes me think "either there isn't a 'god' or that
'god' is just too damned irresponsible to intervene and prevent deaths
like we saw with this, and that I feel that the fact that billions of
people still to this day worship some random carpenter from _TWO
FRACKING THOUSAND AND FIVE YEARS AGO_ who did a bunch of nice things
that were "miracles" to be a bloody pile of BS. But, lets not get me
started on what I think of Bible Thumpers, especially the ones who
protest things like Harry Potter (OH NOSS ITS GUNNA KORRUPT OUR
CHEELDRENZZ!!!1!11!!1 (which the only response to that can be, "GET A
MOTHERFRACKING LIFE DAMNIT!!!")) and _STAR WARS_ saying that because
they (they being all the Jedis and whatnot IN THE _MOVIE_... Keyword
there too.) say that they have "I have the force" because it means "I
have gods powers yayyyyy!!!!"...yeah. See... I went off for a few
lines. *cough* Well, actually, that is NOT completely the same on every machine.

I am going to tell you how to proceed, not giving a ready-to-go script.
You'll have the most fun making this run by yourself, and it is hard to give
you a ready-to-go script without knowing anything about your
machine/setup/php.ini/graphicslibraries/etc. Indeed. :)

Your PHP needs to have access to some kind of imagelibs.
On GNU/Linux the most popular is the GD-library.

The website that I'd be running this off of is hosted on a remote
location and I can access it and find out using the phpinfo(); command
whether or not it will work.

And thanks for the help too. And before when I said I was still
learning...I meant like still playing around with the basics like the
echo(); commands and playing around with connecting to DBs on my compy.
Before I engage in this though I should finish the book. Lol

-- Pimpalicious Nerd (Forizzle Foshizzle)

Aug 2 '05 #3
Pimpalicious Nerd wrote:

<snipped some ranting about misleaded souls, to which I totaly agree by the
way :P>

Well, actually, that is NOT completely the same on every machine.

I am going to tell you how to proceed, not giving a ready-to-go script.
You'll have the most fun making this run by yourself, and it is hard to
give you a ready-to-go script without knowing anything about your
machine/setup/php.ini/graphicslibraries/etc. Indeed. :)


Your PHP needs to have access to some kind of imagelibs.
On GNU/Linux the most popular is the GD-library.

The website that I'd be running this off of is hosted on a remote
location and I can access it and find out using the phpinfo(); command
whether or not it will work.

And thanks for the help too. And before when I said I was still
learning...I meant like still playing around with the basics like the
echo(); commands and playing around with connecting to DBs on my compy.
Before I engage in this though I should finish the book. Lol


Ok, be sure not to skip www.php.net.
Allthough it cannot replace a good book for educational purposes, it
contains LOTS of very usefull information.
Just browse around for an hour, and you'll come back all by yourself after
that. :-)

Best of luck, and enjoy.
Please send my regards to your (fired) friend. :-)

Regards,
Erwin Moller

-- Pimpalicious Nerd (Forizzle Foshizzle)


Aug 2 '05 #4
In article <11*********************@o13g2000cwo.googlegroups. com>,
"Pimpalicious Nerd" <Pi**************@gmail.com> wrote:
Erwin Moller wrote:
friends got kicked out for somehow managing to move ALL the bibles to
the fiction section...lol...but that's another story).


LOL, excactly where they should be. :-)


I completely and totally agree. XD My take on the issue is that there
is a "God" so to speak, most definately more likely to be some kind of
advanced form of ascended intelligence, though sometimes I even doubt
that too when I think about the Tsunami that just happened (more like
six months) which makes me think "either there isn't a 'god' or that
'god' is just too damned irresponsible to intervene and prevent deaths
like we saw with this, and that I feel that the fact that billions of
people still to this day worship some random carpenter from _TWO
FRACKING THOUSAND AND FIVE YEARS AGO_ who did a bunch of nice things
that were "miracles" to be a bloody pile of BS. But, lets not get me
started on what I think of Bible Thumpers, especially the ones who
protest things like Harry Potter (OH NOSS ITS GUNNA KORRUPT OUR
CHEELDRENZZ!!!1!11!!1 (which the only response to that can be, "GET A
MOTHERFRACKING LIFE DAMNIT!!!")) and _STAR WARS_ saying that because
they (they being all the Jedis and whatnot IN THE _MOVIE_... Keyword
there too.) say that they have "I have the force" because it means "I
have gods powers yayyyyy!!!!"...yeah. See... I went off for a few
lines. *cough*


"One man's religious beliefs are another's belly laugh."--Lazarus Long

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Aug 3 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Fox | last post by:
I merged and modified these script which work perfectly fine as long as I use server.execute to access the VBS part (which is itself in another ASP file). When these I use a session variable to...
6
by: Olly | last post by:
I've found a basic script, however I also need to add alt and title attributes as well, how would I go about doing this? Here's the script I found: Thanks <script language="JavaScript"> <!--...
6
by: Richard Trahan | last post by:
I want a js function to call a Perl script residing on a server. The Perl script will return a string, to be used by the js. Pseudo code: <script> stringvar = perlfunc_on_server(stringarg)...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
3
by: Steve Powell | last post by:
Hi, Can anyone help me with this one? How can I remove script registered by RegisterClientScriptBlock ? If I add another script with the same name, is the first one overwritten or it's just...
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
1
by: Oliver Marshall | last post by:
Hi, Im after a simple script to help sort my downloads. Basically I have a downloads folder, and at the moment I have directory browsing enabled so that i can download files. What I want is...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.