Jump to content

Mahngiel

Newly Registered
  • Posts

    1,068
  • Joined

  • Last visited

Everything posted by Mahngiel

  1. not server side languages. it'd come back parsed and not raw. that only works for CSS, images, js and the like
  2. I suppose you could treat it like a flat file DB and do searches for the data.
  3. I think laravel for a small project would be fastest. there are a ton of tuts on it atm, and Kohana's documentation is rather slim. but its generic mvc. laravels site is loading fine for me on mobile
  4. We have to survive the mayan calendar first!
  5. foreach ($query->result() as $user)
  6. CI isn't built for CRUD, as you've experienced. You need to be able to have better control over the routing as a white-list and not black-list. Kohana serves this purpose just fine, and so does Laravel. Over the two, I'd prefer Laravel for it's routing and ORM.
  7. http://codeigniter.com/user_guide/libraries/sessions.html Set: $this->session->set_userdata('username', 'Mr. Balls'); Get: $this->session->userdata('username') You put it wherever you want to use it.
  8. A very thorough explanation
  9. That is an oxymoron - you get what you pay for. That sort of functionality is most always disabled because of the rampant abuse that goes with free hosting. Pony up a few dollars a month for a real web host. There's a stickied thread for it around here somewhere.
  10. when you said "football" i thought you meant FOOTBALL...
  11. files aren't sent through post, they'r sent through php://input. you'll have to capture it at that end. check out this tutorial
  12. Solution (in httpd.conf): RewriteCond /repository/sites/$1/img/$2 -f RewriteRule img/(.+)/(.*) /repository/sites/$1/img/$2 [L] RewriteCond /repository/sites/$1/img/$2 !-f RewriteRule img/(.+)/(.*) /img/$2 [L]
  13. I have an application that runs several sites on base configs, but allows those sites to change their imagery. As it stands right now, the image paths and .htaccess is as so: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule img/.+/(.*) img/$1 [L] www/ \ js/ \ img/ \\ site1/ \\ site2/ 1.png 2.png... <img src="img/{$Site->id()}/1.png" /> The .htaccess rule basically permits me to path all images to a user's account id, and when not found it serves from the base img directory. Nothing too special. I'd rather not have to deal with write permissions, so I've made an external repository that i'll save the images into. Basic structure is /repository/site/<site id>/<img>|<pdf>|<etc>. The code is versioned through github, so I don't think symlinks would work. To combat this, here is my weak attempt: # when the URI matches img/<id>/<img>, serve from repo path RewriteCond %{REQUEST_URI} img/.+/(.*) RewriteRule img/(.+)/(.*)$ /repository/sites/$1/$2 [L] # if that doesn't exist, server from web path RewriteCond /repository/sites/8/%{REQUEST_FILENAME} !-f RewriteRule img/.+/(.*) img/$1 [L] Produces logs like so: x.x.x.x- - [30/Oct/2012:14:59:28 --0400] [xx][rid#9cfe1d8/subreq] (1) [perdir /home/a/b/c/www/] internal redirect with /index.php/repository/sites/8/img/interface_splash.png [iNTERNAL REDIRECT] x.x.78.1 - - [30/Oct/2012:14:59:28 --0400] [xx][rid#9d3a7c8/initial] (1) [perdir /home/a/b/c/www/] internal redirect with /index.php/ [iNTERNAL REDIRECT] x.x.78.1 - - [30/Oct/2012:14:59:28 --0400] [xx][rid#9d8bdb8/initial/redir#1] (1) [perdir /home/a/b/c/www/] pass through /home/a/b/c/www/index.php x.x.78.1 - - [30/Oct/2012:14:59:28 --0400] [xx][rid#9d42a58/subreq] (1) [perdir /home/a/b/c/www/] internal redirect with /index.php/ [iNTERNAL REDIRECT] Any idea how I can dynamically server assets from outside the webroot?
  14. path to the assets have likely changed. replace the relative paths and replace with full paths. you can test with something like 'http://'+window.location.hostname + '/assets/swf/blah.swf'
  15. Yeeees, i definitely want in on this.
  16. Christian, you - and everybody else who responds to OP - are wasting your time.
  17. Besides single quotes not being the correct way to parse PHP variables, there's no reason to quote $dayoffst=strtotime('$dayoff');
  18. Well, you committed two cardinal sins, AcEBALL23. First, this is the introductions forum - where there's a finger wagged at people who request help in here. There's actually a sticky for it. Secondly, you've failed to understand how this forum works. Basically, you tell us the problem (good job there) and you show us what you've tried in way of accomplishing said problem (you forgot that part). If what you want is someone to do the work for you (much akin how I'm trying to pawn off my essay), you'll need to head over to the freelancer section where you can pay for this to be done.
  19. Also, I wonder if OPs post was written in a while loop..
  20. Thanks. It wasn't designed to be that way. After 8 years in the service, the only logical path I was suited for was law enforcement. By the time I finished my AA, I was convinced to interdiscipline-ize my degree in Crim Justice with Law. I have no idea what I'm going to do with it, but every federal position is available to me. I'll likely continue on and get a Juris Doctorate over the next few years. That is, if I quit looking for excuses not to write this damned essay...
  21. the plugin doesn't seem to even do anything with that number. either you've left out other parts of the code, or there's something else interacting with it. why don't you just overwrite it with CSS of your own?
  22. Nah, I'm almost finished with my crim law / crim justice split degree (thank god, 3 classes left), and the class is Victimology. I've sat on this essay for a month. now i gotta finish by monday =/
  23. I don't want to do my homework either. How about you write my 15 page essay on elder victimization and i'll do this? Lemme know if we have a deal.
×
×
  • 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.