Home  |  Forums  |  914 Info  |  Blogs
 
914World.com - The fastest growing online 914 community!
 
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG. This site is not affiliated with Porsche in any way.
Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners.
 

Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> OT: PHP question, club related ...
SirAndy
post Feb 13 2005, 11:33 PM
Post #1


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



ok, here's a silly PHP question ...

any given time (with traffic on the BBS) i see between 6 and 15 instances of PHP.EXE in the task manager. they all eat up memory and ressources ...

is there a way to tell PHP to run through the IIS-API ???
that should channel it all through 1 thread, right? same as it does with ASP or CGI ...

does PHP have the ability to run as a IIS extension? and if so, how do i configure it for that?
(IMG:http://www.914world.com/bbs2/html/emoticons/idea.gif) Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
double-a
post Feb 13 2005, 11:39 PM
Post #2


Senior Member
***

Group: Members
Posts: 989
Joined: 15-September 03
From: vancouver, wa, usa
Member No.: 1,162
Region Association: Pacific Northwest



i'm not sure i understand the question, could you throw out some additional acronyms please? (IMG:http://www.914world.com/bbs2/html/emoticons/biggrin.gif)

~a
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Trekkor
post Feb 13 2005, 11:41 PM
Post #3


I do things...
*****

Group: Members
Posts: 7,809
Joined: 2-December 03
From: Napa, Ca
Member No.: 1,413
Region Association: Northern California



WYSIWYG? (IMG:http://www.914world.com/bbs2/html/emoticons/ohmy.gif)

sorry... (IMG:http://www.914world.com/bbs2/html/emoticons/dry.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
lapuwali
post Feb 14 2005, 12:08 AM
Post #4


Not another one!
****

Group: Benefactors
Posts: 4,526
Joined: 1-March 04
From: San Mateo, CA
Member No.: 1,743



Why on earth are you running under Windows, anyway? You LIKE applying security patches every 10 minutes?

I'd expect the Windows version of PHP was a straight, least-effort port of the Unix code, which would mean that it was designed to run in Apache 1.3, which isn't multi-threaded. So, running N processes isn't going to help you much. Unless Windows is far more broken than I believe it to be, all of the code memory should be shared between the processes. Only data memory isn't shared, and much of that would NOT be shared even in a multi-threaded environment unless the PHP engine itself was coded to be multi-threaded (which it wasn't). The Windows version is also going to be a red-haired stepchild in the PHP universe. The main PHP guys like Lerdorf all target Linux and FreeBSD as their dev platforms (and the latter primarily because several of them work at Yahoo, and Yahoo is a FreeBSD shop).

So, in short, while I don't KNOW for certain you can't get there, I'm 99% certain you can't.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 12:14 AM
Post #5


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



QUOTE (lapuwali @ Feb 13 2005, 10:08 PM)
Why on earth are you running under Windows, anyway?

alright, so you don't know the answer to my question ...

next!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
fiid
post Feb 14 2005, 12:21 AM
Post #6


Turbo Megasquirted Subaru Member
****

Group: Members
Posts: 2,827
Joined: 7-April 03
From: San Francisco, CA
Member No.: 530
Region Association: Northern California



Ignoring all the comments I am actually making under my breath about windows...

Are you running PHP as a CGI script?

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 12:31 AM
Post #7


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



QUOTE (fiid @ Feb 13 2005, 10:21 PM)
Ignoring all the comments I am actually making under my breath about windows...
Are you running PHP as a CGI script?

nope, PHP.exe is referenced in the ISAPI mappings to be run for all .php files.

it works fine, but PHP.EXE is by default not build as an extension to IIS, unlike the ASP.DLL that handles ASP pages.
it is running multiple instances of PHP.EXE instead of one task hooked directly into the web-servers API.

my question is simple:

is there a (DLL) extension for IIS that runs PHP as a real plugin?

that would make the server run faster, eating up much less CPU time and ressources ...

and thanks for keeping your unix vs. windows bullshit to yourself.
i'm sooo tired of hearing that crap from people who don't know anything about both worlds ...
(IMG:http://www.914world.com/bbs2/html/emoticons/dry.gif) Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
McMark
post Feb 14 2005, 12:34 AM
Post #8


914 Freak!
***************

Group: Retired Admin
Posts: 20,180
Joined: 13-March 03
From: Grand Rapids, MI
Member No.: 419
Region Association: None



AmigaOS FOREVER!!!! (IMG:http://www.914world.com/bbs2/html/emoticons/wink.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 12:39 AM
Post #9


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



QUOTE (McMark @ Feb 13 2005, 10:34 PM)
AmigaOS FOREVER!!!! (IMG:http://www.914world.com/bbs2/html/emoticons/wink.gif)

haha, did my first *real* game on a amiga.

sprite collision detection on a per pixel base rocks!
you even got your own interrupt for that type of collision ... (IMG:http://www.914world.com/bbs2/html/emoticons/aktion035.gif)


oh, and btw. the C64 had that feature as well. still, the amiga was sooooo cool and i was soooo young ...
(IMG:http://www.914world.com/bbs2/html/emoticons/boldblue.gif) Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
fiid
post Feb 14 2005, 12:43 AM
Post #10


Turbo Megasquirted Subaru Member
****

Group: Members
Posts: 2,827
Joined: 7-April 03
From: San Francisco, CA
Member No.: 530
Region Association: Northern California



I don't know what version of IIS you are running, but I think this is what you want:

http://www.peterguy.com/php/install_IIS6.html

Are you currently using the php5isapi.dll plugin? I think that's what you need.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 12:46 AM
Post #11


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



QUOTE (fiid @ Feb 13 2005, 10:43 PM)
Are you currently using the php5isapi.dll plugin? I think that's what you need.

aha! no, as i said earlier, i'm just running php.exe, which is the default install.

but i knew that there had to be a better way!
(IMG:http://www.914world.com/bbs2/html/emoticons/aktion035.gif) Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
fiid
post Feb 14 2005, 12:46 AM
Post #12


Turbo Megasquirted Subaru Member
****

Group: Members
Posts: 2,827
Joined: 7-April 03
From: San Francisco, CA
Member No.: 530
Region Association: Northern California



QUOTE
i'm sooo tired of hearing that crap from people who don't know anything about both worlds ...


Thanks for the faith. I've done plenty of work on windows, linux (redhat, debian, fedora and others), solaris, macos, hpux, freebsd and netbsd to be able to comment.






User is offlineProfile CardPM
Go to the top of the page
+Quote Post
lapuwali
post Feb 14 2005, 11:13 AM
Post #13


Not another one!
****

Group: Benefactors
Posts: 4,526
Joined: 1-March 04
From: San Mateo, CA
Member No.: 1,743



Doing a Google for PHP IIS also found several hits on installing a PHP4 DLL for IIS, in case you don't want to move to PHP5, yet.

(and I'm sooo sick of hearing people tell me I don't know about "both worlds" when I recommend against Windows...cause I spent far too much time admin'ing a Windows shop)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
vortrex
post Feb 14 2005, 11:47 AM
Post #14


Senior Member
***

Group: Members
Posts: 1,687
Joined: 24-December 02
From: SF, CA
Member No.: 4
Region Association: None



why are you running windows?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 11:51 AM
Post #15


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



i'm a computer guy, i work with all of them. whatever you have, put it in front of me and i'll make it work.

do i have personal preferences? sure. but not for one OS in particular. it depends on the intended use of the system.
want a high end gaming workstation? get a PC.
want a graphic/video workstation? get a MAC.
want a tricked out FTP server? get a linux box.

in my view, most of peoples frustration with windows is due to the lack of knowledge.
which is actually true for most of the frustration on *all* operating systems.
the lack is usually with the user, not the machine ...

i have run windows servers for years straight with only 1 or 2 harddrives burn up.
i have run linux servers for years straight with only 1 or 2 harddrives burn up.

what really pisses me off are stupid comments like "i don't know the answer to your question but you really should switch over to linux. it'll solve all your problems" ...
(IMG:http://www.914world.com/bbs2/html/emoticons/bs.gif)

the server is running fine. php works under windows. mysql works under windows. cgi works under windows.
i was looking for a way to optimize the php performance and fiid pointed me in the right direction.
i don't need any of this "my computer is soooo much better than your computer" crap. leave it at home ...


i'm tired,
(IMG:http://www.914world.com/bbs2/html/emoticons/wacko.gif) Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 11:52 AM
Post #16


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



QUOTE (lapuwali @ Feb 14 2005, 09:13 AM)
Doing a Google for PHP IIS also found several hits on installing a PHP4 DLL for IIS, in case you don't want to move to PHP5, yet.

yeah, but without me asking the right question, would you even have known what to search for?

i think not ...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 11:52 AM
Post #17


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



QUOTE (vortrex @ Feb 14 2005, 09:47 AM)
why are you running windows?

(IMG:http://www.914world.com/bbs2/html/emoticons/poke.gif)


(IMG:http://www.914world.com/bbs2/html/emoticons/biggrin.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
lapuwali
post Feb 14 2005, 12:35 PM
Post #18


Not another one!
****

Group: Benefactors
Posts: 4,526
Joined: 1-March 04
From: San Mateo, CA
Member No.: 1,743



QUOTE (SirAndy @ Feb 14 2005, 09:52 AM)
QUOTE (lapuwali @ Feb 14 2005, 09:13 AM)
Doing a Google for PHP IIS also found several hits on installing a PHP4 DLL for IIS, in case you don't want to move to PHP5, yet.

yeah, but without me asking the right question, would you even have known what to search for?

i think not ...

So, why didn't you just Google yourself and save yourself all of this "why windows?" grief? (IMG:http://www.914world.com/bbs2/html/emoticons/biggrin.gif)

In any case, good luck, but I still think you're not going to see a huge decrease in memory usage by switching to the DLL version, unless my understanding of PHP internals is drastically wrong. PHP doesn't play well with Apache 2.0, either (as in it isn't a full multi-threaded all-resources-shared thing, but just a PHP interpreter per thread), so it's not an IIS or Windows problem, but a PHP problem.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ThinAir
post Feb 14 2005, 10:59 PM
Post #19


Best friends
****

Group: Members
Posts: 2,569
Joined: 4-February 03
From: Flagstaff, AZ
Member No.: 231
Region Association: Southwest Region



I'm a Windows system admin who is trying to find time to work on his MCSE and has a lot of interest in Linux, so there is a lot I don't know. I'm just curious about the criteria for deciding which OS in the beginning. I ask because my non-profit can't afford to stay on Windows for the long run and I've been eyeing Linux, but the bottom line is that there is a job to get done and that overrides any "theoretical advantage" for one OS over another.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
SirAndy
post Feb 14 2005, 11:51 PM
Post #20


Resident German
*************************

Group: Admin
Posts: 42,234
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



QUOTE (ErnieDV @ Feb 14 2005, 08:59 PM)
I ask because my non-profit can't afford to stay on Windows for the long run

it entirely depends on what your non-profit wants to do with it ...

workstations? servers? what software needs do you have?
(IMG:http://www.914world.com/bbs2/html/emoticons/idea.gif) Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

2 Pages V  1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 3rd July 2025 - 05:53 AM