Re: interface name file
| From: | Ashley Sheridan | Date: | Thu, 08 Jul 2010 07:57:27 +0000 |
| Subject: | Re: interface name file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306753@lists.php.net to get a copy of this message | ||
On Thu, 2010-07-08 at 04:00 +0200, Hans Åhlin wrote:
> *.api
> Application Programming Interface
> http://en.wikipedia.org/wiki/Application_Programming_Interface
>
> **********************************************
> Hans Åhlin
> Tel: +46761488019
> icq: 275232967
> http://www.kronan-net.com/
> irc://irc.freenode.net:6667 - TheCoin
> **********************************************
>
>
>
> 2010/7/8 Augusto Flavio <aflavio@gmail.com>:
> > Hi,
> >
> >
> > I want to know which file name is appropriate for a interface. Today, for a
> > PHP class I use: NAME.class.php. What about a interface? Is there a
> > definition about it ?
> >
> >
> >
> >
> >
> > Thanks
> >
> >
> >
> > Augusto Morais
> >
>
In that case, *.api.php. You shouldn't ever give PHP a non-PHP
extension, as all it takes is for a little mis-configuration and your
PHP code is open to the world to view. Easier to keep a consistent
filename in your app than guarantee someone doesn't make a mistake
setting up the server.
Thanks,
Ash
http://www.ashleysheridan.co.uk