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?
|
|
0
|
|
|
|
Reply
|
anne (264)
|
7/7/2007 8:42:26 PM |
|
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.
jstucklex@attglobal.net
==================
|
|
0
|
|
|
|
Reply
|
jstucklex (14363)
|
7/7/2007 9:41:00 PM
|
|
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.
|
|
0
|
|
|
|
Reply
|
anne (264)
|
7/7/2007 10:42:10 PM
|
|
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
|
|
0
|
|
|
|
Reply
|
ISO
|
7/7/2007 11:20:35 PM
|
|
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.
jstucklex@attglobal.net
==================
|
|
0
|
|
|
|
Reply
|
jstucklex (14363)
|
7/8/2007 1:24:42 AM
|
|
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.
jstucklex@attglobal.net
==================
|
|
0
|
|
|
|
Reply
|
jstucklex (14363)
|
7/8/2007 1:27:44 AM
|
|
> 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.
|
|
0
|
|
|
|
Reply
|
anne (264)
|
7/8/2007 2:08:20 AM
|
|
|
6 Replies
17 Views
(page loaded in 0.435 seconds)
|