Previous Thread
Next Thread
Print Thread
Hop To
#36164 10/30/2000 3:08 PM
Anonymous
Unregistered
Anonymous
Unregistered
Why would I need PHP?

#36165 10/31/2000 4:43 AM
Anonymous
Unregistered
Anonymous
Unregistered
CF. <A HREF="http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html" target="_new">http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html</A>

#36166 11/26/2000 9:59 PM
Anonymous
Unregistered
Anonymous
Unregistered
I really wasnt to the point of learning it. I was hoping someone may know the differenct ot advantages.

Bob
amerifax@execoc.com
www.home2000.com

#36167 11/27/2000 11:50 AM
Anonymous
Unregistered
Anonymous
Unregistered
It's designed for the web and it's easily intergratable into web sites. It supports a full feature load. From customizing images on the fly when a page is loaded to creating a Shockwave or Flash movie on the fly to loading data out of a database and manipulating it. And on top of all this, it's much quicker then Perl for the web.

Doug

<a href="http://www.netherworldrpg.net" target="_new">http://www.netherworldrpg.net</a>

#36168 11/27/2000 8:59 PM
Anonymous
Unregistered
Anonymous
Unregistered
You PHP gurus are too quiet on the General PHP questions board.

I need to know which type of PHP install I should do. I was planning on doing a dynamic module install as an Apcahe module but after my host solved the problem of no apxs script I got word back saying "I don't recommend loading PHP dynamically as it is slower to run/startup and could cause problems."

This is at odds with what Webmonkey says "The dynamic module (DSO, for "dynamic shared object") version of PHP saves you gobs of time in the long run. If, at some point, you decide recompile a PHP DSO to add or delete functionality, you don't have to recompile Apache when you recreate the DSO. All you need to do is stop and then restart Apache, which is why this combination of Apache and PHP as a DSO has been gaining in popularity since the PHP development team made it a possibility."

If the tech support at the host is right then I assume that leaves installing as a cgi binary. But I was under the impression a module for Apache was better.
What is the general consensus?

Darren.
<A HREF="http://www.bullpen.com.au" target="_new">http://www.bullpen.com.au</A>

#36169 11/28/2000 2:23 AM
Anonymous
Unregistered
Anonymous
Unregistered
I thought I replied to that post... I guess not.

PHP is much, much better as a DSO. As a binary CGI, it must be called and build it's overhead for each page request. As a DSO, it's loaded into Apache's code space when Apache starts and it's there and all the overhead is already created and running.

The apxs problem is easily fixed. Just do a "make apxs" in the Apache source folder. And just install the apxs binary in the Apache bin folder. But I my own feeling you should download the latest Apache (1.3.14) and make sure you compile it with "--enable-shared=max".

Make install it and restart your Apache. Now get the PHP4 source and compile it with "--with-apxs=/usr/local/apache/bin/apxs" or whatever your path to apxs is. Even though the following settings are generally automatically assumed by PHP4, I recommend you apply them anyway because I had a copy of PHP that didn't do it correctly once. "--enable-track-vars" and "--disable-debug". Another helpful one is "--with-config-file-path=/etc" so you can put your php.ini file in /etc. At this point you can add whatever you want, like "--with-mysql" and "--with-xml" or whatever.

PHP4 will automatically adjust your httpd.conf file to enable it, all you have to do is restart Apache.

Another recommendation, go to www.Zend.com and get their Zend Optimizer. (They make PHP). Download it and follow the instructions and install. But I don't recommend optimization level 15. I recommend 7. 15 was kinda buggy for me still and when it was working fine it didn't do too much better then 7 did.

Doug
<A HREF="http://www.netherworldrpg.net" target="_new">http://www.netherworldrpg.net</A>

#36170 11/28/2000 9:27 AM
Anonymous
Unregistered
Anonymous
Unregistered
Hi Cardoe

Thanks for all the information.
Everywhere I read about installing PHP4 their main instructions is for the DSO install as an Apache module. Obviously there is a reason for this as you've just explained.
The install file that comes with PHP is also very helpful with a step by step guide.
I appreciate the assistance because it's something I can come back and refer to as well, as I go along.

Darren.
<A HREF="http://www.bullpen.com.au" target="_new">http://www.bullpen.com.au</A>


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 919 guests, and 149 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)