cancel
Showing results for 
Search instead for 
Did you mean: 

hosting pictures to my webspace - how?

muffybean
Dabbler
Posts: 12
Registered: ‎01-11-2007

hosting pictures to my webspace - how?

I want to be able to place a picture in my webspace as they do at Virgin without having to alter the index file for each fresh picture I upload. My web site is http://www.username.force9.co.uk, and what I would like to do is say put a picture up on my site like http://www.username.force9.co.uk/mypicture.jpg and it could be viewed accordingly. Then when I want to put another picture it would be http://www.username.force9.co.uk/anotherpic.gif. Is this possible to do without altering the index.htm file everytime I post a new picture? If so how do I do this please? TIA
8 REPLIES
Prod_Man
Grafter
Posts: 286
Registered: ‎04-08-2007

Re: hosting pictures to my webspace - how?

Yes ... provided you go into Server Side Scripting of some sort Wink (PHP / Perl / similar)
You can write one yourself, or ..
you download a Gallery System and Upload & Install what ever is needed.
Which option do you prefer?
abit of self improvement? Cheesy
or just want it to work and be done? Smiley
Jim,
muffybean
Dabbler
Posts: 12
Registered: ‎01-11-2007

Re: hosting pictures to my webspace - how?

Quote
or just want it to work and be done?

This one please Jim. BTW, it is Jim this end as well.
muffybean
Dabbler
Posts: 12
Registered: ‎01-11-2007

Re: hosting pictures to my webspace - how?

Quote from: PJ
If you literally just want to upload them, without incorporating them into a web site, then just use a FTP client like Filezilla and connect to ftp.plus.net using your username and password.
Any files uploaded to htdocs will then be visible at http://www.<username>.plus.com/<filename>.<ext>

I will try this and see if it works, but have been advised by Force 9 help that I have to change the index.htm file each time I upload a different picture. A friend of mine with Virgin has a freespace entry where, with his username that points to his webspace that he freely uploads to with out altering the index.htm file. How do I do this with Plusnet?
dougrice
Rising Star
Posts: 217
Thanks: 1
Fixes: 2
Registered: ‎06-08-2007

Re: hosting pictures to my webspace - how?

Muffy Bean,
Will you be FTPing the picture up? If so, I have a simple JavaScriptGuestbook that could be modified with a some effort.
Have a look at:
http://www.dougrice.plus.com/  and
http://www.dougrice.plus.com/hp/gbbook/index.htm
I have a guestbook which I use to record Favorite pages that I can view at work and other computers.
http://www.dougrice.plus.com/hp/news/index.htm
There are other 'simple' applications.
It could be modified to refer to you photos.
Doug
muffybean
Dabbler
Posts: 12
Registered: ‎01-11-2007

Re: hosting pictures to my webspace - how?

Quote from: muffybean
Quote from: PJ
If you literally just want to upload them, without incorporating them into a web site, then just use a FTP client like Filezilla and connect to ftp.plus.net using your username and password.
Any files uploaded to htdocs will then be visible at http://www.<username>.plus.com/<filename>.<ext>

Thanks PJ that is all I wanted and you answered my question. Thanks to all you others as well.
I will try this and see if it works, but have been advised by Force 9 help that I have to change the index.htm file each time I upload a different picture. A friend of mine with Virgin has a freespace entry where, with his username that points to his webspace that he freely uploads to with out altering the index.htm file. How do I do this with Plusnet?
Prod_Man
Grafter
Posts: 286
Registered: ‎04-08-2007

Re: hosting pictures to my webspace - how?

Not much sense in uploading an entire CMS, if muffybean just wants a Gallery.
unless he is intrested by what a CMS can offer with other features that may save him writing a full site.
(eg http://www.phpnuke.org, joomla etc there are quite a few of them around)
But then again,
I like things minimalist and as strait forward as can be.
if you really are lazy,
you can just leave the index files out,
and leave it with an Apache Directory Listing ...
if you want something more graphical, take a look at "out-of-the-box" PHP Galleries (or similar).
see which one takes your fancy/=.
Follow the setup instructions.
If you are intrested in haveing a CMS,
have a look around on Google,
see which one takes your fancy.
I have seen quite a few to know the benefits and disadvantages of alot of PHP based CMS's,
particularly Security-wise, ease of setup and so on.
Jim,
dougrice
Rising Star
Posts: 217
Thanks: 1
Fixes: 2
Registered: ‎06-08-2007

Re: hosting pictures to my webspace - how?

muffybean,
A simple way to update your picture list is to use some javascript, and FTP up the edited file of javascript.
This means that you can keep the picture list in a file called pics.js which you edit and upload.
Include something like this into you index.htm file using a prpgram like notepad. ( Do not use Word or complcated Web Authoring tool ).
Say I have some graphics files with names like:
apache_pb22.gif,
apache_pb22.png,
apache_pb22_ani.gif
<!-- Put this in you index.htm file with the file names changed. -->
<img src="apache_pb.gif" ><BR>
<h1> Pictures displayed using javascript  </h1>
<script>
  self.document.write( '<img src="apache_pb.gif" ><BR>');
</script>
<h1> Pictures specified in pics.js </h1>
<script src=pics.js > </script>
<!-- end of include -->

And into a file called pics.js add someting like this:

//
// pics.js
//
function pic(p){
self.document.write( "<img src="+ p +"><BR>");
};

// call this function once per picture
pic("{yourFileName}");
pic("apache_pb22.gif");
pic("apache_pb22.png");

//
// This is more complicated but splits a list of pictures.
//
self.document.write( "<H1>Some more complicated javascript to split a list of file names</h1>");

function picList(p){
var pA = p.split(",")
var opStr = ""
for ( i=0; i < pA.length ; i++ ){
   opStr += "<img src="+ pA[ i ] +"><BR>" ;
}
self.document.write( opStr );
};
picList("apache_pb22.gif,apache_pb22.png,apache_pb22_ani.gif,apache_pb.gif");
//
// end of pics.js
//

here is an example:
http://www.dougrice.plus.com/img/
and
http://www.dougrice.plus.com/images/
Do a view source and Save As in IE to see the code.
Its quick and relatively simple for starters.
ffupi
Grafter
Posts: 370
Registered: ‎01-08-2007

Re: hosting pictures to my webspace - how?

How about that - was posted a while back by someone here in the forum - it goes on the www webspace:

For photo albums I use Web Album Generator (free!):
http://www.ornj.net/
Examples of the photo albums it produces can be seen on my site:
http://www.blacknail.org.uk/ ;

Another option is to put a dynamic album on the ccgi webspace, e.g. Coppermine, needs MySQL activated.