zeromyst Posted June 25, 2007 Share Posted June 25, 2007 First off, I am fairly new at PHP and Apache but not new to programming in general. I learn through experimenting with code, but can't get Apache to work correctly with PHP in the first place, and thus, I can't do either of the above Im running Windows XP, Apache 2.2.4 , and PHP 5.2.3. Currently, Apache's http://localhost is currently working, it shows all the files in my htdocs folder and I can view everything else the way it should be... However, neither Mozilla nor EI will show the PHP test files with code such as <? phpinfo(); ?> and instead, only displays a blank screen. When I view the source however, it shows the exact code that its supposed to, but still doesn't work properly. Just a little frusterated since my background is basic HTML and am not used to 2 programs needing to be tied together like this. Any response at all will be appreciated, and sorry if this is a normal question. Quote Link to comment Share on other sites More sharing options...
effigy Posted June 26, 2007 Share Posted June 26, 2007 See Installing as an Apache module. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 26, 2007 Share Posted June 26, 2007 Always use the full PHP tag syntax (<?php ?>) and not the short hand version (<? ?>). Try: <?php phpinfo() ?> By default PHP has a setting called short_open_tag disabled and thu <? ?> tags do not work. IMO it is best to use the full tag syntax. Also it is important that you restart Apache when you have edited Apache's or even PHP's configuration files (http.conf or php.ini) in order for any changes you have made to take effect. Quote Link to comment Share on other sites More sharing options...
zeromyst Posted June 26, 2007 Author Share Posted June 26, 2007 thanks guys, solved the problem completely. It was a syntax error lol. man I feel retarded Thanks wildteen, i'd probably kiss you irl for helping with this, so...today's your lucky day I guess haha Quote Link to comment 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.