Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:02:40+00:00 2026-05-23T18:02:40+00:00

My application uses WideImage successfully to crop & resize images. I call this on

  • 0

My application uses WideImage successfully to crop & resize images. I call this on images using the following:

<img src="<?=asset_url()?>scripts/thumb.php?src=<?=$post['picture']?>" />

Where asset_url() is a function that returns the path to my assets folder. The folder structure is:

| assets
| application
| system

This works fine, but my assets folder should just contain images, JS files and CSS.

If I try and move the thumb.php file to any folder within the application directory, I get a 403 error.

Is this a feature of CodeIgniter to stop direct access to files? If so, how do I get around it?

I’m using a default .htaccess file, which looks something like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]  
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>  
ErrorDocument 404 /index.php
</IfModule>

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:02:41+00:00Added an answer on May 23, 2026 at 6:02 pm

    I think it’s a correct behaviour of any framework. It’s just dont’ give you the freedom to make your app completely non-understandable by any other developers.

    For example if I developer of X-framework and don’t expect blah.php in the app folder — the good framework will help ME (not the author 🙂 ). So in the result we will have a good quality code.

    But in your concrete question, I think you should just create some controller/action — and not directly call blah.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My application uses the following code : #if MAC_OS_X_VERSION_10_5 < MAC_OS_X_VERSION_MAX_ALLOWED NSArray *globalPreferencePanes =
My application uses the following codes to connect to web site and download a
The application uses quickfixj library, which uses Apache Mina . This application keeps a
My application uses polling to update the status of a music player. I'm using
My application uses Qt SQL this way QSqlDatabase db = QSqlDatabase::addDatabase(QODBC); db.setDatabaseName(DRIVER={Microsoft Access Driver
Our application uses bunch of WMI calls. When using guest account connecting to local
My application uses MVVM architecture and needs to occaisonally call some outside asp pages
My application uses the following NSApplicationDelegate function. - (void)application:(NSApplication*)sender openFiles:(NSArray*)filenames; I want to use
my application uses libjpeg to read/write JPEG-images. everything worked fine recently my app started
My application uses Google Charts and using HTTPS. I need to display the Google

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.