Re: [PHP] User question for PHP

2006-10-19 Thread Andy Hultgren
To whoever was asking this (sorry didn't see the original email): Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not "wwwrun" or "nobody"? I was recently exchanging on this lis

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Andy Hultgren
tion parameters by reference* I think that does what you want? Andy On 10/11/06, Jônata Tyska Carvalho <[EMAIL PROTECTED]> wrote: I know that function does not work, but im asking if someone know a way to do that. Someone know how ??? On 10/11/06, Andy Hultgren < [EMAIL PROTECTED]>

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Andy Hultgren
u no... I suppose I should have though! :) On 10/11/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Andy Hultgren wrote: > Would something like this work? did you try it? ;-) it won't work > > Definition: > function example($$ex) { >echo "Variable Name

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Andy Hultgren
Would something like this work? Definition: function example($$ex) { echo "Variable Name is $ex"; } example($ball); I'm fairly new to php and not so familiar with variable variables, but I thought I'd throw it out there as a thought! Andy On 10/11/06, Jochem Maas <[EMAIL PROTECTED]> wrote

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
} } data_lv.sendAndLoad("myScript.php", data_lv, "POST"); /**/ This works perfectly and php receives all of the data correctly. Thanks guys for your thoughts. I'm going to be posting an addition to the online ActionScript documentation to hopefully help others avoi

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
Am working on #2 right now... On 10/6/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, October 6, 2006 4:01 pm, Andy Hultgren wrote: > /*/ > $data = $_POST; > $stuff = "\n \n Post contains:"; > > foreach($data as $prop

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
7;a' prop isn´t an array? Can you post your ActionScript codemaybe it´ll help! :D Good Luck 2006/10/6, Andy Hultgren < [EMAIL PROTECTED]>: > > Hi everyone, > > So, I'm trying to receive POSTed data which is being sent from Flash > structured as a nested array p

[PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
Hi everyone, So, I'm trying to receive POSTed data which is being sent from Flash structured as a nested array pictured (conceptually): "id" contains (a, b, c) "a" contains (prop1 => a1, prop2 => a2, ...) "b" contains (prop1 => b1, prop2 => b2, ...) "c" contains (prop1 => c1, prop2 => c2, ...)

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
y good foundation to start from on these questions of site security, and I appreciate you taking the time to pass on your expertise to a newcomer. All the best, Andy On 9/27/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, September 27, 2006 12:12 pm, Andy Hultgren wrote: > So I'v

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
my homepage like the ones that you see in taxis sometimes: "This driver never carries more than $20 cash." --> "This website never carries anyone's financial information." :) Andy On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, September 25, 200

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
really appreciate you guys jumping in a giving me a hand. Hopefully I get good enough at this that I can return the favor sometime!!! Andy On 9/25/06, Eric Butera <[EMAIL PROTECTED]> wrote: On 9/25/06, Andy Hultgren <[EMAIL PROTECTED]> wrote: > > Tedd, > > Thanks so mu

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
ing)? As always, thank you so much for your help. Andy On 9/25/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Sun, September 24, 2006 11:04 pm, Andy Hultgren wrote: > I really appreciate your help with this. > > To answer your first question: when people surf to my si

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
er to establish an ftp connection within PHP and then use the ftp series of functions to accomplish all of the directory creation and permissions changes? If so, then I will probably change my code to follow yours. Andy On 9/25/06, tedd <[EMAIL PROTECTED]> wrote: At 9:32 PM -0600 9/24/06

Re: [PHP] File Upload Security and chmod

2006-09-24 Thread Andy Hultgren
en you are finished uploading/saving/downloading/etc.? I have my "uploaded_images/" directory set at chmod 0100 and I can still browse to an uploaded image from my file upload page... Thanks for your response, Andy On 9/23/06, tedd <[EMAIL PROTECTED]> wrote: At 7:19 PM -0600 9/

Re: [PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
onvenience of not needing to "cd public_html" -- which then means you never *SEE* that you have space outside your webtree... Stop doing that. An extra click or whatever to get into public_html is not that big of a deal. On Fri, September 22, 2006 7:21 pm, Andy Hultgren wrote: >

Re: [PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
EMAIL PROTECTED]> wrote: On Fri, September 22, 2006 3:58 pm, Andy Hultgren wrote: > that as my root directory is simply www.myDomain.com and not > ".public_html/" and I am on a shared server where my root cannot be I got two words for you: Change Hosts -- Like Music? http:/

[PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
Hi, I am relatively new to php and am trying to set up a file upload process for my website. I have read through the php security documentation and a number of the security-related questions on these lists and am attempting to implement as many of the measures as possible. One of the suggestions