Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2013, 05:31 AM   #1
anacreon
Guru
anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.
 
anacreon's Avatar
 
Posts: 959
Karma: 3475832
Join Date: May 2012
Location: France
Device: Elipsa, Sage
Question php format

Today is the second time in as many days I encountered a php format (the n°18 in GeorgeH's Harvard classics series today). It seems to be a new "thing". Does Calibre plan to add it to its recognised formats? If not does anybody know how to convert it to epub before feeding it into Calibre?

I've googled it but am a bit lost in the mountain of references.

Thanks in advance.
anacreon is offline   Reply With Quote
Old 12-14-2013, 07:16 AM   #2
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 245
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Cybook Diva
Can you point towards a 'php' ebook file? Because for me, PHP is a script language, not an ebook format...
aleyx is offline   Reply With Quote
Old 12-14-2013, 09:28 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by anacreon View Post
Today is the second time in as many days I encountered a php format (the n°18 in GeorgeH's Harvard classics series today). It seems to be a new "thing". Does Calibre plan to add it to its recognised formats? If not does anybody know how to convert it to epub before feeding it into Calibre?
If you are referring to this book in the Library here at MobileRead then it is an epub. There is no such thing as a php format for ebooks. What you experienced is a problem saving (downloading) the book where your browser named it with a php extension. I have run into this in the past. What browser are you using?

I suspect if you rename it the name it should have (Harvard Classics Volume 18 - Dryden, Sheridan, Goldsmith, Shelley, Browning, Byron.epub) then it will be just fine.
DoctorOhh is offline   Reply With Quote
Old 12-14-2013, 10:36 AM   #4
anacreon
Guru
anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.anacreon ought to be getting tired of karma fortunes by now.
 
anacreon's Avatar
 
Posts: 959
Karma: 3475832
Join Date: May 2012
Location: France
Device: Elipsa, Sage
Quote:
Originally Posted by DoctorOhh View Post
If you are referring to this book in the Library here at MobileRead then it is an epub. There is no such thing as a php format for ebooks. What you experienced is a problem saving (downloading) the book where your browser named it with a php extension. I have run into this in the past. What browser are you using?

I suspect if you rename it the name it should have (Harvard Classics Volume 18 - Dryden, Sheridan, Goldsmith, Shelley, Browning, Byron.epub) then it will be just fine.
It was the book I meant, and your solution works perfectly. I don't understand though why Internet explorer 11 should do that, and why only with a few books (I load several every day, and had the problem only with two).

EDIT: I just realised I download with Mozilla Firefox whenever there are captchas, I'll have to check whether it might be systematic with Internet. Also I forgot to mention that whatever the book, its name is attachment.php

EDIT2: A Gutenberg book just downloaded normally with Internet. I'll have to mention it to GeorgeH.

Last edited by anacreon; 12-14-2013 at 11:07 AM.
anacreon is offline   Reply With Quote
Old 12-14-2013, 04:11 PM   #5
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
I have also noticed this when downloading epubs from the MobileRead Library with IE11. Typically when IE cannot securely identify an epub's file type from the server end doc-type and file sniffing it will give the file the safe extension of .zip (epubs being zips, of course) and I don't recall coming across it giving them a .php extention before.

As you say, it also changes the file name to "attachment" so all epub files from MR Library become attachment.php which seems to be extracted from the webpage link; however, if mobileread.com is added to IE11's compatability view list then epubs from there are named and downloaded correctly.

I don't know if this is some issue at the server end that IE11 is tougher on than earlier versions for security reasons, in which case I would have expected it to name epub files as .zips, or is just a glitch in IE11 or a matter at the server of a type that IE11 is designed to be intolerant of. (Chrome, for example, seems to not be affected)
AnotherCat is offline   Reply With Quote
Old 12-14-2013, 05:33 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,557
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Another source of '.php' dowloads its that some sites will a small download.php file if you download using anything but the browser "Save link/target as", i.e. a via some sort of download manager.

Its a tactic that's sometimes used to prevent 'mass downloading'. I think I've got them at MR when I've tried to d/l some attachments using Free Download Manager.

BR

Last edited by BetterRed; 12-14-2013 at 06:40 PM. Reason: clarity
BetterRed is online now   Reply With Quote
Old 12-14-2013, 05:49 PM   #7
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Quote:
Originally Posted by BetterRed View Post
On some sites you'll get a small blahblah.php file if you download using anything but the browser "Save link/target as", i.e. a via some sort of download manager. Pretty sure MR is one such site. Its a tactic that's sometimes used to prevent 'mass downloading'.

BR
Hi BR

Not sure if this was understood or not (as it isn't exactly clear from the OP's and my posts) so mentioning it just in case, but the file attachment.php that is downloaded is in fact the epub itself not the "blahblah.php" one. Just renaming it to an epub is all that is required.

However, the matter you raise may be the root of a glitch and is one I had not thought of.

John
AnotherCat is offline   Reply With Quote
Old 12-14-2013, 06:34 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,557
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by AnotherCat View Post
Hi BR

Not sure if this was understood or not (as it isn't exactly clear from the OP's and my posts) so mentioning it just in case, but the file attachment.php that is downloaded is in fact the epub itself not the "blahblah.php" one. Just renaming it to an epub is all that is required.

However, the matter you raise may be the root of a glitch and is one I had not thought of.

John
@AnotherCat, wasn't intending to dispute prior posts. Only wanted to point out that if you use download managers/accelerators, then some sites thwart them by delivering a small chunk of php code (typically < 2k).

I think I can recall getting them here when downloading some of MiniMouse's blank covers - had to get them one at a time

I just remembered that the 'blahblah.php' is quite often (always ?) 'download.php'.

I use external download managers because large downloads - eg iso's from MS - can take a long time, I also like to have the freedom to restart my browser at any time.

I'll tweak my prior post

Cheers BR
BetterRed is online now   Reply With Quote
Old 12-14-2013, 09:36 PM   #9
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Understood BR.

Also adding to my

Quote:
Originally Posted by AnotherCat View Post
I have also noticed this when downloading epubs from the MobileRead Library with IE11. Typically when IE cannot securely identify an epub's file type...
After a bit of a play I have found that the file misnaming problem applies to all ebook formats (mobi, prc, etc) downloaded from MR Library with IE11 (at least with 64bit on Win8.1) not just epub.
AnotherCat is offline   Reply With Quote
Old 12-14-2013, 10:20 PM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The answer is don't use IE, avoid it like the plague.
eschwartz is offline   Reply With Quote
Old 12-17-2013, 09:46 AM   #11
GeorgeH
Addict
GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.GeorgeH ought to be getting tired of karma fortunes by now.
 
GeorgeH's Avatar
 
Posts: 373
Karma: 1138320
Join Date: May 2012
Location: Ontario, Canada
Device: Kindle 3, Nexus 7
Quote:
Originally Posted by anacreon View Post
It was the book I meant, and your solution works perfectly. I don't understand though why Internet explorer 11 should do that, and why only with a few books (I load several every day, and had the problem only with two).

EDIT: I just realised I download with Mozilla Firefox whenever there are captchas, I'll have to check whether it might be systematic with Internet. Also I forgot to mention that whatever the book, its name is attachment.php

EDIT2: A Gutenberg book just downloaded normally with Internet. I'll have to mention it to GeorgeH.
Saw the above post. I wonder if it has to do with the length of the filename (or maybe the spaces in it)? I've never encountered this problem and have, as a test, downloaded several of the books. I also use Chrome, which may not be affected.
GeorgeH is offline   Reply With Quote
Old 12-17-2013, 05:01 PM   #12
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Quote:
Originally Posted by GeorgeH View Post
Saw the above post. I wonder if it has to do with the length of the filename (or maybe the spaces in it)? I've never encountered this problem and have, as a test, downloaded several of the books. I also use Chrome, which may not be affected.
As I said in one of my posts Chrome works; as does, I suspect, all other common browsers including versions of Internet Explorer prior to 11.

It is some matter associated with IE11, but whether it is something to do with its less trusting nature for security reasons (if no doc-type, etc. at the server) or sticking rigidly to standards that the server end does not meet, or something to do with its download management that the server does not like (BR has mentioned difficulties that may be experienced with some download manager applications).

In the end the solution at the user's end is very simple and sticks, one just has to add mobileread.com to IE11's Compatability View list.

Last edited by AnotherCat; 12-17-2013 at 05:06 PM.
AnotherCat is offline   Reply With Quote
Old 12-17-2013, 07:33 PM   #13
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by AnotherCat View Post
As I said in one of my posts Chrome works; as does, I suspect, all other common browsers including versions of Internet Explorer prior to 11.

It is some matter associated with IE11, but whether it is something to do with its less trusting nature for security reasons (if no doc-type, etc. at the server) or sticking rigidly to standards that the server end does not meet, or something to do with its download management that the server does not like (BR has mentioned difficulties that may be experienced with some download manager applications).

In the end the solution at the user's end is very simple and sticks, one just has to add mobileread.com to IE11's Compatability View list.
I find the idea of IE "sticking rigidly to standards that the server end does not meet" unspeakably funny.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php Metadata question skyefriday Library Management 0 09-15-2012 11:39 PM
str to mobi PHP NicWest Kindle Formats 2 04-16-2012 08:01 AM
Which PHP version do you have? erayd Workshop 2 10-04-2010 08:02 PM
PHP for Android keng2000 enTourage Archive 1 07-30-2010 07:19 PM
Using PHP to convert PDFs joedevon PDF 5 07-05-2009 10:50 PM


All times are GMT -4. The time now is 08:44 PM.


MobileRead.com is a privately owned, operated and funded community.