![]() |
php4 question
i heard this language is fast but i think its making my server load higher than before!
any one here uses php scripts? or php in your html? anything happened to your server? |
Depends on what you use it for. Anything that has to be processed by the server before it gets sent to the browser will increase server load.
|
|
It surely will increase the server load a bit but you could as well say I am just serving static pages because of that.
Php is great, I'd strongly recommend that you start using it. The thing I like most is it is pretty easy to learn, there is no chmod stuff as with perl scripts, and you have all the code right in the html pages, not in separate files distributed all ver the place. I have almost no page WITHOUT php and can't see a huge difference in server speed. And you always could upgrade the cpu and RAM in case you need it. ------------------ AVS that converts AND sends traffic. Be a good guy and use my link: ProAdult (Fairly new, so you won't share the link list traffic with 10,000 other webmasters over there :D ) |
I like PHP because it works no matter what browser the surfer has. They can disable javascript, but not PHP.
What are you using it for? |
php is cool
a lot better than perl i heard its even faster than C/Cgi in some cases |
I come a Microsoft background using ASP/SQL and found that the switch to PHP/MySQL was pretty easy..in alot of cases I like PHP more so. Most of my site is coded in it and more bang for your dollar PHP has ASP beat hands down..thank-god for open source http://bbs.gofuckyourself.com/board/smile.gif
FADE oh PS....That there PERL is the Devil's work http://bbs.gofuckyourself.com/board/smile.gif ------------------ Admin HTTP://www.itsyourass.com |
I have nothing but good to say about php. I have done some incredible things with it. Plus like every one says, it is EASY to learn. Have'nt found much I can't do with it. It can also do alot more than serve dynamic code on a html page.
ronnie |
Quote:
Firstly, make sure that the webserver has the Zend Optimizer installed, it makes a noticable difference in speed, get it free from http://www.zend.com Secondly, to speed things up further, and protect your code from others if you're on a poorly secured virtual host, cough up some cash for Zend Encoder Unlimited ($50 a month as part of the zend developer's suite) and it'll encrypt and run the first couple of optimizer passes on your code, which will also speed things up and reduce the load on your server. Oh, and this is my first post, be gentle with me http://bbs.gofuckyourself.com/board/smile.gif |
Tip: Never try to program at 2 AM when plastered. It just doesn't work. http://bbs.gofuckyourself.com/board/biggrin.gif
I'd just like to point out, if something is poorly coded whether it be using perl, c/c++, asp*cough-crap-cough*, or php, it will increase the load time. So there is a possibility that you have a script that eats away at the memory. Or maybe your server just has problems with setup/memory leak. Cheers Nysus Hosting - Starts @ $1.75/GB - As low as $1.27/GB icq: 129060301 |
The PHP-mod will double the server load for your httpd connection!!!!!!! Somebody said it's even faster than C++. Well I can tell you it's certainly not. PHP is very popular because it's so easy to learn, but is certainly slow down your server. Perl and C++ rules! If you don't have a high traffic site then PHP could work fine for you.....
|
HAHHA! I KNEW IT!
thx |
PHP is not faster than C++, but it sure is better than some other server-side software. It's stable and not very hard to learn. I've been programming pretty much everything in C and C++ 'till I found PHP. PHP has all features that many webmasters are looking for included in it.
|
The Hun's correct. PHP is slower than C/C++, uses more server resources etc, but it's a shitload faster to get stuff done using PHP.
After all, if you only care about speed you'd be using Tux as your webserver with all static content http://bbs.gofuckyourself.com/board/smile.gif Memories cheap, and time is too short to worry about coding your CGI app / Apache module from scratch, just do it in PHP and have time left to do the fun things in life, like eat and sleep http://bbs.gofuckyourself.com/board/smile.gif |
Quote:
OH -- and I'd most likely be able to put a stop to all those auto-submitters, if you'd want to. Of course lazy people would hate me then. http://bbs.gofuckyourself.com/board/biggrin.gif Cheers Nysus Hosting - Starts @ $1.75/GB - As low as $1.27/GB icq: 129060301 [This message has been edited by Nysus (edited 09-09-2001).] |
I love php and use it extensively on my site. You can see some good examples of it in use at http://www.i-blowjob.com
Kisses, Jade |
php is too easy, not realy a sport but then again its the best if you dont use it on really high trafic sites. If you do there are only one option and that is C++
check out http://www.php.net |
Quote:
Just to let you know my experience with php, it can be much faster than a perl or c++ script depending on what you are doing since php is tied into apache and does not have to create a userspace to run within, so if you are doing lot's of little things with php it will be much faster that a perl / c++ script any day of the week!!! If you are opening up an sql DB and crunching a lot of data then spitting it back out, you might be better off rewriting in C++ to gain some speed and reduce system performance issues. I've written sites that get 50K unq a day that the whole site was pulled from an SQL database and was 100% php and we had no performance issues. A lot of it might be your code!! Tim |
There are lots of free scripts and resources on PHP at http://php.resourceindex.com/
Just an extra tip http://bbs.gofuckyourself.com/board/wink.gif |
All times are GMT -7. The time now is 01:33 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123