php-general Digest 26 Aug 2010 14:15:04 -0000 Issue 6911

2010-08-26 Thread php-general-digest-help
php-general Digest 26 Aug 2010 14:15:04 - Issue 6911 Topics (messages 307679 through 307700): Re: Web application architecture (subdomain vs. sub directory) 307679 by: Per Jessen 307680 by: Per Jessen 307681 by: Peter Lind 307682 by: Per Jessen 307694

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Per Jessen
Tim Martens wrote: Thanks for all your answers. To clarify my question, I'm looking for advice regarding how best to set up users for a web app, e.g., username.myapp.com vs myapp.com/username and the pros and cons of each. Using username.myapp.com means defining that name in your DNS and

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Per Jessen
Shreyas Agasthya wrote: I am not sure who the end-users are for your website but if you are concerned about scalability, I would definitely go for a sub-domain approach. Assuming you approach a CDN like Akamai and you want to offload the traffic to come from the cloud, it's lot easier for you

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Peter Lind
On 26 August 2010 08:08, Per Jessen p...@computer.org wrote: Tim Martens wrote: Thanks for all your answers. To clarify my question, I'm looking for advice regarding how best to set up users for a web app, e.g., username.myapp.com vs myapp.com/username and the pros and cons of each. Using

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Per Jessen
Peter Lind wrote: On 26 August 2010 08:08, Per Jessen p...@computer.org wrote: Tim Martens wrote: Thanks for all your answers. To clarify my question, I'm looking for advice regarding how best to set up users for a web app, e.g., username.myapp.com vs myapp.com/username and the pros and

[PHP] XML with PHP

2010-08-26 Thread user
Hi I am trying to read XML files (invoices) from a directory and display them to the visitor. Each XML file contains several invoices. The visitor then clicks on the XML file (invoices). My PHP snippet should open the xml file and locate the appropriate invoice and display the content. I

Re: [PHP] XML with PHP

2010-08-26 Thread Michael Shadle
On Thu, Aug 26, 2010 at 2:54 AM, u...@domain.invalid wrote: Hi I am trying to read XML files (invoices) from a directory and display them to the visitor. Each XML file contains several invoices. The visitor then clicks on the XML file (invoices). My PHP snippet should open the xml file and

Re: [PHP] XML with PHP

2010-08-26 Thread Michael Shadle
On Thu, Aug 26, 2010 at 3:10 AM, Sridhar Pandurangiah sridharpa...@gmail.com wrote: Mike Thanks a ton for the quick response. I have updated the mail id on my email client (using Mozilla TB) and I did repost but your reply was quicker! Will try this out and post the results on this thread.

[PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
Hi I am trying to read XML files (invoices) from a directory and display them to the visitor. Each XML file contains several invoices. The visitor then clicks on the XML file (invoices). My PHP snippet should open the xml file and locate the appropriate invoice and display the content. I have

Re: [PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
Hi I guess my post was misunderstood. I was just trying to figure out if there is a better way other than displaying a form. That's the reason I posted my php snippet in my first post. Thanks for the help. Best regards Sridhar Original Message Subject: Re: [PHP] XML with

Re: [PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
Mike Thanks a ton for the quick response. I have updated the mail id on my email client (using Mozilla TB) and I did repost but your reply was quicker! Will try this out and post the results on this thread. Just waiting for someone to throw light on how to capture the filename that the user

Re: [PHP] two questions on serverside validation

2010-08-26 Thread tedd
At 3:59 PM +0100 8/25/10, Ashley Sheridan wrote: 2.4 seconds doesn't seem so bad on 10 million iterations, but yes, it does show that you should avoid it if it's really not necessary. Most often I'll use that sort of syntax if I do something like this: $greeting = Hello $name, not seen you

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread tedd
At 1:45 PM -0500 8/25/10, Tim Martens wrote: Hi Everyone, New to the list. Hello! I'm in the customer discovery phase for a Health IT web application concept I have. My programmer is new to web apps, but not to programming and is set up with LAM(PHP). We're still debating weather to use a

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread tedd
At 4:45 PM -0500 8/25/10, Tim Martens wrote: Thanks for all your answers. To clarify my question, I'm looking for advice regarding how best to set up users for a web app, e.g., username.myapp.comvs myapp.com/username and the pros and cons of each. All users will be using essentially the same app

RE: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Bob McConnell
From: tedd At 1:45 PM -0500 8/25/10, Tim Martens wrote: Hi Everyone, New to the list. Hello! I'm in the customer discovery phase for a Health IT web application concept I have. My programmer is new to web apps, but not to programming and is set up with LAM(PHP). We're still debating weather to

Re: [PHP] Variable in variable.

2010-08-26 Thread Robert Cummings
On 10-08-26 09:54 AM, João Cândido de Souza Neto wrote: I know that in PHP I can use this: $var1 = text; $var2 = '$var1'; 4cho $$var2; So it gives me text. It would if you didn't have typos and the wrong quotes in the above :) My question is, is there a way of doing it with constant like

Re: [PHP] Variable in variable.

2010-08-26 Thread Jo�o C�ndido de Souza Neto
Really cool... Thanks and fogive me by my mistake. hehe -- João Cândido de Souza Neto Robert Cummings rob...@interjinn.com escreveu na mensagem news:4c76743a.2060...@interjinn.com... On 10-08-26 09:54 AM, João Cândido de Souza Neto wrote: I know that in PHP I can use this: $var1 = text;

[PHP] Does array_splice() fit for case ?

2010-08-26 Thread Alfredo Palhares
Hello, This is kinda a noob question, but that's what i am :) I have a 2 dimensions array (the first dimension are normal keys ) and in the second dimension haves custom arrays but they all have a comon key that is *id. *The array comes ascending ordered by the numbers of *id* . When i receive

RE: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread tedd
At 9:58 AM -0400 8/26/10, Bob McConnell wrote: From: tedd 4. Host? Roll the dice like the rest of us. Before you can select a hosting provider, define what you want. Are you looking for a cage with power and network connections, a VM that you can load up and manage, or a fully managed

[PHP] Upload using FTP commands

2010-08-26 Thread Matthew Croud
Hi, I want to give my client the ability to upload large files ( around 20MB ) to a webspace. I reckon that using the FTP commands of PHP would be the best bet, but is it possible to allow them to do this through an online form. This is my vision: the client logs in to a form that has an

[PHP] pecl/oauth - possible to send HTTP request myself?

2010-08-26 Thread Marc Abramowitz
The typical way to use pecl/oauth seems to use OAuth::fetch which does everything including sending the HTTP request using curl or php streams. I'd like to be able to use pecl/oauth to do everything up to and including calculating the signature but then send the request using different code.

Re: [PHP] Upload using FTP commands

2010-08-26 Thread Dan McCullough
Take a look here: http://us.php.net/manual/en/ref.ftp.php You might have some issues with the memory limit in PHP so that might have to be boosted for 20MB files. On Thu, Aug 26, 2010 at 12:24 PM, Matthew Croud m...@obviousdigital.comwrote: Hi, I want to give my client the ability to upload

[PHP] Re: Upload using FTP commands

2010-08-26 Thread Jo�o C�ndido de Souza Neto
A form sendind a file has nothing to do with FTP functions of PHP. You´ll still need to change de upload_max_filesize and so on in order to send such files to the server. -- João Cândido de Souza Neto Matthew Croud m...@obviousdigital.com escreveu na mensagem

Re: [PHP] Upload using FTP commands

2010-08-26 Thread Ashley Sheridan
On Thu, 2010-08-26 at 17:24 +0100, Matthew Croud wrote: Hi, I want to give my client the ability to upload large files ( around 20MB ) to a webspace. I reckon that using the FTP commands of PHP would be the best bet, but is it possible to allow them to do this through an online form.

Re: [PHP] tutorial failure

2010-08-26 Thread e-letter
On 20/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: You don't have to reinstall the entire OS, that's a very Windows approach to the problem. I played around a bit last night with urpmi and you should be able to just list the packages you need with urpmq --fuzzy package_name, and

Re: [PHP] tutorial failure

2010-08-26 Thread Ashley Sheridan
On Thu, 2010-08-26 at 17:45 +0100, e-letter wrote: On 20/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: You don't have to reinstall the entire OS, that's a very Windows approach to the problem. I played around a bit last night with urpmi and you should be able to just list the

[PHP] Re: Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Tim Martens
Thank you everyone for your generous feedback. It's given me a lot to think about. I now realize that my question has as much to do with DNS and Apache as with PHP. As we clarify the functionality and essence of the app, I'll post again with more focussed questions. Based on advice here and

Re: [PHP] Upload using FTP commands

2010-08-26 Thread Adam Richardson
On Thu, Aug 26, 2010 at 12:37 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Thu, 2010-08-26 at 17:24 +0100, Matthew Croud wrote: Hi, I want to give my client the ability to upload large files ( around 20MB ) to a webspace. I reckon that using the FTP commands of PHP would be

[PHP] Making multiple RSS feeds for the blog website

2010-08-26 Thread Andre Polykanine
Hi everyone, We are developing a blog service website. What we need now is the ability to make multiple RSS feeds from several pages (an RSS of each user's blog, a feed from each timeline - timelines are our representation of users' favorites; a feed filled with comments to a separate entry,

[PHP] Re: Making multiple RSS feeds for the blog website

2010-08-26 Thread Michelle Konzack
Hello Andre Polykanine, Am 2010-08-27 02:52:48, hacktest Du folgendes herunter: Hi everyone, We are developing a blog service website. Very interesting ;-) Question: how do we do that with PHP? By reading the Documentation... :-D html head titleBlubber Blog/title link rel=alternate

RE: [PHP] Making multiple RSS feeds for the blog website

2010-08-26 Thread Daevid Vincent
-Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: Thursday, August 26, 2010 4:53 PM To: php-general Subject: [PHP] Making multiple RSS feeds for the blog website Hi everyone, We are developing a blog service website. What we need now is the ability to

Re: [PHP] Does array_splice() fit for case ?

2010-08-26 Thread viraj
hi alfredo.. i really love to help.. but could you please explain a bit clear. may be with sample input arrays and the expected out put array. ~viraj On Thu, Aug 26, 2010 at 7:45 PM, Alfredo Palhares masterk...@gmail.com wrote: Hello, This is kinda a noob question, but that's what i am :) I