php-general Digest 15 Oct 2006 20:59:45 -0000 Issue 4403
Topics (messages 243159 through 243166):
Re: LAMP || Apache Cache PHP Source File...
243159 by: sit1way
243161 by: Ed Lazor
243162 by: sit1way
243163 by: Ed Lazor
Re: Interchange.
243160 by: Rory Browne
243164 by: Steve Edberg
243165 by: João Cândido de Souza Neto
Solution: [PHP] OOP slow -- am I an idiot?
243166 by: Chris de Vidal
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hey All.
Like many intermediate (and higher) level programmers, I've written a LAMP
based CMS application to develop sites for my clients.
Until recently I had major version control issues; i.e. when making a
change/enhancement to one site, none of the other sites would get updated.
Now I've got a source repository that stores the basic coding framework.
Any new site that uses the CMS will draw on the source code base and, when
applicable, draw on site specific custom class code to override source code
defaults -- totally cool; now at long last, I truly have an application
framework in place.
The main concern I have now is that all sites will now draw on the same code
base; more specifically, each site request for every site calls the CMS
controller PHP script located in the source code repository (via
Mod_Rewrite, Mod_Alias combo). To speed up delivery of the source
respository controller PHP script, I'd like to have Apache cache this file.
Mod_File_Cache doesn't look like it will do the trick as this module only
works with static content, and Mod_Cache seems to require a GET request,
among other requirements, in order to perform file caching.
If anyone has ideas, let me know!
Thanks,
--Noah
--- End Message ---
--- Begin Message ---
I'd like to have Apache cache this file.
Mod_File_Cache doesn't look like it will do the trick as this
module only
works with static content, and Mod_Cache seems to require a GET
request,
among other requirements, in order to perform file caching.
Apache: reverse proxy
--- End Message ---
--- Begin Message ---
Hi Ed.
Hmmmm, does mod_proxy perform file caching? It appears to just redirect
urls to and from a proxy server.
I'm already doing this on my Windoze test box:
# redirect domain.com/lookup requests to Site Builder Controller
RewriteCond %{REQUEST_URI} !\.+
RewriteRule ^/(.*) /controller\.php/$1 [PT]
Alias /controller.php c:/htdocs/New_Mind/source/controller.php
which just kicks site requests to the source code controller script. I'm
not sure how reverse proxy directives (ProxyPass, ProxyPassReverse) perform
file caching if at all, which is what I want to do, have Apache store the
controller script in memory at all times...
--Noah
"Ed Lazor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> I'd like to have Apache cache this file.
>> Mod_File_Cache doesn't look like it will do the trick as this module
>> only
>> works with static content, and Mod_Cache seems to require a GET request,
>> among other requirements, in order to perform file caching.
>
> Apache: reverse proxy
--- End Message ---
--- Begin Message ---
Hmmmm, does mod_proxy perform file caching? It appears to just
redirect
urls to and from a proxy server.
Yes.
http://httpd.apache.org/docs/1.3/mod/mod_proxy.html
Note the difference between forward and reverse proxy.
You can also use Squid http://www.squid-cache.org
Note Transparent Caching
--- End Message ---
--- Begin Message ---
What exactly do you mean about a professinal interchange in a foreign
country?
On 10/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
Hello everyone.
Firstly my apology for the off topic.
I'm a PHP professional since 2000's.
In a quite near future i'm interested in have a professional interchange
in
a foreign country and i'm here to ask you for any information about it.
Thanks a lot.
--- End Message ---
--- Begin Message ---
A php meetup, perhaps?
http://php.meetup.com/
At 6:37 PM +0200 10/15/06, "Rory Browne" <[EMAIL PROTECTED]> wrote:
What exactly do you mean about a professinal interchange in a foreign
country?
On 10/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
Hello everyone.
Firstly my apology for the off topic.
I'm a PHP professional since 2000's.
In a quite near future i'm interested in have a professional interchange
in
a foreign country and i'm here to ask you for any information about it.
Thanks a lot.
--
+--------------- my people are the people of the dessert, ---------------+
| Steve Edberg http://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center [EMAIL PROTECTED] |
| Bioinformatics programming/database/sysadmin (530)754-9127 |
+---------------- said t e lawrence, picking up his fork ----------------+
--- End Message ---
--- Begin Message ---
I want to go to a foreign country to work for about one year to increase my
experience.
""Rory Browne"" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
What exactly do you mean about a professinal interchange in a foreign
country?
On 10/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
>
> Hello everyone.
>
> Firstly my apology for the off topic.
>
> I'm a PHP professional since 2000's.
>
> In a quite near future i'm interested in have a professional interchange
> in
> a foreign country and i'm here to ask you for any information about it.
>
> Thanks a lot.
>
--- End Message ---
--- Begin Message ---
As I cannot think of a class-based way to build my report, I think I'll use a
customer class
everywhere BUT in the report. Inside the report I'll just use one SQL
statement instead of dozens
of instances and hundreds of queries.
I'll make a note inside the class that this and that method is not the only
place the data is
accessed, to also check inside the report.
Sometimes, you've just gotta compromise to get the job done. Most of the time,
OOP is a good
idea, but in this instance I don't think it's the best choice.
It's less elegant but more pragmatic. Our project is medium-sized (only about
10K lines) and this
will work just fine. (It makes me wonder if enterprise-class OO projects had
to make the same
decisions.)
Thanks to everyone for your input. I need to unsubscribe from the list, so if
you have any input,
please CC: Chris (AT) deVidal (DOT) tv (my real email address). You might get
an automatic reply,
click the link.
CD
Think you're a good person? Yeah, right! ;-)
Prove it and get ten thousand dollars:
TenThousandDollarOffer.com
--- End Message ---