Welcome, Guest. Please Login or Register.
April 22, 2025, 09:46:03 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  News.php unable to pull latest topics « previous next »
Pages: [1] Reply Ignore Print
Author Topic: News.php unable to pull latest topics  (Read 296 times)
Sausage
Full Member
***
Posts: 122


I'm a llama!

News.php unable to pull latest topics
« on: September 15, 2003, 12:30:24 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 4.0.x
Server Platform: Unix, Linux, or BSD
Link to Forum: http://machinemess.singaporeanimenews.net/index2.php

Problem Description:
In my index2.php file, I have this line.

<? include("http://machinemess.singaporeanimenews.net/YaBBSE/index.php?action=news&board=1"); ?>


However, when I access the index2.php, there is a very long delay, followed by these errors.

Warning: main() [function.main]: php_hostconnect: connect failed in /home/hsphere/local/home/cmwong/machinemess.singaporeanimenews.net/index2.php on line 17

Warning: main(http://machinemess.singaporeanimenews.net/YaBBSE/index.php?action=news&board=1) [function.main]: failed to create stream: Connection timed out in /home/hsphere/local/home/cmwong/machinemess.singaporeanimenews.net/index2.php on line 17

Warning: main() [function.main]: Failed opening 'http://machinemess.singaporeanimenews.net/YaBBSE/index.php?action=news&board=1' for inclusion (include_path='.:/usr/local/lib/php') in /home/hsphere/local/home/cmwong/machinemess.singaporeanimenews.net/index2.php on line 17



Accessing the forum directly poses no problem. The problem only arises when I try to view the latest topics via the news this way.

Does anyone know what the problem is?
Logged
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:News.php unable to pull latest topics
« Reply #1 on: September 15, 2003, 01:51:05 PM »
Reply with quote

I did some experimenting and discovered something.

Accessing the news url directly via the browser by pointing it to

http://machinemess.singaporeanimenews.net/YaBBSE/index.php?action=news&board=1

Gives the latest topics instantly.

However, if the line

<? include("http://machinemess.singaporeanimenews.net/YaBBSE/index.php?action=news&board=1"); ?> resides in the calling php file, I have to wait more than 1 minute before anything appears, and all that appears are the above error messages.


Does anyone know what's going on here?
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:News.php unable to pull latest topics
« Reply #2 on: September 15, 2003, 03:02:11 PM »
Reply with quote

Do it as @include and see if that works.  :)
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Sausage
Full Member
***
Posts: 122


I'm a llama!

Re:News.php unable to pull latest topics
« Reply #3 on: September 16, 2003, 10:56:55 PM »
Reply with quote

I've checked out the error log and this is what it reported.

Guest : 203.117.141.158 : September 15, 2003, 09:34:08 AM
/YaBBSE/index.php?action=news&board=1
2: Unknown(): open(/tmp/sess_fa1e457a7d44153049424ce39daef384, O_RDWR) failed: Permission denied (13) <br />(Unknown ln 0)


If you check out my board, access is very very slow when I click on threads. Viewing the thread index is fast enough.

http://machinemess.singaporeanimenews.net/YaBBSE/index.php

Does anyone know what's wrong?
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:News.php unable to pull latest topics
« Reply #4 on: September 17, 2003, 03:57:44 AM »
Reply with quote

Turn off Avatar sizing, turn off physical image sizing, clear out your click log table completely, clear out your activity log, clear out your error log, optimize your database.  That should speed it all up for you.  :)
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  News.php unable to pull latest topics « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.063 seconds with 21 queries.