Tag Archives: CodeIgniter

Codeignter's image manipulation(using GD library) doesn't resize some JPEG images

I have an upload form that takes an image jpg/gif/etc, I use it to upload some images(image format is Jpg) for the gallery I use for my website, but unfortunately it doesn’t work well for some images(It makes everything blackContinua a leggere

Tagged , , , , | Lascia un commento

Codeigniter form validation errors stuck in a loop

I’m following along with a tut the source files can be found here: https://github.com/JeffreyWay/Simple-CI-Authentication
Now when I try and login it keeps looping back saying I have errors where as in the tutorial video his comes back as ok andContinua a leggere

Tagged , | Lascia un commento

Image upload using php,codeigniter and jquery

Im working on a project..there is a form for posting an item .I want user to choose image and as soon as he select the image, the image should appear as preview. I written that code using plain php andContinua a leggere

Tagged , , | Lascia un commento

Can't execute external PHP files (CodeIgniter)

I am using codeigniter for my application and it works fine in localhost and in development server. I am hiding the index.php using following .htaccess

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]

Il mio Continua a leggere

Tagged , , , | Lascia un commento

Prevent sessions from expiring and causing errors

My question is more of a conceptual one, since I’m rather new to working with users and sessions.
My current setup is Codeigniter running with the Tank Auth user library
My problems I’m experiencing are, the users are being loggedContinua a leggere

Tagged , , , | Lascia un commento

CodeIgniter load controller from view

Is there a way to load a controller from a view ?
Here is what i am affter..
I want to use one view multiple times, but this view is being loaded by separate controller that gives the view, informazioni… Continua a leggere

Tagged , | Lascia un commento

Javascript / PHP string encode / decode with key

I am working on a sign in form using jQuery / CodeIgniter and was wondering if it would be possible to do something like so:
When the user clicks Sign In… it sends a request via AJAX to get a Continua a leggere

Tagged , , , , | Lascia un commento

multiple database connection in CI

can i connection with multiple database
main connections is from database.php
but the another one in from the model
and i want to switch between it
in questo modo

        $config['remote']['hostname'] = 'localhost';
        $config['remote']['username'] = 'root';
        $config['remote']['password'] = '';
        $config['remote']['database'] = 'countries';
        

Continua a leggere

Tagged , , | Lascia un commento

configurare ed eseguire le operazioni pianificate (Cron Jobs!) php

I want to build a section at admin panel to give the ability to configure the scheduled tasks.
Idea :
at that panel:

admin can upload a php file (I can do this)
make a schedule (i.e. once a weekContinua a leggere

Tagged , , , | Lascia un commento

SQL query works on phpMyAdmin but not Codeigniter

I have this SQL Query :

SELECT *, ( 3959 * acos( cos( radians(41.832100) ) * cos( radians( latitude ) ) * cos( radians( longitude) - radians(-87.789597) ) + sin( radians(41.832100) ) * sin( radians( latitude ) ) ) ) 

Continua a leggere

Tagged , , , | Lascia un commento
52 pagine