I'm hoping someone can help, I am getting a 'No Input file specified' error from a php script that i am testing on my slice.
I have the slice setup up as hardy/nginx/php as fastcgi ---- other php (wordpress blog etc) works fine.
this particular php script though (a html->pdf converter) is giving me the 'No Input file specified' error.
i tracked down this http://www.karakas-online.de/forum/viewtopic.php?t=2583
and it says there can be problems with php as fastcgi resulting in this (very explanatory error)
so it seems i need to set SCRIPT_FILENAME=/homes/foobie/mini/foo.php <--- CRITICAL ... according to that post.<br /> I am not actually sure if "SCRIPT_FILENAME=/homes/foobie/mini/foo.php" Variable setting is something i add on nginx or add to my php file? if it is the second i would assume that (oddly) I am adding the line referenceing the script i am running in the file i am running itself ? and it is the path to the php script in home/public_html/mysite/_myscriptthatwontrun/dam.php ????
Unfortunately (especially since it has been a while since I installed nginx/php as fastcgi) ... i am not sure where to find the variable if it is indeed a variable on nginx to do with php ....... and not a reference in the php file i am running.
So any help would be appreciated, and maybe a better explanation.
looking at the nginx conf in the above guide there IS a fastcgiparameter SCRIPTFILENAME that has been set ... do I need to add another ? OR is it a reference in the specific php script i am running .... it uses a library (tcphp) so i am starting to think if it has to be added it has to be added to a bunch of them perhaps (recursively) ....
again and light that could be cast onto the problem would be appreciated ....
[trying to create a pdf from an html string on my setup]
hey schultz thanks for the post. I managed to get it working, by just using a different library (fpdf) that let me just set the document root in the php script.