directory

xampp includes not working

First off, how do I know if my html file is running on localhost in Xampp? Is there a tutorial on how to manage files/directories and get that all working under htdocs? Is there a good tutorial on how to setup includes? I want to use "includes" in Xampp with my html. Can I use both html includes AND php includes? Do I have to put shtml?...

php includes in html files-directories

Do all php include files have to be in an include directory, or is that just an organizational convenience? Can I include files from any directory using the path to that directory? Do html files that contain php includes have to have a php extension? If so, I guess that would mean all of my html docs would be php if they all have the men...

Javascript directory

I have some javascript menu code that works just fine from a separate directory. But, when I try to call the same .js files from within the same directory, it won't see the files. The following works from another directory: script type="text/javascript"> var vbImgPath="../00-Menu-Files/" But, if I do this from within the same folder, ...

MFC Equivalent to Java File#isDirectory()

Is there an equivalent to the Java File method isDirectory() in MFC? I tried using this : static bool isDirectory(CString } but it doesn't seem to work. ...

What is the best way to determine application root directory?

I need to get all dlls in my application root directory. What is the best way to do that? string root = Application.StartupPath; or string root = new FileInfo(Assembly.GetExecutingAssembly().Location).FullName; and after that Directory.GetFiles(root, "*.dll"); Which way is better? Are there better ways? ...

Windows Explorer directory as bundle

I have been investigating for some time now a way to prevent my user from accidently entering a data directory of my application. My application uses a folder to store a structured project. The folder internal structure is critic and should not be messed up. I would like my user to see this folder as a whole and not be able to open it (...

How do I find out which version control system my working copy is from?

If you have some directories from different version control systems (cvs, svn...), how do you find out what type of repository each came from? ...

How can I non-recursively migrate directories with Perl or shell?

Hello, We're migrating home folders to a new filesystem, and I am looking for a way to automate it using Perl or a shell script. I don't have much choice in programming languages as the systems are proprietary storage clusters that should remain as unchanged as possible. Task: Under directory /home/ I have various users' home folders a...

Where to download and install Oracle Directory Manager?

Hello folks, Would someone please tell me specifically where can I download Oracle Directory Manager component? I know it's in one of the Oracle 10g discs but which one? Database, Client or Companion CD.. Please advice ...

Python: Lock directory access under windows

Hi, I'd like to be able to lock directory access under windows. The following code work greatly with file or directory under POSIX system: def flock(fd, blocking=False, exclusive=False): if exclusive: flags = fcntl.LOCK_EX else: flags = fcntl.LOCK_SH if not blocking: flags |= fcntl.LOCK_NB fcntl....

Reading the target of a .lnk file in Python?

Hi, I'm trying to read the target file/directory of a shortcut (.lnk) file from Python. Is there a headache-free way to do it? The .lnk spec [PDF] is way over my head. I don't mind using Windows-only APIs.My ultimate goal is to find the "(My) Videos" folder on Windows XP and Vista. On XP, by default, it's at %HOMEPATH%\My Documents\My Vi...

To parse an XML file in java whose path is to be got dynamically

Hi, I have a class Test in C:/proj/test_xml/Test.java. Given parser.parse("test.xml"); I need a way to parse test.xml whether it is in current directory, proj or in C:/ Also, the solution should not make use of java.io Thanks ...

Windows XP: Replace the standard "New Folder" action with a WSH script

Problem: I have a custom WSH script that creates a new directory in a similar manner to the standard "New Folder" action in the Windows desktop. This script, however, does a couple of extra things; such as allowing me to create a pre-defined set of child directories (optional); as well as allowing me to add notes and reminders if the dir...

IIS 6.0 Virtual Directory setup

I set up a website and I created a folder names (docs) in the website as Virtual Directory with some documents. Therefore the URL is xxxxxxyyyyzzzz.com/docs The problem is that when i try to access xxxxxxyyyyzzzz.com/docs/1.doc, Authentication is required. Can you tell me how to remove this and leave any user access this folder with a...

Win32 equivalent of opendir

Would anyone know what the Win32 equivalent of opendir is (or if it even exists) ? Obviously I could use FindFirstFile(Ex) with FindNextFile, but appending * to the path seems like such a hackish way to do it. ...

How can I read the files in a directory in sorted order?

When I read a directory in Perl with opendir, readdir, and closedir, the readdir function doesn't seem to read the files in any specific order (that I can tell). I am reading a directory that has subdirectories named by epoch timestamp: 1224161460 1228324260 1229698140 I want to read in these directories in numerical order, which wou...

How to copy a recursive directory structure in TFS Team Build?

Is it possible to copy a directory in a team build target? ...

php disk_total_space

hello, i need help with disk_total_space function.. i have this on my code <?php $sql="select * from users order by id"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> Name : <?php echo $row['name']; ?> Email : <?php echo $row['email']; ?> Diskspace Available : <?php $dir = "C:/xa...

How do I get the size of a directory in C?

Is there a POSIX function that will give me the size of a directory (including all sub-folders), roughly equivalent to "du -s somepath"? ...

Get PHP to read directories with quotes in their names?

I am using PHP 5's scandir($dir) function to iterate through a directory and print out an xml list of files. Only, when the directory has a single quote in the name, scandir returns no items! It doesn't return false (as it would if it failed) or generate warnings or errors - just empty. Any ideas? $items = scandir(stripslashes($dir)); /...