SunQuest
           Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 4th, 2000, 02:20 AM
lumpkin lumpkin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: dover
Posts: 16 lumpkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how do i include a printed part from a script in a regular HTML page? like, i know how to do it if the file ends in .phtml but how do i get it to work with a regular .html file?

Reply With Quote
  #2  
Old August 4th, 2000, 04:22 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I assumed "printed part" is the html output of a script.

Let say your script accepts GET method, simply try the following...

<!--#include virtual="script.pl"-->

To add query string, start here -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000255.html

Reply With Quote
  #3  
Old August 4th, 2000, 10:21 AM
lumpkin lumpkin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: dover
Posts: 16 lumpkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
let me try this again. i want to use SSI to include something from a script onto my page but i don't want to have to name my page .shtml. i just want to be able to leave it .htm or .html. how can i do this? this(<!--#include virtual="http://www.lumpkin.nu/track.cgi?odball"--> ) doesn't work.

[This message has been edited by lumpkin (edited August 04, 2000).]

[This message has been edited by lumpkin (edited August 04, 2000).]

Reply With Quote
  #4  
Old August 4th, 2000, 04:02 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
You need to edit/put the .htaccess file in your base web folder that includes this line:

AddType text/x-server-parsed-html .htm .html

And entire .htaccess file would look something like this:

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
AddType text/x-server-parsed-html .htm .html

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
[/code]

This is assuming you have frontpage extensions installed, it will still work if you don't.

Reply With Quote
  #5  
Old August 4th, 2000, 04:03 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
On another note, <!--#include virtual="http://www.lumpkin.nu/track.cgi?odball"--> will never work. You can't include remote files for SSI's. The best way around this is to make a cgi script that calls the remote file and include it (the CGI script) on the page.

If you need an example script, I can put one up.

[This message has been edited by JonLed (edited August 04, 2000).]

Reply With Quote
  #6  
Old August 4th, 2000, 05:22 PM
lumpkin lumpkin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: dover
Posts: 16 lumpkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for you help everyone...hmm, well i guess i've run into a problem though. i've been using cgi/perl to try and make a counter service and it's been turning out pretty good up until now. i wanted to use SSL as the code that people would use to display the counter on their page but i guess this can't be done. i tried all of the stuff above but i can't get it to work. maybe it's just me though. how can i do this? i looked at other counter service's code and it seems that they use script of some kind. what sort of thing can i do so that the user's can display the counter on their page?

-brandon www.lumpkin.nu

Reply With Quote
  #7  
Old August 4th, 2000, 09:34 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>i just want to be able to leave it .htm or .html

You need to get this taken care of in the first place using JonLed's suggestion.

>>well i guess i've run into a problem though

But we have no way of knowing what was your problem if you can't even identify the problem.
Which one?
1) "An error occured while processing this directive" on your html page
2) Your SSI tag showed up on your html source page

>>what sort of thing can i do so that the user's can display the counter on their page?
Start here -> http://www.scriptsearch.com/pages/l9c6c6.shtml

Reply With Quote
  #8  
Old August 4th, 2000, 09:43 PM
lumpkin lumpkin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: dover
Posts: 16 lumpkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
my problem was the "An error occured while processing this directive" message. i'm not too sure what the error means though. what does it mean? i'm pretty sure i had everything set up right.

Reply With Quote
  #9  
Old August 4th, 2000, 11:44 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>i'm not too sure what the error means though

That means your script screwed up somewhere.
You should test the result using GET method. Do you see 500 internal error if you just type the full URL of your script to browser's location box? If it prints 500 error, of course, your SSI would give you "An error occured while processing this directive".

Reply With Quote
  #10  
Old August 5th, 2000, 12:29 AM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
I assume you're trying to create a counter service where text can be displayed on the person page (from a remote server), with no images involved. This is not possible without having some CGI on the remote server. It's as simple as that. The counters with images just use the "<img src=" call and put in the path to a cgi script (full path) that then generates and image.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > printing


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 | 
  
 





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