Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure with file path as 'page' parameter #18

Open
timwhitlock opened this issue Dec 9, 2011 · 3 comments
Open

Failure with file path as 'page' parameter #18

timwhitlock opened this issue Dec 9, 2011 · 3 comments

Comments

@timwhitlock
Copy link

I've got this working great with URLs and even STDIN via a PHP command line script.
However, it seems to fail with local file paths. I've even tried prefixing them with 'file://' but no joy.

According to the settings documentation, the 'page' parameter can be a path:

  • "The URL or path of the web page to convert, if "-" input is read from stdin."

When run via PHP command line, the function just returns false and no error is raised.
When run via PHP-FPM (fast cgi) the server gets a bad gateway, and no error is logged.

Is this expected behaviour? i.e. are local file paths supported?

@timwhitlock
Copy link
Author

I see now that the input file must have the file extension *.html or *.htm

@timwhitlock
Copy link
Author

This sorts the problem for the PHP command line, but I still get a bad gateway via fast cgi through the web server

@mreiferson
Copy link
Owner

@timwhitlock - are you sure your FPM process is able to read the file (ie. the user that fpm is running as can both list and read the file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants