Jump to content

Help with PHP Shop Tutorial


lstables

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...