?
Solved

Uploading using CGI

Posted on 2003-02-22
15
Medium Priority
?
259 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:reider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 3
  • +3
15 Comments
 
LVL 1

Expert Comment

by:herrmann1001
ID: 7998932
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!
0
 
LVL 17

Expert Comment

by:dorward
ID: 7999530
0
 
LVL 48

Accepted Solution

by:
Tintin earned 400 total points
ID: 8001869
See http://stein.cshl.org/WWW/software/CGI/cgi_docs.html#upload_caveats

for the documentation on using the standard Perl CGI module (assuming of course you have/want to use Perl)
0
TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

 
LVL 1

Author Comment

by:reider
ID: 8004088
I think I have a problem. I don't have perl 5. How could I go about getting it
0
 
LVL 17

Expert Comment

by:dorward
ID: 8004265
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)
0
 

Expert Comment

by:SteveFerson
ID: 8004905
He didn't say no perl, he said no perl 5. Perhaps an older version?

Either way, change host.
0
 
LVL 17

Expert Comment

by:dorward
ID: 8004947
I find it hard to believe they don't provide Perl 5 - it was released in early 1993!
0
 
LVL 48

Expert Comment

by:Tintin
ID: 8005830
And if the provider does have Perl 4, then I would be running away from them as quick as I could.
0
 
LVL 1

Author Comment

by:reider
ID: 8012678
I meant that I don't have perl 5 on my system. I don't know what version my inet server has
0
 
LVL 48

Expert Comment

by:Tintin
ID: 8012962
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
0
 
LVL 1

Author Comment

by:reider
ID: 8016222
I'm using IIS. and don't really want to switch to apache right now
0
 
LVL 7

Expert Comment

by:markhoy
ID: 8016498
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.
0
 
LVL 1

Author Comment

by:reider
ID: 8017063
can't use asp cause the company I host with is UNIX based
0
 
LVL 7

Expert Comment

by:markhoy
ID: 8017125
?? 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?
0
 
LVL 48

Expert Comment

by:Tintin
ID: 8021203
If you are using IIS, then just install ActiveState Perl

http://www.activestate.com/
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question