php script install


#1

Please bear with me, I am very new to PHP but trying to learn,
I do have a question that is most likely very simple, but has me puzzled.
I recently got a php script . It is a name generator script.
Heres the problem, it did not come with an install,include or config file to connect to my MYSQL database.
Do I need to make my own config and install file to use the script. Also what other files will I need… maybe a tables.php… etc. to make this work

I would really appreciate any help I can get.
Thanks in advance,
backlasher55


#2

Your question can not be easily answered…

You would need to check the documentation to see if a config file is needed and/or how to configure one (either from scratch or to modify an existing one.)

There may also be a section of the code that is commented to help you to setup/configure the script.

You might just need to put a connection setting at the beginning of the script, but at this point it’s only a guess.

http://us3.php.net/mysql_connect


#3

Well, if I read this correctly, I have the following two questions:

Do you have PHP installed?
Do you have MySQL installed?

If not for those two, your PHP script will not run :slight_smile:


#4

I have a database ready to use but the person I talked to informed me that this script does not need a database …This is a name generator script
But I still cannot get the script to function… when I try to perform a function that calls on the php I get the errors .
I’m lost on what to do now beings that the script seems to not need a database.
I need help obviously
Thanks
backlasher55


#5

Okay, so you don’t need a database connection.

What errors does your script spawn, and what bit of code goes with that/those error(s)?


#6

I’m actually not good enough to let you know but here is the link to the source code for the script I have.
http://www.churchsigngenerator.com/source.phps

I really would like to see if I can get this running,
any help would be greatly appreciated
Thanks,
backlasher55


#7

Okay, I checked it out (even though I didn’t want to).

Do you have the required PNG images?
Do you have the GD library installed?


#8

Yes,
I do have the .PNG images on my site. (for the chars and the baseline image)
But I don’t know what the GD Library is… so I guess I don’t have it installed.

What is happening when I run the page is that it starts out like it’s supposed to but when you try to add type to the image to be presented it only brings up the .PNG image that I started with… with no type showing entered onto the final image for presentation.
If someone will… could you please look at this page and tell me what I’m doing wrong.
As you can tell ,I’m totally lost on this… I’m trying to learn as fast as I can, but struggling as you can tell.
Keep in consideration that the HTML is just rough drafted until I get this script working.
The site will look completely different after I get this all functioning correctly.

temp site:
http://www.bassintips.com/churchsigns/index_1.php

Maybe someday,I’ll be able to repay the help I’m getting here.

Thanks in advance,
backlasher55


#9

Well, if you’re trying to learn, you started out with a script that’s way over your head. Try this page for possible solutions though: http://www.php.net/manual/en/ref.image.php