calling a PHP file in the src of an image - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: calling a PHP file in the src of an image (/showthread.php?tid=21617) |
calling a PHP file in the src of an image - El Forum - 08-15-2009 [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!!! calling a PHP file in the src of an image - El Forum - 08-15-2009 [eluser]meridimus[/eluser] Try this getcwd() then the rest of your image path. Like, getcwd()."path/to/image/file"; calling a PHP file in the src of an image - El Forum - 08-15-2009 [eluser]dennismonsewicz[/eluser] how would you put that in using the code I originally posted? calling a PHP file in the src of an image - El Forum - 08-15-2009 [eluser]dennismonsewicz[/eluser] ok so nevermind on that last post... got that but its still not working 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... |