Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old August 12th, 2000, 01:16 AM
benliong benliong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 56 benliong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I am starting to learn perl, and I wrote a program to grap some data (stock values) off some website. It works fine in Unix Command line, but I can't get it to display on the browser. now I understand that I have to put the script in a directory named 'cgi-bin', and I did that, but I still can't get access to it. Can someone help me out?

I am using phpwebhosting.com BTW, so if anyone using their service can help me out too...

Thanks in advance....

Reply With Quote
  #2  
Old August 12th, 2000, 04:06 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>but I can't get it to display on the browser
You need to add this line ->
print "Content-type: text/htmlnn";
to display the output to browser

To grab without storing, start here -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000182.html

To grab with storing, start here -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000136.html

I assume you are using GET method, if you need to use POST method, you then need to use UserAgent.pm.

Reply With Quote
  #3  
Old August 15th, 2000, 01:11 PM
SaucePi SaucePi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Frederick,MD USA
Posts: 6 SaucePi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I don't know if you're running the public html from a unix box, but if you are, check your permission settings by doing 'll' at the command line, and make sure it is executable to the public. it needs to look like this:

progname.pl -rwxr-xr-x

if your setting are not like this, try changing the permission:

chmod a-r-w-x progname.pl <enter>
chmod u=rwx g=rx o=rx progname.pl<enter>

If this doesn't work, then you are calling the script wrong from your html code.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Perl Help (really beginner stuffs)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway