[PHP] order/reorder pull out data from arrays

2006-07-11 Thread Dallas Cahker
I have an array that i would like to sort and reorder based on a simple critera. I already order the data but I would like to break the data now into sections by customer id, so one customer has 5 things and another customer has one. How can I do that with an array. $data = orders($id,$status);

Re: [PHP] arrays

2006-07-10 Thread Dallas Cahker
ly PHP... if you want to make it associate you can...just push the assocative onto another array so you get the complete set... -B Dallas Cahker wrote: > Banging my head against a wall with arrays, maybe someone can help me > with > the answer. > > I have a db query that returns res

[PHP] arrays

2006-07-10 Thread Dallas Cahker
Banging my head against a wall with arrays, maybe someone can help me with the answer. I have a db query that returns results from 1-100 or more. I want to put the results into an array and pull them out elsewhere. I want them to be pulled out in an orderly and expected fashion. part of function

[PHP] getting subdirectory

2006-05-23 Thread Dallas Cahker
how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2 http://www.domain.com/subdir3 and subdir1, subdir2 and subdir3 all need differe

Re: [PHP] server/PHP security

2006-04-06 Thread Dallas Cahker
Is there a certain file type that you are looking for? You could restrict it to that, also you could chown the uploaded files to a no/low privelage user. On 4/6/06, Wolf <[EMAIL PROTECTED]> wrote: > > They all ended in .rar > > Files named: > b.php.rar > jpg.php.rar > c99.php.rar > > Dan McCullou

[PHP] style

2006-04-06 Thread Dallas Cahker
What is that called and where in the php.ini file do I enable it? Sorry if this is a stupid question but since I dont know what its called it makes it difficult to google it.

[PHP] php security

2006-04-06 Thread Dallas Cahker
I was looking to see if there was a quick checklist of settings for php to be disabled/enabled in the ini file to make the application more secure. I'm making sure the apps we come out with dont allow sql injections, or form injections and so forth, I have just seen some posts about magic quotes an

Re: [PHP] php, sessions and ie

2006-04-06 Thread Dallas Cahker
Thanks for the information On 4/4/06, Chrome <[EMAIL PROTECTED]> wrote: > > I let GC and cookie expiration handle ending the session... The cookie was > only set for 15 minutes > > Dan > > > --- > http://chrome.me.uk > > > -Original

Re: [PHP] help with some logic.

2006-04-06 Thread Dallas Cahker
Thanks makes it alot easier to follow. On 4/4/06, Dallas Cahker <[EMAIL PROTECTED]> wrote: > > Okay I'll look at that. > > What about switching to setting the password in md5 format in the cookie > rather then a regular id. I might not call the cookie password but to

Re: [PHP] php, sessions and ie

2006-04-04 Thread Dallas Cahker
lways use a DB to store sessions... Much nicer > > HTH > > Dan > > - > Dan Parry > Senior Developer > Virtua Webtech Ltd > http://www.virtuawebtech.co.uk > -Original Message- > From: Dallas Cahker [mailto:[EMAIL PROTECTED] > Sent: 04 April 2006 16:19 > To:

[PHP] php, sessions and ie

2006-04-04 Thread Dallas Cahker
I've been hearing some of my friends saying there is an issue with Session in PHP and IE having problems with them. Is that true? If it is how do people get around this? Session information saved to db? Session id in cookie?

Re: [PHP] help with some logic.

2006-04-04 Thread Dallas Cahker
r > as an answer but it might be a good start. > > On 4/4/06, Dallas Cahker <[EMAIL PROTECTED]> wrote: > > I've been looking at this code for a few hours now and I get the nagging > > feeling that I am overcomplicating something, something I never ever > do. I &

[PHP] help with some logic.

2006-04-04 Thread Dallas Cahker
I've been looking at this code for a few hours now and I get the nagging feeling that I am overcomplicating something, something I never ever do. I have a login that puts some information on the session, and if the customer wants they can ask to be remembered, the cookie is given the customers use