need help regarding codeigniter framework

Hello everyone!

i have a website which was developed using codeigniter php framework. but i got one problem from the time when i change my web host on windows platform to linux. actually i have a “image.php” file im my public_html, from this i call image using “http://domain.com/image.php?width=75&height=75&cropratio=1:1&image=http://domain.com/image.php/image.jpg?width=150&image=http://domain.com/uploads/articles_media/2012/07/001372acd7d310ac401a09.jpg&cropratio=1:1” but it shows empty box on website instead of showing images. But if i call image using “http://domain.com/image.php/image.jpg?width=150&image=http://domain.com/uploads/articles_media/2012/07/001372acd7d310ac401a09.jpg&cropratio=1:1” then it works fine. Does anyone knows whats going wrong with me?

You cannot do what you are trying.

You cannot use a second “?” in the url of a get. What your image.php file is going to receive is:

width = 75
height = 75
cropratio = 1:1
image = http://domain.com/uploads/articles_media/2012/07/001372acd7d310ac401a09.jpg

Note that the “?width=150” will be lost, while the cropratio and image parameters will be reset to the last values that you declare in the url (since they appear twice in your url).

Is there a reason that you are trying to do it this way? The second option seems much more logical.

Also, I am assuming that you are using this inside an html tag. If not, how are you trying to use the image.php file? You may need to include more code or a link to the page in order to get any further.

thanks sir for the response!

i have one more problem, its actually about making of directory in linux. my website has a backend in which i can upload images for the site and it automatically create folders according to YEAR and Month in which images were uploaded. But from changing the web host platform windows to linux i got errors, i am successfully able to upload images but unable to see it when it uploads.
If i upload a image which name was pdf.png from my backend (admin panel) then it shows nothing and i see the image was uploaded in the form of 2012\09\pdf.png in my upload folder of website. but i want this uploaded file in my /2012/09/ folder. the folder was created automatically according to year and month. Please find the Screen Shot of error and source code for my php program, if you find something wrong please help me to solve it, thanks!

Here is my problem:-

http://www.mediafire.com/?bpnh18a7pbzn83h

Rohan,

I took a quick look at the files; your screenshot definitely helps to understand the issue. I wasn’t able to immediately find a solution, but I will look at it this evening when I am on my testing server. I’ll get back to you this evening or tomorrow.

@malasho thanks sir for your support but now my problem was solved at http://stackoverflow.com/questions/12475550/getting-error-when-uploading-image-php-codeigniter

Sponsor our Newsletter | Privacy Policy | Terms of Service