Customer Directory Listings

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
MikieLikesIt
-


Joined: 12 Jan 2004
Posts: 2
Location: Winnipeg Manitoba

PostPosted: Thu Apr 29, 2004 11:49 am    Post subject: Customer Directory Listings Reply with quote

Would like to know if there is a possible way to load up customer directory listings... in which would self update when files chaneg on my system instead of creating individual index.html fuiles for each and every directory and having to change them all when you add delete files?



I have created index files for the APPZ & ISO section but if you go any deeper then it's the raw script...

Thanks!
Back to top View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Apr 29, 2004 11:54 am    Post subject: Reply with quote

Actually their is no way but I can probably write a
PHP script that can do that , for example !

Here's a small piece of code that will do just
what you asked , fill in the simple form and
you will get an instant update!

Code:

<?php
if ($submit) {
if ($new) {
$new = stripslashes ($new);
$html = "index.html";

// Directory images
$file = "images/$html";
$open = fopen ($file,"a");
fwrite ($open, $new);
fclose ($open);

// Directory downloads
$file2 = "downloads/$html";
$open2 = fopen ($file2, "a");
fwrite ($open2 , $new);
fclose ($open2);

// Directory users
$file3 = "users/$html";
$open3 = fopen ($file3, "a");
fwrite ($open3 , $new);
fclose ($open3);

print "Files have been changed !";
}else{
print "Please Input The HTML before updating!";
}
}else{
print "<br><center>
<form action=\"change.php\" method=\"post\">
<textarea name=\"new\" rows=\"25\" cols=\"65\"></textarea><br>
<input type=\"submit\" name=\"submit\" value=\"Submit HTML\">
<input type=\"reset\" value=\"Reset HTML\">
</form></center>";
}
?>


I tested this tool out and this would make a sweet html editor , thanks for inspiring me to make it , I think you might like it also , Later!
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group