473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1547
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*******@attglobal.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.Perhaps 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.Perhaps 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*******@attglobal.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*******@attglobal.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
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...
1
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...
5
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...
5
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...
5
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...
0
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...
9
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...
1
by: sumantabardhan | last post by:
public class area { int id; public void setId(int id) { this.id=id; } public String...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.