freelanceprogrammers.org Forum Index » PHP

Re: Directory Traversing


View user's profile Post To page top
markgroen@... Posted: Sat Jun 04, 2005 1:04 pm


Joined: 18 May 2005

Posts: 18
Re: Directory Traversing
----- Original Message -----
From: "Juma Lungo" <>
To: <php-objects@yahoogroups.com>
Sent: Saturday, June 04, 2005 8:44 AM
Subject: [php-objects] Directory Traversing


> Hi
> (1) how can i implement directory traversing that is avoiding
...index.php?id=12BC
> (2) how can i hide PHP extentions? instead of ...index.php i would
like to have ...index.tzp

Not quite sure what you are asking for in the first question, thinking
maybe it is this:
http://ca.php.net/manual/en/function.directoryiterator-isdir.php

the second one, if you are on Apache, is handled with:

http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

Warm Regards,

Mark Groen

MG Web Services
Web Site Hosting and Development
www.markgroen.com
Bowen Island, B.C., Canada
Reply with quote
Send private message
View user's profile Post To page top
markgroen@... Posted: Sat Jun 04, 2005 4:01 pm


Joined: 18 May 2005

Posts: 18
Re: Directory Traversing
----- Original Message -----
From: "Ezequiel Gonzalez Rial" <gonrial@...>
To: <php-objects@yahoogroups.com>
Sent: Saturday, June 04, 2005 3:47 PM
Subject: Re: [php-objects] Directory Traversing


> > (1) how can i implement directory traversing that is avoiding
> > ...index.php?id=12BC
> Check this site:
>
http://www.evolt.org/article/Making_clean_URLs_with_Apache_and_PHP/18/22880/
>
> > (2) how can i hide PHP extentions? instead of ...index.php i would
like to
> > have ...index.tzp
> in an .htaccess file in the same folder or site root, you add this
line:
> AddType application/x-httpd-parse .tzp

thanks Ezequiel, (and Bob), I had mis-read the post, (both places
actually :-), and didn`t catch that we would actually have to parse the
file as well and you`re both spot on correct.

cheers,

Mark
Reply with quote
Send private message
View user's profile Post To page top
bnburns Posted: Sat Jun 04, 2005 8:38 pm


Joined: 12 Feb 2005

Posts: 10
Re: Directory Traversing
Juma,

Assuming you are using Apache (which is appropriate for php even under
windows) you will find
a file called confg.ini under the apache directory somewhere.

In this file you will find a line that looks something like this if php is
installed.
"AddType application/x-httpd-php .php .php3 .php4 .phtml"

Add any extension such as .pdq you want to this line and that extension will
fire the php processor.
"AddType application/x-httpd-php .php .php3 .php4 .phtml .pdq"
Restart Apache and then index.pdq will be processed through the php
processor.

Bob

-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]On
Behalf Of Mark Groen
Sent: Saturday, June 04, 2005 3:05 AM
To: php-objects@yahoogroups.com
Subject: Re: [php-objects] Directory Traversing


----- Original Message -----
From: "Juma Lungo" <>
To: <php-objects@yahoogroups.com>
Sent: Saturday, June 04, 2005 8:44 AM
Subject: [php-objects] Directory Traversing


> Hi
> (1) how can i implement directory traversing that is avoiding
...index.php?id=12BC
> (2) how can i hide PHP extentions? instead of ...index.php i would
like to have ...index.tzp

Not quite sure what you are asking for in the first question, thinking
maybe it is this:
http://ca.php.net/manual/en/function.directoryiterator-isdir.php

the second one, if you are on Apache, is handled with:

http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

Warm Regards,

Mark Groen

MG Web Services
Web Site Hosting and Development
www.markgroen.com
Bowen Island, B.C., Canada



PHP Data object relational mapping generator - http://www.meta-language.net/



----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
Papp_Nase Posted: Sat Jun 04, 2005 8:40 pm


Joined: 04 Jun 2005

Posts: 4
Re: Directory Traversing
On Sat, Jun 04, 2005 at 08:04:46AM -0000, Mark Groen wrote:
> ----- Original Message -----
> From: "Juma Lungo" <>
> [...]
> > (2) how can i hide PHP extentions? instead of ...index.php i would
> like to have ...index.tzp
>
> the second one, if you are on Apache, is handled with:
>
> http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

Heavy stuff.

Depending on what you exactly need, maybe a .htaccess entry is
sufficient:

<Files index.tzp>
ForceType application/x-httpd-php
</Files>

or

<Files *.tzp>
ForceType application/x-httpd-php
</Files>

I`m not sure about the exact syntax. See
http://httpd.apache.org/docs/mod/core.html#files

Cheers,
Martin
Reply with quote
Send private message
View user's profile Post To page top
bnburns Posted: Sat Jun 04, 2005 8:42 pm


Joined: 12 Feb 2005

Posts: 10
Re: Directory Traversing
Well my fingers were a bit to fast for my slow brain. The file is
httpd.conf instead.
Bob
-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]On
Behalf Of Bob Burns
Sent: Saturday, June 04, 2005 10:39 AM
To: php-objects@yahoogroups.com
Subject: RE: [php-objects] Directory Traversing


Juma,

Assuming you are using Apache (which is appropriate for php even under
windows) you will find
a file called confg.ini under the apache directory somewhere.

In this file you will find a line that looks something like this if php is
installed.
"AddType application/x-httpd-php .php .php3 .php4 .phtml"

Add any extension such as .pdq you want to this line and that extension will
fire the php processor.
"AddType application/x-httpd-php .php .php3 .php4 .phtml .pdq"
Restart Apache and then index.pdq will be processed through the php
processor.

Bob

-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]On
Behalf Of Mark Groen
Sent: Saturday, June 04, 2005 3:05 AM
To: php-objects@yahoogroups.com
Subject: Re: [php-objects] Directory Traversing


----- Original Message -----
From: "Juma Lungo" <>
To: <php-objects@yahoogroups.com>
Sent: Saturday, June 04, 2005 8:44 AM
Subject: [php-objects] Directory Traversing


> Hi
> (1) how can i implement directory traversing that is avoiding
...index.php?id=12BC
> (2) how can i hide PHP extentions? instead of ...index.php i would
like to have ...index.tzp

Not quite sure what you are asking for in the first question, thinking
maybe it is this:
http://ca.php.net/manual/en/function.directoryiterator-isdir.php

the second one, if you are on Apache, is handled with:

http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

Warm Regards,

Mark Groen

MG Web Services
Web Site Hosting and Development
www.markgroen.com
Bowen Island, B.C., Canada



PHP Data object relational mapping generator - http://www.meta-language.net/



----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



PHP Data object relational mapping generator - http://www.meta-language.net/



----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
bnburns Posted: Sat Jun 04, 2005 8:54 pm


Joined: 12 Feb 2005

Posts: 10
Re: Directory Traversing
No it has nothing to do with access control. A script with an extension of
.tzp will either execute an application when pointed at or be sent to the
browser directly. What we need is for the php application to be executed to
create the browser ready stream from the index.tzp script. The addtype
will be executed on apache start up. Thus http://pdq.xyz.com/index.txp will
cause the script index.txp to be run through the php application.

(don`t forget that if you want index.tzp to be a default to update that in
the httpd.conf file also)


-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]On
Behalf Of Martin Samesch
Sent: Saturday, June 04, 2005 10:41 AM
To: php-objects@yahoogroups.com
Subject: Re: [php-objects] Directory Traversing


On Sat, Jun 04, 2005 at 08:04:46AM -0000, Mark Groen wrote:
> ----- Original Message -----
> From: "Juma Lungo" <>
> [...]
> > (2) how can i hide PHP extentions? instead of ...index.php i would
> like to have ...index.tzp
>
> the second one, if you are on Apache, is handled with:
>
> http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

Heavy stuff.

Depending on what you exactly need, maybe a .htaccess entry is
sufficient:

<Files index.tzp>
ForceType application/x-httpd-php
</Files>

or

<Files *.tzp>
ForceType application/x-httpd-php
</Files>

I`m not sure about the exact syntax. See
http://httpd.apache.org/docs/mod/core.html#files

Cheers,
Martin


PHP Data object relational mapping generator - http://www.meta-language.net/



----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
jlungo Posted: Sun Jun 05, 2005 4:27 pm


Joined: 05 Jun 2005

Posts: 3
Re: Directory Traversing
Thanks all
have understood now.

Lungo

Bob Burns <bnburns@...> wrote:
Well my fingers were a bit to fast for my slow brain. The file is
httpd.conf instead.
Bob
-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]On
Behalf Of Bob Burns
Sent: Saturday, June 04, 2005 10:39 AM
To: php-objects@yahoogroups.com
Subject: RE: [php-objects] Directory Traversing


Juma,

Assuming you are using Apache (which is appropriate for php even under
windows) you will find
a file called confg.ini under the apache directory somewhere.

In this file you will find a line that looks something like this if php is
installed.
"AddType application/x-httpd-php .php .php3 .php4 .phtml"

Add any extension such as .pdq you want to this line and that extension will
fire the php processor.
"AddType application/x-httpd-php .php .php3 .php4 .phtml .pdq"
Restart Apache and then index.pdq will be processed through the php
processor.

Bob

-----Original Message-----
From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com]On
Behalf Of Mark Groen
Sent: Saturday, June 04, 2005 3:05 AM
To: php-objects@yahoogroups.com
Subject: Re: [php-objects] Directory Traversing


----- Original Message -----
From: "Juma Lungo" <>
To: <php-objects@yahoogroups.com>
Sent: Saturday, June 04, 2005 8:44 AM
Subject: [php-objects] Directory Traversing


> Hi
> (1) how can i implement directory traversing that is avoiding
...index.php?id=12BC
> (2) how can i hide PHP extentions? instead of ...index.php i would
like to have ...index.tzp

Not quite sure what you are asking for in the first question, thinking
maybe it is this:
http://ca.php.net/manual/en/function.directoryiterator-isdir.php

the second one, if you are on Apache, is handled with:

http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html

Warm Regards,

Mark Groen

MG Web Services
Web Site Hosting and Development
www.markgroen.com
Bowen Island, B.C., Canada



PHP Data object relational mapping generator - http://www.meta-language.net/



----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



PHP Data object relational mapping generator - http://www.meta-language.net/



----------------------------------------------------------------------------
----
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

b.. To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



PHP Data object relational mapping generator - http://www.meta-language.net/



---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



---------------------------------
Discover Yahoo!
Stay in touch with email, IM, photo sharing & more. Check it out!

[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
amijufa Posted: Mon Jun 06, 2005 1:23 pm


Joined: 06 Jun 2005

Posts: 2
Re: Directory Traversing
Hello,

I want to create a chat application, whereby a client can directly communicate
with the other friend without pass thru my database (mysql in this case). Of
course prior conversation they have to get authenticated from the database
server

I have created a simple HTML + php page as follows....

<form action = " chatpage.php3" method = "post">
Name:<input type = "text" name="name"> <br>
Message: <input type="text" name="message"><br>
<input type="Submit" value = "Send">
</form>

Here my question is how can I can create a direct communication with other end,
without passing though MySQL as I know it will be slow interms of message
delivery.

Any word of help is highly appreciated,

Regards,
Justice


---------------------------------
How much free photo storage do you get? Store your holiday snaps for FREE with
Yahoo! Photos. Get Yahoo! Photos

[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
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
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help