lstables Posted March 23, 2009 Report Share Posted March 23, 2009 I recently paid and downloaded the PHP shop tutorial from killersites.com but am getting an error Just wondered if you could shed some light on this matter I have. > > > > I have followed each step through with the videos and used the > exercise files too but still get the error below both on my server and > using WAMP. > I type in http://localhost/store/ and just get a blank page. all i get in "view source" is <?= render_header(); ?> <?= render_products_from_xml(); ?> <?= render_footer(); ?> No html is present either, so my main issue is why am I not able to see the page I just get a blank white screen. Cheers in advance Lee Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 24, 2009 Report Share Posted March 24, 2009 Here is a guess... What version of PHP are you running? If you are running PHP5, I believe the "= ?>" tag is depreciated. Try this instead: <?php echo render_header(); ?> <?php echo render_products_from_xml(); ?> <?php echo render_footer(); ?> Otherwise, it sounds like you have an error in your PHP code somewhere. The first step is usually to make sure error reporting is on, which usually requires editing the PHP.ini file. This will allow the server to generate an error message, and alert you to problems in your code. This has a bit more information: http://www.computerworld.com.au/article/191904/error_reporting_php_part?fp=2&fpid=76768 Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 24, 2009 Report Share Posted March 24, 2009 Also, here is a video tutorial on setting up the .ini file to display errors, assuming you are running WAMP: http://killerphp.com/videos/wamp_php_ini/wamp_setup_part_2.html Quote Link to comment Share on other sites More sharing options...
lstables Posted March 24, 2009 Author Report Share Posted March 24, 2009 Cheers, I'll check that out Thanks for advice. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 24, 2009 Report Share Posted March 24, 2009 If you are running PHP5, I believe the "= ?>" tag is depreciated. I may be wrong here -- I'm getting conflicting advice, so I am not sure. However, it probably would be a good idea to start by checking if you have error reporting on, so you can see any errors that occur. 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.
Note: Your post will require moderator approval before it will be visible.