| Author |
Message |
vicweb
Joined: 24 Jun 2007 Posts: 6
|
Posted: 27 Jun 2007 14:15 Post subject: how to use protectx script at Dreamhost hosted sites |
|
|
If you can not insert the protectx script in your site hosted by Dreamhost into a .shtml page, you will solve the situaition creating an .htaccess file with this directive into it ( or adding the following line if you already have that file ) :
Addhandler application/x-httpd-php .shtml
Then, you can use php includes into a .shtml page
Last edited by vicweb on 17 Feb 2008 13:01; edited 1 time in total |
|
| Back to top |
|
Protect-X Support

Joined: 30 Oct 2006 Posts: 934 Rank: 35
|
|
| Back to top |
|
ciacho
Joined: 15 Oct 2007 Posts: 2
|
Posted: 16 Oct 2007 08:02 Post subject: |
|
|
I have problem with this .htaccess file and smart-thumbs script.
My index page is .shtml format.
When I create .htaccess file with:
| Code: | | Addhandler application/x-httpd-php .shtml .php |
Another global values from php.ini are changed (restrictions open_basedir register globals and others).
It leads for impossibility of usage the smartthumbs script.
Is it any another trick?
---------------------------EDIT---------------------
Problem solved - exec() function & array_shift() & echo() solve this.
--------------------------END_EDIT---------------- _________________ Nice Porn Pics | X Pics Blog |
|
| Back to top |
|
Protect-X Support

Joined: 30 Oct 2006 Posts: 934 Rank: 35
|
|
| Back to top |
|
ciacho
Joined: 15 Oct 2007 Posts: 2
|
Posted: 17 Oct 2007 06:28 Post subject: |
|
|
Hmm... It isn't a good solution. I trying insert this code (in my smart thumbs template):
| Code: |
<?php
exec('/full_path_to_at3_script/cgi-bin/at3/in.cgi', $output);
array_shift($output); // remove first line
echo(join('', $output)); // output contents
?> |
And in first look all is ok, but incoming clicks isn't counted.
There are 3 solutions:
1 - change traffic trade script
2 - move to another hosts
3 - don't use ProtectX _________________ Nice Porn Pics | X Pics Blog |
|
| Back to top |
|
Protect-X Support

Joined: 30 Oct 2006 Posts: 934 Rank: 35
|
Posted: 17 Oct 2007 15:40 Post subject: Protect-X Script installation |
|
|
thank you for reply!
It depends on a file you include script to. If you have .php template there might be no probs with script including. Try to switch template extension to php in case you have not yet. _________________ Free A-B-C-D Hard Links Exchange Automatic System:
http://www.protect-x.com/index.php?go=shardlinks
Visit other Protect-X sections:
Find/Add NEW SPONSORS:
http://www.protect-x.com/index.php?go=findsponsors |
|
| Back to top |
|
dailyamateurs
Joined: 04 Dec 2007 Posts: 8
|
Posted: 05 Dec 2007 15:43 Post subject: |
|
|
i have found this solution too but i found this line on google :
AddType application/x-httpd-php php php4 php3 html htm
i add this line to my .htaccess file and now the php code works fine in my html file |
|
| Back to top |
|
Protect-X Support

Joined: 30 Oct 2006 Posts: 934 Rank: 35
|
|
| Back to top |
|
xxxpornworld
Joined: 19 Mar 2008 Posts: 1
|
Posted: 21 Mar 2008 21:54 Post subject: Dreamhost |
|
|
| I ended up using servage for a few of my domains because Dreamhost (and dont get me wrong, I love them and have been a customer since they started) Disables fopen. Period, no matter what you say. |
|
| Back to top |
|
sinlady
Joined: 30 May 2010 Posts: 16
|
Posted: 07 Jun 2010 03:27 Post subject: |
|
|
| i using dreamhost , i have problem with setup hardlink too , anyone can help me ? |
|
| Back to top |
|
|
|
|
|
|
|
|
|