ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?
by Rasmus Lerdorf other posts by this author
Sep 4 2001 3:15AM messages near this date
Re: [PHP] Newbie Question: Converting PHP3 files to PHP4? | [PHP] How to get the referer value?
Just configure your server to serve up .php3 files as PHP 4.  ie. add this
line to your httpd.conf file:

AddType application/x-httpd-php .php .php3

And get rid of your other AddType line.

-Rasmus

On Mon, 3 Sep 2001, Michelle Marcicki wrote:

>  Hi there,
> 
>  I have recently taken over the webmaster responsibility for an educational
>  website.  It is using PHP3 and MySQL.  We had to move it to a new server, that
>  as it turns out only supports PHP4.  I have been looking through all the FAQs,
>  resource sites, manuals and documentation, but all I can find as a solution is
>  to change all my current file extensions .php3 to just .php !  Can anyone tell
>  me if this will work before I start converting probably close to several hundred
>  files??  I am going to change and test some files, but would like some advice on
>  this!
> 
>  The type of errors that I get with the current file setup are when clicking on
>  any of the links that lead to files in PHP3 are:  You have started to download a
>  file of type "application/x-httpd-php3", etc.
> 
>  Any other tips or info would be appreciated.  This is a bit urgent, as I have
>  just found out that the site "director/owner" wants it as functional as possible
>  for the start of school this week... so no pressure really... lol.
> 
>  Thanks in advance.
> 
>  Michelle
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@[...].net
For additional commands, e-mail: php-general-help@[...].net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Thread:
Michelle Marcicki
Jack Sasportas
Christopher William Wesley
Rasmus Lerdorf

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved