Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

IP Address


typedkiller

Recommended Posts

Hi Everyone.

 

I am trying to put an ipaddress into my website. After reading Wiki.documentation at http://wiki.oscommerce.com/docsCatTipIp, whenever I change the text in footer.php, it gives following error:

 

Parse error: parse error in /home/book/public_html/includes/footer.php on line 45

 

Any Suggestion.

 

Unable to find any contribution on that even.

 

Any help is appreciated.

Link to comment
Share on other sites

This is what I added in my catalog/includes/footer.php from wiki. documentation.

 

<?php

$rmtIP = $REMOTE_ADDR;

?>

< tr>

<td colspan="2">

<table width="100%">

<tr>

<td class="smalltext" align="center" height="20" valign="middle">

<?php echo "   Your IP Address is: " . $rmtIP; ?>

</td>

</tr>

</table>

</tr>

 

I am not php freak. Can you please suggest what could be the error.

 

Thanks for replying.

Link to comment
Share on other sites

No, I mean post the code from the footer.php file.

 

If you entered the code in the file correctly, you would not have the error.

 

You have to make sure that you're escaped from the php area or doing <?php while already in <?php will cause an error.

 

Also, make sure that you are correctly using " and ' if you've made some changes.

 

If you have no clue what I'm talking about, just post the footer.php file in error "/home/book/public_html/includes/footer.php"

- - - -

Sometimes, ignorance is bliss.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...