Forum Moderators: coopster

Message Too Old, No Replies

Question about PHP

I just started using PHP and I need help :)

         

Lynnswebservice

5:16 pm on May 7, 2004 (gmt 0)

10+ Year Member



Hi,

I just started using, well trying to use PHP, so I can get people to signup and login to a website, well I have not figured out what script to use, or how to put it. I've gone to a few sites and found codes that I thought were the ones I needed well when I put them on a page noting happens. Do I have to install a php file even though my webhost supports it? And what is a good place to get php codes from, and what is a good php program/editor/creator?

Thanks,
Cheryl :)

ergophobe

7:35 pm on May 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can you get PHP to do anything yet (like output your name)? As for the specific login question, try:

Search Google for

1) site:www.webmasterworld.com php login script

2) php user authentication

Does that help?

Lynnswebservice

11:26 pm on May 7, 2004 (gmt 0)

10+ Year Member



I tried out one script that I found and it worked, but all it was just the words Hello World using this script
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>';?>
</body>
</html>

But I can not get anything else to work the text shows up most of the time.

ergophobe

2:20 pm on May 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What do you mean by "the text"? Do you mean that it shows the PHP code?

In that case, your file is not being parsed by the PHP parser. If the "hello world" works, then all PHP should work provided
- it's in a file with the same extension as the "hello world" file.
- the php is enclosed within <?php?> or <?>
- the php is valid.

Timotheos

2:38 pm on May 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since your "hello world" script works that shows that php is set up correctly on your system. Were you expecting it to do more? Another test is to simply put this command in a file named something like phpinfo.php

<? phpinfo();?>

This will spit out all the information about your php set up. Comes in quite handy.

A popular place for scripts is hotscripts. They have a section full of registration scripts [hotscripts.com].

As for an editor check out this discussion...
[webmasterworld.com...]

Lynnswebservice

11:48 pm on May 8, 2004 (gmt 0)

10+ Year Member



The text that showed up was the php code I had found a php code for registration on a site and I pasted it on to a page and it showed half of the code on my webpage. I guess the person who wrote the srcipt wrote it wrong than?
I got a script off of the Webmaster World Forum and it worked, so I think the script I found was just writen wrong.

Thanks for the help and the link to the page with PHP editors on it I'll be checkin' them out for sure :)

Nova Reticulis

6:26 am on May 9, 2004 (gmt 0)

10+ Year Member



Your web server is not configured to process PHP files, or PHP engine is not installed. Consult the manuals.

mep00

9:35 am on May 9, 2004 (gmt 0)

10+ Year Member



The text that showed up was the php code
If the file has a .php extention, there is only one way for that to happen: your PHP code wasn't between a "<?php" and a "?>".