473,666 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1672
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/graphicslibrari es/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/graphicslibrari es/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/graphicslibrari es/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************ *********@o13g2 000cwo.googlegr oups.com>,
"Pimpalicio us 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
3990
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 pass an email address from the database. I have had timeout problems and buffer problems and as I understand it, maybe a problem with changing the session variable too many times in one session. So I tried putting the two scripts on one page. When...
6
3521
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
15887
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) document.write(stringvar) </script> Can stringvar above be a url?
0
3221
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 converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
3
3126
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 skipped? -- Steve Powell
3
2481
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 <div id="datetime"></div> tags, the text shows up, but the javascript output being sent to those some divs doesn't seem to want to work. It should be showing up in the middle of the content pane, just below the first table box. (set by .css) Here's...
1
1648
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 to have a php script (index.php) that will parse the files that it finds in downloads and create a nice page (using my template and css). If it finds a directory in /downloads, then it
1
47446
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
8448
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8871
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8783
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.