Oprano Front Page


Go Back   Oprano Adult Industry Forums > The Business Of Porn - Closed For Posting > Legacy Archived Main Board

Notices

Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here.





Check Out YnotMail

The Original Oprano Flat Board (Thanks To Sarettah!)---
Oprano Swag Shop
"History Of Porn Timeline
Reply
 
Thread Tools Display Modes
Old 04-23-2005   #1
NickPapageorgio
Members
 
NickPapageorgio's Avatar
 
Join Date: Jul 2004
Posts: 843
Default

Or do you have to use php or shtml or some other extension?
__________________
www.lotzadollars.com
NickPapageorgio is offline   Reply With Quote
Old 04-23-2005   #2
gigi
on prozac - be gentle
 
gigi's Avatar
 
Join Date: Oct 2002
Location: Canada, eh!
Posts: 1,069
Default

They can if you ask your host to set it up for you.....but I believe it puts extra strain on your server (not a WHOLE lot, but a little) so if speed is a huge issue, you may want to use .html....
__________________
A bit of fragrance always clings to the hand that gives the rose
mail me
gigi is offline   Reply With Quote
Old 04-23-2005   #3
Dravyk
Easy Like Sunday Morning
Want to see your own Advertising Here!
 
Dravyk's Avatar
 
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
Default

Server Side Includes (SSI) use CGI includes and most go to pages labeled .shtml

You can also do virtual includes using PHP, and they have to be called out on pages ending in .php

However, you can also have your server set up by your host (if they're amenable to it) to have your .shtml pages actually end in just .html (but really be .shtml). I am told you can also do this with PHP, however no host will do both because then it causes too much server drag to parse for both.
Dravyk is offline   Reply With Quote
Old 04-23-2005   #4
PornoDoggy
Cramming 3 people in a Room to Attend Show
Want to see your own Advertising Here!
 
PornoDoggy's Avatar
 
Join Date: Oct 2002
Location: Amid the Cornfields of Illinois
Posts: 5,366
Default

It's a value set in your apache config ... otherwise, what they said about server load.
__________________
SEX STORY TEXT Exotic Material for Adult Websites

Available for part time (project or ongoing) work ...

PornoDoggy is offline   Reply With Quote
Old 04-23-2005   #5
Grump
Buys wine at Publix!
 
Join Date: Jun 2004
Posts: 170
Default

If you put this line:

AddType application/x-httpd-php .php .phtml .php3 .html .htm .shtml

into the root .htaccess file it will allow .htm or .html files to be parsed so that includes can be used on them. It may slow your server down, lots of debate on how significant this is. I have used this for years now with no problems or noticeable difference in speeds.
Grump is offline   Reply With Quote
Old 04-23-2005   #6
helix
Jebus loves me
 
Join Date: Dec 2004
Location: 40 Oz to Freedom
Posts: 857
Default

here is a link to a SSI resource
http://bignosebird.com/ssi.shtml
__________________
Sigless
helix is offline   Reply With Quote
Old 04-23-2005   #7
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

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


I run with this in my root .htaccess and have had no noticable server load.
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-23-2005   #8
NickPapageorgio
Members
 
NickPapageorgio's Avatar
 
Join Date: Jul 2004
Posts: 843
Default

Ok and next question, what's the best way to write one out? I know the php way is pretty simple but does the html way vary much?
__________________
www.lotzadollars.com
NickPapageorgio is offline   Reply With Quote
Old 04-23-2005   #9
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by NickPapageorgio@Apr 23 2005, 08:22 PM
Ok and next question, what's the best way to write one out? I know the php way is pretty simple but does the html way vary much?
This be it:

<!--#include virtual="whatever.txt" -->
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-23-2005   #10
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Not sure but I re-read your post and didn't know if you meant how to write the code to call the include or if you wanting to know how to write the include itself...

For any thing you're wanting to include in to your page just write the html or text and save it as .txt
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-23-2005   #11
venturi
Members
 
venturi's Avatar
 
Join Date: Dec 2003
Posts: 138
Default

Rather than adjusting your httpd.conf or your root .htaccess to make all .html pages parsed for SSI, just add this to your .htaccess file:

XBitHack on

Then for any page(s) you want to parse for SSI, just change the permissions on that/those specific files to 0755.
__________________
Step 1: Join NSCash and grab your link codes.
Step 2: ???
Step 3: HUGE PROFITS!!!


Programmer Extrordinaire
venturi is offline   Reply With Quote
Old 04-23-2005   #12
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by venturi@Apr 23 2005, 10:59 PM
Rather than adjusting your httpd.conf or your root .htaccess to make all .html pages parsed for SSI, just add this to your .htaccess file:

XBitHack on

Then for any page(s) you want to parse for SSI, just change the permissions on that/those specific files to 0755.
It's good, however isn't it a pain in the arse having to write the permissions for every page you use includes on?

I ask because I'd say at least 90% of my pages use includes so I'd rather just upload it and forget it.
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-23-2005   #13
venturi
Members
 
venturi's Avatar
 
Join Date: Dec 2003
Posts: 138
Default

Quote:
Originally posted by Trev+Apr 23 2005, 02:08 PM-->
QUOTE (Trev @ Apr 23 2005, 02:08 PM)
__________________
Step 1: Join NSCash and grab your link codes.
Step 2: ???
Step 3: HUGE PROFITS!!!


Programmer Extrordinaire
venturi is offline   Reply With Quote
Old 04-24-2005   #14
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Hi guys

I have followed most of this, but I was wondering, for the benefit of those of us that might be less technically orriented...

Could you explain what it is that the stuff you are telling Nick to do does ?

I know that I have a cardinal rule to never include anything in my coding that I don't understand exactly what it is doing and why and I always recommend that folks follow that rule

Thanx in advance
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-24-2005   #15
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah@Apr 24 2005, 07:06 PM
Hi guys

I have followed most of this, but I was wondering, for the benefit of those of us that might be less technically orriented...

Could you explain what it is that the stuff you are telling Nick to do does ?

I know that I have a cardinal rule to never include anything in my coding that I don't understand exactly what it is doing and why and I always recommend that folks follow that rule

Thanx in advance
Hahahahah

Yeah right :P

Ok here's what I think, correct me if I'm wrong oh techless one:

Once this is inserted in to the root .htaccess:

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

The server will then parse every .html and .htm file that is called and check for virtual includes and include them before serving.


It’s very handy to use this for sponsor codes as you can change out hundreds of links by simply editing 1 .txt file.
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-24-2005   #16
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Trev@Apr 24 2005, 01:32 PM
The server will then parse every .html and .htm file that is called and check for virtual includes and include them before serving.
What's a virtual include ?
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-24-2005   #17
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah+Apr 24 2005, 07:43 PM-->
QUOTE (sarettah @ Apr 24 2005, 07:43 PM)
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-24-2005   #18
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Trev+Apr 24 2005, 01:47 PM-->
QUOTE (Trev @ Apr 24 2005, 01:47 PM)
Quote:
Originally posted by sarettah@Apr 24 2005, 07:43 PM
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-24-2005   #19
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah+Apr 24 2005, 07:50 PM-->
QUOTE (sarettah @ Apr 24 2005, 07:50 PM)
Quote:
Originally posted by Trev@Apr 24 2005, 01:47 PM
Quote:
Originally posted by sarettah@Apr 24 2005, 07:43 PM
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-24-2005   #20
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Guess your getting the rocks
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-24-2005   #21
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Trev@Apr 24 2005, 02:29 PM
Guess your getting the rocks
lolol...

yep, just got back a few minutes ago.

Didn't do quite a truck load but I think we now have enough for along the driveway (where my truck tires cut a ditch every winter) Our driveway has a little curve to it which looks real pretty but in actual use doesn't always work so well.
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-24-2005   #22
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah+Apr 24 2005, 11:28 PM-->
QUOTE (sarettah @ Apr 24 2005, 11:28 PM)
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-24-2005   #23
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Trev@Apr 24 2005, 05:30 PM
How did I score in the quiz, I gave myself a 4 out of 15 for explanation
How the hell do I know. I was the one asking the question remember ?

Ok, ok, yes, I know what a virtual include does (although I have yet to use one) so your explanation was a good start, you sort of explained an "include" in there which of course a virtual include is an "include" and you sort of pointed out the difference between the two with "Even though it has been pulled from somewhere else entirely.".

I probably would have said that a virtual include is an include that allows you to include a file from outside the site path ie: other places on the server

But I don't think a non techie would get mine either
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-24-2005   #24
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Trev@Apr 24 2005, 05:30 PM
Thank fuck!!! I thought you went to get them to throw at me
Why would I waste good rocks on that ?

I'm a Merican, I owns guns
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-24-2005   #25
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah+Apr 24 2005, 11:47 PM-->
QUOTE (sarettah @ Apr 24 2005, 11:47 PM)
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-24-2005   #26
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah+Apr 24 2005, 11:48 PM-->
QUOTE (sarettah @ Apr 24 2005, 11:48 PM)
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-24-2005   #27
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Trev@Apr 24 2005, 05:53 PM
You must be joking when you say you don't use includes!?!?!

How do you update pages without really updating them
Who updates ?
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-24-2005   #28
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah+Apr 25 2005, 12:00 AM-->
QUOTE (sarettah @ Apr 25 2005, 12:00 AM)
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-25-2005   #29
Dravyk
Easy Like Sunday Morning
Want to see your own Advertising Here!
 
Dravyk's Avatar
 
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
Default

Quote:
Originally posted by sarettah+Apr 24 2005, 06:00 PM-->
QUOTE (sarettah @ Apr 24 2005, 06:00 PM)
Dravyk is offline   Reply With Quote
Old 04-25-2005   #30
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Dravyk+Apr 25 2005, 01:27 AM-->
QUOTE (Dravyk @ Apr 25 2005, 01:27 AM)
Quote:
Originally posted by sarettah@Apr 24 2005, 06:00 PM
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-25-2005   #31
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah+Apr 25 2005, 11:25 AM-->
QUOTE (sarettah @ Apr 25 2005, 11:25 AM)
Quote:
Originally posted by Dravyk@Apr 25 2005, 01:27 AM
Quote:
Originally posted by sarettah@Apr 24 2005, 06:00 PM
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-25-2005   #32
Dravyk
Easy Like Sunday Morning
Want to see your own Advertising Here!
 
Dravyk's Avatar
 
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
Default

Quote:
Originally posted by Trev+Apr 25 2005, 05:27 AM-->
QUOTE (Trev @ Apr 25 2005, 05:27 AM)
Quote:
Originally posted by sarettah@Apr 25 2005, 11:25 AM
Quote:


Originally posted by Dravyk@Apr 25 2005, 01:27 AM
Old 04-26-2005   #33
Robert
Following the Get Rich Slow method.
 
Robert's Avatar
 
Join Date: Oct 2002
Location: Bellingham, WA
Posts: 316
Default

Quote:
Originally posted by Trev@Apr 23 2005, 02:25 PM

This be it:

<!--#include virtual="whatever.txt" -->
Can whatever.txt be on a different domain? If so, any drawbacks?
Robert is offline   Reply With Quote
Old 04-26-2005   #34
Grump
Buys wine at Publix!
 
Join Date: Jun 2004
Posts: 170
Default

It can be on a different domain on the same server if you use the server path in a php call, not sure about from a different server.



EDIT- I think it can also be done across domains on the same server without php using a virtual folder.
Grump is offline   Reply With Quote
Old 04-26-2005   #35
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by Grump@Apr 26 2005, 11:55 PM
It can be on a different domain on the same server if you use the server path in a php call, not sure about from a different server.



EDIT- I think it can also be done across domains on the same server without php using a virtual folder.
I use an include folder like you say in my root to pull the includes for my domains.

Includes as far as I'm aware need to reside on the same server.
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 04-26-2005   #36
Robert
Following the Get Rich Slow method.
 
Robert's Avatar
 
Join Date: Oct 2002
Location: Bellingham, WA
Posts: 316
Default

Thank you.
Robert is offline   Reply With Quote
Old 04-27-2005   #37
Jeremy
Members
 
Join Date: Apr 2005
Posts: 157
Default

Quote:
Originally posted by Grump@Apr 26 2005, 02:55 PM
It can be on a different domain on the same server if you use the server path in a php call, not sure about from a different server.



EDIT- I think it can also be done across domains on the same server without php using a virtual folder.
It depends on how your server is set up :-0)

There are times when it's advisable to have php includes outside of the web root (usually /html/), so you can only include it like:



Most common these days is to slap it in a folder inside the web root, so you can use relative or absolute linking as you would any other file on the server.

Relative:


Absolute:


(NB: this will allow it to be linked to from *any* domain, on-server or off-server - it can cause probs because php can only handle a certain amount of full URL connections).

If you have multiple domains on a server but only want to have one folder serving all the includes, you can either call it all from one location (/home/path/to/file) or you can be sneaky and alias /symlink a folder so it can be relative across all domains. You can do this in htaccess but it's better to alias stuff in apache config.

EG in your html you'd include "/includefolder/file" which would to all intents and purposes be served from domain.com/includefolder/file but in reality is served from /some/other/location/includefolder/file
Jeremy is offline   Reply With Quote
Old 04-27-2005   #38
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Jeremy@Apr 27 2005, 02:56 AM
you can be sneaky and alias /symlink a folder so it can be relative across all domains.
The Sims got links all over the damn net already, we don't have to give them any more DAMMIT !


I hate the SIMS :grrr:
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 04-29-2005   #39
D-man
Where am I and how did I get here?
 
Join Date: Jul 2003
Location: USA
Posts: 38
Default

you can also do .js includes on a .html and that does not require any .htaccess mods - on the down side if your doing say a tgp gallery you won't get listed with a js script on your page
D-man is offline   Reply With Quote
Reply

Bookmarks
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -4. The time now is 04:42 PM..


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022