|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
PHP Question ...
How else can i include a php file into my .shtml file?
TTT Script tells me to use this: [!--#include file="ttt-in.php" --] which has worled for me on other servers, but this new server has a problem with that format. I tried: [!--#include file="http://www.domain.com/ttt-in.php" --] but that didnt work Any other ways?
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
uhm, did you replace [ ] with < > ??
|
|
|
|
#3 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
The [ should be a <, but I assume you know that.
You need to have the relative server path to the file, not the url. Try this: [!--#include virtual="ttt-in.php" --] (replace the ] and [ with > and < ofcourse)
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#4 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
no why would i do that?
lol j/k ofcourse i did btw nice sig, lol
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
![]() |
|
|
|
#6 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
ok ill go try it, thanks for trying to help. Ill keep you posted.
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
You gotta have SSI enabled on your server in order for it to work. Ask your noc.
|
|
|
|
#8 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Btw, what error message do you get?
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#9 |
|
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
php and ssi dont go along..
Just convert the page to php..no need for ssi if php is enabled on the machine. |
|
|
|
|
|
#10 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
![]()
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#11 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
Ok nope didnt work, its still showing all hits as bookmarks. Any other ideas? BTW Im assuming that goes between the [head] [/head] tags?
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
|
#12 |
|
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
you can, ofcourse, include a php files content with shtml but youll experience processing/execution difficulties by default.
|
|
|
|
|
|
#13 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
hit me up on icq, 85992840
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#14 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
ok i changed it to .php same issues. It is counting all hits as bookmarkers even though i know the hit came from a referrer. Any other ideas?
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
|
#15 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
so nobody knows any other ways to include a php file?
there must be more than one way, lol
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
#16 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Ok this is what i have tried ...
with main page as a .shtml, [!--#include file="ttt-in.php" --> (within the head> tags) [!--#include file="ttt-in.php" --> (outside the head> tags) [!--#include file="http://www.totaltwat.com/ttt-in.php" --> (within the head> tags) [!--#include file="http://www.totaltwat.com/ttt-in.php" --> (outside the head> tags) [!--#include virtual="ttt-in.php" --> (within the head> tags) [!--#include virtual="ttt-in.php" --> (outside the head> tags) with main page as a .php, [?php include("ttt-in.php"); ?> (outside head> tags) [? require("wb_pgm.inc"); ?> (outside head> tags) [!--#include file="ttt-in.php" --> (within the head> tags) [!--#include file="ttt-in.php" --> (outside the head> tags) [!--#include file="http://www.totaltwat.com/ttt-in.php" --> (within the head> tags) [!--#include file="http://www.totaltwat.com/ttt-in.php" --> (outside the head> tags)
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
#17 |
|
Confirmed User
Join Date: Mar 2002
Location: how'd I get here?
Posts: 264
|
Unless you're running Apache2, you cannot process a file through more than one module (SSI, or PHP). The solution then is this:
<?php require_once("/path/to/file.php"); ?> alternatively, you can configure to look at a list of paths to find files, called the include_path. If your file is in one of those directories, you can include it as just require_once("filename.php"); Recommend you trying running a page with just this command to see how your PHP is configured: <?php phpinfo(); ?> (had to change < to & lt ; in order for it to render in phpBB)
__________________
[this signature intentionally left blank] |
|
|
|
|
|
#18 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
here is the result: http://totaltwat.com/test.php here is my page with the !--#include: http://totaltwat.com/index.shtml here is my page with .php extension: http://totaltwat.com/index.shtml nothing is working. All the hits still register as bookmarkers meaning the cookie is not working (the php include)
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
|
#19 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Edit your post <i>now</i>. You do <b>not</b> want to give out the details of phpinfo() to a bunch of strangers.
The problem lies in the fact that you use revsharehosting, I am 99% certain of that. Try to find some people who have dealt with that problem before. (ie the problem of the trade script not recognizing referers) Also, the problem most likely isn't the cookie, since that is used for counting productivity, not hits.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#20 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
omg, lol ok i deleted the file, rofl
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
|
|
|
|
|
#21 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
yes that is the problem, im trying to find a way to get it working. Ive tried on rev's board, and on chicken board, figured id try here also. |
|
|
|
|
|
|
#22 |
|
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
This is just a hunch, but try this...
<?php echo $_COOKIE["ttt_cookie"]; ?> This will show if your PHP scripts are seeing the TTT cookie. |
|
|
|
|
|
#23 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Instead of including the ttt-in.php, try including a php script containing the following:
PHP Code:
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#24 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
Ok i did it and it echoed some numbers, i guess the name of the cookie? http://www.totaltwat.com/test.php |
|
|
|
|
|
|
#25 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
ok gimme a sec |
|
|
|
|
|
|
#26 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
ok you guys click this so i can see if its logging ref's http://totaltwat.com/test2.php |
|
|
|
|
|
|
#27 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
|
|
|
|
|
|
#28 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#29 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#30 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
why do they keep disapering? and what does that accomplish? |
|
|
|
|
|
|
#31 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
but i use this script on a few other sites and never had problem, and a zillion other people use it too .... only problem is on revshare |
|
|
|
|
|
|
#32 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
btw, you can delete the test2.php and refs.txt from your server now.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#33 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
How many trades do you have in your script?
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#34 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
yes i know the problem is in revshare, lol ... i was hoping to find a way to call the php that will work with the bug within revshare. I have 4 trades in my script. |
|
|
|
|
|
|
#35 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#36 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
That means the problem is with revsharehosting, and so far nobody has been able to figure out what it is yet.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#37 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
I have contacted server admin and he is "looking into it", just figured someone here might help me find a resolve. |
|
|
|
|
|
|
#38 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
this is an exact copy of an email the admin wrote me ...
i was just looking through the board of turbotraffictrader.com and it seems there's a lot of issues regarding the hit counter... please refer to the http://www.chickenboard.com/read.php?f=13&i=1276&t=1276 this guy is talking about the full server path which i think this is the only issue... we are currently using PHP 4.2.3 which it is compatible with their script. alot of people are having problem with this hits and this is the key issue is the server path...please let me know what paths you have setup for the script? Now what exactly is a server path and how do i change it? |
|
|
|
|
|
#39 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
You can either use absolute paths, for instance: /var/www/html/in.php /blegh/blagh/www/httpdocs/cj/in.php or relative paths, for instance: in.php cj/in.php
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#40 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Now, the question is what paths are used in the script.
For instance, it could be that $_SERVER['DOCUMENT_ROOT'] is used as the path to the scripts, which on certain servers may give problems.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#41 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
if (time() > $row[1]) { require_once("ttt-do_reset.inc.php"); dailylog(); } thats a line from the script, so it uses simple path's? |
|
|
|
|
|
|
#42 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Everything below this is illegal. Do it at your own risk. (It might work though).
In ttt-in.php, replace $referer = getenv("HTTP_REFERER"); $ip = getenv("REMOTE_ADDR"); with $referer = $_SERVER["HTTP_REFERER"]; $ip = $_SERVER['REMOTE_ADDR']; I repeat, this is illegal, and Choker may get pissed off because of it. If you tell him, that is.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#43 | |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
well it would prolly work since obviously you know your stuff, but ive already had a run-in with choker about editing his script, never again, lol Thanks though |
|
|
|
|
|
|
#44 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
or maybe if i edit it, he will get pissed at me and send me 5 million free hits?
lol j/k |
|
|
|
|
|
#45 |
|
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
damnit, server admin still cant figure it out and lord knows im as useless as a set of tits on a bull, lol
|
|
|
|