Previous Thread
Next Thread
Print Thread
Rate Thread
#310128 10/30/2000 12:08 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Why would I need PHP?


Sponsored Links
Anonymous #310129 10/30/2000 1:43 PM
Joined: May 2000
Posts: 125
Member
Member
Offline
Joined: May 2000
Posts: 125

tym #310130 11/26/2000 6:59 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I really wasnt to the point of learning it. I was hoping someone may know the differenct ot advantages.

Bob
[email protected]
www.home2000.com

Anonymous #310131 11/27/2000 8:50 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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
http://www.netherworldrpg.net

Anonymous #310132 11/27/2000 5:59 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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.
http://www.bullpen.com.au

Sponsored Links
Anonymous #310133 11/27/2000 11:23 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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
http://www.netherworldrpg.net

Anonymous #310134 11/28/2000 6:27 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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.
http://www.bullpen.com.au

Anonymous #310135 12/10/2004 12:48 AM
Joined: Dec 2004
Posts: 16
Newbie
Newbie
Offline
Joined: Dec 2004
Posts: 16
YO!!!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)