Re: Link a file that does a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well   if I would looked at  1 php file  that I was trying to
include    I forgot  to  indicate that it was a  php file
by placing   <?        ?>   in that file....

Once I did that,  it works


Thanks for your quick response

Ken


--- In php-objects@xxxxxxxxxxxxxxx, sudhakar <finals27@...> wrote:
>
> if i understood you correctly, i think you can try and
> use include "filename.php" in all the 13 files which
> would call 1 php file to display the time. i think
> this might work.
> 
> --- Ken <ken.poyser@...> wrote:
> 
> > I have a file that gets the local time  (not GMT) 
> > 
> > $timestamp=time();
> > $seconds = 6*60*60;
> > $timestamp-=$seconds;
> > $tz = "CST";
> > 
> > $localtime= date("m/d/Y H:i:s",$timestamp);
> > $localdate = substr($localtime,0,10);
> > $localtime = substr($localtime,11,8); 
> > 
> > 
> > Currently I have the code above in about  13 files
> > and wondering how to  have this one file
> > and then in the 13 files  to  go to this file to
> > do the date/time conversion
> > 
> > 
> > I am wondering how to call this file to do this from
> > within these  13 php  files
> > 
> > 
> > Any assistance would be appreciated
> > 
> > 
> > Thanks
> > Ken
> > 
> > 
> 
> 
> 
>       
_____________________________________________________________________
_______________
> Never miss a thing.  Make Yahoo your home page. 
> http://www.yahoo.com/r/hs
>



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux