Jump to content

HGeneAnthony

Members
  • Posts

    95
  • Joined

  • Last visited

Everything posted by HGeneAnthony

  1. Thanks for the reply. I had considered memcache and I plan to use it for other activities. However, I am probably overthinking things here. I tend to do that. It's probably best for me just to get the thing running and then I can always play around with concepts later on if necessary.
  2. Don't have my mind really made up as much as while I was typing the original post I started to think of something (which sometimes happens). Really wasn't married to the concept. I thought about some of the stuff you were talking about but I agree with you it's more headache than it's worth. Thanks!
  3. The star rating is an example. It also applies to marking items as favorites and such. The system I'm writing has the potential to be rather big and I'm trying to find the best method early on. Plus I want it to be as peppy as I can make it. Using batch functionality for so many write statements is supposedly quite a bit faster than doing them one at a time. From what I've read though I can append to a text file (people say it's faster than DB writes) and mysql has an import function from text that's supposedly pretty peppy. My goal is to have it where the system automatically applies the action after x number of write statements (or when the file size becomes too big), or after so many minutes (whatever comes first). This system can obviously be adjusted depending on the need. Plus with a text file I have some form of integrity incase the system goes down before the write statements are done.
  4. What I'm trying to do is implement features like a star rating system, favorites, etc and I'd like to find a way to do this to where I'm not writing to a DB after each action. I was thinking of making use of memory to store actions and then apply them after a select number of statements, is this recommended or should I maybe store to a text file or something? Any other ideas?
  5. I tried ZF2 (a bit) and there were things about it which annoyed me for a different reason. Primarily I haven't found a way to generate code with it like in ZF1. The tutorial had me download a skeleton app from a website and there was a lot of copy and paste in the tutorial. I believe the layout was also saved outside the module which annoyed me. It also seemed more verbose than I like. I think as long as you follow standards you shouldn't have to do a lot of configurations. I really want to like it but it makes it hard.
  6. I was wondering does anyone here use Zend Framework with the MVC features? I think their components are tremendous, but every time I try to get into the MVC part of it I get annoyed because I feel it's way more complicated to do basic stuff than it should be. I also feel parts of the system seem to be less modular than I like, which is weird considering it's a very modular framework. My lack of understanding the framework complete might be responsible for my perceptions though. As far as frameworks go, I personally like Yii the best, followed by CodeIgniter. However, I've wanted to move towards Zend for awhile considering I already piecemeal their components and it seems like the best language for professional development. I was wondering what others think of Zend?
  7. I really like CodeIgniter's documentation. I also think it's a really nice framework. I'm always trying to decide between using codeigniter and yii. YII has some really nice features and is also very fast. Unfortunately, nothing can touch Codeigniter when it comes to documentation.
  8. I thought of that as well, however I still wonder why I never see this implemented in open source projects I've downloaded. Most open source projects are pretty big as well so I felt like maybe these guys just know something I don't know.
  9. I'm interested in doing some websites for a few charities. However, I'm a little conflicted with which way to go. I personally believe in writing everything in PHP to make it easier to maintain. However, this might make it harder for the charity to find someone to take over for me if I move on. I am also a fan of MVC frameworks like Codeigniter, YII, and the Zend Framework, due to their consistent standards, and handy functions, but once again this might make it harder to find people to take over for me if I move on later. I'm curious what is the best way to go. I don't think I've ever seen one open source PHP application that ever uses a framework. Should they be avoided?
  10. Thank you for replying to me. I ended up using the fontsquirrel website and got it working. The strange thing is Firefox was the only one that gave me problem. I expected IE to be the problem if anything.
  11. I'm trying to use a custom font or my site. I have it downloaded and it appeared to be working in Internet Explorer 9, Chrome, Opera, but didn't work in Firefox 12. It was the Broadway font. I decided to use another custom font and it wouldn't work at all in any of my browsers. I then installed the Broadway font in my system and it started to work in Firefox. However, when I uninstalled it didn't work in any browsers since. What I'm wondering is how does the custom font work? I thought it was supposed to work even if the font was not installed on the user's computer but I'm wondering now if it's referencing a font on the user's computer. Here's my CSS: @font-face { font-family: Broadway; src: url("broadway.tff"); } #banner { font-weight: bold; font-size: 56px; font-family: "Broadway", Arial, Helvetica, sans-serif; text-shadow: 0px 2px 3px #E6E6FF; margin-bottom: 10px; padding: 20px; } The font resides in the root directory. Is there something I'm missing?
  12. What I'm working on (or more appropriately thinking of working on) is an indexer. An indexer is really just another name for a search engine. youtube is an indexer, so is google, etc. An indexer also provides methods to find items in a system easily in case you don't know what you're looking for. For example, tags can be used to find items as well as categories or other filtering options. What I'm interested in working on is a program designed to make it easy to find items in a system. One of the reasons I'm thinking of working on this is a lot of file sharing sites use bbcode for file sharing, however I don't find this a very good option. It wasn't designed for this and these systems don't offer many features.
  13. I was interested in working on an open source indexing application. I was wondering, has anyone created one yet because I haven't seen one? I picture the project being useful for potential tube sites, file sharing sites, or people who just want to share their content. I haven't seen one yet, the closest of seen is bbcode forums, but these really aren't designed for this purpose.
  14. I'm working on a new user submission form and I was wondering whether it's safe to send a confirmation letter to the user using their hashed password as their confirmation code? Since this is a hashed password it can't be decrypted (I believe), the password is useless because it's always hashed before login so it can't be used to login to the system, it's only being emailed to the user who's account is tied to the account, and it would save me the option of having to store a confirmation code field in my DB. Is this safe?
  15. Is there a way to auto populate someone's city by zipcode? Also is it possible to find out their county as well?
  16. I was wondering if there's any common method for user management. I'm not talking about basic stuff like DB management stuff I'm talking about registering new users with captcha, validating email addresses, password resets, etc. I can work all this stuff out by hand but it seems rather large and very repetitious so I was wondering if there's guides out there to develop this or a common script?
  17. Sorry about the question I'm having a hard time explaining it in the allotted subject space. I'm developing on Windows. However, my server might be Linux, BSD, Windows, etc. The problem is when I try to include a file I use magic constants like __DIR__, which returns D:\xampp\htdocs\ etc. However, the rest of my path I use forward slashes so the path comes out like D:\xampp\htdocs\phptest/index.php. I don't want to use back slashes since I plan to run this on other OSes and I don't want to have to change all includes back and forth. Is there an apache setting which will always use forward slashes or a method you use to get around this issue?
  18. I was just reading up about this. Does appear to work well, thank you!
  19. I was wondering if there's a way to automatically handle loading of required includes and requires for a web page so I don't have to have require_once declarations all over my site.
  20. I would like to have it that when a user clicks on a file it forces a file download instead of opening in the browser. Is this possible with php or do I need to use javascript?
  21. Actually that was pretty helpful. I currently use CodeIgniter but they don't appear to have anything. However, I use Zend for their Lucene search engine already as a dropin. I can probably mix this in the current system. Thank you for your help!
  22. I'm working on a page and I need to create a user management system. However, it seems like a rather involved project by itself. I need a way to add users, confirm user has correct email address, use captcha, a password reset system, user management, etc. So many sites have user management systems I have to wonder if there's pre-made, drop in systems I can use already. Is there any system people use here to manage their users, etc.?
  23. I'd also recommend codeigniter although it is the one I use so I'm partial. It's the most popular and offers a lot of native support for multiple databases, languages, etc. It runs with PHP4 or PHP5 as well. It claims to be the fastest framework which tends to mean the lowest footprint which is important for multi user sites. That being said how you design your page makes a difference on overall performance. Using some clever javascript (JQuery is awesome) can cut your load as well. Have javascript validate forms before they get submitted. Use ajax for grabbing stuff when it won't break history. As far as security codeigniter can clean passed strings to protect against cross site scripting. It also offers a form validation library which can help with keeping bad data out. Most security is up to you though.
  24. xdebug plugs into netbeans and makes it possible to step through your code like a programming language. A lot of IDEs use it so it might be the way to go. That being said I haven't tried any others.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.