php - php Thumb file not writeable - phpthumb

i'm using ffmpeg for extracting a video frame from which i want to create a thumbnail using php thumb.
creating the video frame works, but when trying to save the thumbnail file (under a different name - same directory) i'm getting this error:
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'File is not writeable, and could not correct permissions: d:/Webs/bla.jpg' in D:\Webs\phpThumb\lib\GdThumb.inc.php:656
it can't be a permission problem as i can already store the videoframe into the same folder.
any ideas what could be wrong?

I had the same issue. I solved it with saving the file with document_root:
$phpthumb->adaptiveResize(100, 100)->save($_SERVER["DOCUMENT_ROOT"].'/public/uploads/thumbs/filename.jpg');
Found the answer in this question: https://stackoverflow.com/a/17684098/317326

Related

Github invalid file error in uploading google colab file

I'm trying to upload a Google Colab notebook to GitHub, but I keep getting the error:
Invalid notebook
missing attachment.
I went back and deleted the line for that png but still after resaving the notebook and trying to upload it again it says the same thing just for another png.
Is there a way to fix this without deleting every png in my notebook?
Check first, as in here, if you have a a link to an invalid png in another markdown cell.
In other words, the png might not be the issue (no need to delete it).
But an invalid reference to a png with the same name might trigger the error.

jQuery File Upload fails on large files

I am trying to use Blueimp jQuery File Upload and it works great with small files. If try to upload anything greater than 50mb it fails and I get an error 'Empty file upload result'.
I have seen lots of responses to questions from people getting the same error but they seem to get it despite the file uploading correctly or the code corrections suggested don't seem to apply to the code that is now supplied with the plugin.
The FAQ suggests that there is a server side restriction on file size but I have asked my host to increase it to 1GB and they have confirmed they have done this. I do not have permission to overwrite the php.ini as suggested in the FAQ, I just get a server error.
Has anyone else had this problem and if so how was it resolved?
I am using PHP.

How to solve FPDF error: File is encrypted?

My FPDF was working nicely but suddenly it is making problem to generate pdf file.
Now when i am going to generate pdf it is showing an error
"FPDF error: File is encrypted!"
What is the problem? How can I fix it?
I have already tried with like this:
ini_set("pcre.backtrack_limit", "1000000000");
ini_set('memory_limit', '1024M');

UIWebView "Unable to read document" error

I am trying to open Word and Excel 2003 docs using loadRequest and I am getting this error
(in simulator).
Unable to Read Document.
An error occurred while reading the document.
According to this link,
http://developer.apple.com/library/ios/#qa/qa2008/qa1630.html
UIWebView should display doc and xls types.
Any ideas?
Are there any other recommended xls, doc viewers out there?
Thanks.
The reason i found int these case was due to password protected or encrypted file,or any file format which webview can load.
UIWebView has these EXCEPTION SFUZipEndOfCentralDirectoryError: Could not find the end of central directory record when it encounter with above reason.
You can load document like this

Frame load interrupted error while loading a word document in UIWebView

I want to load a word document using UIWebView. I used the code provided in
http://developer.apple.com/iphone/library/qa/qa2008/qa1630.html
to load the document.
But not all the documents load successfully. Sometimes I get an error
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x145bc10 "Frame load interrupted"
The error seems to be very sporadic and I get this error only for some documents.
However the same document loads correctly in mail.app.
What am I missing?
The reason was, the file I tried to load doesn't contain a extension.
I was purposely removing the file extension (.doc and .ppt) which I think confused the UIWebView. Seems like iPhone ignores the OS 9 legacy typecodes completely. :)
I submitted a Radar regarding this issue. It's resolved in the latest version of iPhone OS 4.0.
http://openradar.appspot.com/radar?id=381401