Should be a quick clean interface for mods to create a knowledge-base of FAQs. For instance, Christopher's response to the C bullet post... or $_POST over $_REQUEST.
IMO phpbb shoulda come with it, assuming it didn't.
Search found 28 matches
- Mon Aug 22, 2011 1:32 am
- Forum: PHP - Code
- Topic: call to member function on non-object.
- Replies: 3
- Views: 966
Re: call to member function on non-object.
Looking at your print_r and your function declarations everything should work fine. You may have to post more code, because the print_r returns a valid object... and if your functions are defined properly then they should (as you stated) return the proper private property value.
- Mon Aug 22, 2011 1:18 am
- Forum: PHP - Code
- Topic: Force Image Upload Upon Registration
- Replies: 9
- Views: 3957
Re: Force Image Upload Upon Registration
Again, at first glance: Looking at your script, the first problem I see is that you are calling the if(everything failed) is still inside the same if(everything works). You want to make sure that the IF statement that contains (everything is working fine) works like: if(blah is good) { } else { (bla...
- Mon Aug 22, 2011 12:27 am
- Forum: PHP - Theory and Design
- Topic: Need Help
- Replies: 7
- Views: 4974
Re: Need Help
i hve 9 whole months and coding in php s also not a problem.But i am not getting an idea how a social networking site works..if any1 can brief me on it..will be really helpfull..even links to any articles will do. I have over 22 years of programming experience... I'm 32. If you have experience in p...
- Mon Aug 22, 2011 12:23 am
- Forum: PHP - Code
- Topic: Force Image Upload Upon Registration
- Replies: 9
- Views: 3957
Re: Force Image Upload Upon Registration
Without seeing your entire re-write, I can safely say we have no idea what is going on.
- Fri Aug 19, 2011 6:25 pm
- Forum: PHP - Theory and Design
- Topic: Bitwise
- Replies: 6
- Views: 3737
Re: Bitwise
I'm looking Codd up now, thanks for your suggestions Cal.
- Fri Aug 19, 2011 5:17 pm
- Forum: PHP - Code
- Topic: Force Image Upload Upon Registration
- Replies: 9
- Views: 3957
Re: Force Image Upload Upon Registration
Off the top of my head, if I trust your bracket indentation: mkdir("members/$id", 0755); Is called AFTER you attempt to: move_uploaded_file( $_FILES['fileField']['tmp_name'], "members/$id/".$newname) Looks like since you haven't created it yet, that you can't move a file to it.
- Fri Aug 19, 2011 3:09 pm
- Forum: PHP - Theory and Design
- Topic: Need Help
- Replies: 7
- Views: 4974
Re: Need Help
I didn't respond to this because I didn't want to say what Jonah did. You're looking at quite an undertaking. Even Facebook started out as just a picture and some wall posts and then progressed, but I'm sure he had a solid programming background to finish it in the few hours he did. You could easily...
- Fri Aug 19, 2011 2:59 pm
- Forum: PHP - Theory and Design
- Topic: Best Way to Call Data From MySql Table
- Replies: 3
- Views: 2718
Re: Best Way to Call Data From MySql Table
If you store the information in your own database (or if it's stored in another database) it would be quicker (imo) to retrieve it as needed. Quoted for (imo) truth. I would assume the time it takes (traffic aside) to read in a query from a database even with a large table is less consuming than se...
- Fri Aug 19, 2011 2:49 pm
- Forum: PHP - Code
- Topic: PHP & Array
- Replies: 8
- Views: 614
Re: PHP & Array
Yeah, good point about the function be called in every iteration. There is no way of knowing how many iterations will be done and the script might be run via cron job every x minutes so every bit of time saved is probably crucial somewhere. And you're right, it is a good thing being efficient. Last...
- Fri Aug 19, 2011 2:36 pm
- Forum: PHP - Code
- Topic: how to establish the socket connection to enduser ?
- Replies: 2
- Views: 413
Re: how to establish the socket connection to enduser ?
You could maybe redirect the client to a port based on a URL link? Then again, they'd have to have software installed to communicate with that port.
- Fri Aug 19, 2011 2:14 pm
- Forum: PHP - Code
- Topic: how to establish the socket connection to enduser ?
- Replies: 2
- Views: 413
Re: how to establish the socket connection to enduser ?
I would hope, based on what I think you're asking... that you can't open a socket connection on my system because I visited your site without me downloading something. :P *edit* Any socket programming I used to do was in Java or C, and it was required to be executed by the end user. Otherwise, yes i...
- Fri Aug 19, 2011 2:07 pm
- Forum: PHP - Code
- Topic: PHP & Array
- Replies: 8
- Views: 614
Re: PHP & Array
Yeah I was just trying to help him be efficient. No sense in calling count every iteration of the for. (I wrote foreach in my first post, but the PHPDN database went down and I couldn't fix my post)social_experiment wrote:kasuals wrote:Shouldn't $x < count($theitems) in the for be defined ahead of time?
- Fri Aug 19, 2011 1:58 pm
- Forum: PHP - Code
- Topic: runkit_import() not an option
- Replies: 0
- Views: 470
runkit_import() not an option
I was going to reflect a bunch of classes from PHP files and I wanted to avoid parsing them by myself. The problem that arises, is if the project I'm compiling has multiple php files that possibly contain the same class name I'll get name collision. Jonah suggested that I look into runkit_import, ho...
- Fri Aug 19, 2011 1:26 pm
- Forum: PHP - Theory and Design
- Topic: Bitwise
- Replies: 6
- Views: 3737
Re: Bitwise
Thanks for your response Cal. Back in the day, I was the main coder of a modified complex MUD structure. We used hashes to create linked lists of character, NPC, rooms, etc. I would predefine the bits for each flag (e.g. IS_NPC, IS_HOSTILE, IS_VICTIM) etc, all in the same integer. I used big INTs ba...