Dear all,
I encountered the following error while trying to generate PDF file in my HTML site. It is same report while creating it in PHP.
Warning: main(fpdf.php) [function.main]: failed to open stream: No such file or directory in c:\wamp\www\projectcode2\pdtest.php on line 3

Fatal error: main() [function.require]: Failed opening required 'fpdf.php' (include_path='.;C:\php5\pear') in c:\wamp\www\projectcode2\pdtest.php on line 3
Thanking you in advance.
Talktoade

this error means that the file named pdtest.php is not in the folder projectcode2/

If it is in another folder, you need to make its path relative.

down 1 directory add ../ before the filename
up 1 add ./foldername/

for each level up or down add that amount of ../ or ./

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.