View previous topic :: View next topic |
Author |
Message |
Nile -
Joined: 14 Dec 2002 Posts: 4
|
Posted: Sun Dec 15, 2002 7:23 am Post subject: Error 200 on test scripts |
|
|
I've installed phpbb 2.03 without any problems. It works perfect with no problems what so ever. I'm just starting to learning php so i'm trying out some tutoral scripts found on the php homepage but all I get is Error 200's on almost everyone. Any idea's why its only happening on some but not others? |
|
Back to top |
|
|
feamsr00 -
Joined: 04 Jun 2002 Posts: 138 Location: Phila PA
|
Posted: Sun Dec 15, 2002 9:49 am Post subject: |
|
|
no output |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Dec 15, 2002 12:48 pm Post subject: Re: Error 200 on test scripts |
|
|
Nile wrote: | I've installed phpbb 2.03 without any problems. It works perfect with no problems what so ever. I'm just starting to learning php so i'm trying out some tutoral scripts found on the php homepage but all I get is Error 200's on almost everyone. Any idea's why its only happening on some but not others? |
Please read http://www.aprelium.com/forum/viewtopic.php?p=267&highlight=#267 for information about error 200. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Nile -
Joined: 14 Dec 2002 Posts: 4
|
Posted: Sun Dec 15, 2002 3:45 pm Post subject: |
|
|
The example you gave did work. Now another problem ( shrug ). It won't work with forms. I make a file with the following:
Code: | <form action="action.php" method="POST">
Your name: <input type="text" name="name" />
Your age: <input type="text" name="age" />
<input type="submit">
</form> |
Then I created a file called action.php with the following in it:
Code: | Hi <?php echo $_POST["name"]; ?>.
You are <?php echo $_POST["age"]; ?> years old. |
The result I get when testing the script is:
Hi You are years old.
None of the echo commands worked. Could this be a setting in the php.ini not enabled? If so, which one? |
|
Back to top |
|
|
!Keys -
Joined: 23 Nov 2002 Posts: 156 Location: Holland, Enschede
|
Posted: Mon Dec 16, 2002 9:15 pm Post subject: |
|
|
Only when u are using ph 4.3.2 that will work, otherwise just <?php
echo "$name";
?> _________________ !Keys || MwM^computerware |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Dec 17, 2002 1:19 am Post subject: |
|
|
Nile, your example works perfectly. We recommend upgrading to the latest PHP version and not playing too much with php.ini settings (default values are ok for most users.) _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Nile -
Joined: 14 Dec 2002 Posts: 4
|
Posted: Tue Dec 17, 2002 2:32 pm Post subject: |
|
|
I reinstalled php again to a different directory and it works now. I had to edit php.ini so I could send out email with php. I have one other question. Can you setup password protected directory's.
Example, If you go to http://mysite/phpadmin a box would popup for that username and password. You know, because you don't want just anyone to see phpadmin.
If so, what settings do you change? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
|
|