Flamezzz Posted October 7, 2015 Posted October 7, 2015 Sorry, i wasn't following the thread so I didn't see your initial post. What was the problem and why do you need to generate a sig every 10 minutes? When adding the image to my sig IPB said: "Unable to retrieve signature image dimensions, please try another image." Tried a lot of things but it didn't work, so eventually I just outputted all images to a folder and now run a cron job every 10 min.
Tom Posted October 7, 2015 Author Posted October 7, 2015 When adding the image to my sig IPB said: "Unable to retrieve signature image dimensions, please try another image." Tried a lot of things but it didn't work, so eventually I just outputted all images to a folder and now run a cron job every 10 min. Is your htaccess setup properly?
Flamezzz Posted October 7, 2015 Posted October 7, 2015 Is your htaccess setup properly? Yep. The image was displayed correctly in a post, it just didn't work in a signature.
Tom Posted October 7, 2015 Author Posted October 7, 2015 Yep. The image was displayed correctly in a post, it just didn't work in a signature. I noticed you have permissions setup on your web server to prevent people accessing other directories, could it be that you have denied global access to the php file that creates the image? Would make sense if OSBot can't retrieve the dimensions, if they can't load the image at all
Flamezzz Posted October 7, 2015 Posted October 7, 2015 I noticed you have permissions setup on your web server to prevent people accessing other directories, could it be that you have denied global access to the php file that creates the image? Would make sense if OSBot can't retrieve the dimensions, if they can't load the image at all Mhm could be, but it's working so I'll just keep it this way for now :p Thanks for this tut and your suggestion 1
FrostBug Posted October 16, 2015 Posted October 16, 2015 URLConnection con = submit.openConnection(); instance.log("Submitting statistics..."); con.setDoInput(true); con.setDoOutput(true); con.setUseCaches(false); final BufferedReader rd = new BufferedReader(new InputStreamReader(con.getInputStream())); rd.close(); You 'could' just.. submit.openStream().close(); 1