chantown Posted January 11, 2008 Share Posted January 11, 2008 Hi, I tried to do: $image = open_image('test.jpg'); //syntax is right, and a file is there die("here"); but for some reason, my PHP stops at $image, and doesn't do anything after that 1st line. Also, I have GD 2 GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.2.1 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled Why is this? I'm just trying to open a simple image Quote Link to comment Share on other sites More sharing options...
nikefido Posted January 11, 2008 Share Posted January 11, 2008 should it be $image = open_image('test.jpg') or die("here"); //syntax is right, and a file is there ? I'm not sure if that is what you are trying to accomplish. Do you get an error message? Quote Link to comment Share on other sites More sharing options...
Barand Posted January 11, 2008 Share Posted January 11, 2008 I don't know. You could give us a clue by posting your "open_image()" code. Quote Link to comment Share on other sites More sharing options...
chantown Posted January 11, 2008 Author Share Posted January 11, 2008 Hi, thanks for the responses this is exactly what i'm doing: <?php $image = open_image('test.jpg') or die("No good"); die("yes, it works"); ?> When i run this, nothing happens! i get a blank page. Just blank. No words, nothing Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted January 11, 2008 Share Posted January 11, 2008 That's your script in its entirety? Then that would be because open_image() is an undefined function and you have display_errors set to off. If you were to do: <?php ini_set('display_errors','On'); error_reporting(E_ALL); $image = open_image('test.jpg') or die("No good"); die("yes, it works"); ?> You would recieve the error message that open_image() is an undefined function. If there is more to your script, and you have created the open_image() function, then i would still suggest that there is an error somewhere and you have display_errors set to off Quote Link to comment 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.