posted
It was a few weeks before Christmas and classes for Phanto were coming to a close. Yet somehow Phanto had been given a final project which Phanto had little to no experience in. Determined to make good, Phanto rationalized that this way would teach new skills.
Phanto was currently sitting in the studio, surrounded by christmas style coffee cups from Starbucks and a half eaten bag of candy. Phanto considered the options. Phanto had already located a premade .ics parser. It seemed to be good code, and so jacked it in. The drupal Website Phanto was working on wouldn't let Phanto use a simple include 'xxx.php' statement, so Phanto stuck the code in directly, expecting to later outsource it.
Phanto also had a form on another page that let the user upload their .ics file to the website. Then the form action element would load another page where the following code met them:
if ($_FILES['uploadedcal']) { $calender = $_FILES['uploadedcal']['tmp_name']; $icsparser = new iCalReader($calender); }
Now poor little Phanto was confused. As far as Phanto knew, the $icsparser variable was doing nothing besides being initalized. A check of the inner function -- file_get_contents -- with some debugging revealed it was working. Yet why was the page showing nothing but White?
Phanto was working in a Drupal CMS enviroment, something that provided daily challenge. Worse, Phanto had to present to the team the next day with a working prototype. Taking a sip of coffee, Phanto looked outside the window.
It was a real Christmas dilemma. And time was running out.
Posts: 3060 | Registered: Nov 2003
| IP: Logged |
I have a module that exists and is working fine. I pretty much dumped all the code into that module and put the text stuff. I think the hook is the menu() hook.
php version 5.0.4.
Posts: 3060 | Registered: Nov 2003
| IP: Logged |
Since you're not seeing anything in the logs, unless logging is turned far too low, the page is probably parsing okay.
Posts: 15770 | Registered: Dec 2001
| IP: Logged |
posted
Are you sure there is nothing in the apache log? There're often separate logs for errors.
In that case, I'd start by putting a print statement after every statement in the parser constructor, preferably that prints something related to the statement just past.
Then see what you get.
Posts: 15770 | Registered: Dec 2001
| IP: Logged |