Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 15th, 2001, 09:45 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Nice..

Nice, Simple & efficient.

Reply With Quote
  #2  
Old May 15th, 2001, 10:15 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Max File Size

What about the max file size of the uploaded file? I noticed that you neglected to include that in your example forms for uploading. Therefore it would default to 2MB and I am assuming this would be too small for many word documents and the like.

Reply With Quote
  #3  
Old May 16th, 2001, 05:52 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
various

Thanks for this stuff. Various little glitches getting it going:
1) I had to specify path to socket -
$hostname='localhost:/var/lib/mysql/mysql.sock';
Can I get round this by configuring my PHP or MySQL?
2) Line 188 in add.php failed for me until I created a 'data' sub-directory (!) ... created with 776 permissions, the application reports a failure; changing to 777 and application works - only to show that the previous copy()s worked fine!
3) If you enter user passwords using INSERT in MYSQL, you need to take out the PASSWORD function in line 16 of login.php ...

Reply With Quote
  #4  
Old May 16th, 2001, 10:00 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
unexpected behaviour

If a user who isn't able to edit a document tries to view a document, the file seems to download, but contains:
Code:
<br>
<b>Warning</b>:  readfile("data/1.dat") - No such file or directory in <b>/usr/local/apache/htdocs/vault/view.php</b> on line <b>94</b><br>
or similar instead of the document.


Reply With Quote
  #5  
Old May 18th, 2001, 03:26 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
word documents

Thanks for this stuff! For my part everything worked fine, but I'm having problems with adding word documents. If I try, I get the error page that tells me what file types are available. How can I enable word file types?

Reply With Quote
  #6  
Old May 18th, 2001, 04:57 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: word documents

You'll need to add the MIME-type "applications/msword" to the allowed file array in config.php

Reply With Quote
  #7  
Old May 18th, 2001, 04:57 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: word documents

You'll need to add the MIME-type "application/msword" to the allowed file array in config.php

Reply With Quote
  #8  
Old May 18th, 2001, 04:59 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: unexpected behaviour

There's sometimes a problem with IE downloading the script, rather than the target - is this the problem you have? Can you try with another browser?

Reply With Quote
  #9  
Old May 18th, 2001, 05:00 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Max File Size

Yup, that's right - this can be adjusted in either the PHP configuration file, or by adding a MAX_FILE_SIZE hidden field to the upload form.

Reply With Quote
  #10  
Old May 18th, 2001, 10:03 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Groups

This is a nice application. It was interesting to read and compare to other codes and my codes.
Recently I made a small application (With ASP I have to admit) that also allow to put users in groups and those there is no need to give each of the user permissions. Such an addition could be very useful to a big firm...

Reply With Quote
  #11  
Old May 18th, 2001, 04:53 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Database error?

<p><pre><font color=#008000><xmp>
CREATE TABLE data (
id tinyint(4) NOT NULL auto_increment, ...
</xmp></font></pre><p>
<!-- Code -->
<p><pre><font color=#008000><xmp>
CREATE TABLE data1 (
id tinyint(4) NOT NULL auto_increment,...
</xmp></font></pre><p>

Reply With Quote
  #12  
Old May 19th, 2001, 04:39 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
you just reminded me.

Don't take this a blasting you guys, because it's not! I mean, I really appreciate all the stuff you guys do for us (unlearned) ;^)

What I was reminded of going through this tutorial, was that there seem to be some really important bells and whistles for PHP that need to be included during build time; however, no one told us of these neat toys during the other tutorials.

Could someone cover more of them? or perhaps update the Soothingly Seamless Tutorial? (eg. FTP module and transparent session handling, etc...)

TIA.
T.

Reply With Quote
  #13  
Old May 19th, 2001, 09:45 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Groups and another use for this

I was thinking of the same thing.

In addition I had an idea of another useful application: One of my clients (a merketing company) wants a space on their webpage where they can share documents, project progress information ... with their clients.

So, if you use groups, you can easily achieve that clients are only able to see "their" stuff and not the one of other clients.

Also, if for instants a client wants to post a document on the server he wants to set permissions for the file - but he should only be allowed applicate this feature for users in its own group.

Maybe the guys of melonfire want to add this feature :) or I am doing some coding myself

Reply With Quote
  #14  
Old May 19th, 2001, 02:14 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Sessions not recognized

It just seems like the examples I was looking for.
For some reason however, after checking user and password (and creating the session-file in /tmp), by redirecting to out.php, session_start creates a new, empty session-file.
Any idea why the session isn't recognized by out.php ?
(using PWS, MySQL and PHP4 on Win98)

Any suggestion is welcome.

Reply With Quote
  #15  
Old May 19th, 2001, 03:41 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Can't download documents

Hi to all.
I have Explorer 5.5, when I try to download the document that I have uploaded, I get the current page and not the document.
Any idea about?
Thank you
Antonio.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Cracking The Vault (part 1)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT