| | |
Newby to PHP here.... (Google Analytics)
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
hmm.. I dont see anything wrong with this. What I dont understand is, how come your footer(allied_footer.php) starts off with no <html> tag, no <body tag, no <table> tag ! Are you sure this is all you have in allied_footer.php ? Are you sure you dont have any <? in between ?
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Jan 2008
Posts: 9
Reputation:
Solved Threads: 0
Hi Nav,
I did a little more research on the issue of allied_footer.php not having the information you believe is missing.
All of the example footer.php files I have seen on the net do not have any of that info.
The following is one of these examples where the footer file seems to rely on the header file, or index file for that stuff???
http://www.bobsmithphotography.net/a-little-php
Thank you for your help
I did a little more research on the issue of allied_footer.php not having the information you believe is missing.
All of the example footer.php files I have seen on the net do not have any of that info.
The following is one of these examples where the footer file seems to rely on the header file, or index file for that stuff???
http://www.bobsmithphotography.net/a-little-php
Thank you for your help
•
•
Join Date: Jan 2008
Posts: 57
Reputation:
Solved Threads: 5
•
•
•
•
Parse error: parse error, unexpected T_INCLUDE_ONCE in /home/content/B/r/1/Hidden/html/-APPI-/NAV/allied_footer.php on line 26
Check that lines 25 and 26 look like this (taken from the code pasted earlier)...
php Syntax (Toggle Plain Text)
$virtual_page = "Main_Page"; include_once "analyticstracking.php";
If there's no missing semi-colon, then there shouldn't be a reason for that error.
As for the <html> tags, they shouldn't be in the footer.
Generally the way the templating system works is...
- * Header.php - includes opening html tag, head tags, and opening body tag
* Page.php - includes the main content - everything inside the body tag
* Footer.php - includes the closing body and closing html tags, along with any footer info
In fact it seems rather strange that the analytics page (which you are including) contains all those tags. Since it's in the middle of an existing page, that might screw up the html.
- Walkere
How come the error keep changing from
to ? Comment the include_once line and check if you still get the error.
•
•
•
•
Parse error: parse error, unexpected '?' in /home/content/B/r/1/Hidden/html/-APPI-/NAV/allied_footer.php on line 25
•
•
•
•
Parse error: parse error, unexpected T_INCLUDE_ONCE in /home/content/B/r/1/Hidden/html/-APPI-/NAV/allied_footer.php on line 26
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Other Threads in the PHP Forum
- Previous Thread: PHP Select Statement
- Next Thread: Help on Deleting files from server- no database
| Thread Tools | Search this Thread |
# 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo echo$_get[x]changingitintovariable... email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail memberships menu mlm multiple mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote rss script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validation validator variable video web xml youtube






