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

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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
 
Unread Dev Shed Forums Sponsor:
  #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: 13
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)

Developer Shed Advertisers and Affiliates



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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap