For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > February 2006 > Re: Help - make PHP pull a File List (dir/ls/etc) in a specific directory - print res









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Help - make PHP pull a File List (dir/ls/etc) in a specific directory - print res
Johnny

2006-02-26, 3:56 am


"David Haynes" <david.haynes2@sympatico.ca> wrote in message
news:PG5Mf.9897$2a4.2573@fe71.usenetserver.com...
> henshu wrote:
> http://www.php.net/manual/en/ref.dir.php
> Look at the opendir, readdir and closedir functions.
>
> -david-
>

but be aware that on most servers the openbase restrictions prevent from
reading outside your own directories.


Martie

2006-02-27, 6:59 pm

In article <7naMf.2574$p43.2221@fed1read05>, Johnny says...
>
>
>"David Haynes" <david.haynes2@sympatico.ca> wrote in message
>news:PG5Mf.9897$2a4.2573@fe71.usenetserver.com...
>but be aware that on most servers the openbase restrictions prevent from
>reading outside your own directories.
>
>


Just to clarify, did you mean those functions are limited to the directories
inside your normal web space? I usually try to rely on the built-in PHP
functions than using exec() type commands. Thanks!


Martie
--
Newsguy.Com - 30 GB - $14.95 / month
http://newsguy.com/overview.htm

Johnny

2006-02-27, 6:59 pm


"Martie" <martienospammin@newsguy.com> wrote in message
news:dtvhcf0h5q@drn.newsguy.com...
> In article <7naMf.2574$p43.2221@fed1read05>, Johnny says...
a[color=darkred]
>
> Just to clarify, did you mean those functions are limited to the

directories
> inside your normal web space? I usually try to rely on the built-in PHP
> functions than using exec() type commands. Thanks!
>
>


Not sure if it's me you're asking.. but
I had trouble finding the refs as google jacks up searching for those terms
as there are underscores involved
here:
http://us3.php.net/features.safe-mode
and
http://www.php.net/security-note.php

the built in php fns won't get you outside of your base dir on most servers.
you get opnbase errors. those same servers will also most likely stop you
from using exec() to do similar as well.


Martie

2006-02-28, 6:58 pm

In article <w6JMf.16$ia3.11@fed1read08>, Johnny says...
>
>
>"Martie" <martienospammin@newsguy.com> wrote in message
>news:dtvhcf0h5q@drn.newsguy.com...
>a
>directories
>
>Not sure if it's me you're asking.. but
>I had trouble finding the refs as google jacks up searching for those terms
>as there are underscores involved
>here:
>http://us3.php.net/features.safe-mode
>and
>http://www.php.net/security-note.php
>
>the built in php fns won't get you outside of your base dir on most servers.
>you get opnbase errors. those same servers will also most likely stop you
>from using exec() to do similar as well.
>
>


Thanks for the reply. I took a look at the php.ini file along with the links you
provided and cleared things up for me. Thanks for the information.

Martie
--
Newsguy - Spot Account 3 Days / 3GB / $3.95
http://newsguy.com/overview.htm

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com