Re: [PHP] Create multipart email

2009-06-02 Thread Guus Ellenkamp
Thanks. I tried and it seems quite straightforward. However, I get the message 'could not instantiate mail function'. Seemed to have something to do with the 'to' address, but could not figure out what exactly. Also searched the internet, but did not find the solution. Any suggestion? Phpster

Re: [PHP] Create multipart email

2009-06-02 Thread Guus Ellenkamp
A bit of overkill, but it seems to work. Thanks! Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0905280823r162f91a0v15725e0dc7543...@mail.gmail.com... On Thu, May 28, 2009 at 4:47 AM, Guus Ellenkamp ellenkamp_g...@hotmail.com wrote: I'm trying to attach an uploaded file to an

[PHP] Re: Web application design considerations - a good reference ?

2009-06-02 Thread Tony Marston
If you are building a business application with PHP rather than an ordinary website then I suggest that you use a framework instead of trying to reinvent the wheel (and making a hash of it). The Radicore framework was specifically designed for CRUD applications - it uses forms to perform

Re: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread mrfroasty
I am on the same position, half a year ago I tried to wrote the PHP application (sake of learning) using from scratch approaches. Now I want to have a production application, I am bussy to start over and writting/intergrating everthing using a framework. I think for my case is Joomla... So I think

Re: [PHP] Re: PHP scalability problem -- APC vs EAccelerator

2009-06-02 Thread Eddie Drapkin
EAcellerator is just an opcode cache. It transparently caches PHP opcodes; all you have to do to use it is download, compile and enable and never worry about it again. APC, on the other hand, does a bit more. While APC also caches opcodes, it performs worse than EAC or xcache does (there's a

Re: [PHP] PHP Help

2009-06-02 Thread Bastien Koert
On Tue, Jun 2, 2009 at 12:33 AM, tRace DOliveira married...@yahoo.com wrote: I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is

RE: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread bruce
hi angus... You're probably going to get a lot of different approaches to this one! as a long term/time developer in a past life.. In my humble opinion, a reasonable approach is to start by laying out the key things that the app has to accomplish, and then to break this down into a list/sublist

Re: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 02:50:36PM +1000, Angus Mann wrote: Hi all. I'm working on a PHP project for my own personal business use. It will handle billing and invoices as well as payments and time management, bookings, appointments and a few more. I may add things like personal messaging

Re: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread Lists
Angus Mann wrote: Hi all. I'm working on a PHP project for my own personal business use. It will handle billing and invoices as well as payments and time management, bookings, appointments and a few more. I may add things like personal messaging between the various users and a customer login

Re: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread Sancar Saran
On Tuesday 02 June 2009 07:50:36 am Angus Mann wrote: Hi all. I'm working on a PHP project for my own personal business use. It will handle billing and invoices as well as payments and time management, bookings, appointments and a few more. I may add things like personal messaging between

Re: [PHP] PHP Help

2009-06-02 Thread Topbit
On Tue, Jun 2, 2009 at 5:33 AM, tRace DOliveira married...@yahoo.com wrote: I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is

Re: [PHP] Web application design considerations - a good reference?

2009-06-02 Thread Tony Marston
Paul M Foster pa...@quillandmouse.com wrote in message news:20090602134327.gk14...@quillandmouse.com... On Tue, Jun 02, 2009 at 02:50:36PM +1000, Angus Mann wrote: Hi all. I'm working on a PHP project for my own personal business use. It will handle billing and invoices as well as payments

Re: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread Eddie Drapkin
My suggestion to you is probably mosty a rehashing of what a lot of other people have said. I definitely think you should take a good, hard look at some existing solutions (frameworks, cms's, etc.) and decide whether you want to use one or not. In my experience, which is admittedly limited,

[PHP] PCI compliance issue

2009-06-02 Thread Skip Evans
Hey all, Some may remember my question awhile back about ensuring all CC forms are behind https. I've always put them so, but I've taken over maintenance on a site that did not and have since corrected the problem. Now the client is going for PCI compliance as a requirement by their credit

Re: [PHP] PHP Help

2009-06-02 Thread Eddie Drapkin
There's a few things about your post I'd like to comment on. One, if you're not using APC, I definitely agree with the fact that you're just wasting resources. However, you mention micro-optimizations and say that they're hardly useful, but in some cases it's a huge difference. ' vs. is like a

[PHP] [php] most recent row from table

2009-06-02 Thread HELP!
Hi, how do you select the most recent row from sql table if the date are stored this format date('Y-m-d H:i:s') e.g (2009-06-02 10:10:30) i have tried select top 1 from table where id = xx any solution -- www.bemycandy.com

Re: [PHP] Web application design considerations - a good reference?

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 03:49:03PM +0100, Tony Marston wrote: Paul M Foster pa...@quillandmouse.com wrote in message news:20090602134327.gk14...@quillandmouse.com... On Tue, Jun 02, 2009 at 02:50:36PM +1000, Angus Mann wrote: snip I would advise against this as hidden fields in forms

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Bastien Koert
On Tue, Jun 2, 2009 at 11:49 AM, HELP! izod...@gmail.com wrote: Hi, how do you select the most recent row from sql table if the date are stored this format  date('Y-m-d H:i:s')  e.g (2009-06-02 10:10:30) i have tried select top 1 from table where id = xx any solution -- www.bemycandy.com

Re: [PHP] PCI compliance issue

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 10:01:02AM -0500, Skip Evans wrote: Hey all, Some may remember my question awhile back about ensuring all CC forms are behind https. I've always put them so, but I've taken over maintenance on a site that did not and have since corrected the problem. Now the client

Re: [PHP] Web application design considerations - a good reference?

2009-06-02 Thread Michael A. Peters
Tony Marston wrote: Let me expand on that. When you have a form (which is what most of your application will be composed of), it will return all the data you need to process it. You process it, and proceed to a menu or somesuch to tackle the next task. If, for some reason, you need to track

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 04:49:44PM +0100, HELP! wrote: Hi, how do you select the most recent row from sql table if the date are stored this format date('Y-m-d H:i:s') e.g (2009-06-02 10:10:30) i have tried select top 1 from table where id = xx any solution This is the problem with

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 11:58:07AM -0400, Bastien Koert wrote: On Tue, Jun 2, 2009 at 11:49 AM, HELP! izod...@gmail.com wrote: Hi, how do you select the most recent row from sql table if the date are stored this format  date('Y-m-d H:i:s')  e.g (2009-06-02 10:10:30) i have tried

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Andrew Ballard
On Tue, Jun 2, 2009 at 12:19 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 02, 2009 at 11:58:07AM -0400, Bastien Koert wrote: On Tue, Jun 2, 2009 at 11:49 AM, HELP! izod...@gmail.com wrote: Hi, how do you select the most recent row from sql table if the date are stored

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Andrew Ballard
On Tue, Jun 2, 2009 at 12:17 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 02, 2009 at 04:49:44PM +0100, HELP! wrote: Hi, how do you select the most recent row from sql table if the date are stored this format  date('Y-m-d H:i:s')  e.g (2009-06-02 10:10:30) i have tried

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 12:33:24PM -0400, Andrew Ballard wrote: On Tue, Jun 2, 2009 at 12:17 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 02, 2009 at 04:49:44PM +0100, HELP! wrote: Hi, how do you select the most recent row from sql table if the date are stored this

RE: [PHP] PCI compliance issue

2009-06-02 Thread Bob McConnell
From: Skip Evans -- The reason why this issue is being flagged is simply that both links should bring you to the same page but if look at the HTTP header response (http://www.ranghart.com/cgi-bin/?D=A) it returns a 403 forbidden even though it still takes you to the

Re: [PHP] PCI compliance issue

2009-06-02 Thread Robin Vickery
2009/6/2 Skip Evans s...@bigskypenguin.com Hey all, The original programmer created the following in the system's .htaccess file: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php ...which sends any incorrect URL to the home page, correct?

[PHP] Re: [PHP-DEV] PHP scalability problem

2009-06-02 Thread Eddie Drapkin
Use a FastCGI process manager, then, and you'll have a tighter level of control. There's several CPU limiting tools that'll allow you to choke those processes, or you can simply set their nice value real high so they're super low priority. That's more the realm of server configuration than

[PHP] Redirect not working on server

2009-06-02 Thread revDAVE
I have this line at the end of 1 big php block... header('Location: mypage.php?id=' . $_SESSION['id'].'cat='.$_SESSION['cat']); It works fine on my dev. Testing server but does not forward on the actual website Any way to fix this? Home is php 5 Server (not sure) might not be 5 -

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
I found the answer here - I had --- whitespace ... if ?php is at line 2 Location: http://www.phpbuilder.com/board/showthread.php?t=10310794 Blank space above the php tag or below the final php tag It is not intuitive but ... if ?php is at line 2 of your script and a blank line is above it then

Re: [PHP] Redirect not working on server

2009-06-02 Thread Shawn McKenzie
revDAVE wrote: I found the answer here - I had --- whitespace ... if ?php is at line 2 Location: http://www.phpbuilder.com/board/showthread.php?t=10310794 Blank space above the php tag or below the final php tag It is not intuitive but ... if ?php is at line 2 of your script and a

[PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-02 Thread optomatic
Everybody has given Angus really great advice in this previous thread and I have learned a lot too. I hope no one mines the fork but I am in the exact same situation as Angus. If anyone could spare a bit of time regarding application infrastructure I would really appreciate it. I know there

[PHP] PHP Security

2009-06-02 Thread Grant Peel
Hi all, I am currently setting up the next generation web server for our company and am in need of general consulting/advice on php set up security issues. Any one with knowledge and expierience please feel free to reply :-). -Grant

Re: [PHP] PHP Security

2009-06-02 Thread Phpster
H, how about some details on OS, etc Bastien Sent from my iPod On Jun 2, 2009, at 17:26, Grant Peel gp...@thenetnow.com wrote: Hi all, I am currently setting up the next generation web server for our company and am in need of general consulting/advice on php set up security issues.

Re: [PHP] PHP Security

2009-06-02 Thread Kirk . Johnson
On Jun 2, 2009, at 17:26, Grant Peel gp...@thenetnow.com wrote: I am currently setting up the next generation web server for our company and am in need of general consulting/advice on php set up security issues. For general considerations, start here:

Re: [PHP] mail body not decoded by base64_decode

2009-06-02 Thread Manuel Lemos
Hello, on 05/29/2009 12:15 AM vuthecuong said the following: Hi all I'm using below function to send Japanese mail, mail clients such as outlook etc displayed Japanese text withou problems but if I viewed JP mail via web-based mail such as Gmail, the JP subject is normally displayed, however

Re: [PHP] PHP Security

2009-06-02 Thread Grant Peel
Thanks for the reply, Dell R200, Xenon Quad Core 2.8 GHz,, 3GB RAM, 160GB SAS Drive, FreeBSD 7.0, Developer package, no XWin, mod_security installed, Apache 2.2.4, Suexec enabled, HTTPS enabled, Proftp 1.3 (if memory serves), Exim 4.6, vm-pop3d, triggered from Inetd, Spamassassin 3.2 (if memory

Re: [PHP] Re: PHP Security

2009-06-02 Thread Grant Peel
??? - Original Message - From: Shawn McKenzie nos...@mckenzies.net To: php-general@lists.php.net Sent: Tuesday, June 02, 2009 7:39 PM Subject: [PHP] Re: PHP Security Grant Peel wrote: Hi all, I am currently setting up the next generation web server for our company and am in need

[PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-02 Thread Daevid Vincent
I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have 500 Million rows. This used to be done in real time when we had less rows, but recently we got a big dump of data that shot it up. So, noticing via myTop the query taking

Re: [PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 04:36:28PM -0400, optoma...@rogers.com wrote: Everybody has given Angus really great advice in this previous thread and I have learned a lot too. I hope no one mines the fork but I am in the exact same situation as Angus. If anyone could spare a bit of time regarding

Re: [PHP] Redirect not working on server

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 11:50:55AM -0700, revDAVE wrote: I have this line at the end of 1 big php block... header('Location: mypage.php?id=' . $_SESSION['id'].'cat='.$_SESSION['cat']); It works fine on my dev. Testing server but does not forward on the actual website Any way to

Re: [PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-02 Thread Eddie Drapkin
High-performance builds of mysql are still faster. And with 5.4 integrating a lot of performance boosts, I'd expect MySQL to retain that lead for a lot longer. There's also a lot more guides / support for MySQL around, as well as having a more robust choosing of UDF's, if you were to need them.

Re: [PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-02 Thread Phpster
On Jun 2, 2009, at 21:13, Daevid Vincent dae...@daevid.com wrote: I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have 500 Million rows. This used to be done in real time when we had less rows, but recently we got a

[PHP] Book site question

2009-06-02 Thread bruce
Hi List... A little while ago... (in a land far away!!).. Someone posted some questions about a site he/she was creating having to do with textbooks... I'm trying to find that person to talk to them about what they were doing... I've searched my past emails but can't find it.. So, maybe I

Re: [PHP] Re: PHP Security

2009-06-02 Thread b
Grant Peel wrote: ??? I think you can safely assume that was a joke. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
Thank you Jay - Shawn Paul for helping this newbie! -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php