Search found 46 matches

by phait
Tue Jul 31, 2007 4:07 am
Forum: Swift Mailer
Topic: [SOLVED] your "perpetual while() loop" suugestion
Replies: 3
Views: 1852

@feyd
GAH! of course, I'd totally forgotten about this option and now I recall that I was using that a couple of years ago to solve a similar problem. What a doofus I am! Thanks for the reminder.

@d11wtg
yup. no problems there.

thanks for the replies.

paul.
by phait
Mon Jul 30, 2007 7:24 pm
Forum: Swift Mailer
Topic: [SOLVED] your "perpetual while() loop" suugestion
Replies: 3
Views: 1852

[SOLVED] your "perpetual while() loop" suugestion

hi, Your suggestion talks of a perpetual while loop running in the background and sleeping for a few seconds after every loop when sending a large batch of emails. I am curious how you get around the timeout / execution settings in php.ini if it is running perpetually? .. or have I misunderstood (qu...
by phait
Thu Jun 14, 2007 3:48 am
Forum: Swift Mailer
Topic: log failed errors
Replies: 2
Views: 1948

hey chris,
thanks for the reply. I'll have a butchers a the page referenced... and thanks for just confirming what I thought would need to happen.

paul
by phait
Wed Jun 13, 2007 11:50 am
Forum: Swift Mailer
Topic: log failed errors
Replies: 2
Views: 1948

log failed errors

hi, Just wanted to confirm something and ask for advice to mitigate it if possible. I have to send a newsletter to about 10K addresses each month. I would like to capture all the initial failures like so: ... sending stuff here... $failed = $swift->log->getFailedRecipients(); if ($sent) { echo("...
by phait
Mon Dec 18, 2006 6:09 pm
Forum: Testing
Topic: TDD: were to start
Replies: 5
Views: 4949

hi, In addition to what the commander mentioned above, if you use Simpletest, you can also produce the user acceptance tests / smoke tests / (insert other name here). So you can have your unit tests and then test them in situ on a test server prior to making them live, or perhaps just on your local ...
by phait
Mon Dec 18, 2006 11:25 am
Forum: PHP - Security
Topic: Creating a secure members area
Replies: 3
Views: 1466

hi,
why are posting an identical thread. You already started this discussion here:
viewtopic.php?t=60650

if you wanted to bump it why not just do so in the original post?

cheers,
phait
by phait
Wed Dec 13, 2006 9:06 am
Forum: PHP - Security
Topic: Creating a secure members area
Replies: 5
Views: 2421

hi, hmm, sounds like you have a few problems there. I could go over them all now, but I'm not going to as that may be a waste of time. The main thing I'd suggest you do immediately is work out just how much buy-in you have from the business for this. Your original post mentioned about having a websi...
by phait
Tue Dec 12, 2006 8:26 pm
Forum: PHP - Security
Topic: Creating a secure members area
Replies: 5
Views: 2421

apart from agreeing with neophyte's last sentance I also offer the following: moan Reading your last sentance. If you're looking for an excuse to use JSP's please do not come on here expecting ppl to give you the reasons to go to your boss, junk php and then proffer up Java as the solution to the pr...
by phait
Wed Sep 20, 2006 6:15 pm
Forum: Testing
Topic: expectOnce() on a static method?
Replies: 4
Views: 6451

if I understand you right, have you tried creating the class that contains the factory method as a partial mock and then pass in a mock object to be returned by that method. You should then be able to do an expectOnce on that method... assuming it is not private. You can have assertions against the ...
by phait
Fri Aug 20, 2004 6:01 am
Forum: Databases
Topic: which is most efficient query?
Replies: 5
Views: 1003

which is most efficient query?

Hi, Current situation: A little theory before we acually do any implementation. Myself and another developer are unsure as to which is the best method in terms of speed to use for storing a number of ids against one record. We have a table that records stoppages on waterways. Any one stoppage can ex...
by phait
Mon Aug 02, 2004 8:29 am
Forum: PHP - Code
Topic: Parse and grab certain words
Replies: 5
Views: 1426

hi, do you have to abbreviate the whole file to 160 or just the top lines which seem to carry location and what the warning is about? Also, do all the text files follow this format? - The reason i ask is that you could read the contents of the file line by line and you would know that line 1 contain...
by phait
Mon Aug 02, 2004 8:08 am
Forum: PHP - Code
Topic: New to PHP... Can this be done fairly simple?
Replies: 3
Views: 1004

hi, just to beef up codergoblin's post there are a number of templating systems out there. You could try searchng for some of these which will give you an idea of the power they offer: - smarty - pattemplate - FastTemplate google has the links you need. Alternatively, if you go to somewhere like php...
by phait
Mon Aug 02, 2004 8:04 am
Forum: PHP - Code
Topic: [SOLVED]late nite multi dimensional array blues
Replies: 2
Views: 907

[SOLVED] - late nite multi dimensional array problem

doh! yes of course. Thanks feyd, its always the little things that you miss isn't it.

Got that part of the script working as intended now.

many thanks for your eyeballs :)
by phait
Fri Jul 30, 2004 7:46 pm
Forum: PHP - Code
Topic: [SOLVED]late nite multi dimensional array blues
Replies: 2
Views: 907

[SOLVED]late nite multi dimensional array blues

hey all, wondered if someone could point me in the direction... I have a query that pulls out 'n' number of stoppages associated to one or more waterways. A sample query might be such as: <?php SELECT stoppages.type, stoppages.name, stoppages.wway_id, waterways.name AS wwayname FROM stoppages LEFT J...
by phait
Thu May 13, 2004 8:00 am
Forum: Miscellaneous
Topic: delete folder with ftp problem
Replies: 4
Views: 1666

I'm guessing that the ones with one set of rwx have possibly been created by a user on the server that you or the user running apache are no part of in a group. Therefore it will not let you delete them as there are no permissions set for a group or world, just for that user. Like I said it's a 'gue...