Conjurer Posted September 24, 2006 Share Posted September 24, 2006 I tried to map a site to http://localhost/ to use TopStyle with PHP but instead of seeing the processed code in the preview, I see all the code itself.I am using Apache 2 and PHP 4.13 on a WinXP Pro machine.The PHP is working fine and when I preview from Dreamweaver MX I see the processed results, but I would like to be able to sometimes edit directly from TopStyle. I looked at the TopStyle help menus on mapping but I am totally baffled.Any pointers would be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/21883-using-topstyle-with-php/ Share on other sites More sharing options...
wildteen88 Posted September 25, 2006 Share Posted September 25, 2006 I guess your using Topstyle Pro. To be able to parse your PHP files when you go to preview them you'll need to add a [i]mapping[/i]. To add a mapping go to Options > Preview > MappingsNow click the Add button. In the Map From textfield type in the full location to your Servers document root, The document root is the folder where you place your files so they can be seen when you goto http://localhost/ - for example if you have IIS installed the document root will be:C:/Inetpub/wwwroot/ by defualtOr if you have Apache it'll be something likeC:/Program Files/Apache Group/Apache2/htdocs by default.Once you have setup the mapping. You should be able to see your PHP files when you goto preview them. Quote Link to comment https://forums.phpfreaks.com/topic/21883-using-topstyle-with-php/#findComment-98049 Share on other sites More sharing options...
Conjurer Posted September 25, 2006 Author Share Posted September 25, 2006 Thanks Quote Link to comment https://forums.phpfreaks.com/topic/21883-using-topstyle-with-php/#findComment-98216 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.