Jump to content

ChaosKnight

Members
  • Posts

    183
  • Joined

  • Last visited

    Never

Everything posted by ChaosKnight

  1. Hi, I have also made a decision to make use of a PHP framework, and since then I never even thought about going back... The host that I'm with made my list of available frameworks a bit shorter by not offering PHP 5 on their servers... So I could only have decided between CakePHP and CodeIgniter (let's be honest, they are the most popular of the ones still offering PHP 4). I finally decided to go with CodeIgniter because it was best for me... Everyone chooses a framework that is best for "them", it'll not necessarily be best for the next guy. But still I can't deny that being a PHP 4 compatible framework it'll never be perfect (keeping my fingers crossed for CodeIgniter 2 though)... But if you have PHP 5 in your toolbox, I would rather recommend looking at the more powerful options (Zend Framework, Symfony and Kohana). I don't have any experience in them, so I can't tell you for sure what's best, but everyone knows that the Zend is the most powerful of the bunch and that it has a wide range of extras that'll speed up development and even help you after your apps are launched... But what I do know is that CodeIgniter is extremely well documented... You don't need any additional reading material, and the users are extremely friendly and are eager to help... And some other things I really like about CI, is the Active Record use for databases, the additional classes such as the Cart, Session, Database, etc. that is pre-written and ready to use and really easy to implement... Lets go through your checklist: 1) For small business websites I will honestly recommend CI, it's fast... really fast... because it's loosely coupled and it doesn't have a lot of dependencies like CakePHP. Small business websites also won't need such a rigid system like that of CakePHP, and they normally wouldn't need an over-engineered framework like Zend. 2)Simple data retrieval - CI, once again... It uses the Active Record as I mentioned before, which makes simple data retrieval even more simple. 3)Increased development speed - Something that has auto code generating will make your development speed faster... Here Ruby on Rails (even though it isn't PHP-based) will win by far. As for the ultimate app part: Zend... 4)Strong support and and documentation - CodeIgniter! 5)Future proof - None of them... (PHP isn't going to last for ever, neither will Ruby, even Java will get it's fair share of "out-dated" prophecies) Hope this helps a bit mate, tell us when you found your framework
  2. Hi, can someone please tell me which of these URLs will be more search engine friendly? RESTful route: /countries/1 or this: /countries/southafrica or is it better if the words are still seperated?: /countries/south-africa I don't know where to post this question, but I'll try my luck here... I only want to know which URL will be better for search engines... Thanks
  3. I read that search engine bots are very picky about URLs and that therefore search engine "friendly" URLs should be used... I know what it is, but what I don't know is how to generate the "better" URL... What will be better for the bots?: /countries/1/hotels/ or this: /countries/southafrica/hotels or: /countries/south-africa/hotels/ I don't really know where to put this post, but I think it's programming theory If anyone can help me, I'd really appreciate it. Thanks!
  4. thanks... and does anyone know if it's possible to create something similar to the .htaccess file to rewrite url's, but that works on IIS? (on a shared host)
  5. Okay so I decided to go with CodeIgniter for now, but I'm used to having a predefined location where external javascript and css files go, but I can't find such a folder in CodeIgniter... Can anybody assist?
  6. The reason why I want to use a CSS framework is because I don't have the time to find out why IE doesn't display certain things correctly, so I wanted to know if something is available to ease the pain on the web developer's side. I'm thinking about hiring a web designer, but I'm a little short on the time for that too at the moment...
  7. Hi there, can anyone please tell me if it's worth using a CSS framework, and what framework they tried and also what they experienced from it... I heard a lot of good remarks about 960, Blueprint CSS, jQuery UI, YAML and the Yahoo YUI... I want to have a solid CSS framework that is stable and rigid and that is compliant with all the web browsers... Thanks
  8. So it's like a framework with it's own library of pre-written goodness? Would you say that the classes that are pre-written is good enough for immediate use, or does it requre a lot of hacks before it's "safe" enough to use?
  9. I'll have to try out both CakePHP and CodeIgniter then and see which I prefer... CodeIgniter attracts my attention seeing that it executes much faster than Cake, but then again I love the rigidness that CakePHP offers... Also, CakePHP reminds me about my Rails days (loved 'em)... But thanks for your help, will first try out CodeIgniter...
  10. Thanks ignace, I'll keep that in mind... But if you could choose only between CakePHP and CodeIgniter, which onw would you prefer?
  11. Thanks for your reply mate, I'll keep this thread running a bit to see what others have to say...
  12. Okay, so I am very used to PHP, have been using it for about 6 years... In those 6 years I also have about a years experience in Ruby on Rails and I loved the way that it worked, so neat and secure, all the code has it's place and the best of all - fully object oriented ! that was great but then the mishap with Twitter happened and I got scared to use Rails, so I got back on the PHP wagon , but I still have the desire to use a framework (it's just so much better!)... I started looking at the different frameworks in PHP and saw that there is an awful lot! I don't know which one to choose, I thought about CakePHP, but then I heard the Zend is much more stable and easier to use, I also heard a lot of good things about CodeIgniter and Symfony... Can anyone please assist and tell me their experiences with some of the different frameworks? I'm on a shared host that uses IIS, and still has only PHP 4.3.2 and MySQL 3.52, but they offer good services so I decided to stay with them until I find very good reason to go elsewhere... I mainly work on a tourism site that has a lot, and I mean a lot of content, so I need something very stable and trustworthy... Any advice?
  13. Okay, so I want to make a booking system that requires a book-in and book-out date, I thought about this for a bit and decided to make one of those calender pop-up boxes that is used most of the time on reservation websites, take a look on www.avis.co.za to see what I'm talking about (its on the left)... Is there an easy way for doing this? Any help will be greatly appreciated. Thanks!
  14. Yeah MD5 still is one-way encryption, so I don't think there is a tool in existence that can successfully decrypt any md5, but as you said, md5 was proven as a less safe way to encrypt passwords, as there were successful md5 attacks... Rather use the SHA family... I have never heard of a successful SHA attack, so it is relatively safe, but then again it depends one what you define as safe... But if you take a password, concatenate some random words to it, and then MD5 it with some other random words then your encryption will be safe enough for a very long time my friend http://www.securitydocs.com/pdf/3079.PDF
  15. Yeah, had the same problem last week, then I discovered that it isn't the upload folder that needs permissions, it's the entire folder in which your script that uses the move_uploaded_folder that needs 777... And use: ini_set('display_errors', 1); at the top of your script, to locate the error...
  16. Is your code still the same just without the realEscape?
  17. Okay this may be a very noobish quetstion but here it goes: I just saw before I wanted to release my website that the descriptions of the hotels contains apostrophes -> ( ' ), I use mysql_real_escape_string on everything that the admins post, so I guess it's that what causes a preceding "\" backslash, is there a way to remove the backslashes once the description is returned from the database?
  18. Hi, I just wanted to know if anyone knows if PHP also supports "safe" SQL queries, I used it in my Ruby on Rails days, I have heard of PHP developers that also used it before... I don't know what they call it, but in Rails it works like this: :conditions=> [ "name LIKE ?", "%#{params[:query]}%" ] Notice the "?" in the query, and at the end the parameter is send containing the content of the query variable...
  19. You can have a look at how I solved my problem: http://www.phpfreaks.com/forums/index.php/topic,299376.0.html, it's not perfect, but it'll get you started... Just make sure you have permissions to upload into that folder... You can also take a look at the PHP Manual, just search for multiple file upload...
  20. Hahaha thanks mate, you saved me from a huge headache lol...
  21. Try this: <?php //DB Connection goes here $tableName = 'table'; $backupFile = 'backup/backup.sql'; $query = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName"; mysql_query($query); ?> You can also upload the backup back to the db: <?php //DB Connection goes here $tableName = 'table'; $backupFile = 'backup/backup.sql'; $query = "LOAD DATA INFILE '$backupFile' INTO TABLE $tableName"; mysql_query($query); ?> I noticed that you mentioned the binary/image data that you have in your database as a blob, please take note that it's not a good practice to do it like that, if possible try to upload the images to your server as that will be much better in the long term... The reason why I say this, is because images are large, once your server load increases and a lot of people requests the images from the database, then your database is going to work overtime, and then you will have to scale your database and put it onto it's own server, and use another language for backend, because PHP is not such a good backend language... It's not necessary, but it's better
×
×
  • 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.