Hi I am fairly new to php syntax but i have extensive experience in Java programming so I can apply that to what I am about to do. I am using phpnuke to run my website and I dislike the fact that it doesnt have images associated with the articles. I am would like to hack the code enough(or even write an addon for phpnuke) to let the user specify the 1 main image that will be associated with the article by providing a URL to it. When the user submits the article and the moderator approves it, the image will be downloaded from the url, stored locally with a thumbnail copy of it and its filename will be stored in a table in a row that also has the article id thats associated with this image.
From looking at phpnuke and hacking up quiet a few lines of code there I figured out many things that I will need for this addon to work. But I still have few questions:
1. How do I establish an http connection with php and download an image to a local path(on the server) sort of like what wget does. i dont necceserily want to use a wget, is it possible to do from within php?
- How do I resize the local image(gif or jpeg). I have a raq4i with php4.06 with new GD
I dont thing these questions will trouble most of your php gurus.
Thanks in advance
Vlad