> http://translate.google.com/translate_t?langpair=ja|en&text=%E3%81%9D%E3%81%86
> %E3%81%8B%E3%81%AA%E3%81%82
That is way, way cool. I though you meant すし. I'm always thinking of food.
This Bostonian indulged in Zabars, Crumbs, and the best slice of pasta
bolognaise pizza last weekend! Only in NY
On 3/5/08 6:39 PM, "Rolan Yang" <[EMAIL PROTECTED]> wrote:
> If you examine the manual and the code in phplist
> (http://www.phplist.com) , that will offer some good ideas on email
> bounce management.
Perfect! Thanks.
___
New York PHP Community Talk
On 3/5/08 7:25 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> 2008/3/5 Cliff Hirsch <[EMAIL PROTECTED]>:
>> Is there a downside to using utf-8?
>
> No, but there are issues with some string functions. In php4/5
> functions like substr() operate on b
How do you detect bad email errors? Pear mail provides errors messages, but
most deal with things like bad formatting, sendmail problems, etc. What is
the best way to detect failed delivery or bouncers. Detect them by parsing
messages in a bounce folder? Start with Pear Mail_Mbox? Anything easier?
Is there a downside to using utf-8?
If you use 8859-1 you're
> practically making the application
English-only, or at least limiting the
> ability of people to express
themselves. そうかなあ?
--
Chris
Point well taken. Did you just place a sushi order?
_
> On Sun, Mar 2, 2008 at 9:55 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote:
>>
>> I just increased from 1 to 2 shm segments (30M each). But the apc memory
>> usage graph still indicates only 30M.
>>
>> Why isn't apc taking advantage of the 2nd shm?
I just increased from 1 to 2 shm segments (30M each). But the apc memory
usage graph still indicates only 30M.
Why isn¹t apc taking advantage of the 2nd shm?
Cliff
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
On 2/28/08 10:35 AM, "Brian D." <[EMAIL PROTECTED]> wrote:
> (What scares me the most about any framework is the likelyhood of
> eventual abandonment.)
Indeed.
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
N
On 2/28/08 7:44 AM, "Randal Rust" <[EMAIL PROTECTED]> wrote:
> we are getting hundreds of hits per minute from what appear to be fake
> IP addresses. i am currently writing a script that will send these
> requests to an error page prior to making the database connection.
>
> i am doing an explode
b 26, 2008, at 5:46 PM, Cliff Hirsch wrote:
I have been validating textareas using ctype_print
>>
> Are you using utf-8 encoding? What do you need to validate/sanitize with the
> textareas? That the input is using the correct character set? Need to strip
> html from it? I
On 2/26/08 11:17 PM, "Bill P." <[EMAIL PROTECTED]> wrote:
> I am looking at CodeIgnite and Symfony.
> I also want to know if sites using either of these will be able to handle
> heavy load and traffic?
>
> Thanks.
> Bill
>
Look for feedback from Nate of Cake fame. He really likes Symphony not!
I have been validating textareas using ctype_print; however, I am starting
to get user errors. It¹s amazing how many people cut and paste from MS Word.
So what appears to be simple text and a reasonably valid string actually
contains stuff that ctype_print does not like.
Does anyone use this funct
he logs to see what's happening.
On 2/19/08 4:45 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> In the .conf file are you putting the rules inside a
> directive? As far as I know, works the
> same as .htaccess, and you should try copying it exactly.
>
>
I use the following to help work with SEO-friendly URLs:
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]
This works fine on my development machine in the main .htaccess file.
On the production machine, I do the same thing
On 2/15/08 11:05 AM, "Steve Manes" <[EMAIL PROTECTED]> wrote:
> Under "A message from our founder" in Help:
> "He still has a draw full of them" s/b "drawer".
Thanks -- appreciated. Did ya catch the part about Jolly Rogers?! You city
folk may have hit Coney Island, but us burbs people hit Jolly Ro
On 2/15/08 9:50 AM, "Joseph Crawford" <[EMAIL PROTECTED]> wrote:
> Yea I didn't get it at first either, I had to read the FAQ to
> understand it, maybe something should be on the front page to make
> people more aware so that they don't have to digg to find ou
>>> Kerbeaz went live on Monday. I thought the hard part was behind me, but now
>>> the true adventure begins building traffic.
>>
>> http://www.kerbeaz.com/ for the curious...
>
> Good stuff Cliff.
>
> You may want to checkout a couple of the "technical" meetups, especially this
> one:
>
>
On 2/14/08 2:36 PM, "Joseph Crawford" <[EMAIL PROTECTED]> wrote:
> nah i think the name cliff came up somewhere :)
No way! That's the whole point. I keep telling my kids, I'm tapped -- look
elsewhere...
___
New York PHP Community Talk Mailing List
http
On 2/14/08 1:48 PM, "Joseph Crawford" <[EMAIL PROTECTED]> wrote:
> That is an interesting idea now you just have to get the rich folk
> with too much money on there to reward for stuff. seriously someone
> want to pay me to brush my dog everyday for a week, ill take it lol.
I'm hoping those are c
> traffic.
http://www.kerbeaz.com/ for the curious...
Congrats, Cliff. Zippy
> site, interesting idea.
Did you end up using a framework, or did you roll your
> own?
--
Chris Snyder
http://chxo.com/
No framework...was too deep into it to shift to one. Perhaps for rev 2.x
But when I knew zero
NYPhP:
I have been holding off on this, waiting until things are ³perfect², but
finally realized that could be an eternity. So...
Kerbeaz went live on Monday. I thought the hard part was behind me, but now
the true adventure begins building traffic.
Check out the site. Try creating a task as a
On Feb 11, 2008 9:43 PM, Edward Potter <[EMAIL PROTECTED]> wrote:
>> I think jquery pretty much took over in the JS world (IMHO), just
>> google that with tool tips, you'll find lots of examples.
>>
>> :-) ed
On 2/12/08 4:39 PM, "@ndrés" <[EMAIL PROTECTED]> wrote:
> I personally prefer css-tool
> On Tue, Feb 12, 2008 at 07:15:37AM -0500, Cliff Hirsch wrote:
>> PEAR Config writes a PHP array file like so:
>
> Your earlier description of the error coming up out of the blue makes it
> sound like you're writing out configuration files on the fly. Is that
> the
> This doesn't make sense. How would a slashing failure lead to a parse
> error? Parsing should always happen first. Were you hacked? Are you
> sure it isn't an unsafe include?
No eval() in the code.
PEAR Config writes a PHP array file like so:
'value',
param2 => 'val'ue2',
...
);
The
>> On Feb 11, 2008 6:40 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote:
>>> I had a very strange error, catastrophic yesterday. addcslashes failed to
>>> put a slash in front of a single quote. Can anyone imagine how this could
>>> happen? Is it possible it di
I had a very strange error, catastrophic yesterday. addcslashes failed to
put a slash in front of a single quote. Can anyone imagine how this could
happen? Is it possible it didn¹t catch a multi-byte character? Am I back to
charset issues? Unfortunately, I can¹t reproduce the error.
Cliff
Does anyone have a favorite javascript tooltip utility? Ideally, something
based on jQuery.
Cliff
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show
On 2/10/08 9:58 AM, "David Krings" <[EMAIL PROTECTED]> wrote:
> Hans Zaunere wrote:
>>> http://www.bostonphp.org/content/view/97/9/
>>>
>>> We'd be happy to host any New Yorkers despite the upset.
>>
>> I'd be there simply because of the upset :)
>
> What upset are you guys talking about?
Thin
Drupalcon will be in Boston, March 3 6:
http://boston2008.drupalcon.org/
On Feb. 28th, BostonPhP will be hosting an in depth view of Drupal
presentation.
http://www.bostonphp.org/content/view/97/9/
We¹d be happy to host any New Yorkers despite the upset.
Best regards,
Cliff Hirsch
On 2/6/08 11:30 AM, "John Campbell" <[EMAIL PROTECTED]> wrote:
>> I would like to send secure email attachments. Suggestions?
>> Recommendations?
>>
> I think this is going to be a lost cause. It is technically possible
> with PGP and you will need to have the public keys for each user,
> which
I would like to send secure email attachments. Suggestions? Recommendations?
Would you use GnuPG to encrypt the attachment? And std. packages? Just PECL?
What desktop client can decrypt these attachments?
Cliff
___
New York PHP Community Talk Mailing Li
> Make images, javascript and css relative to root. This is standard
> practice. Put the css/javascript in a folder with gzip turned on, and
> the images in a folder without gzip.
Thanks John. Makes sense. Had it the other as a legacy leftover from when my
dev. app was in a subdir.
>> Also, w
For pretty urls, I have set up mod_rewrite like so:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
For a page like www.domain.com/faq the controller captures the faq command
and everything works fine.
But for www.domain.co
> blasasdfsdfgorg(;
> This makes a parse error. PHP won't get far enough to use your custom
> handler because it will just die.
> The following error types cannot be handled with a user defined
> function: *E_ERROR*, *E_PARSE*, *E_CORE_ERROR*, *E_CORE_WARNING*,
> *E_COMPILE_ERROR*, *E_COMPILE_WAR
The error handler on my production server has stopped working. I ran some
code to test it and am completely stuck. The trigger error line below works
just fine. But php isn¹t directing it¹s errors to the error handler.
blasasdfsdfgorg{; just stops dead. foobar(); which should also throw an
error si
On 1/30/08 4:22 PM, "-- rada --" <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> Can anyone help me with heredoc?
> I have this code:
>
>
> echo <<
> This is a heredoc test.
>
> Test line 2.
> Test line 3 with tab.
>
> EOD;
> ?>
>
> (I am using PHP5 and zend for editor) and I am expecting
Revisiting charset, take a look at ³Building Scalable Website² by Cal
Henderson of Flickr fame. He has a good chapter of internationalization &
localization, along with another chapter on filtering utf-8, etc.
Cliff
___
New York PHP Community Talk Mailin
On 1/23/08 5:34 PM, "Daniel Convissor" <[EMAIL PROTECTED]>
> Now there's no guessing, no need to write "|escape" in each variable use
> and no manually escaping the stuff in your PHP.
Just thought of a potential gotcha. Smarty also has a nl2br function. You
would want to escape before nl2br, other
On 1/23/08 3:44 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> I just discovered smarty has default modifiers:
> http://www.smarty.net/manual/en/variable.default.modifiers.php
>
> It seems like a good idea. Does anyone use it?
Not a bad ideas as long as you can override it. I pass plenty of st
On 1/23/08 2:33 PM, "Rob Marscher" <[EMAIL PROTECTED]> wrote:
> On Jan 23, 2008, at 2:01 PM, Cliff Hirsch wrote:
>> On 1/23/08 1:54 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
>>> If there is a separation between the programmer and the templat
On 1/23/08 1:54 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> If there is a separation between the programmer and the template
> editor, it presents another problem. Who is responsible for escaping
> the data?
> I tend to end up with a mix, and it can get quite confusing.
Ditto -- and it is i
On 1/23/08 1:43 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> Also, why are you using htmlhentities? It is a useless function. If
> you want to escape html, the correct function is htmlspecialchars.
> Htmlentities should never be used... it is slower, adds no security
> benefit, and it unneces
On 1/23/08 12:58 PM, "Michael B Allen" <[EMAIL PROTECTED]> wrote:>> Reason:
>>Invalid multibyte sequence in argument
>> Those curly single and double quotes are killers.
>
> The problem isn't htmlentities, it's the charset you're pages are
> emitted in. If you emit an HTML form in ISO-8859-1 and
I was about to write a php cli script to monitor my log files for changes
and if found, email the file to me. But someone has probably already done
this. Are there open source solutions I should be looking at?
Cliff
___
New York PHP Community Talk Mailin
On 1/23/08 10:10 AM, "csnyder" <[EMAIL PROTECTED]> wrote:
> On Jan 22, 2008 4:11 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote:
>
>> Reason: Invalid multibyte sequence in argument
>>
>> Root cause: cut and pasting text from MS Word in XP.
>
Just an FYI to people for an obscure bug to be aware of -- one I though I
licked months ago.
Escaping output with htmlentities threw a warning and returned an empty
string.
Reason: Invalid multibyte sequence in argument
Root cause: cut and pasting text from MS Word in XP.
You have been warned.
On 1/21/08 11:27 PM, "Hans Zaunere" <[EMAIL PROTECTED]> wrote:
> I'm curious as to what you'll be doing with the 15k SCSIs - that would help
> shed some light on how the RAM would be best used.
I'm just using them in a RAID 1 configuration, hoping that they will help a
database intensive applicatio
Have I asked this already? If so, my apologies. First the vision went, now
perhaps the memory I¹m not sure, can¹t remember...
So I negotiated 4Gig of memory in my server. Hey, ya always got to ask for a
little ³extra.² I got 15K scsci drives and know what to do with them. The
question is, what d
See: http://merbivore.com/index.html
Interesting. So Rails isn¹t the be all and end all within the Ruby
community. Makes me feel so much better. Just think, maybe in a year or two,
ruby will have 20 40 frameworks to chose from!
___
New York PHP Communi
> For servers:
> www.raidarray.net
This looks very interesting. Surprising the the std. service is ftp, which
is not secure, instead of sftp. rsync over ssh looks good though.
> As far as my opinion on S3 - interesting, but not where I want to put my
> most valuable data.
Why? Because of securit
Is anyone using Amazon S3 for backup? Instead of getting another independent
server, setting up rsync, etc. this seems like a good solution for backing
up a server or sql database. Sure, my ISP does daily backups, but having
more control by backing up the database off-site would make me sleep bette
On 1/17/08 5:06 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> Class Simple_Template {
...
>function assign($k,$v) {
> $this->_data[$k] = $v;
> return $this;
>}
...
> }
...
> $tpl = new Simple_Template();
> $tpl->assign('title','My First Page')->assign('message','Hello World')
This is outside the php realm, but this group always has interesting
insights.
Did anyone see this article in Sunday¹s Times?
http://www.nytimes.com/2008/01/13/business/13digi.html?_r=1&ref=business&ore
f=slogin
What struck me as interesting is that most of the revenue comes from
affiliate marke
On 12/13/07 2:34 AM, "John Campbell" <[EMAIL PROTECTED]> wrote:
>> It seems to me that a more robust method would be to have something like
>> /param1/value1/param2/value2/.../paramn/valuen
>
> Doesn't that defeat the purpose of pretty urls? I though the whole
> point was so the url looks like:
> The next big task is making sure that all of the url links are rewritten
properly and that. That can be fairly difficult if your links aren't very
centralized.
I see this as a big assumption on the part of many router/controllers. If
you are working in a framework, things will probably work. Bu
>> So...how many of you use ³pretty urls²? If you do, how do you do it? With a
>> Framework (Cake, Symphony, Zend, etc.) that you are using? Rolled your own?
>> Via php or mod_rewrite? Thoughts and ideas for introducing pretty urls into
>> an existing application (i.e. can¹t jump into a new Framewo
I posted this to the Boston list and received two replies:
1. Using pretty URLs via Joomla.
2. Try Horde Route: http://dev.horde.org/routes/integrate.html (btw, this
looks like a good solution)
Let¹s see what NY has to say. Here¹s what I posted.
So...how many of you use ³pretty urls²? If you do,
>> class actions {
>>
>> private function update(){
>> echo 'Update being executed!';
>> return TRUE;
>> }
>>
>> //public functions ==
>> public function do_action($table,$data){
>> //direct action activity
>> //assumption: $data['action'] wil
On 12/5/07 5:26 PM, "Ajai Khattri" <[EMAIL PROTECTED]> wrote:
> On Wed, 5 Dec 2007, John Campbell wrote:
>
>> This should work:
>>
>> RewriteEngine on
>>
>> RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
>> RewriteCond %{HTTP_HOST} !^$
>> RewriteCond %{SERVER_PORT} !^443$
>> RewriteRule ^
On 12/5/07 2:28 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> This should work:
>
> RewriteEngine on
>
> RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
> RewriteCond %{HTTP_HOST} !^$
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^/(.*)$ http://www.example.com/$1 [R=301,L]
>
> Rewr
If I want to redirect domain.com to www.domain.com (or for that matter
anything.domain.com to www.domain.com I have figured out (but not tested)
the following so far:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L, R=301]
But what ab
On 11/30/07 12:46 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> An empty URI, is a valid URI that just means the current URI.
> see: http://www.ietf.org/rfc/rfc2396.txt section 4.2
Really?! Perfect. That's the answer I was hoping for. This section states is
clearly.
> it doesn't make sense if
I like to use ___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
Is $_Cookie['original_url'] == $_Server['request_uri'], less the
http://domain.com stuff?
Is one more reliable for getting the URI of a request?
Cliff
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 20
> Hello,
>
> Sorry to hijack, but I started thinking about something I read
> for optimization of php.
>
> They stated, if you know your not going to make changes
> to a variable, to send it to a function as reference, as to NOT
> make a copy of it...
>
Going back to some very, very old threads
On 11/19/07 1:27 PM, "Gary Mort" <[EMAIL PROTECTED]> wrote:
> Cliff Hirsch wrote:
>> The php manual says:
>> ³In recent versions of PHP you will get a warning saying that
>> "Call-time pass-by-reference" is deprecated when you use a & in foo(&
The php manual says:
³In recent versions of PHP you will get a warning saying that "Call-time
pass-by-reference" is deprecated when you use a & in foo(&$a);²
Why is this? Besides being ugly, difficult to understand and not very
elegant, is there any reason technical reason why this is deprecated?
> Any reason why I should use $this->methodName() over self::methodName()
>
> Or is the self::methodName() reserved only for working within a static
> method?
Self is for static methods and properties.
___
New York PHP Community Talk Mailing List
htt
On 11/7/07 10:09 PM, "Rob Marscher" <[EMAIL PROTECTED]> wrote:
> On Nov 2, 2007, at 1:28 PM, Cliff Hirsch wrote:
>> ...snip... one strange bug. My first access can take upwards of 30 seconds
>> for anything to happen just a blank white browser while I wait...and
In a recently sql injection thread, someone mentioned modsecurity and
php-ids as quick Bandaids.
Is anyone using a web application security front-end in production?
The one¹s I¹m aware of:
http://www.modsecurity.org/
http://php-ids.org/
http://www.binarysec.com/
http://www.applicure.com/
Though
> Are you using any caching engines like smarty? I dont really see how,
> but that may cause a problem like this.
Caching all over the place: apc, Smarty, cache_lite
> You can also put in debug statements using microtime() into your code to
> see how long execution of certain components takes
>> Its almost like the server is sleeping (remember this is a new site and is
>> locked down so its possible that hours may go by between hits). Or maybe
>> there are caches, like APC, that need to be filled up. Or Apache is on a
>> cigarette break. Or DNS is doing lookup using the yellow pages. I
I have an interesting problem with my site. I¹m using Firebug and yslow
(awesome tool and book) to evaluate my page load times. Things are fairly
reasonable, given that there has been little optimization so far. But there
is one strange bug. My first access can take upwards of 30 seconds for
anythi
A great link to Yahoo¹s performance plug-in in one of today¹s threads
eventually led me to this. Looks like a great solution to an image-intensive
page.
http://www.alistapart.com/articles/sprites
http://spritegen.website-performance.org/
Enjoy,
Cliff
__
>> I am testing my production site, and something seems to be
>> very wrong. I just loaded my homepage and it took 53.46
> Have a look at the site with the YSlow plugin for Firefox. It tests your
> site agains list of best practices from the performance guys at Yahoo:
> http://developer.yahoo.co
wing up all sorts of resources, or (probably more
> likely) some local network issue near the server.
>
> -Tim
>
> On Oct 22, 2007, at 11:10 PM, Cliff Hirsch wrote:
>
>> I am testing my production site, and something seems to be very wrong. I
>> just loaded my homepa
No remote access -- everything is coming from the server.
On 10/22/07 5:22 PM, "P. Ju (朱漢璇)" <[EMAIL PROTECTED]> wrote:
> Hi Cliff,
>
> Are you doing remote access of DB, images, or scripts? Recently DNS resolution
> with a freshly created site caused me 7-10 second access times to a
> remote da
Big-fat, honking dedicated, but was ready to switch to $3.95 shared.
KeepAlive was off -- turning it on appears to have solved the problem.
On 10/22/07 5:15 PM, "Brian D." <[EMAIL PROTECTED]> wrote:
> Cliff - are you on a shared host or a dedicated server?
>
>&g
On 10/22/07 5:10 PM, "Cliff Hirsch" <[EMAIL PROTECTED]> wrote:
> I am testing my production site, and something seems to be very wrong. I just
> loaded my homepage and it took 53.46 seconds. Clearly unacceptable for a
> production web site. And there should be zero load
I am testing my production site, and something seems to be very wrong. I
just loaded my homepage and it took 53.46 seconds. Clearly unacceptable for
a production web site. And there should be zero load on the site, since
no-one knows about it. One 775 byte image took 23 seconds. A 51byte image
took
John, Michael:
Thanks for all the info.
> And by '?' do you mean '?' or '�' ... there is a big difference.
What is the difference? I have seen both?
If anyone else is struggling with this, John and Michael have great points.
There are some great articles on Wikepedia and Sitepoint regarding this
On 10/19/07 2:29 PM, "Michael B Allen" <[EMAIL PROTECTED]> wrote:
> On 10/19/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote:
>>
>> There was recently a thread about some character set problem. I just found
>> a similar issue. I just transferred a site
There was recently a thread about some character set problem. I just found a
similar issue. I just transferred a site from a Windows XP dev. platform to
rhel. Everything looks fine except for a few special characters.
Windows -> rhel
it¹s -> it?s
-> ? (should be the long d
D_ROWS to your select query.
> SELECT SQL_CALC_FOUND_ROWS * FROM ...
>
> You can then run SELECT FOUND_ROWS() to get the total rows without any
> limits. It's still 2 queries, but the second one is essentially free.
>
>
> On 10/18/07, Cliff Hirsch <[EMAIL PROTECTED]&
> 1) TWO-QUERY APPROACH
> on every page view:
FAILSAFE. An extra count query, but no worries.
> 3) ONE QUERY, CACHE EVERYTHING
What if the count changes between pages view? What if there are millions of
records -- awfully big fetch. What if you change the application down the
road, which creates t
well if apache is running as nobody, php is running as nobody (most likely)
and that's a case where I'd say you might want to reconfigure things so that
apache/php run as a different user. Most of the time when I've seen nobody,
there are lots of daemons running as nobody and it might not be a good
>I'd say it really depends
You¹re making me think here!
>
> (you must have seen that one coming haha). If your web application needs to
> write to files then those files need to be writable to someone, and it's
> better imho to be writable by a specific user than "the world". In that case
> havin
For the php, html, css, image, & javascript files in a web application, who
should be the owner and group? (assume a dedicated server).
Should the owner be a user, Apache, a username that is specific to the
application? Should the group be apache?
What is the best permission level? 644, 640?
Tha
On 10/10/07 3:23 PM, "Khalid Hanif" <[EMAIL PROTECTED]> wrote:
> On 10 Oct 2007, at 20:11, Ben Sgro ((ProjectSkyLine)) wrote:
>
>> From what I've heard and experiance, FC7 isn't really a great platform for
>> deploying applications on.
>
> What was your (bad?) experiences? I've used it without i
Will have to check out CentOS. Its all the extensions that worry me.
Figuring out what I need, getting them, installing them...
On 10/10/07 3:11 PM, "Ben Sgro (ProjectSkyLine)" <[EMAIL PROTECTED]>
wrote:
> Hello Cliff,
>
> From what I've heard and experiance, FC7 isn't really a great platform
My service provider doesn¹t have an rhel4 rpm for php5.2.x. They gave me
three options:
1. Switch to Fedora 7 or Ubuntu 7.0.4
2. Have them do it (they quoted 1-3 hours)
3. Their last suggestion, which they discourage do it myself
What do you suggest? The geek in me wants to take on the challeng
elopment server. Your
> mileage may vary for a local machine running apache locally...
>
> Regards,
> Khalid
>
> On 9 Oct 2007, at 17:53, Cliff Hirsch wrote:
>
>> I am trying to get the server address of my development server, but
>> $_SERVER[remote_add
I am trying to get the server address of my development server, but
$_SERVER[remote_addr¹] and $_SERVER[server_addr¹] keep giving me the
localhost addr (127.0.0.1). Kinda makes it hard to create a URL for
redirects.
The IP address should be 192.168.168.###, based on the current DHCP setting.
Ho
³apc.shm_size integer
The size of each shared memory segment in MB. By default, some systems
(including most BSD variants) have very low limits on the size of a shared
memory segment.²
How do we determine the size of our system¹s shared memory segment?
Cliff
_
So Mitch proposed memcached as a solution to caching a DB in a distributed
environment. For that matter, why not use memcached or even an in-memory
database engine for sessions?
Remind me why I need to store my sessions in a disk-based file or database?
Sessions are meant to be temporary, not perm
> Why not just have a memcached instance run on every webserver and be
> done with it?
>
> http://www.danga.com/memcached/
>
> Dead simple, maybe I could present memcache at NYPHP?
>
> -- Mitch
Dang, that is dead simple. I knew there had to be an easy answer. Seems like
it would even work well
. Essentially,
how would I invalidate each cache?
Normally, a cache routine checks for an expire time against a file. But what
is the equivalent with a database? Create a last updated field? Perhaps
there¹s a last updated flag in the db?
Ideas?
Cliff Hirsch
gt; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Cliff Hirsch
> Sent: Wednesday, October 03, 2007 10:04 AM
> To: NYPHP Talk
> Subject: Re: [nyphp-talk] Scripting to get a backup of your current MySQL
> database.
>
> On 10/3/07 9:57 AM, "Anthony Wloda
On 10/3/07 9:57 AM, "Anthony Wlodarski" <[EMAIL PROTECTED]> wrote:
> I was confused on the relevance of this topic but since PHP and MySQL go
> together like PB&J I thought it would be relevant.
>
> It has gotten to the point that the application that I built for candidate
> tracking is growing
>> I tried the following just to see if I could disable .php but it had no
>> effect.
>>
>>
>>RemoveType .php
>>Order allow,deny
>>Allow from all
>>Options Indexes
>>
>
> Hi,
> I am not sure if this helps, but, from the httpd manual:
>
> RemoveType direc
1 - 100 of 275 matches
Mail list logo