Jump to content

[SOLVED] Get Contents


HektoR

Recommended Posts

No, the URL is http://localhost.... but in the background your directory path is either /some/path/to/file.php or c:\some\path\to\file.php

 

Either way, the directory functions that are in the links I gave you will do what you want, you just need to learn how to use them....

 

For example copy, paste and run this script in a page on your server...

 

<?php
  echo '<pre>';
  print_r(glob('*'));
  echo '</pre>';
?>

 

It should give an array of all the directories and files in the directory this script is called from.

 

Nate

 

Link to comment
https://forums.phpfreaks.com/topic/141044-solved-get-contents/#findComment-738226
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.