Search found 11 matches

by cpetzol2
Sat Feb 14, 2009 11:50 am
Forum: PHP - Code
Topic: Using returned array from function
Replies: 0
Views: 106

Using returned array from function

I have a function that returns an array(of various types) by value (well ... I hope its not a reference) public function myClass::pullQueryMeta( ( int ) $identifier ) { stuff;stuff;stuff;   return $this->resource_list[$index_id]; }   // private myClass::resource_list[]; is indexed numerically, and i...
by cpetzol2
Tue Sep 25, 2007 3:12 am
Forum: PHP - Security
Topic: Issues using Cookies
Replies: 12
Views: 2795

(Sorry for being so inquisitive) Right now, I am using a cookie to store the "fingerprint" for the session, along with the username and password needed to connect to the databases. Is it safer to store the database info in a cookie or the session? Which is easier to compromise; cookies or ...
by cpetzol2
Tue Sep 25, 2007 3:04 am
Forum: PHP - Security
Topic: Issues using Cookies
Replies: 12
Views: 2795

I understand nothing is perfect, or this security section would not exist. I also understand that different implementations of sessions require different procedures. (To the question) Is there a "best practice" for making secure sessions? Everything I read tells you how to make sessions wo...
by cpetzol2
Sun Sep 23, 2007 9:17 pm
Forum: PHP - Security
Topic: Issues using Cookies
Replies: 12
Views: 2795

So, is regenerating the SessionID on each page a good idea, or is it overkill? Another question that has come up.... I noticed that when I set the action of some forms =http://www.somesite.com/action.php, my session management code seems to fall apart. But if I set the action of a form =action.php, ...
by cpetzol2
Sun Sep 23, 2007 2:46 pm
Forum: PHP - Security
Topic: Issues using Cookies
Replies: 12
Views: 2795

Why do you keep regenerating the Session? I can understand for a login and such, but Every page? Now, thats what I am looking for. I think I am just paranoid from reading what I have about php security. I just thought that using cookies for really important information was safer than sessions. I al...
by cpetzol2
Sun Sep 23, 2007 1:48 pm
Forum: PHP - Security
Topic: Issues using Cookies
Replies: 12
Views: 2795

Issues using Cookies

I am currently making a simple session manager to manage members of an organization. Most members can only view protected content, but a handful must have administrative privileges. I am a little lost on how to make this secure (enough from them at least). There are no credit card numbers or SSN's, ...
by cpetzol2
Thu Aug 02, 2007 12:42 pm
Forum: PHP - Code
Topic: php execution speed
Replies: 3
Views: 506

php execution speed

Hello, Currently I am developing a website, and find myself being torn between coding as efficiently as possible and using extra code to provide good structure. When you run 100-200 lines of code, the client gets a response from the server very quickly for every new page request. At what point will ...
by cpetzol2
Sat Jun 23, 2007 3:19 pm
Forum: PHP - Theory and Design
Topic: Design Advice
Replies: 5
Views: 1382

Thanks for your reply. I think I may have been misleading by mentioning optimization and efficiency. I am not necessarily referring to speed, but more integrity. With that in mind, would you change your suggestions or do they still stand as is?
by cpetzol2
Sat Jun 23, 2007 2:42 pm
Forum: PHP - Code
Topic: htmlspecialchars()
Replies: 2
Views: 487

htmlspecialchars()

I am here to ask about the performance of htmlspecialchars(). I am designing a simple template system that does not parse code, but uses <?php?> breaks in order to insert values within a buffer. With performance in mind, would it be better if I used htmlspecialchars() in the corresponding template t...
by cpetzol2
Sat Jun 23, 2007 1:51 pm
Forum: PHP - Theory and Design
Topic: Design Advice
Replies: 5
Views: 1382

Design Advice

Hello, I am attempting to tackle a fairly large project ( it is for me anyways..). I am completely self taught when it comes to programming. I would have to say that I have done pretty good so far, but I have never done anything this big, and I am finding myself getting caught up with questions abou...
by cpetzol2
Tue Feb 27, 2007 7:52 pm
Forum: PHP - Theory and Design
Topic: User Management
Replies: 2
Views: 937

User Management

Hello, I am somewhat new to PHP and OOP. I am beginning to frame out a pretty big website that I would like to make, and was just wondering if anybody has some advice they would like to share to help me get off of the ground. My main question is regarding Bulletin Boards. I want my website to have a...