Page 1 of 1

When server has no CHMOD option.

Posted: 17 Nov 2008, 00:26
by sevmusic
My host uses a Windows server which doesnt have CHMOD capabilities.

Here is my phpinfo:

http://www.sevfamily.com/hnseek/imagevu ... hpinfo.php

In the past versions, I would edit the getfile.php last few lines of code to
Code
ob_start();
		imagejpeg($sm_image);
		$image_buffer = ob_get_contents();
		ob_end_clean();
        imagedestroy ($sm_image);
        imagedestroy ($orig_image);
		
		$fp = tmpfile();
		fwrite($fp, $image_buffer);
		rewind($fp);
		
		$conn_id = ftp_connect('www.mysite.com') or die("Couldn't connect to $ftp_server");
		ftp_login($conn_id,'Username','Password');
		if (ftp_fput($conn_id,'/httpdocs/imagevue/'.$tnpath, $fp, FTP_BINARY)) {
		   echo 'Successfully uploaded to /httpdocs/imagevue/'.$tnpath;
		} else {
		   echo "There was a problem while uploading $file\n";
		}
		fclose($fp);
This would allow the creation of thumbnails and upload them by FTP when CHMOD wasnt an option. Could this be an option for V2?

Posted: 18 Nov 2008, 16:55
by Nick
On windows this part just not applies, dont worry about that.