phillson
2-4-02, 03:30 AM
Hi! I am a newbie at php. Tried to run a very simple script and received the following message:
Forbidden
You don't have permission to access /testphp/index.php on this server.
Here is the simple script:
#!/usr/local/bin/php
<html>
<head>
<title>Comments</title>
</head>
<body>
<ul>
<?php
// Name: comments.php
print "<li>This text will be displayed.</li>";
print "<li>This text will also be displayed.</li>";
?>
</ul>
</body>
</html>
Here are the permissions on the file
-rwxr-xr-x 1 845 500 324 Feb 4 07:52 index.php
The FTP was done in Ascii mode.
Thanks for your help,
Pat
Forbidden
You don't have permission to access /testphp/index.php on this server.
Here is the simple script:
#!/usr/local/bin/php
<html>
<head>
<title>Comments</title>
</head>
<body>
<ul>
<?php
// Name: comments.php
print "<li>This text will be displayed.</li>";
print "<li>This text will also be displayed.</li>";
?>
</ul>
</body>
</html>
Here are the permissions on the file
-rwxr-xr-x 1 845 500 324 Feb 4 07:52 index.php
The FTP was done in Ascii mode.
Thanks for your help,
Pat