|
|
|
12-12-1998, 07:59 PM
|
Postid: 15152
|
|
Registered User
Join Date: Nov 1998
Location: Ontario, Canada
Posts: 114
|
SSI and the "Suggest this site" thingy
Okay, I'm beginning to learn how SSI actually works, and I came up with a question. If you use the "Suggest this site" code thingy in an include source file, so that the "Suggest this site" link will show on every page with the include, will the "Suggest" thingy cope and suggest the page that calls the include, or will it suggest just the include bit, or will it just not cope at all?
Just wondering.
------------------
Bekariso
susogi.net/Bekariso
*** We prefer to remain anomalous ***
|
|
|
12-12-1998, 10:22 PM
|
Postid: 15153
|
|
Registered User
Join Date: Jul 1998
Posts: 327
|
hhm i duno but sure wuldmake my liofe easier
Lea
|
|
|
12-13-1998, 06:04 AM
|
Postid: 15154
|
|
FutureQuest, Inc.
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
|
When you use a piece of code in an 'include file' the string you use on your HTML doc is replaced with the code in the file itself BEFORE the page ever hits the browser.
E.g. the browser and the script will never know it was part of an include file.. it only knows that it is part of the page, as such it will work just fine
Give it a try
Deb
------------------
Unlocking the Power of the Internet!
www.FutureQuest.net
|
|
|
12-13-1998, 06:26 PM
|
Postid: 15155
|
|
Registered User
Join Date: Nov 1998
Location: Ontario, Canada
Posts: 114
|
Yep, worked great! Thanks!
Very cool.
Reiya
|
|
|
12-31-1998, 06:05 PM
|
Postid: 15156
|
|
Registered User
Join Date: Dec 1998
Location: Querétaro México
Posts: 147
|
I tried SSI and noticed the <!--#include or <!--#echo are replaced with plain text (which makes visitors to wonder how the exact time and date got there  ) Great Tool!!
My question is about how heavy is that to the server, do you -FQ- see any "suffering" of your machines from this kind of work?
If one wanted to show different pictures every time the page is loaded, what would be the easiest way? are you are planning to provide a tool to do so?
(perhaps a CGI that takes 3 parameters, first is wildcard for the picture's filename, like PICT??.GIF, second NEXT/RANDOM, this is if the number generated by the CGI is the next number in a sequence or just a random one, third, the LIMIT or maximum number possible to be generated. To keep control of the sequence, maybe a plain file on the Xdomainname directory, where the previously generated number is stored assuring that the next one will be actually the next in the sequence
I program in Pascal for Windows, does it help to make a CGI? Should I submit source and .EXE to you so you transform it or how does it work?
------------------
Javier Mosqueda
crystalking.com
|
|
|
12-31-1998, 06:09 PM
|
Postid: 15157
|
|
Registered User
Join Date: Dec 1998
Location: Querétaro México
Posts: 147
|
I tried SSI and noticed the <!--#include or <!--#echo are replaced with plain text (which makes visitors to wonder how the exact time and date got there  ) Great Tool!!
My question is about how heavy is that to the server, do you -FQ- see any "suffering" of your machines from this kind of work?
If one wanted to show different pictures every time the page is loaded, what would be the easiest way? are you are planning to provide a tool to do so?
(perhaps a CGI that takes 3 parameters, first is wildcard for the picture's filename, like PICT??.GIF, second NEXT/RANDOM, this is if the number generated by the CGI is the next number in a sequence or just a random one, third, the LIMIT or maximum number possible to be generated. To keep control of the sequence, maybe a plain file on the Xdomainname directory, where the previously generated number is stored assuring that the next one will be actually the next in the sequence
I program in Pascal for Windows, does it help to make a CGI? Should I submit source and .EXE to you so you transform it or how does it work?
------------------
Javier Mosqueda
crystalking.com
|
|
|
12-31-1998, 07:42 PM
|
Postid: 15158
|
|
CTO FutureQuest, Inc.
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,683
|
Nah - SSI / xSSI / PHP3 are all built into the Apache daemon... CGI does have extra startup/teardown resource hit though...
As far as the second part, what I can suggest is looking at various rotating banner scripts and massaging it to your needs...
--
Terra
sysAdmin
FutureQuest
|
|
|
12-31-1998, 08:00 PM
|
Postid: 15159
|
|
Registered User
Join Date: Dec 1998
Location: Querétaro México
Posts: 147
|
¿? Where can I see such scripts?. I saw the download.com page which has nice changing ads every time one calls that URL, but the source code of the page shows that the page was made on the fly with specific picture names every time. Is there a script for a thing like that? Thanks.
------------------
Javier Mosqueda
crystalking.com
|
|
|
12-31-1998, 08:07 PM
|
Postid: 15160
|
|
FutureQuest, Inc.
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
|
Hi Javier,
You may want to check out this link
http://www.cgi-resources.com
and
http://www.freecode.com
Lots of good ready made free scripts at both of those links... you'll find many different types to choose from there
Hope this helps
Deb
|
|
|
01-01-1999, 11:46 AM
|
Postid: 15161
|
|
Registered User
Join Date: Dec 1998
Location: Querétaro México
Posts: 147
|
Good, the one I liked the most was under "freecode", and it is: http://www.firststep.com.au/software/randtxt.html .
It shows either text and/or pictures randomly from a database that can be within the same -or in a separate file- .html file that calls the CGI.
The code given is in Perl and the little changes are a) to indicate where you have Perl in the server, b) to modify a line where my e-mail is to be given in case of failure of the program. Also some permisions are needed for the file to be accesible, etc.
Questions:
a) am I allowed to run CGI's like this?
b) I read the installation instructions on that little program, what should be the proper procedure said by the owners of this server?
------------------
Javier Mosqueda
crystalking.com
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 09:31 AM.
|
| |
|
|
|