home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Automatically Update Website?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2177
Discussions: 200,945, Posts: 2,379,364, Members: 246,307
Old May 28th, 2009, 08:15 PM   Digg it!   #1 (permalink)
Member
 
Ty44ler's Avatar
 
Join Date: Mar 2005
Location: Atlanta, Georgia
Posts: 407
Send a message via AIM to Ty44ler
Question
Display contents of a folder as links on website?

I work for a large construction company as their web developer. Originally they had an online FTP site that they uploaded files to so that clients can download pdf files of their blueprints.

Well now, boss has decided he wants to get rid of the online FTP service and wants a better interface and do it all locally (we have the resources, so why not)

So, I created a website that has all the files organized and listed, but using this way, when a file is placed on the server the web page must be updated too to show the new file and link....

Is there anyway that when a file is placed onto the server it is added to the website automatically too with the same formatting as the rest of the site?

I know I could just make a link to the folder of the files on the server, but the page from our server isn't very appealing and thats what the boss was trying to get away from in the first place...(running apache on the server)

Here's an older version of the site, should be updated tomorrow... any suggestions are appreciated...

HA Sack FTP Site
__________________
Frank: Blue do you trust that I do not want to see you die here tonight?
Blue: Yes sir.
Frank: Blue you're my boy!

Last edited by Ty44ler : June 1st, 2009 at 06:49 PM.
Ty44ler is offline   Reply With Quote
Old May 29th, 2009, 01:03 AM     #2 (permalink)
Administrator
 
ScottW's Avatar
 
Join Date: Sep 2001
Location: USA
Posts: 4,988
Wouldn't it be better to use a secure document sharing/collaboration service?

Collaborate, Manage & Share Files Online - Ecofiling

Online Document Management - Enterprise Content Management - Online File Storage - Secure Document Collaboration - Document Management - Records Management - Document Workflow - Document Imaging

NetDocuments - Online Document Management
__________________
Please recommend TechIMO.com to your friends and family!
ScottW is offline   Reply With Quote
Old May 29th, 2009, 05:17 PM     #3 (permalink)
Member
 
Ty44ler's Avatar
 
Join Date: Mar 2005
Location: Atlanta, Georgia
Posts: 407
Send a message via AIM to Ty44ler
I'm not sure if I explained the situation quite right. The point of me making the site with the files linked to it, was so that clients have an easier interface to find their files, that must also be able to link from the original HA Sack homepage.

The problem using http is that it does not provide an easy way to consistently update those files without manually editing the code, but it does provide the capabilities of designing a nice interface.

Using ftp provides an easy way to consistently update the files (simply drag and drop into a folder), but the interface is rather dull and complicated for people who have no experience with computers.

If there were a combination of the two (one with a nice interface and a way to automatically update the files once placed in a certain folder) it would be perfect, but I have yet to find it. I could link to a directory, but then the server page that shows the directory is much like that of an ftp page.

Any suggestions????
Ty44ler is offline   Reply With Quote
Old June 1st, 2009, 11:56 AM     #4 (permalink)
Member
 
Ty44ler's Avatar
 
Join Date: Mar 2005
Location: Atlanta, Georgia
Posts: 407
Send a message via AIM to Ty44ler
Alright guys, there has to be a way to do this... I'm stuck. The IT guys are stuck.

Is there anyway to combine the functionality of uploading files with FTP with the editable interface of http?

Please help! Boss is getting frustrated....

all it has to do is to upload a file to the server and reflect the changes on the website.

Last edited by Ty44ler : June 1st, 2009 at 12:00 PM.
Ty44ler is offline   Reply With Quote
Old June 1st, 2009, 12:26 PM     #5 (permalink)
Administrator
 
ScottW's Avatar
 
Join Date: Sep 2001
Location: USA
Posts: 4,988
Maybe you're not understanding what online document management software can do. It provides a way for you to upload files to a server, send out a URL to your clients, and have them download their files via a nice interface.

This is what you need, or something similar:
Afian PHP File Manager :: Welcome
Afian PHP File Manager :: Live demo
ScottW is offline   Reply With Quote
Old June 1st, 2009, 01:10 PM     #6 (permalink)
Member
 
Ty44ler's Avatar
 
Join Date: Mar 2005
Location: Atlanta, Georgia
Posts: 407
Send a message via AIM to Ty44ler
is there a way to make the interface customizable? Our clients don't need to upload anything. All they are doing is downloading certain files. We are the only ones who are going to be uploading, deleting or changing any files on the server. We dont have a problem uploading files to our server at all.

We just need a way to have a site that allows our clients to click on a link and download a file, but also have the site automatically show those files when they are placed on the server. FTP accomplishes this, but my boss does not want the FTP Site looking like a list of files and directories with a white background and no logo or anything on it.
Ty44ler is offline   Reply With Quote
Old June 1st, 2009, 01:16 PM     #7 (permalink)
Administrator
 
ScottW's Avatar
 
Join Date: Sep 2001
Location: USA
Posts: 4,988
I've pointed you in the right direction but you're going to have to ask those sorts of questions of the providers of the software/services themselves. You're going to have to find an out of the box solution like the ones I provided unless you hire a developer to create your own custom app.
ScottW is offline   Reply With Quote
Old June 1st, 2009, 06:37 PM     #8 (permalink)
Member
 
Ty44ler's Avatar
 
Join Date: Mar 2005
Location: Atlanta, Georgia
Posts: 407
Send a message via AIM to Ty44ler
No, thats not what I'm looking for. I am not looking for an outside company or software to purchase. I am looking for something to implement into my code already (Website posted). I have looked into php which sounds the most feasible.

To explain again...

I am looking for some code, script or something! to place into my already built website to read the contents of a folder and place the folder's files as links into my website to be downloaded.
Ty44ler is offline   Reply With Quote
Old June 2nd, 2009, 04:10 AM     #9 (permalink)
Ultimate Member
 
usslindstrom's Avatar
 
Join Date: Sep 2003
Location: From my house
Posts: 1,261
The two items that come to mind from me - when reading your posts (other than ScottW who has the best answer) would be to implement either Sharepoint or DotNetNuke.

Each one of those can provide the same set of things. Basically where you can have portals, and E S P E C I A L L Y in the case of Sharepoint - a file collaboration site. Every place I've worked at with IT crap - since it's release - has been using some form of Sharepoint to do exactly what you're looking for.

The catch being with Sharepoint is it's not exactly cheap. DotNetNuke can provide the same sort of functionality as Sharepoint, and for the most part it's free - minus if you decide to go with professional modules that need to be purchased.

Either way - check both of em' out - you don't have anything to lose in any case.


Microsoft Office SharePoint Server - Connecting People, Process, and Information

DotNetNuke - The Leading Open Source Web Content Management Framework for ASP.NET
__________________
And thus it was spoken by the mighty Uss. And it was so.
usslindstrom is offline   Reply With Quote
Old June 2nd, 2009, 08:39 AM     #10 (permalink)
Member
 
Ty44ler's Avatar
 
Join Date: Mar 2005
Location: Atlanta, Georgia
Posts: 407
Send a message via AIM to Ty44ler
I appreciate the responses. We have Sharepoint right now to serve us within the company (clients never have access to it), but it is a little over kill for what I'm trying to do for our clients...

After about a day of research and a few lashings by the boss I have found a solution in a php script...

PHP Code:
<?php

// Note that !== did not exist until 4.0.0-RC2

// name of the directory, please be specified about naming. If 'read_dir.php' 
// and the directory that to be listed are in same folder, then just type the 
// name of the directory, otherwise full path of the directory

$directory='Name of your directory';

//Counting files variable initialization
$count=0;

//opening the directory and take a instance of it to handle var
if ($handle opendir($directory)) {
    echo 
"<u><b>Files in directory</b></u><br>";

    
/* This is the correct way to loop over the directory. */
    
while (false !== ($file readdir($handle))) {
        echo 
"$file";

        
/* Determining extensions of files */
        
$file_parts=explode('.',$file);
        
$file_parts_counts=count($file_parts);
        
$file_type_location=$file_parts_counts-1;
        
$file_type=$file_parts[$file_type_location];
        
        echo 
" <b>($file_type File)</b><br>";
        
$count=$count+1;

    }

    
closedir($handle);
}
echo 
"Total Number of files: <b>$count</b>";
?>
I'm then going to put <a href="http://www.techimo.com/forum/webmastering-programming/"> links around the file names to create links to the files so that the clients can download them and the site will be updated each time the page is refreshed. This should do the trick.

Thanks for all your help.
Ty44ler is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
windows update website not downloading dauss General Tech Discussion 12 August 15th, 2009 01:20 AM
Can't burn 8X DVD's... Firmware update? ASPI update? Namie General Tech Discussion 3 July 2nd, 2004 01:43 PM
Website inventory update foodbiz Webmastering and Programming 1 October 30th, 2003 05:38 PM
[UD] Website Update fosin Distributed Computing 8 October 5th, 2002 09:54 PM
logout automatically in XP S.D.Willie Applications and Operating Systems 5 June 28th, 2002 10:53 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (166)
The disrespect of Obama by Russian .. (18)
Is It Just Me? (2926)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
How to convert MP3's (2)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
Asus P4G8X Mobo (5)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)


All times are GMT -4. The time now is 07:02 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28