httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <jc...@listingbook.com>
Subject Re: [users@httpd] Stop PHP files from showing up in the index view
Date Tue, 22 Oct 2002 15:43:30 GMT
How about just turning off indexes for the directory?  You can make apache
pickup index.php as the default index file, and have that be your login
script.

Another option is to modify your php quiz files so that only a person who
has completed a previous level can see the next level.  Since you apparently
have MySQL experience, create some sort of table that says user bob has
completed levels 1,2,3.  Any attempt by bob to view level 5 would say
something to the effect of "you haven't completed level 4 yet."

----- Original Message -----
From: "Mahendra Kalkura" <mahendra_kalkura@yahoo.com>
To: <users@httpd.apache.org>
Sent: Tuesday, October 22, 2002 11:21 AM
Subject: [users@httpd] Stop PHP files from showing up in the index view


> hi guys
>
> first of all let me introduce myself
>
> i am a engineering student who loves open source
> stuff
>
> i am a php geek and since its involvement (dint
> get any other word - sorry ) with apache and
> mysql is so cool i love both of them too
>
> now coming to my problem
>
> i am developing a online quiz program ( in php
> ofcourse ) for my college quiz competition
>
> in my college we have 80 computers connected thru
> a LAN
>
> i made one of the comps as a server and rest are
> clients
>
> i have apache installed on the server and all my
> php files are in the folder called Quiz in the
> server root
>
> my problem is that i dont want all the guys
> participating in the quiz to have access to all
> the php files
>
> so what i did was make a dummy index.htm file in
> the root and automatically refresh it to the
> login.php file
>
> ie :
> <meta http-equiv="refresh"
> content="0;URL=../Quiz/login.php">
>
> the dir structure is as follows
>
> c:\phpdev\www\cisa\ is my root - where my
> index.htm file resides
>
> c:\phpdev\www\quiz\ is my folder where i have my
> quiz php files
>
> as u can see from above refresh tag i try to come
> to quiz folder which is outside server root
>
> so my apache scolds me bad for this
>
> so i need a better idea guys
>
> also what must i change this line to in
> httpd.conf file so that all the comps from the
> LAN can connect to the server
>
>     Allow from 127.0.0.1
>
> i tried to change this to
>
>     Allow from all
>
> and it worked
>
> but i aint sure this is the correct way , so tell
> me ok
>
> thats it for now guys
>
> help me
>
> thanks a lot for reading such a long problem
>
> cya guys soon
>
> =====
> ======================================
> >From     : Mahendra Kalkura
> ICQ UIN  : 55974752
> Yahoo ID : mahendra_kalkura
> URL      : http://mahendra.sehost.net/
> ======================================
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message