Jump to content

sKunKbad

Members
  • Posts

    1,832
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by sKunKbad

  1. Thanks requinix. Your proposed code is way better.
  2. I'm combing through somebody else's php script (an upload class) and I'm trying to figure out exactly what a preg_replace function is trying to find and replace: $this->upload_path = preg_replace("/(.+?)\/*$/", "\\1/", $this->upload_path); I've tried going to some of the online regex testing sites and testing paths, but not able to get a match with anything I've tried. To me it looks like it "any path should have one final slash, but not more than one, and not less than one". Am I close?
  3. Unless you are specifically querying for a country, city, or venue, then I assume you are pulling in the entire set from the DB. Because of that, you can specify you want the results as an array: $arr = $query->result_array(); Now that all of the rows are in an array, you would simply use php's sorting functions to order the array. I'd recommend looking at uasort. Also, with this type of nested parent => child relationship, you can take a look at what I did with Community Auth, and the example that shows a category menu. Community Auth is at http://community-auth.com, and is a CodeIgniter project. Look at how the database is organized, and how the results are displayed. I think you will find that it will work well for your project.
  4. Just looking at some examples online, it looks like you may have to set up all of your curl options for each request. I may be wrong, or what I was looking at might not be right, but you might try that.
  5. You're going to need to do a second curl post to the page with the security question.
  6. Due to my longtime use of CodeIgniter I'd say the argument that is has large community support and resources is actually no longer something that should be said. Over time most of the serious devs have moved on, and "the community" aka the people who still use the forum seem to be mostly noobs that speak English through Google translate. The resouces that used to be in the wiki were at one point moved to github and most were not updated so most of the downloads disappeared. My biggest problem with CodeIgniter isn't so much that it's technically inferior, but that development is dead and if they ever do officially release v3 the license makes it unusable for me and the type of clients I want to do business with. Go with Laravel, Symphony, Yii, Cake, Slim, or anything else. Spending time with CodeIgniter is now just a waste of your time, and time is money....
  7. I like it. It's simple, clean, and while to super fancy it looks like it would be nice for that type of business.
  8. I could probably benefit from testing, but every time I read about it it seems like a total waste of time. I've been using PHP for 7 years, and never needed it before, so what I need is an explanation, or a real life situation where testing would be beneficial. I'll try reading this book and hope it clears things up for me.
  9. Laravel 4 was released today. I guess a lot of people had been using the beta and RC versions, but it's good to see the release. I've played around with it a bit, and look forward to getting more experience with it. I hope it is better than I was anticipating. Anyone else check it out?
  10. Login form is messed up on iPad.
  11. Honestly, you could have a way better website just by installing Wordpress and using the default theme. With minimal customization, you'd have a website that looks modern, and the default theme is responsive which is a bonus.
  12. I think WordPress is good as a CMS. There's a lot of money to be made with Wordpress. I have a love/hate relationship with it though. The core is the definition of spaghetti code, yet somehow it manages to work. Maybe you don't consider it a CMS, but I was reading something this week where I believe the statistics are such that it gets used way more as a CMS than a blogging application. So there you go, a CMS written in PHP. There are others, but I don't have any experience with them. I'd love to use a eloquent MVC type CMS. Anyone know of one? Sorry to hijack the thread, but it was going downhill.
  13. I like the color scheme of their website, but it's for sure CF. Maybe you are trying to impress your fellow Texans?
  14. Ask your host for a backup from a day or two ago. Restore from there, or from whenever wp-admin was accessible.
  15. Learn HTML and CSS. Learn JavaScript. If you learn these things you can make your site look good. This is the front end.
  16. I've got a simplexml "cheat sheet" that I keep handy because I've done a lot of work with XML. Last week, or maybe the week before, I turned the info into a blog post on my website. Here is a link to the blog post: http://bit.ly/W4QWpf The blog post goes over just about all of your potential parsing needs. Namespaces, attributes, etc.
  17. CodeIgniter dropped support for PHP4 a while back, but nobody got around to updating the 2.1.X branch because they are focusing their efforts on v3. If you take a look at v3 on github you will see that the session class and the whole framework has been updated. No more var. I will use CodeIgniter 2.1.3, and the var doesn't hurt, even on PHP 5.4.X. It may not be the most elegant framework in the world, but it gets the job done. I don't think anyone is claiming CodeIgniter to be the best framework anymore, but 2.1.3 is stable, and I use it every day. I think in the future I'll be focusing on Slim, Laravel, and other frameworks.
  18. Most if not all authentication libraries that people use with CodeIgniter use sessions, so you probably do not want to disable sessions.
  19. Firefox has the developer toolbar, firebug, and firephp. These things make switching, at least for dev, kind of impossible for me.
  20. Yes, I've been looking for a replacement for the image you are displaying, but the logo is here to stay. I think it looks like a Star Wars logo, although that's not what I set out to create. Show me a nazi logo that looks remotely similar and I'll consider changing it.
  21. It seems like a pretty generic Wordpress blog. I didn't see anything special. Is there something special about this site?
  22. It would be nice if the whole header area above the menu had some sort of background color. The site looks nice, but lacks color, so that is my suggestion.
  23. I just finished up with a new design for my site. I had not done this for a couple years, and when I got bit by the RWD bug, I knew I was going to do it. For practice I did a RWD for my brother, so this was my second attempt. I've tested it on my Droid Razr Maxx, and have seen it on an iPhone. It seems pretty solid, but there are so many phones, I really don't know how horrible it might be. Anyways, please check it out and let me know what you think: http://brianswebdesign.com
  24. I think if CodeIgniter is one of the frameworks you are considering, you really should take a moment to consider that the upcoming major release has a license that may or may not work for your business or your clients. You should read and fully understand the new license if you plan to use CodeIgniter 3.X. After using CodeIgniter for about 3 years, and having thousands of hours dedicated to CodeIgniter projects, I don't feel like I can upgrade them to CodeIgniter 3.X, which is both unfortunate and frustrating. Unless EllisLabs decides to change the license to something more business friendly, I'll not be using CodeIgniter for further projects. I was a big proponent of CodeIgniter usage, but it's my opinion that you would now be better off using something else.
  25. This can be deleted. The server is messed up, and the admin is going to have to do something about it.
×
×
  • 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.