extention issues...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JBright
Forum Newbie
Posts: 6
Joined: Fri May 09, 2003 2:23 pm

extention issues...

Post by JBright »

I'm beginning coding with PHP, the issues I'm having consist of the extentions. Why is it that when I name a file .php4 my scripts don't seem to work. Although when I switch back to .php it produces the work or at least an error guiding me in the correct direction. Thanks for your time.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

It's because if you want to use a .php4 extension for your files then you need to setup your webserver to recognise these as PHP files - by default it's normally just .php that is setup.

Mac
JBright
Forum Newbie
Posts: 6
Joined: Fri May 09, 2003 2:23 pm

Post by JBright »

So either way though one can still take advantage of php v4 with both file extentions?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

JBright wrote:So either way though one can still take advantage of php v4 with both file extentions?
If you setup your webserver to recognise the non-standard php4 extension.

Mac
Post Reply