the-botman Posted December 3, 2009 Share Posted December 3, 2009 Hey Guys ... need help again hehe whats wrong with this statment $im = imagecreatefrompng("'. $_SESSION['image'] .'.png"); or is this one right $image = $_SESSION['image'].jpg; $im = imagecreatefrompng("$image"); i just cant get this part right , this is how i save the session $_SESSION['image'] = $_GET['image']; Quote Link to comment https://forums.phpfreaks.com/topic/183899-quick-question/ Share on other sites More sharing options...
Alex Posted December 3, 2009 Share Posted December 3, 2009 $im = imagecreatefrompng($_SESSION['image'] . '.png'); I suggest you take a look at the documentation on strings Quote Link to comment https://forums.phpfreaks.com/topic/183899-quick-question/#findComment-970794 Share on other sites More sharing options...
JAY6390 Posted December 3, 2009 Share Posted December 3, 2009 I would personally use the second if you are debugging why it's not working correctly (if it isn't) since you just need to echo $image. Note that if you are making a string of just a variable you don't need the double quotes, ie $im = imagecreatefrompng("$image"); should be $im = imagecreatefrompng($image); Quote Link to comment https://forums.phpfreaks.com/topic/183899-quick-question/#findComment-970797 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.