Quote:
Originally Posted by Mnementh
Warning: require_once(source/.source.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\flag\getstory.php on line 55
Fatal error: require_once() [function.require]: Failed opening required 'source/.source.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\flag\getstory.php on line 55
|
Looks like you're not specifying the source. Which recipe are you using? The first one in the post with the zip or the last one I posted which links to my own webserver?
Code:
def print_version(self, url):
main, sep, rest = url.rpartition('/1/')
rmain, rsep, storyid = main.rpartition('/s/')
return 'http://localhost/flag/getstory.php?source=ffnet&format=news&storyid=' + storyid
Note
source=ffnet is specifically stated in the url. This script can also be used for FictionPress, you just change
source=ffnet to
source=fpress.
The zip file should contain a print.php file which you can also use. That one automatically uses ffnet as source. Just change the recipe to the following:
Code:
def print_version(self, url):
main, sep, rest = url.rpartition('/1/')
rmain, rsep, storyid = main.rpartition('/s/')
return 'http://localhost/flag/print.php?storyid=' + storyid
However, I'm not sure what version of the script is still attached in the zip file. I think that one still hasn't been fixed to reflect the crossover changes FanFiction.Net implemented. I suggest using the online version of the recipe in the meantime.