PHP Slow?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
yvesvelazco01
-


Joined: 30 Mar 2003
Posts: 1

PostPosted: Tue Apr 01, 2003 4:11 pm    Post subject: PHP Slow? Reply with quote

Hello Everyone

I'm sorta newby with Abyss Web Server. Been running it for almost a week now and for what I can tell so far! This kicks some serious a$$ compared to other web servers I have used. Easy to configure and maintain.
Anyways, my question is, does php scripting affect the load process time when the browser request for a page? Because it seems like when I request for a html page, it loads faster than a php. Is there some sort of tweaking that I can do at my end to make the php pages load faster?
Setup:
> Windows XP Professional
> Abyss Web Server
> PostNuke CMS
> MySQL
> Athlon XP 1600+
> 512MB DDR
>40GB ATA/100
>Cable Connection
> Dynamic redirection provided by 2mydns.com
Any suggestions or feedback is greatly appreciated!

-=[ yves ]=-[/url]
Back to top View user's profile Send private message
roadblock
-


Joined: 01 Apr 2003
Posts: 3

PostPosted: Tue Apr 01, 2003 7:13 pm    Post subject: RE: PHP Slow? Reply with quote

php is a processing language. It takes the php page and processes it with the code, so it woulkd take longer to load because the page is being processed before it is sent to the connections
Back to top View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Tue Apr 01, 2003 7:16 pm    Post subject: I don't think you can Reply with quote

A php script is a server side program that lives on the server lol you already know that but anyway when you run a .php script it might take awhile because wen you run a .php it runs the program from the server so what that means is, a .php goes through 2 stages it loads and it runs from the server and i think a MYSQL is needed for some scripts.

THATS BEST I CAN DO ! :D

Hope i explained it correct :lol:
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ko77ko
-


Joined: 08 Apr 2003
Posts: 5

PostPosted: Tue Apr 08, 2003 11:12 am    Post subject: Reply with quote

I don't know if I am right... I have 7 windows http servers installed - Apache, miniServer, HSWeb, Abyss, KFWeb, WebWeaver and Xitami... I made some tests (using the same PHP scripts) and I cannot say that Abyss is fast when we talk about PHP... In fact miniServer and HSWeb are the fastest ones ( occasionally 5 times faster than the others!!! ) but unfortunately they have no extended features. :(
Back to top View user's profile Send private message
nokiahackman
-


Joined: 12 Apr 2004
Posts: 10

PostPosted: Mon Apr 12, 2004 8:07 pm    Post subject: Reply with quote

Got to say that so far I have been impressed with Apreliums web server - but I too have to complain about SLOW PHP scripts - although I am running a win98 p233 pc. When accessing an MS ACCESS database via a simple php script via odbc, it is taking 3 - 10 seconds before it displays the page. On the same machine, a dsnless connection to the same database via MS Personal Web server (ASP) is almost instantaneous. I know I am limited to the 10 concurrent user limit on PWS - but instantaneous is is much better that 3 - 10 seconds.

I know that PHP is scripted and since has to load...but so does ASP does it not. So why the difference in speed?

Unforutnately I cannot try AHTML - as it will not work with win98 for comparison. Sure...I need to upgrade my web serevr too to a better machine.
Back to top View user's profile Send private message
Water Is Clear
-


Joined: 27 Mar 2004
Posts: 43

PostPosted: Tue Apr 13, 2004 1:23 am    Post subject: Reply with quote

U shouldnt have a problem with slowness, just dont run so many applications using to much cpu power/ram and it will be fast,
Rendering should take like at most 1(even less) second with 500mhz+, 2-3seconds with 500 and below.
Ive seen a 1.4ghz render in 0.09seconds..
so you should be fine. also your upload speed matters...
Back to top View user's profile Send private message Visit poster's website
hellraiser_rob
-


Joined: 16 Oct 2003
Posts: 11

PostPosted: Tue Apr 13, 2004 4:57 pm    Post subject: Reply with quote

well at least its not as slow as asp, what a joke
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Apr 14, 2004 1:52 pm    Post subject: Reply with quote

nokiahackman,

The problem comes from the PHP ODBC drivers. They are known to be slow.
Why no using COM to access your MsAccess database (using ASP-like semantics):

Code:
$conn = new COM("ADODB.Connection")
or die("Cannot start ADO");
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=./thefile.mdb;");
$rs = $conn->Execute("SELECT * FROM thetable");

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
j_browne
-


Joined: 26 Mar 2004
Posts: 13

PostPosted: Thu Apr 15, 2004 5:11 pm    Post subject: Reply with quote

ooo, thanks aprelium!
I've been forced to do a site in Access because the client is hosted by Telstra Bigpond (Australia) and - lol get this - they don't offer a MySQL database with any packages.
One word: Bigpond Sucks At EVERYTHING! :lol:

I've only just started using ODBC (contract signed this a.m.) so it's not too late to change...
Back to top View user's profile Send private message
nokiahackman
-


Joined: 12 Apr 2004
Posts: 10

PostPosted: Sat Apr 17, 2004 11:23 am    Post subject: Reply with quote

Excellent...the COM stuff is much faster. Many thanks.

Have been considering MYSQL - would anyone recommend that on a win98 233 mhz with 64mb ram...and of course Abyss?
Back to top View user's profile Send private message
Foxified
-


Joined: 13 Apr 2004
Posts: 487
Location: Canada

PostPosted: Sat Apr 17, 2004 1:04 pm    Post subject: Reply with quote

itll work fine, just a lil slow, but probably _bearable_ as long as u dont have many cpu whoring apps ;)
Back to top View user's profile Send private message Visit poster's website AIM Address MSN Messenger
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Sun Apr 18, 2004 3:16 am    Post subject: Reply with quote

I used to run a mySQL database on a 133MHz processor; and it went fairly fast (2-3 seconds). One thing people have failed to mention is the internet connection. Usually, your internet connection is the more prominant deciding factor than the computer.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Apr 18, 2004 5:00 pm    Post subject: Reply with quote

nokiahackman,

You'll find in the MySQL directory a file called my-small.cnf that you can use as a template for your MySQL configuration file. It contains settings that are recommended for a small computer.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
greywolf
-


Joined: 12 Feb 2004
Posts: 9

PostPosted: Mon May 10, 2004 2:22 pm    Post subject: PHP IS NOW SLOW Reply with quote

OK, I can be like some of the lamers on this site and take the easy way out and say Abyss sucks.
Unfortunatly that isn't the case, I know I did something wrong because Abyss works fine, no problems.
When I first installed E107 everything was fine. now I get.

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Abyss Web Server\htdocs\e107\e107_handlers\errorhandler_class.php on line 22

Sorry guys, I MUST HAVE DID SOMETHING. the first time everything whipped right along using http://localhost .
now this, ITs not ABYSS, Its not the computer, any suggestions?
Back to top View user's profile Send private message
greywolf
-


Joined: 12 Feb 2004
Posts: 9

PostPosted: Mon May 10, 2004 2:45 pm    Post subject: Reply with quote

I knew I was retarded and it wasn't ABYSS. IN E107 I set up a newsfeed wrong. slowed me up drastically, now everything is snapping back in place like it should be! The Cyber Police should come to my house and arrest me for being to stupid to own a computer.
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon May 10, 2004 11:48 pm    Post subject: Re: PHP IS NOW SLOW Reply with quote

greywolf wrote:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Abyss Web Server\htdocs\e107\e107_handlers\errorhandler_class.php on line 22

Abyss has a default setting of a 30 second maximum when executing CGI scripts.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
greywolf
-


Joined: 12 Feb 2004
Posts: 9

PostPosted: Tue May 11, 2004 12:14 am    Post subject: Reply with quote

Yep I know, thanks. But that had nothing to with it. Normally when I refresh
E107 it takes about 1 - 2 seconds. All of a sudden it was taking over 1 minute 20 seconds. When I shut the news feed off, it works fine. I THOUGHT it might have been a setting in ABYSS but I can duplicate it by turning that e107 option back on. Now I gotta figure out why thats doing that.
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue May 11, 2004 12:44 am    Post subject: Reply with quote

Who is the news feed coming from? If it is from another site that doesn't have very much bandwidth, then that could be your problem.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
greywolf
-


Joined: 12 Feb 2004
Posts: 9

PostPosted: Tue May 11, 2004 1:17 am    Post subject: Reply with quote

OK, you must know something about me, I can't leave well enough alone! I typed in http://www.yahoo.com into it. LOL, that did it. I got e107 running perfectley now. I give it 4 stars, AByss gets 5 stars, I am now trying to figure out why I get a blank page on PHPnuke. Unfortnutley Aprelium forums gives me to much to do and so little time! On to the next problem!
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue May 11, 2004 2:10 am    Post subject: Reply with quote

Just stick with e107 if you can get it to work. If you really want PHP-Nuke, then try reinstalling everything (MySQL, phpMyAdmin, and possibly Abyss).
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 phpBB Group