Link to home
Start Free TrialLog in
Avatar of reider
reider

asked on

Uploading using CGI

I have a script that writes a news page an a website. Doing that was easy but now my customer want pictures with the news items. My question is I need to make this script upload the pictures to a webserver. Is this possible using CGI and can someone point me in the right direction.

TIA
Avatar of herrmann1001
herrmann1001

Does your script only an update of an news.html file?
like a content manager or does it create a dynamic newspage from an database,flatfile?

In the last case, just link in the img tags and make sure that the images are in the correct library on the server.
In the first case, you need to attach and upload the pictures to the server.  (well, you can always use ftp too, or your own favorite uploadtool)

best of times!
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of reider

ASKER

I think I have a problem. I don't have perl 5. How could I go about getting it
It seems very unlikely that your host will provide CGI but not Perl.

That said:
* http://www.perl.org/
* http://www.activestate.com/ (Windows version)
He didn't say no perl, he said no perl 5. Perhaps an older version?

Either way, change host.
I find it hard to believe they don't provide Perl 5 - it was released in early 1993!
And if the provider does have Perl 4, then I would be running away from them as quick as I could.
Avatar of reider

ASKER

I meant that I don't have perl 5 on my system. I don't know what version my inet server has
If you want to develop Perl/CGI scripts on your own system, I would suggest installing IndigoPerl.

The package contains Perl 5 and a pre-configured Apache server that will allow you to start writing Perl/CGI scripts straight away.

http://www.indigostar.com/indigoperl.htm
Avatar of reider

ASKER

I'm using IIS. and don't really want to switch to apache right now
Then use asp.

try any of these links:

http://www.pstruh.cz/help/ScptUtl/library.htm 

http://www.taka.nl/programming/asp/pseudorequest/default.asp

or www.aspfaqs.com


let me know if you need more info or an example.
Avatar of reider

ASKER

can't use asp cause the company I host with is UNIX based
?? I may not have read the whole post. your last one says "I'm using IIS". If you use UNIX (LINUX?) then it will have Perl 5 installed but do you have access to a cgi-bin within your hosting space?
If you are using IIS, then just install ActiveState Perl

http://www.activestate.com/