TheFilmGod Posted July 29, 2007 Share Posted July 29, 2007 Currently my server is running php 4.0.3 or something like that. I called customer service. They say its running php 5 but I need some filename.php5 extension? What is this? Is this true? Help!!! I'm clueless!! ??? ??? ??? Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/ Share on other sites More sharing options...
corbin Posted July 29, 2007 Share Posted July 29, 2007 Ummm..... How are we supposed to know if it's true? I don't know why your customer serv people would lie to you ;p. Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310408 Share on other sites More sharing options...
lightningstrike Posted July 29, 2007 Share Posted July 29, 2007 If you want to remain using the .php extension for version 5.0 and ahve access to your .htaccess files. simply add in it. AddHandler application/x-httpd-php5 .php or AddType application/x-httpd-php5 .php depending on config. Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310411 Share on other sites More sharing options...
TheFilmGod Posted July 29, 2007 Author Share Posted July 29, 2007 well, if you go to wwpknights.com/info It uses phpinfo(); function. Now they say I need a .php5 extension to make php 5 work? Does this make any sense or did the guy totally BS me? (from customer service)? Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310412 Share on other sites More sharing options...
lightningstrike Posted July 29, 2007 Share Posted July 29, 2007 it makes sense, since your phpinfo file is probably using the .php extension not .php5 Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310414 Share on other sites More sharing options...
TheFilmGod Posted July 29, 2007 Author Share Posted July 29, 2007 Thanks lightningstrike. I will call customer service again. Thank you soo much!! Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310415 Share on other sites More sharing options...
trq Posted July 29, 2007 Share Posted July 29, 2007 Simply make another phpinfo file, this time with the extension .php5. This is one way to make available both php4 and php5 on the same server. Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310420 Share on other sites More sharing options...
corbin Posted July 29, 2007 Share Posted July 29, 2007 lol sorry for my first response.... It was kinda bleh..... Anyway, wouldn't the add type thing in htaccess overlap with apache's config? You could use modrewrite and make .php redirect to .php5 behind the sceenes, but then you couldn't (easily) use php 4.... Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310424 Share on other sites More sharing options...
trq Posted July 29, 2007 Share Posted July 29, 2007 Anyway, wouldn't the add type thing in htaccess overlap with apache's config? It would overide the default apache setting. Thus allowing the .php extension to be parsed as php5. Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310426 Share on other sites More sharing options...
TheFilmGod Posted July 29, 2007 Author Share Posted July 29, 2007 Well I just went to support and they told me to do the .htaccess file. They gave me the code and everything? But where is this file located? I go to my root directory and there is no .htaccess file!! Is there a place I can get the .htaccess file somewhere? Please help!! Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310427 Share on other sites More sharing options...
trq Posted July 29, 2007 Share Posted July 29, 2007 The . on the front makes it a hidden file. I'm not sure what your trying to view it with but that may be the issue. Otherwise, if it not there, just make a new file in your document root called .htaccess and place the code they gave you in it. Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310428 Share on other sites More sharing options...
TheFilmGod Posted July 29, 2007 Author Share Posted July 29, 2007 how do I make a new one? Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310430 Share on other sites More sharing options...
trq Posted July 29, 2007 Share Posted July 29, 2007 How do you make any new file? Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310431 Share on other sites More sharing options...
TheFilmGod Posted July 29, 2007 Author Share Posted July 29, 2007 I never did .htaccess files before. I swear! Do I just put it into notepad and save it like .htaccess? Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310432 Share on other sites More sharing options...
trq Posted July 29, 2007 Share Posted July 29, 2007 Yeah. Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310433 Share on other sites More sharing options...
corbin Posted July 29, 2007 Share Posted July 29, 2007 Anyway, wouldn't the add type thing in htaccess overlap with apache's config? It would overide the default apache setting. Thus allowing the .php extension to be parsed as php5. I meant like would it error or not.... Anyway, that's cool ;p. Link to comment https://forums.phpfreaks.com/topic/62371-solved-php-4-to-php-5/#findComment-310434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.