![]() |
|
||
|
|
|
||
|
|
|||
|
|
|||||||
| Notices |
| Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here. |

![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |||
|
....
$100 for every ImLive sign-up
|
I am using cnstats for tracking, and need to put the code into my b2evolution blog, and for some reason when I put it in the _main.php like this: include "/usr/home/tabitha/public_html/jonstern/cnstats/cnt.php"; ?> it brings up some mysql errors, and won't let certain things access the database correctly here is the page I am trying to put it in...any ideas on how to do this without getting those errors? i know I probably have to tell it to grab that file another way, but I am not sure how Code:
display_if_empty(); // Display message if no post if( isset($MainList) ) while( $Item = $MainList->get_item() ) { locale_temp_switch( $Item->locale ); // Temporarily switch to post locale $MainList->date_if_changed(); // display post date if it changed $Item->anchor(); // Anchor for permalinks to refer to ?> |
|||
|
|
|
|
|
#2 |
|
....
$100 for every ImLive sign-up
|
oh, and as you can see, i have it trying to call the stats on the top of the page, in the first php part
include('./usr/home/tabitha/public_html/jonstern/cnstats/cnt.php'); but that is not working |
|
|
|
|
|
#3 | ||||
|
Cunty
Want to see your own Advertising Here!
Join Date: Jan 2003
Posts: 10,150
|
Quote:
* @package evoskins * @subpackage helsinki * It might not be the answer but it's a start.
__________________
Sucks to be you. |
||||
|
|
|
|
|
#4 | |
|
....
$100 for every ImLive sign-up
|
Quote:
and isn't this the * @package evoskins * @subpackage helsinki * if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' ); include('./usr/home/tabitha/public_html/jonstern/cnstats/cnt.php'); ?> |
|
|
|
|
|
|
#5 | |
|
Cunty
Want to see your own Advertising Here!
Join Date: Jan 2003
Posts: 10,150
|
Quote:
We need sarettah.
__________________
Sucks to be you. |
|
|
|
|
|
|
#6 |
|
Stay Out Of The Box
Want to see your own Advertising Here!
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
|
I looked. I don't see anything wrong there (or at least anything that souldn't work from a quick glance)
But, you said that "it brings up some mysql errors, and won't let certain things access the database correctly" when you place it where you want it. That sounds to me like something in the cnt.php is conflicting somewehere. Is the cnt.php using calls to the same MYSql connection as the main script, or is it creating a new connection to pull from ? Does the cnt.php script possibly close the existing MYSql connection ? Have you tried placing the cnt.php into the same folder as the main script and calling it from there (without the full pathing) ? Another way to debug stuff like this is to make a copy of the main, cut and paste all of the cnt.php into the copy exactly where you want it and see if it works, if nothing else it might pop a more accurate error for you. If you want to zap a copy of cnt.php to me I will take a look and see if I can see anything glaring out at me
__________________
![]() Free Adult Webcams |
|
|
|
|
|
#7 | |
|
Banned
Want to see your own Advertising Here!
Join Date: Oct 2002
Location: Vancouver Canada
Posts: 15,115
|
Quote:
;-))) |
|
|
|
|
|
|
#8 | |
|
....
$100 for every ImLive sign-up
|
Quote:
i will hook you up with some nice text links and some traffic for your time if you want
|
|
|
|
|
|
|
#9 | |
|
Cunty
Want to see your own Advertising Here!
Join Date: Jan 2003
Posts: 10,150
|
Quote:
__________________
Sucks to be you. |
|
|
|
|
|
|
#10 |
|
....
$100 for every ImLive sign-up
|
wtf??? now it is working
a week of trying to figure this out, i finally deducted what was causing the problem...i remove it, and shit work...now I put it back in there and all the sudden it works? fucking wierd |
|
|
|
|
|
#11 | |
|
Easy Like Sunday Morning
Want to see your own Advertising Here!
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
|
Quote:
|
|
|
|
|
|
|
#12 | |
|
Stay Out Of The Box
Want to see your own Advertising Here!
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
|
Quote:
I'm the one who fixed it. I took a look and voila, it all works. So, I will send my bill.... dammit (lololol...the last email I sent before I came back here was "Do you have this set up somewhere so I can see the errors you're getting"...lolololol....
__________________
![]() Free Adult Webcams |
|
|
|
|
|
|
#13 |
|
....
$100 for every ImLive sign-up
|
i am comletely lost as to what happened...and my inquisiting mind needs to know why it is working, but I guess I will leave well enough alone
|
|
|
|
![]() |
| Bookmarks |
|
|