Austin H Posted December 17, 2008 Share Posted December 17, 2008 I recently uploaded a series of files for register/log-in/user account/ functions, etc. The problem is, they all show up as text, instead of any sort of visual effect. Does anyone know a solution to this? all of the scripts can be found here. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/ Share on other sites More sharing options...
trq Posted December 17, 2008 Share Posted December 17, 2008 he problem is, they all show up as text, instead of any sort of visual effect. Assuming by text you mean code? Does your host support php? Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717271 Share on other sites More sharing options...
Austin H Posted December 17, 2008 Author Share Posted December 17, 2008 Yes, I meant code. And yes, it does support PHP. I'm hosted through 110mb, if that makes any difference. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717289 Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 You have to upload the code using the .php file extension or else it will just show text. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717291 Share on other sites More sharing options...
Austin H Posted December 17, 2008 Author Share Posted December 17, 2008 I have uploaded all of the files with a .php extension. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717294 Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 Call or talk with your host and see how you must upload php files. Chances are you are uploading them wrong, or php is a switch that your host needs to turn on. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717295 Share on other sites More sharing options...
Austin H Posted December 17, 2008 Author Share Posted December 17, 2008 As far as I can tell, PHP is enabled on the 110mb servers. Could it be an issue with PHP versions? The version installed is 5.1.6. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717298 Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 Could be, are you using the <?php and ?> tags. If you are using the <? chances are short_tags are turned off use the <?php instead. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717300 Share on other sites More sharing options...
PFMaBiSmAd Posted December 17, 2008 Share Posted December 17, 2008 That code is using short open tags and won't work on all servers. Short open tags were a lazy-way short cut that have cost 100's or 1000's of times more in lost troubleshooting time then the amount of typing time they ever saved. Even php.net points out not to use short open tags in code that is specifically being created for distribution (such as on a site like you found that code on.) Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717306 Share on other sites More sharing options...
Austin H Posted December 17, 2008 Author Share Posted December 17, 2008 That solved the problem for some of them, thanks for the information. Quote Link to comment https://forums.phpfreaks.com/topic/137281-applying-a-database/#findComment-717331 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.