Error 200 on test scripts

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Nile
-


Joined: 14 Dec 2002
Posts: 4

PostPosted: Sun Dec 15, 2002 7:23 am    Post subject: Error 200 on test scripts Reply with quote

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 View user's profile Send private message
feamsr00
-


Joined: 04 Jun 2002
Posts: 138
Location: Phila PA

PostPosted: Sun Dec 15, 2002 9:49 am    Post subject: Reply with quote

no output
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Dec 15, 2002 12:48 pm    Post subject: Re: Error 200 on test scripts Reply with quote

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 View user's profile Send private message Send e-mail
Nile
-


Joined: 14 Dec 2002
Posts: 4

PostPosted: Sun Dec 15, 2002 3:45 pm    Post subject: Reply with quote

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 View user's profile Send private message
!Keys
-


Joined: 23 Nov 2002
Posts: 156
Location: Holland, Enschede

PostPosted: Mon Dec 16, 2002 9:15 pm    Post subject: Reply with quote

Only when u are using ph 4.3.2 that will work, otherwise just <?php

echo "$name";

?>
_________________
!Keys || MwM^computerware
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Dec 17, 2002 1:19 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Nile
-


Joined: 14 Dec 2002
Posts: 4

PostPosted: Tue Dec 17, 2002 2:32 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Dec 18, 2002 11:40 am    Post subject: Reply with quote

Nile wrote:
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?

Please read http://www.aprelium.com/forum/viewtopic.php?t=544 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group