jbillens Posted December 7, 2007 Share Posted December 7, 2007 I am working on a page to upload results to a database. When i submit my form to php it opens in dreamweaver. How do I stop it from opening in dreamweaver and open in the web page and run the php script. Thanks for the help Josh Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/ Share on other sites More sharing options...
Yesideez Posted December 7, 2007 Share Posted December 7, 2007 You need to be running a server on your machine that will parse the PHP - google WAMP and install that. Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/#findComment-409270 Share on other sites More sharing options...
jbillens Posted December 7, 2007 Author Share Posted December 7, 2007 I have wamp installed already. I can run a script to test php like <? phpinfo(); ?> and php works fine. but in my script the php does not run. could this be an error in coding or some error in setup. I just do not understand why it would be opening off my page in dreamweaver. Josh Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/#findComment-409282 Share on other sites More sharing options...
revraz Posted December 7, 2007 Share Posted December 7, 2007 Do you have <?PHP tags in your code? Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/#findComment-409284 Share on other sites More sharing options...
jbillens Posted December 7, 2007 Author Share Posted December 7, 2007 no i used the short hand version <? I enabled this in my php.ini file Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/#findComment-409288 Share on other sites More sharing options...
Yesideez Posted December 7, 2007 Share Posted December 7, 2007 It's best to use the long version because most (not all) servers have short enabled. Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/#findComment-409361 Share on other sites More sharing options...
Crew-Portal Posted December 7, 2007 Share Posted December 7, 2007 yes it is best to use longhand because the first reason is (as said before by Yesideez) Not all servers are compliant to shorthand. Secondly if you have XML on your server these are the tage XML uses to define its DTD and that will mess up your code if running XML and PHP on one doc echo "<? = Bad execpt for XML"; echo "<?php = Good For PHP"; Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/#findComment-409363 Share on other sites More sharing options...
jbillens Posted December 8, 2007 Author Share Posted December 8, 2007 Ok I changed all opening tags but the problem still persists. Link to comment https://forums.phpfreaks.com/topic/80698-help-loading-php-pages/#findComment-409398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.