RE: [PHP] Include Problem... (was Listing Declared Variables)
| From: | Ford, Mike [LSS] | Date: | Thu, 08 May 2003 09:29:13 +0000 |
| Subject: | RE: [PHP] Include Problem... (was Listing Declared Variables) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146807@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Dan Tappin [mailto:dan.tappin@orourke-eng.com]
> Sent: 07 May 2003 16:18
> To: php-general@lists.php.net
>
>
> Now I have an existing page where I want to add the geoip
> feature to display
> the country name and flag based on an IP address. I have a
> stats page where
> I am pulling log data fram a mySQL db and displaying a table
> view. On each
> line of the table I added my call to the geoip functions to
> display the
> counrty info.
>
> On this particular site my links are like this:
>
> http://mysite.com/index.php?inc=stats&id=1
>
> I set this up so that I can have a generic index.php page
> which includes a
> 'stats.inc' file which parses based on the 'id=1' data.
>
> The problem is that if I now add the geoip include in the
> 'stats.inc' it
> fails. No error - no data echoed back. If I add the geoip
> calls in the
> base index.php it works fine.
You need to show us some more code -- at least the relevant bits of index.php and stats.inc would be
a good starting point.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211