Miker1012 Posted April 27, 2008 Share Posted April 27, 2008 Is there a way I can rotate images in PHP and stick with the same url? I also need the image displaying as a php file, that may be kinda hard to understand. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted April 27, 2008 Share Posted April 27, 2008 Yes, you can rotate images using the GD library: imagerotate() Not entirely sure what you mean by 'displaying as a php file'. Do you mean that you want the file to be a .php file? If which case, yes thats fine. Thats how dynamic images work - you set a content type header to let the browser know what the file is. The example on the above page will show you what i mean. Quote Link to comment Share on other sites More sharing options...
Miker1012 Posted April 27, 2008 Author Share Posted April 27, 2008 Does imagerotate() switch images? Also, I meant that I have seen other php pages that doesn't let you view the source and appears as an image. Quote Link to comment Share on other sites More sharing options...
AndyB Posted April 27, 2008 Share Posted April 27, 2008 Does imagerotate() switch images? What does the manual says the function does? GingerRobot provide you the link to the manual. Also, I meant that I have seen other php pages that doesn't let you view the source and appears as an image. 'php pages' do not exist. php generates html code that is sent to your browser and displayed there. Are you actually looking for something to change images rather than something to rotate the same image. The better you explain your needs, the better the responses are likely to be. 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.