calling external php file before <html> tag

From: Ben (crescent_au_at_yahoo.com)
Date: 08/29/04


Date: 28 Aug 2004 18:46:32 -0700

hi all,

just wondering if it is possible to call a function that resides on
external php file before any <html> tag?? i have a code that sets a
cookie which needs to be called before <html> tag. If I use that code
on the same file, it works fine. But I'd like to use it on a separate
php file so that it'd be easier to modify in the future because that
same function can be called from other files too... When I include the
external php file in my main file, it gives me warning saying
something like the cookie is set by the external file.... Is there a
way to do it properly?

Thanx
Ben



Relevant Pages

  • Re: PHP Redirect Problem
    ... If I were to redirect users in HTML using <Meta HTTP_EQUIV... ... > Tag to a php file, why is it that $_SERVERreturns only the domain? ...
    (comp.lang.php)
  • Re: GD Installation problem
    ... with an tag to call the php file that is supposed to generate the ... img src tag to call it. ... On the html page I just get a space as if the html ...
    (comp.lang.php)
  • calling external php file before <html> tag
    ... external php file before any tag?? ... cookie which needs to be called before <html> tag. ... external php file in my main file, ...
    (comp.lang.php)
  • Re: calling external php file before <html> tag
    ... > external php file in my main file, it gives me warning saying ... > something like the cookie is set by the external file.... ...
    (alt.php)
  • Re: calling external php file before <html> tag
    ... > external php file in my main file, it gives me warning saying ... > something like the cookie is set by the external file.... ...
    (comp.lang.php)