473,511 Members | 14,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is fast-cgi a drop-in replacement for mod_php?

Hello group,

If I switched from mod_php to fast-cgi, would I need to make any
changes to my php source?

Also, will something like APC still be useful?

Will my database connections suddenly become persistent?

If I had static data in my script, will it persist when that same
script is called again?

Essentially, my question is: is fast-cgi a drop-in replacement for
mod_php?

Thank you for your time.

E Wilson
Feb 27 '08 #1
2 1702
Evil Son wrote:
Hello group,

If I switched from mod_php to fast-cgi, would I need to make any
changes to my php source?
Not much.
Also, will something like APC still be useful?
If you find it useful now, yes.
Will my database connections suddenly become persistent?
Nope.
If I had static data in my script, will it persist when that same
script is called again?
Nope.
Essentially, my question is: is fast-cgi a drop-in replacement for
mod_php?
Pretty much. But nothing will give you the behavior you're looking for.
The web is by nature transactional, and all languages act the same way
- scripts are initialized when you call them and do not carry over
values or connections from previous executions.
Thank you for your time.

E Wilson

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 27 '08 #2
..oO(Evil Son)
>Here is what caused me to ask how things worked for PHP:
http://www.fastcgi.com/devkit/doc/fa...intro.htm#8485
If you think of the PHP interpreter itself being the FastCGI application
and not your own script, then things might become more clear. It's just
the interpreter that is kept in memory and running as described on the
page, but your own scripts are still re-evaluated on every request.

Micha
Feb 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
4848
by: Michele Simionato | last post by:
I posted this few weeks ago (remember the C Sharp thread?) but it went unnoticed on the large mass of posts, so let me retry. Here I get Python+ Psyco twice as fast as optimized C, so I would like...
22
3276
by: Marc Mones | last post by:
Hello, I'working with IBM DB2 V8.1 and CLI/ODBC. I've got a problem with the following statement: ******************************************************************************** SELECT...
4
3088
by: Thomas Christmann | last post by:
Hi! First let me apologize for asking this question when there are so many answers to it on Google, but most of them are really contradicting, and making what I want to do very performant is...
6
23757
by: G.Esmeijer | last post by:
Friends, I would like to read a text file (fixed length formaated) really fast and store the data into an Access database (2003). Using the streamreader and reading line by line, separating the...
4
7886
by: Volker Jobst | last post by:
Hi, Is there a really fast way to read a text file which contains lines of variable length? I'm using the StreamReader to read the file, but this is not as fast as I need it. thanks a lot...
3
1547
by: Boni | last post by:
Dear all, what is the best collection for fast sort of small (about 100) data rows.I want to use collection's sort algorithm, instead of implementing my own. Thanks, Boni
2
934
by: ABC | last post by:
I am always to write clases which has properties, is here any best tools or method let me typing properties codes more fast?
2
2750
by: Ben | last post by:
I'm looking for a web application framework with a good interface to PostgreSQL. The app I'm developing is relatively simple, but I'm new to coding, so it needs to be easy. What I'm making is...
17
11284
by: Thomas Kowalski | last post by:
Hi, I would like to know whether someone knows a library or function that parses a string containing 3 double numbers in the form like xxxx.yyyyyyyyy xxxx.yyyyyyyyy xxxx.yyyyyyyyy really fast....
4
5176
by: SoftwareTester | last post by:
I need a fast bitcount for UInt64 My variables usually contain up to 8 bits set but regurlarly between 30 and 56. At various places i found a fast one for UInt32 and on one site I even found a...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.