Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?
One thing I noticed when I did some updates to a few of our programs, is that certain comment lines caused strange errors, and really nothing else. I basically made a backup copy removed comments, and then added them back in which made everything work...not sure if somehow the older box ( using pico ) caused some strange errors that the new version of php spotted, but just in case you are getting things you are not expecting. Good Luck! 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- ___ Jack Sasportas Innovative Internet Solutions Phone 305.665.2500 Fax 305.665.2551 www.innovativeinternet.com www.web56.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Newbie Question: Converting PHP3 files to PHP4?
> OOOH ... Nasty! If the admin can't add the .php3 extension > for you, then you'll be stuck renaming files, and correcting > references within them. Shouldn't be hard to add either way :) > If it's a unix host, it's not that painful ... just a small > shell script, and a sed script. (In Illegal Monopoly OS, it > may be lots more painful.) Nah, in Illegal Monopoly OS, its just as easy as Apache. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?
On Mon, 3 Sep 2001, Michelle Marcicki wrote: > I am NOT running the server. I am using a local ISP (excellent guy but not > really accessible on this long weekend), so I have no control over what the OOOH ... Nasty! If the admin can't add the .php3 extension for you, then you'll be stuck renaming files, and correcting references within them. If it's a unix host, it's not that painful ... just a small shell script, and a sed script. (In Illegal Monopoly OS, it may be lots more painful.) Good luck, ~Chris /"\ \ / Pine Ribbon Campaign Microsoft Security Specialist X Against Outlook The moron in Oxymoron. / \ http://www.thebackrow.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Newbie Question: Converting PHP3 files to PHP4?
> OR is there only a server fix and nothing that I can do at my > end as far as code or file name changes? Changing all your file names and links in the files is very time-consuming and not really necessary. If you can wait until tomorrow morning, the change that the guy who runs the server can make for you will mean you won't have to do it. It'll take him a few minutes at best. Changing file names will also break people's bookmarks, which is another reason to get the server configuration changed. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?
Sorry to all who responded already.. I guess some further clarification is needed... opps :) I am NOT running the server. I am using a local ISP (excellent guy but not really accessible on this long weekend), so I have no control over what the server's configuration is (at least until tomorrow). I can certainly pass these notes along to my ISP to get him to do these changes you've suggested, but do I need to change my file extensions.. ie. professionaldevelopment.php3 to professionaldevelopment.php instead.. or am I missing something here. OR is there only a server fix and nothing that I can do at my end as far as code or file name changes? Michelle -Original Message- From: Rasmus Lerdorf <[EMAIL PROTECTED]> To: Michelle Marcicki <[EMAIL PROTECTED]> Date: Mon, 3 Sep 2001 20:15:30 -0700 (PDT) Subject: Re: [PHP] Newbie Question: Converting PHP3 files to PHP4? > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Newbie Question: Converting PHP3 files to PHP4?
Just fiddle the configuration of the server so that it recognises .php3 files as if they were .php. In Apache, this means you find this line in the config: AddType application/x-httpd-php .php And add one just like it nearby: AddType application/x-httpd-php .php3 Also, fiddle the DirectoryIndex line: DirectoryIndex index.php3 To look like: DirectoryIndex index.php index.php3 (this means a .php file which will be newer obviously will take precedence over a .php3 file) You should be right from there. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" > -Original Message- > From: Michelle Marcicki [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 04, 2001 1:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Newbie Question: Converting PHP3 files to PHP4? > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?
On Mon, 3 Sep 2001, Michelle Marcicki wrote: > 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, Are you running an Apache web server? If so, add this line to your httpd.conf file and restart Apache: AddType application/x-httpd-php .php3 (You'll find similar lines in your httpd.conf file ... add this line in the same part of the file so you can find it easily next time.) ~Chris /"\ \ / Pine Ribbon Campaign Microsoft Security Specialist X Against Outlook The moron in Oxymoron. / \ http://www.thebackrow.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]