Perl 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 ForumsProgramming LanguagesPerl 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 January 11th, 2000, 01:34 PM
Tang Tang is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Hong Kong
Posts: 2 Tang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the ones who provides or (wants to provide) solutions for my question.

I think I have had a solution to my problem.Now my perl scripts can be viewed by Netscape
properly.The solution to my problem is the way to access the .gif and .js files form the
perl script.

For Example:
(This is just a part of the script)

-------------------------------*******Problem********------------------------------
print <<"EOF"
<html>
<head>
<title>Welcome</title>
<script language=Javascript src="E:/Program Files/Apache Group/Apache/htdocs/test.js"></script>
</head>
<body>
<img src="E:/Program Files/Apache Group/Apache/htdocs/pics.gif">
</body>
</html>

This works fine for IE explorer, but for Netscape when you try to view it, there be will error
saying that you don't have the permission to access the test.js file and also the pics.gif
image can't be viewed either.The solution to the problem is:

-------------------------------*******Solution********------------------------------
print <<"EOF"
<html>
<head>
<title>Welcome</title>
<script language=Javascript src="http://203.42.216.89:8086/test.js"></script>
</head>
<body>
<img src="http://203.42.216.89:8086/pics.gif">
</body>
</html>

Now both browsers can view the perl script properly.The test.js and pics.gif still needs
to place in the htdocs directory.To me it is quite silly to launch the .gifs and .js
files like that,maybe there are other better ways to do it (or maybe i did it the wrong way).

So if you have any better or proper solutions please send post or send E-mail to me.

Thanks,



Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Re: Perl can't function properly on Apache Server

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