# |
Aug 8th 2008, 11:41 |
AD7six |
aaronfalloon: how is that going to affect the php user |
# |
Aug 8th 2008, 11:40 |
aaronfalloon |
AD7six: Anyone who registers an account on my website. |
# |
Aug 8th 2008, 11:40 |
AD7six |
aaronfalloon: define "anyone" |
# |
Aug 8th 2008, 11:40 |
AD7six |
linked_: the xml helper is for generating xml |
# |
Aug 8th 2008, 11:39 |
aaronfalloon |
AD7six: Even if I want to allow anyone to upload things to my server? |
# |
Aug 8th 2008, 11:38 |
AD7six |
aaronfalloon: imo that doesn't make any sense. you'd be better off setting permissions and ownership appropriately in the first place. |
# |
Aug 8th 2008, 11:36 |
linked_ |
AD7six: I can't seem to find methods for creating one (aside from xml generation from array) |
# |
Aug 8th 2008, 11:36 |
aaronfalloon |
AD7six: For extra security. |
# |
Aug 8th 2008, 11:36 |
AD7six |
aaronfalloon: why bother |
# |
Aug 8th 2008, 11:36 |
linked_ |
AD7six: nope, just trying to look at it's code. not so much info about it online |
# |
Aug 8th 2008, 11:35 |
linked_ |
i'm looking for something like $xml->createParentNode('parent1'), |
# |
Aug 8th 2008, 11:35 |
AD7six |
linked_: have you used it for parsing |
# |
Aug 8th 2008, 11:35 |
aaronfalloon |
AD7six: I want to be able to change the permissions back afterwards. |
# |
Aug 8th 2008, 11:35 |
linked_ |
is cakephp's xml helper good for parsing only? |
# |
Aug 8th 2008, 11:35 |
AD7six |
why? |
# |
Aug 8th 2008, 11:35 |
AD7six |
aaronfalloon: you're trying to set permissions from within php? |
# |
Aug 8th 2008, 11:35 |
linked_ |
greetings. |
# |
Aug 8th 2008, 11:35 |
aaronfalloon |
and ...'777'). |
# |
Aug 8th 2008, 11:34 |
aaronfalloon |
I'm trying to allow my application permission to upload to that directory. Hence, the chmod command. So I have this, "chmod('img/uploads'). |
# |
Aug 8th 2008, 11:33 |
AD7six |
aaronfalloon: what do you mean you're saving to img/uploads ++ " I can't get a chmod to find the folder" |
# |
Aug 8th 2008, 11:32 |
aaronfalloon |
I;m saving them to img/uploads, and no. Where's the documentation on that? |
# |
Aug 8th 2008, 11:32 |
AD7six |
aaronfalloon: are you using the upload behavior |
# |
Aug 8th 2008, 11:31 |
AD7six |
__mork: exactly what it says on the tin - see the book. |
# |
Aug 8th 2008, 11:31 |
asciimo |
aaronfalloon: do you mean chmod from the command line? |
# |
Aug 8th 2008, 11:31 |
AD7six |
aaronfalloon: where are you saving your upload files - your question is odd because what you're asking about isn't something cake takes care of. |
# |
Aug 8th 2008, 11:31 |
__mork |
AD7six: ehm, what are array urls? |
# |
Aug 8th 2008, 11:30 |
aaronfalloon |
I;ve tried tonnes of combinations but can't get it to work. |
# |
Aug 8th 2008, 11:29 |
AD7six |
aaronfalloon: what an odd question |
# |
Aug 8th 2008, 11:29 |
aaronfalloon |
I'm having trouble getting uploads to work with CakePHP. I can't get a chmod to find the folder. Anybody know the root I need to give it? I currently have: /img/uploads/. |
# |
Aug 8th 2008, 11:29 |
AD7six |
unless you are working with 1.1 |
# |
Aug 8th 2008, 11:29 |
AD7six |
__mork: you have less difficulties overall if you use array urls |
# |
Aug 8th 2008, 11:28 |
AD7six |
asciimo: you can 'cherry pick' your relationships to fit what's more appropriate. $Listener->Rating->save() [Listner hasMany Rating] $music = $Music->find() [ Music habtm Lovers,Haters] |
# |
Aug 8th 2008, 11:27 |
__mork |
shame on __mork |
# |
Aug 8th 2008, 11:27 |
__mork |
answer: the operator is .= |
# |
Aug 8th 2008, 11:27 |
__mork |
i mean, why don't work += ? |
# |
Aug 8th 2008, 11:26 |
__mork |
please, be patient: why after if ($link['url'] =='/users/view'){ $link['url'] += $User['id'];} $link['url'] == $User['id'] ? |
# |
Aug 8th 2008, 11:26 |
asciimo |
that's a good idea, AD7six. thank you |
# |
Aug 8th 2008, 11:25 |
asciimo |
SAWEET. so it comes into play during the retrieval. |
# |
Aug 8th 2008, 11:25 |
AD7six |
asciimo: imo music_listeners should be named 'ratings' or 'opinions' |
# |
Aug 8th 2008, 11:24 |
asciimo |
ultimately, I want to display all the "musics" at the view, along with all the listeners who hate each, and all the listeners who love each |
# |
Aug 8th 2008, 11:24 |
AD7six |
thereÅ› a condition key in all assoiciations and you can define 'conditions' => array('MusicListner. type' => 'love') to limit what you find (for example). that wouldn't affect inserts - IMO the easiest way to do so is to treat the join table as a model. |