Welcome Guest, Not a member yet? Register   Sign In
calling a PHP file in the src of an image
#1

[eluser]dennismonsewicz[/eluser]
I am using an image resizing function and cannot get the images to display at all, but I can go to the image directly in the browser and see the image...

here is how I am calling the function:

Code:
<img src="imageresize.php?maxsize=xxx&source=path/to/image/file" />

but that is not working!!!
#2

[eluser]meridimus[/eluser]
Try this getcwd() then the rest of your image path.

Like, getcwd()."path/to/image/file";
#3

[eluser]dennismonsewicz[/eluser]
how would you put that in using the code I originally posted?
#4

[eluser]dennismonsewicz[/eluser]
ok so nevermind on that last post... got that but its still not working Sad

updated code:

Code:
<img src="imageresize.php?maxsize=xxx&source;=' . getcwd() . '/path/to/image/file" />

imageresize.php is a function so I am not sure if CI is wanting to play nicely or not...




Theme © iAndrew 2016 - Forum software by © MyBB