Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP-INSTALL] php shows as text
Patrick Donker wrote:

> Hi list,
>
> Yes I've searched the archive ;)
> I have a strange thing, which must be a something trivial.
> My .php files run as expected, but as soon as I try to run a script
> from an extentionless file, it shows up as text; the source is shown.
> I saw on the php.net faq that if that happens I should replace the
> AddType application/x-httpd-php .php .phtml with AddType text/html php
> and add AddHandler php-script php to my httpd.conf, which I did.
> Saved, restarted, but still the same thing.
> As soon as I add .php to the file, it runs just beautifully. Why not
> just add .php you might say, but it is part of a larger installation,
> which calls these extentionless files, so that is no option.
> Any hints?
>
> Thanks
> -Patrick
>
>
try :

DefaultType application/x-httpd-php
AddType application/x-httpd-php .php .phtml

Cheers,

Brad Kowalczyk
Web Developer
brad@ibiscode.com
http://ibiscode.com



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.290 / Virus Database: 265.4.3 - Release Date: 26/11/2004

Report this thread to moderator Post Follow-up to this message
Old Post
Brad Kowalczyk
11-28-04 02:02 AM


Re: [PHP-INSTALL] php shows as text
Brad Kowalczyk wrote:

> Patrick Donker wrote:
> 
> try :
>
> DefaultType application/x-httpd-php
> AddType application/x-httpd-php .php .phtml
>
> Cheers,
>
> Brad Kowalczyk
> Web Developer
> brad@ibiscode.com
> http://ibiscode.com
>
>
>
Dude! This works :)
Will the defaulttype have any side effects on any other files that might
get parsed while not having an extention?

-Patrick

Report this thread to moderator Post Follow-up to this message
Old Post
Patrick Donker
11-28-04 02:02 AM


Re: [PHP-INSTALL] php shows as text
Patrick Donker wrote:

> Brad Kowalczyk wrote:
> 
> Dude! This works :)
> Will the defaulttype have any side effects on any other files that
> might get parsed while not having an extention?
>
> -Patrick
>
>
Yes, any file without an extension will be parsed through php

Cheers,

Brad Kowalczyk
Web Developer
brad@ibiscode.com
http://ibiscode.com


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.290 / Virus Database: 265.4.3 - Release Date: 26/11/2004

Report this thread to moderator Post Follow-up to this message
Old Post
Brad Kowalczyk
11-28-04 02:02 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Installation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:43 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.