Computing.Net > Forums > Programming > php help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

php help

Reply to Message Icon

Name: timlough43
Date: February 11, 2004 at 20:35:35 Pacific
OS: linuxredhat9
CPU/Ram: n/a
Comment:

Im needing some help creating a php script
that will post text to a .jpg image throught a fourm I have an example of what Im needing to do just email me if you think you might be able to help Thanks Tim



Sponsored Link
Ads by Google

Response Number 1
Name: saddam (by lurker)
Date: February 12, 2004 at 01:25:21 Pacific
Reply:

[code]
<? php function disp_title()
{
echo "text";
}
?>

">

"text" is what you would label the image. Place "<?php disp_title(); ?> whenever it is needed.
[/code]


0

Response Number 2
Name: saddam (by lurker)
Date: February 12, 2004 at 01:28:20 Pacific
Reply:

OOOPs............

I mised one iportant piece of code:
[code]
">
[/code]


0

Response Number 3
Name: saddam (by lurker)
Date: February 12, 2004 at 01:35:30 Pacific
Reply:

Oh my god!! not again!

here is it [img src = "someimg" alt = "[?php disp_title(); ?]"]

notice I have changed the < to [


0

Response Number 4
Name: Laler
Date: February 12, 2004 at 15:43:48 Pacific
Reply:

I think what Tim asked is a dynamic image generation

first you have to make sure that your hosting supports GD library then you must also set them up to treat .jpg files as PHP scripts...

then you can do PHP commands on generating dynamic images...

http://www.phpbuilder.com/columns/rasmus19990124.php3


0

Response Number 5
Name: timlough43
Date: February 14, 2004 at 20:57:05 Pacific
Reply:

Right you are.. Laler


Im runing apache server form home I have php running a script that prevents auotmated dowloads on a diferent section but on the same machine it uses a jpg image. It puts a randem gererated number into a jpg.File witch a user must type into a box. So does anyone know how I can do this I dont have any Idea. I had some one else make the other script. I would Like to use some kind of form /php combo which ask for Name,RR name,state,country,Email,Then the php script must be able to put this info on the template image and post it to an html file like in the example i posted. I wount to make sure where on the same page..


0

Related Posts

See More



Response Number 6
Name: Laler
Date: February 15, 2004 at 08:27:44 Pacific
Reply:

I'm not a PHP expert, so I can't give a good tutorial...

but to "draw a variable horizontally" use: imagestring();

Download the latest php.chm file, it is quite handy (browsing to php.net when developing a script is not so efficient :)

and btw, I don't think this dynamic generation is good for "turing numbers", because an advanced autosignup bot software can "read" the "numbers" on images... that's why turing numbers had to be distorted...

for turing numbers, I think most website create all images manually (along with the distorting lines/dots - to confuse the image reader software) then generate the image randomly (the image can also divided into sections, so there'll be more random possiblity)


0

Response Number 7
Name: Laler
Date: February 15, 2004 at 08:44:38 Pacific
Reply:

here's a simple example script on creating an image which shows visitor's IP... this one create the image from nothing...

http://www.allscoop.com/phpcode.php

do the "php help file" download, it's a long list if you want to see all of GD-related commands...

about "treating .jpg as PHP", it's only needed if you want to "submit" the image address to scripts that only accepts common image file extensions...


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: php help

PHP help needed (serious only) www.computing.net/answers/programming/php-help-needed-serious-only/10297.html

Php help www.computing.net/answers/programming/php-help/4452.html

PHP help..? www.computing.net/answers/programming/php-help/10535.html