This probably seems mundane to all who are frantically upgrading to XAMPP v.1.7.1 or installing it for the first time.
I finally got my .pdf files to work in XAMPP v.1.7.0. (Windows XP SP2) In tracing all the error messages that xampp generated when I tried my cds.php/ pdf and cds-fpdf.php I discovered some interesting things about Windows and Apache. (There is no excuse for an OS like Windows XP Home Edition.)First,
I still had directory entries in Registryfor previous Apache/php installations even though I uninstalled them and deleted some of them. I deleted all these Registry entries as well as renamed all previous apache & php folders. Restarted my machine. Second
, even after I did the above, I discovered that I still had 2 apache.exe processes running concurrently. I don't know if that is what should be happening. I killed one process but then the whole Apache service died. I restarted my machine again.Third
,** I discovered that-----> although phpinfo() indicates that XAMPP reads or loads the php.ini file in the apache\bin directory, my cds-fpdf.php program was accessing/using the php.ini file in xampp\php. **This may seem surprising but in fact makes very good sense, if you consider that there is either a Windows PATH variable or an include_path statement in php.ini , which has the value "C:\xampp\php\pear". As Apache traverses these directories it executes? the *.ini files that it finds. In this regard, Izzy's advice to delete all *.ini files not in apache\bin is a very good idea. ( a previous post)------->
And I remembered what the folks at Apache tell all newbies who are installing APache for the first time - - take time to understand the *.conf file(s) and how it all works. No I know why.
(Still not reached that "how it all works" level of understanding but I am working at it. )Fourth
, I finally changed the "include('fpdf.php');" statement in cds-fpdf.php to point to the file explicitly with the statement "include('\xampp\php\pear\fpdf'\fpdf.php') with
" around the path(won't work with double quotes).
AND Then I l
my cd-fpdf.php file and magically I saw Adobe open up for the first time in XAMPP. ANd that's when I realized what pdf is really good for. REPORTS. So...
I am somewhat disappointed that cds-fpdf.php didn't work out of the box. Still, it was a worthwhile learning experience
BUT before I upgrade to XAMPP v.1.7.1, I need to know my Apache better. SO I'm spending some serious time with the source.
Happy sleeping &&
Regards to All-