473,786 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

accessing files which are not in a public web area

The university allocates 2 Gigs to students in non-public unix space.
The space allocated for public web area is much smaller.

So the idea is to have pictures, movies etc in the non-public unix
space
and to have a web script which will show the images or the movies.

This web script needs to access the files which I assume means
sftp or ssh connection. I have taken several recent php books
out of the library but I don't see any reference to this.

On this list I did find some references to ssh, for example
http://www.phpclasses.org/browse/package/2477.html

Is what I am trying to do so unusual? Why am I not finding books
that explain this?

Jul 7 '07 #1
6 1561
anne001 wrote:
The university allocates 2 Gigs to students in non-public unix space.
The space allocated for public web area is much smaller.

So the idea is to have pictures, movies etc in the non-public unix
space
and to have a web script which will show the images or the movies.

This web script needs to access the files which I assume means
sftp or ssh connection. I have taken several recent php books
out of the library but I don't see any reference to this.

On this list I did find some references to ssh, for example
http://www.phpclasses.org/browse/package/2477.html

Is what I am trying to do so unusual? Why am I not finding books
that explain this?
Probably because it's a terrible way to do something. For instance, ftp
means every time someone requests a page with a picture on it, you will
have to establish a connection to the server, fetch the file then close
the connection. And repeat this process if you have multiple images.
SSH is even worse - there's no good way to fetch files via SSH - it's a
command line facility.

Of course, you can cache some pictures - but that runs into it's own
problems.

And yes, what you're trying to do is unusual. And if the university
wanted you to server pictures, etc., they would have given you public
space for them.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jul 7 '07 #2
The instructor would like students to share their work, which consist
of movies, pictures, links etc.
The website would allow students to identify the project from a fellow
student they want to download.

Apparently the university has not yet seen the need for students to
share videos, they are still in the image age.

Thank you for your feedback.Perhap s I could have a script that upload
the pictures when a update link is clicked, since way the slow access
would only happen as needed. Maybe this is what you were thinking of
by caching.

Jul 7 '07 #3
anne001 wrote:
The university allocates 2 Gigs to students in non-public unix space.
The space allocated for public web area is much smaller.
Is that on the same server? In that case, you just need fpassthrough(). ..
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.20-1-amd64 kernel, KDE 3.5.7, and PHP
5.2.3-1+b1 generating this signature.
Uptime: 01:20:14 up 22 days, 8:50, 5 users, load average: 1.40, 0.70,
0.42

Jul 7 '07 #4
anne001 wrote:
The instructor would like students to share their work, which consist
of movies, pictures, links etc.
The website would allow students to identify the project from a fellow
student they want to download.

Apparently the university has not yet seen the need for students to
share videos, they are still in the image age.

Thank you for your feedback.Perhap s I could have a script that upload
the pictures when a update link is clicked, since way the slow access
would only happen as needed. Maybe this is what you were thinking of
by caching.
No, caching would be to save a copy on your server for a period of time.
But it has a lot of complications.

If your instructor wants the students to share files, then it's the
instructor's responsibility to provide a means for it to be done.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jul 8 '07 #5
Iván Sánchez Ortega wrote:
anne001 wrote:
>The university allocates 2 Gigs to students in non-public unix space.
The space allocated for public web area is much smaller.

Is that on the same server? In that case, you just need fpassthrough(). ..

Iván,

No, fpassthru() will not work, even if they are on the same server,
unless the webserver user also has access to the private areas - and
they won't, if there's any security at all in the system.

But I also doubt very much they are on the same server.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jul 8 '07 #6
If your instructor wants the students to share files, then it's the
instructor's responsibility to provide a means for it to be done.
A few years ago there was some file sharing facility. But last year,
when I took the course
there was nothing in place. I was told someone had written some php
code which was
then lost so I figured it was possible, and I volunteered to look into
this
to gain some experience and help next year's students if I can.

I was thinking that the webscript could know the username and
passwords of the students.
But for that we would need unix folders assigned to each student only
for the course.I bet
the tech center won't like that.

It seems to me the files will have to sit in the public space, with
maybe only the last two
assignment left there at a time... or whatever there is space for.

Thank you for your time and advice.

Jul 8 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1706
by: Simon Harvey | last post by:
Hi everyone, I'm hoping for a little bit of advice on the following. I am in the process of making a small application that can send, receive and store email messages. The current area that I am thinking about is how to store messages on the hard disk and access them when needed. I dont want to read all the messages in at runtime because that would make startup take to long. What I think I need to do is to load a 'header' file at...
1
1759
by: adamcrew | last post by:
Hi, I'm not sure if this is truly a C++ question, but it's something that has only come up now that I'm working in a C++ environment. Essetnially, what has happened is that I've come in to a new job where there has been no form of source control and been asked to co-ordinate the implementation of one. I was nice and comforable with the task until I found out about a practice that wasn't used in my previous C programming job.
5
6145
by: Paulos | last post by:
Hi Has anyone any experience of accessing .CSV files with ADO.NET and C#? All I want to do is open and read a number of them. I have search the help files, the MDSN and all the books I have but so far, I have found no mention of how to do this. Any help/sample code would be appreciated
5
3068
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet explorer would do in this case. The headers I am getting are: Headers {Content-Disposition: attachment; filename="dynamic_file.mdb" Connection: close Cache-Control: private Content-Type: application/octet-stream
5
2809
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to and from the public folder on the client machine. It is not a public web service, only accessible on intranet. The anonymous access is disabled. Windows authentication is enabled. Web.Config sets <identity impersonate="true" /> Using a test app,...
0
12089
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the likelihood of CRM success from less than 20 percent to 60 percent. WHITEPAPER :
9
1891
by: Yamasassy | last post by:
HI im having problems to saving to a .txt file, i need to be able to store a number of employees to this file (and beable to open and these files to load in to text boxes)and retrieve then for later use to search and print and them add more at another stage , currently i can save and read from these files but only the last person entered is stored and over written each time . i have to use classes and Collections , im using Visual basic 6 my...
1
1235
by: sumantabardhan | last post by:
public class area { int id; public void setId(int id) { this.id=id; } public String deleterecord()
3
3085
by: djsuson | last post by:
I'm trying to set up an inheritance tree that also uses templates. This is an attempt to simplify some previous code that was filled with redundancies. I'm working with g++ 3.4.6. The code is split over four files: two headers and two implamentation files, but uses the include trick mentioned on another thread to connect the header and implamentation files together. The base class header is #ifndef _BASEDATA_H_ #define _BASEDATA_H_ ...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.