Re: [Fwd: Re: [PHP] Re: How to take output from an include, and embed it into a variable?]

2009-09-25 Thread Robert Cummings
Carl Furst wrote: You mean like this ? $file string = file_get_contents(urlencode($file_path)); $result = eval($file_string); ?> Well I see a few problems with this. One is that scope is not lexical. In other words if $foo exist

[Fwd: Re: [PHP] Re: How to take output from an include, and embed it into a variable?]

2009-09-25 Thread Carl Furst
You mean like this ? $file string = file_get_contents(urlencode($file_path)); $result = eval($file_string); ?> Well I see a few problems with this. One is that scope is not lexical. In other words if $foo exists somewhere in the

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Robert Cummings
Caner Bulut wrote: Hi All, Is there a stable or standart directory layout for PHP project (like web sites)?. Example; index.php img/ css/ js/ lib/ doc/ tools/ Thanks. There's no standard. My advice is to use easily identifiable names. The above are quite obbvious. My own preference thoug

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Daniel Brown
On Fri, Sep 25, 2009 at 19:30, Caner Bulut wrote: > > I will be out of office between 18th - 28th of June. That's fantastic. Have a nice ten-day vacation nine months from now. Thanks for letting us know so far in advance! ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.p

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Daniel Brown
On Fri, Sep 25, 2009, Caner Bulut wrote: > > Is there a stable or standart directory layout for PHP project (like web > sites)?. The very plain, simple answer is: no. There are similarities between projects, and common, logical reasons for doing them but nothing that would quite earn th

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Jim Lucas
Caner Bulut wrote: > Hi All, > > Is there a stable or standard directory layout for PHP project (like web > sites)?. > > Example; > > index.php > img/ > css/ > js/ > lib/ > doc/ > tools/ > > Thanks. > Here are a few references that I found with a quick G search http://www.shorewalker.com/bl

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-25 Thread Phpster
On Sep 25, 2009, at 3:12 PM, Geert Tapperwijn wrote: Can't you just use the eval function, and parse the code from the include file in it? .. or is there something I'm missing her Because eval has risks if code gets injected into the code you mean to run.

RE: [PHP] Web Site Directory Layout

2009-09-25 Thread Caner Bulut
Thanks Bastien for your advice, But i still waiting some more advice from experienced developers, maybe this is related about security and directory permissions? Thanks. -Original Message- From: Phpster [mailto:phps...@gmail.com] Sent: Saturday, September 26, 2009 2:19 AM To: Caner Bul

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Phpster
On Sep 25, 2009, at 6:50 PM, "Caner Bulut" wrote: Hi All, Is there a stable or standart directory layout for PHP project (like web sites)?. Example; index.php img/ css/ js/ lib/ doc/ tools/ Thanks. It depends. Using of the many frameworks will force you to userheir l

[PHP] Web Site Directory Layout

2009-09-25 Thread Caner Bulut
Hi All, Is there a stable or standart directory layout for PHP project (like web sites)?. Example; index.php img/ css/ js/ lib/ doc/ tools/ Thanks.

Re: Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-25 Thread Geert Tapperwijn
Can't you just use the eval function, and parse the code from the include file in it? .. or is there something I'm missing here? 2009/9/25 Carl Furst > > > Jim Lucas wrote: > >> Ashley Sheridan wrote: >> >> >>> On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote: >>> >>

[PHP] Bad impact of memory_limit set to -1 ?

2009-09-25 Thread Manuel Vacelet
Hi all, I fighting with SoapServer to be able to upload large file base64 encoded. Every so often I get memory exhausted error messages and memory_get_usage() tells me that my script starts with more than 250MB allocated (for a soap request of 85MB!). I'm wondering if I would let memory_limit unb

Re: [PHP] RIGHT Function?

2009-09-25 Thread tedd
At 12:33 PM -0700 9/24/09, sono...@fannullone.us wrote: On Sep 24, 2009, at 12:15 PM, Jay Blanchard wrote: substr will work from right to left. If your data is in a variable do this; Thanks, Jay. That does the job. Frank Frank: I came to this thread a little late, but the follow