|
Post by jas389 on Oct 15, 2012 19:51:36 GMT -5
When I run the script to display the contents of my baseball hw dir displays all the correct info on my local machine but when I upload the script to paradox it does not display any info just a table with files listed. I have attached some of my code. Attachments:
|
|
|
Post by Bob P on Oct 15, 2012 20:00:38 GMT -5
I am not sure of what you mean but here are a couple of tips that may help others help you. Place your code between the <code> tags that the forum offers. A text file is just one long line of text and difficult to deal with.
Also, can you explain more about your results. A listing of files is what you want. Is it that the associated info about each file is not being printed? Are all the files being printed? Are all the rows but the cells are empty.
When you see a question for the first time it's hard to understand fully what you mean.
Bob
|
|
|
Post by jas389 on Oct 15, 2012 20:20:39 GMT -5
Yea the associated info like file owner, file permissions, file size is not displaying. So I have a list of files in a table but empty cell where for file owner, file permissions, file size
<code>$DirEntries = scandir($Dir); foreach ($DirEntries as $Entry) { // if(substr($Entry, -4)==".php") //{
echo "<tr><td>" . htmlentities($Entry) . "</td><td>" . fileowner ($Entry) . "</td><td>" . fileperms ($Entry)."</td><td>". filesize($Entry)." bytes</td></tr>"; //} }//end of foreach</code>
|
|
|
Post by Bob P on Oct 15, 2012 20:44:11 GMT -5
I made a few changes and your code ran on the paradox server. here are a couple of suggestions. First what is the value of $DIR - this needs to be a valid path as a string. Did you assign a value before?
Second you need a beginning table tag and an end table tag to make it look like a real table. And add border="1" to show outline.
Lastly, add column headings.
Bob
|
|