hump0phpman Posted April 23, 2010 Share Posted April 23, 2010 All, Please help me. I may be going mad here but I am totally stuck after a couple of days of messing about with a site. I acquired the management of website that I have successfully installed on Linux it is PHP / MYSQL. It all works a treat and everything displays beautifully. What I wanted to then do was deploy a local version of the site that I could develop / enhance on the PC. PC is a Dell with Vista OS. I have Apache / 2.2.15 (Win 32) PHP / 5.2.13 With MYSQL 5.1 The problem I get is that when I try to run the index.php for the site which sits in the following folder c:\Prorgam Files\Apache Software Foundation\Apache2.2\htdocs\cal It runs the web page php but doesn't format the site properly. I get all of the website in a brain dump into IE. Some of the graphics if you right click them have the following detail in them http://localhost/cal/%3C?=IMAGE_RESOURCE_URL;?>/logo.png Now IMAGE_RESOURCE_URL is a value the code can get from the database / as well as other variables such as SITE_URL The config.php contains information about SITE_URL and should assign variables. I saw other posts that relate to the short_tags_toggle but I think that was a red herring. I'm hoping it simple. The config.php does read the database cos' if I change the password it gives an error message. // Site URL $SITE_URL = 'http://localhost/cal'; $CMS_FOLDER = 'cms'; // Database connection $DB_DBMS = 'MySQL5'; $DB_HOST = 'localhost'; $DB_PORT = '3306'; $DB_NAME = 'caldevdb'; $DB_USER = 'caluser'; $DB_PASS = '***********'; $TBL_PREFIX = 'cal_'; the relate to Can someone give me any pointers ? BTW: I'm fairly new to PHP so apologies in advance if this sounds stupid. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/199496-problem-running-a-website-on-a-local-windows-machine/ Share on other sites More sharing options...
trq Posted April 23, 2010 Share Posted April 23, 2010 Looks like the code relies on short_open_tags, fix your code to use the full and proper <?php and <?php echo Link to comment https://forums.phpfreaks.com/topic/199496-problem-running-a-website-on-a-local-windows-machine/#findComment-1047425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.