yshua Posted December 13, 2011 Share Posted December 13, 2011 Hello, helpful readers: You all have been great for me in the past.... How do I handled index.php file unable to print the header.php or footer.php, for instance because of the version conflict. Have transferred all files from Yahoo, to Apache 2.2.17 web server. Everything else is taking shape nicely, thanks largely to the advice received here. Thanks for any info, Yshua Quote Link to comment https://forums.phpfreaks.com/topic/253119-needing-php-420-files-translated-to-php-538-for-apache-2217/ Share on other sites More sharing options...
trq Posted December 14, 2011 Share Posted December 14, 2011 We are going to need allot more detail about your actual issue. Quote Link to comment https://forums.phpfreaks.com/topic/253119-needing-php-420-files-translated-to-php-538-for-apache-2217/#findComment-1297699 Share on other sites More sharing options...
jcbones Posted December 14, 2011 Share Posted December 14, 2011 Off the top of my head, I would make sure that those files did not use short tags. Quote Link to comment https://forums.phpfreaks.com/topic/253119-needing-php-420-files-translated-to-php-538-for-apache-2217/#findComment-1297703 Share on other sites More sharing options...
yshua Posted December 14, 2011 Author Share Posted December 14, 2011 Dear Thorpe: Please, what kind of info? It's a Windows 7, but this could be an issue also: In the httpd.conf file, I changed the lines, <IfModule dir+module> DirectoryIndex index.html <IfModule> to <IfModule dir+module> DirectoryIndex index.php <IfModule> and that makes a directory display turn to the index.php, which scrolls to the download php screen file, perfectly. And to JCBones, Sorry, am too green to know what short tags are.... Would be happy to know, though. Thanks again, Yshua Quote Link to comment https://forums.phpfreaks.com/topic/253119-needing-php-420-files-translated-to-php-538-for-apache-2217/#findComment-1297719 Share on other sites More sharing options...
jcbones Posted December 16, 2011 Share Posted December 16, 2011 Short tags is a lazy way of opening a PHP file (<? instead of <?php). While short tags are enabled on a lot of servers, it is not enabled on ALL, so it may fail if moved to a different server. Prior to 5.4.0 this included the short form of echo <?=, but after 5.4.0 that will work even if short tags is turned off. Quote Link to comment https://forums.phpfreaks.com/topic/253119-needing-php-420-files-translated-to-php-538-for-apache-2217/#findComment-1298616 Share on other sites More sharing options...
yshua Posted December 18, 2011 Author Share Posted December 18, 2011 Solved, All Right, you all! As always all your inputs are welcome and needed. Sometimes lack of an exact answer points to the obvious! It turned out, using php5apache2_2.dll, in another topic helped extraordinarily. This time, one of two changes, unsure which got the header and footer, and whole webserver running correctly. In the stmt: PHPIniDir"C\Program Files (x86)\PHP\," the last "\" was missing! Also switched the PHP folder to the C:\ along with the directory at the same time. Whichever worked, it resolved it. Go PHP Freaks! One happy camper, Yshua Quote Link to comment https://forums.phpfreaks.com/topic/253119-needing-php-420-files-translated-to-php-538-for-apache-2217/#findComment-1299042 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.