You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 271 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Speedup mainfile.php [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Poll :: This speed upgrade was usefull for me ?

Yes
61%
 61%  [ 64 ]
A bit
26%
 26%  [ 28 ]
No
11%
 11%  [ 12 ]
Total Votes : 104


Author Message
EscortCossie
Lieutenant
Lieutenant


Joined: Feb 21, 2004
Posts: 235

Location: Stavanger, Norway

PostPosted: Tue Mar 23, 2004 2:45 am Reply with quoteBack to top

Thanks a lot.. I went from 0.450 in average to 0.250 Very Happy

Great stuff djmaze.. tnx Cool

_________________
Image
Visit the Ford Escort Portal >> EscortPower.net!
Find all posts by EscortCossieView user's profileSend private messageVisit poster's website
NanoCaiordo
Private
Private


Joined: Dec 21, 2003
Posts: 41

Location: Italia

PostPosted: Tue Mar 23, 2004 5:58 am Reply with quoteBack to top

Ciao tutti,
yes its working very well from 0.250/0.400 i got 0.120/0.300 thats good enougth ty a lot !!!
Find all posts by NanoCaiordoView user's profileSend private messageVisit poster's website
Andrzej
Nuke Soldier
Nuke Soldier


Joined: May 23, 2003
Posts: 32


PostPosted: Tue Mar 23, 2004 7:21 am Reply with quoteBack to top

djmaze wrote:

A good example is block-Survey thatone uses about 25 SQL queries.
I managed to reduce that to only 3 queries.
http://cvs.sourceforge.net/viewcvs.py/phpnuke65-cpg/html/blocks/block-Survey.php


I have an error Confused :
Fatal error: Call to undefined function: getlink() in /blocks/block-Survey2.php on line 37

Can you help?

PHPNuke 6.5

Andrzej
Find all posts by AndrzejView user's profileSend private messageVisit poster's website
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Tue Mar 23, 2004 8:33 am Reply with quoteBack to top

Andrzej that was about an old version of my survey fix.

Check an old block-survey revision which doesn't have "getlink(" in it.
Find all posts by djmazeView user's profileSend private messageVisit poster's website
richieboy
Nuke Cadet
Nuke Cadet


Joined: Jan 05, 2004
Posts: 4


PostPosted: Tue Mar 23, 2004 8:55 am Reply with quoteBack to top

Great work boys!
Page Generation: 0.267 Seconds is what im geting now it used to be as much as 0.500. Cheers!
Find all posts by richieboyView user's profileSend private message
Andrzej
Nuke Soldier
Nuke Soldier


Joined: May 23, 2003
Posts: 32


PostPosted: Tue Mar 23, 2004 10:20 pm Reply with quoteBack to top

djmaze wrote:
Andrzej that was about an old version of my survey fix.

Check an old block-survey revision which doesn't have "getlink(" in it.


Thanks it (1.4) works

Andrzej
http://www.prawica.net
Find all posts by AndrzejView user's profileSend private messageVisit poster's website
WTD
Nuke Cadet
Nuke Cadet


Joined: Mar 01, 2004
Posts: 9


PostPosted: Wed Mar 24, 2004 12:03 am Reply with quoteBack to top

wow , what a great tweat thank you guys

my page generation was dropping from .700+ down to .200+ Smile

_________________
Image
Find all posts by WTDView user's profileSend private message
Stephen2417
Major
Major


Joined: Dec 26, 2003
Posts: 1135

Location: Bristolville, OH (US)

PostPosted: Fri Mar 26, 2004 1:04 pm Reply with quoteBack to top

WOW, Worked again.. I just did this to my custom pack of 7.2 im workin on and it went from .557 to .123... YEA
Find all posts by Stephen2417View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Sp4c3J4m
Corporal
Corporal


Joined: Mar 21, 2004
Posts: 56

Location: Brazil

PostPosted: Mon Apr 05, 2004 5:50 pm Reply with quoteBack to top

djmaze

I Know, YOU IS a Image

So, this GOOD WORK SHOULD BE from the other 2 in the team, Steven111 and Raven !!!!!!!!! Shocked

THIS make a GREAT Diference HEAR at my site Arrow www.fromspace.com.br

And i NOTE that as a USER it takes more long than as ANONYMOUS.

BUT, this go a least a HALF the TIME, i can GOT things bellow 1 SECOND.

THIS is SIMPLE GREAT!!!!!

THANKS!! ans I´m with an eye in CPG nuke, FOR SHURE!

_________________
Image
Find all posts by Sp4c3J4mView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
djmaze
Captain
Captain


Joined: Nov 29, 2003
Posts: 566

Location: Netherlands

PostPosted: Tue Apr 06, 2004 10:09 am Reply with quoteBack to top

Sp4c3J4m wrote:
So, this GOOD WORK SHOULD BE from the other 2 in the team, Steven111 and Raven !!!!!!!!! Shocked

THIS is SIMPLE GREAT!!!!!

THANKS!! ans I´m with an eye in CPG nuke, FOR SHURE!


Don't you love it when a plan comes togethere ?
I'm happy you love it Razz

1 notices and use a workaround
The second comes with a better solution
The 3rd cleans the code

Now that's teamwork !!!!

_________________
Famous people never give their signature Rolling Eyes
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please Exclamation
Find all posts by djmazeView user's profileSend private messageVisit poster's website
Sp4c3J4m
Corporal
Corporal


Joined: Mar 21, 2004
Posts: 56

Location: Brazil

PostPosted: Tue Apr 06, 2004 12:46 pm Reply with quoteBack to top

Sense of Humor is a Inteligence Sign!

Whats that poping around?? Laughing more signs? Laughing

Hasta!

_________________
Image
Find all posts by Sp4c3J4mView user's profileSend private messageVisit poster's websiteMSN MessengerICQ Number
nukelover
Sergeant
Sergeant


Joined: Dec 28, 2003
Posts: 87


PostPosted: Sat Apr 10, 2004 12:17 am Reply with quoteBack to top

hey
i have this error when add function get_author($aid) hack
Fatal error: Cannot redeclare get_author() (previously declared in /home/webshark/public_html/mainfile.php:782) in /home/webshark/public_html/mainfile.php on line 804

now i delete it and it works but my site is not big so may be coz of it i dont see a speed up Rolling Eyes
Find all posts by nukeloverView user's profileSend private message
SertTurk
Sergeant
Sergeant


Joined: Aug 29, 2003
Posts: 91

Location: Fort Lauderdale,FL

PostPosted: Fri Apr 16, 2004 9:18 am Reply with quoteBack to top

Why am I getting this error?

Parse error: parse error in /nfs/home/apollo5/public_html/main/mainfile.php on line 218

Fatal error: Call to a member function on a non-object in /nfs/home/apollo5/public_html/main/index.php on line 18

Anyone who can help me ,please read my first post.I need help with editing the mainfile.php
http://www.nukecops.com/postt27188.html
Thanks!
Find all posts by SertTurkView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
c4efc
Lieutenant
Lieutenant


Joined: Feb 16, 2004
Posts: 167

Location: Milton Keynes

PostPosted: Tue Apr 20, 2004 5:53 am Reply with quoteBack to top

call me stupid.....pauses.

when i try to replace the functions i get errors

Code:

Parse error: parse error in /home/*/*/*****/public_html/mainfile.php on line 339

Fatal error: Call to a member function on a non-object in /home/*/*/*****/public_html/index.php on line 22


line 339 on mainfile is (lines 324-339)
Code:
function is_active($module) {
    global $prefix, $db;
    static $save;
    if (is_array($save)) {
        if (isset($save[$module])) return ($save[$module]);
        return 0;
    }
    $sql = "SELECT title FROM ".$prefix."_modules WHERE active=1";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
        $save[$row[0]] = 1;
    }
    if (isset($save[$module])) return ($save[$module]);
    return 0;
}
}


error in index.php is (lines 19-25)


Code:
require_once("mainfile.php");
$_SERVER['PHP_SELF'] = "modules.php";
$sql = "SELECT main_module from ".$prefix."_main";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$name = $row[main_module];
$home = 1;


any idea what i have done wrong?

cheers
Find all posts by c4efcView user's profileSend private messageVisit poster's websiteMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Apr 22, 2004 8:19 am Reply with quoteBack to top

How's this working out? I've implemented some special stuff but haven't read up on this lately (for obvious reasons).

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.059 Seconds - 298 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::