Tag Archive | "directory"

How do I get the value from a directory like structure using php?


I notice that a lot of sites, especially news site with a CMS, use PHP and get a value without the ?=value.For example they can do www.website.com/news/1, and that one will be one story. Change the 1 to a 2 like www.website.com/news/2 , and its a different story.

How do they do this using php?

Posted in PHPComments (2)

How can I use the FileSystemObject or the Drive object in ASP to list all files in a directory I specify?


for example you can check if a file exist by

<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")

If (fs.FileExists("\\panter\test1.jpg"))=true Then
Response.Write("File 1.jpg exist")
Else
Response.Write("Call IS department")
End If

set fs=nothing
%>

But how could I list all files in that particular \\panther\*.*.

Posted in ASPComments (1)

I need to display all images in a directory using asp?


I am letting a friend upload his pics into a directory and I need to diplay all of the images in that directory as a gallery. I don’t know the file names and I don’t know how many will be in the directory. Using asp how do I load all of the images?

Posted in ASPComments (3)

Is there a php code to create a password protected directory on your website?


Can I use mkdir or any other php function to add a password to a directory?

Posted in PHPComments (5)

How do you copy and entire directory including files and folders using ASP?


I’m trying to copy an entire directory using ASP, and cannot find a way to do this dynamically. I do not want to change code every time I add things to this directory.

Posted in ASPComments (1)

How do i create a php page that will automatically redirect & login to a password protected directory?


How do i create a php page that will automatically redirect & login to a password protected directory on my website, so that the user doesn’t have to input the user & password to access the site.

Posted in PHPComments (4)

How can I access to Active Directory by programming with delphi?


I wanna manage Active directory by my program and edit it in my way

Posted in DelphiComments (1)

How to install a PHP extension if I do not have access to the extension directory on the server?


I need to install an extension for my php site, but since I am using a web hosting service (hostmonster), I do not have access to the directory that contains all the PHP extensions. I DO, however, have access to my php.ini file. How can I install this extension (dbg.so)?

Posted in PHPComments (2)

How to list all files within all subdirectories of a directory using PHP?


I hope that makes sense…

Basically, I want to scan through one particular directory, which contains several subdirectories which all contain several text files, and list each one of these text files.

How can I do this? Just looking for a quick and simple answer seeing as I’m still new to PHP!

Posted in PHPComments (2)

What is a PHP script that updates in real-time that shows files in a directory?


I need a PHP script that can show files / file names in a table or column. Customizable too. Can you supply me with a tutorial link, the script, or other helpful means of helping me solve my problem?

Posted in PHPComments (4)

Categories