Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-12-30, 05:54 PM   #1
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
changing extensions

Hi guys

I am thinking of changing the pages on 1 of my sites from .html to .php for functional purposes. The problem is that I have a lot of link trades on these pages. I am wondering if it would be ok to make these changes as long as I let the people I have linktrades know about the changes so they can fix their links to me, and ofcourse, cancel the trade if they prefer it that way instead.

Thanks for Your thoughts
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Old 2006-12-30, 09:38 PM   #2
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Maybe I'm misunderguessing what you're trying to do, but if you just want to have php functions available on pages with html extensions you can do that by adding the one line below to your .htaccess file.

Code:
AddType application/x-httpd-php .html
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2006-12-30, 09:55 PM   #3
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
so if that line is in my .htaccess file I can do a regular php function on a .html page just as if it were a .php page?
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Old 2006-12-31, 05:38 AM   #4
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Yes, with that line in your htaccess, you're telling your server to parse html pages looking for executable instructions. The only caveat is that it takes a server a little longer to process each page that way. But not really any longer than if you were using php extensions.

If you have any directories where you don't use PHP on the pages, you can add an htaccess file to those directories to stop the html pages from being parsed to look for php code. Otherwise the one htaccess at your root level will control all directories
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2006-12-31, 11:11 AM   #5
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
cool, thanks for the help
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Old 2007-01-02, 10:04 PM   #6
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
I added that line to the .htaccess and tried uploading it with some code I know works on a .php page, but it wont work on my .html page.

Here is the .htaccess file as it looks now:

AddType application/x-httpd-php .php .html
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pornpartyporn\.com [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^http://.*$
RewriteRule \.(jpe?g|gif|bmp|png|jpg|mpg|mpeg|wmv)$ http://www.pornlinkworld.com/freesites/hotlink.gif [L]

What am I doing wrong?
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Old 2007-01-03, 06:36 AM   #7
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Did you already have the line below in your .htaccess file?

Code:
AddType application/x-httpd-php .php
I'm wondering if you just added the ".html" to the end of that line or if you added the whole line including the ".php" before the ".html" on your own.

If you added the whole line, you might want to try it with just the ".html" in there, instead of having ".php .html" on that line. I think that worked for me on something once.

One other thing, I've seen comments about how if your host is running suPHP you may need to edit that line to remove the "/application/" text from it.

Aside from that, I'm not sure why it wouldn't be working for you.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2007-01-03, 06:42 AM   #8
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
I added the line, first with .html only, then with .php only, then with both since I read on a board that it was ok to do that, then I saw the thing You said with suPHP also, so I tried that aswell and it still didn't work

the php code still should be in a <?php function ?> right? and should still be able to acces my database and everything when doing that right?
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Old 2007-01-03, 07:13 AM   #9
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Yep, if you have the line of code I posted in your .htaccess file, then you should be able to put your php code in your html files just like you're doing and it should work fine. If there's not some other .htacess file in another place which is affecting things, I'm not sure what else it could be. We may need to wait for someone smarter to wake up.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2007-01-03, 07:23 AM   #10
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
There is someonne smarter than us?! I didn't think that was possible :p
__________________
Porn Safe Submit Free Sites
Porn Party Porn Submit Free Sites
Xallow is offline   Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT -4. The time now is 12:48 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc