Dynadot โ€” .com Registration $8.99

Need some advice from PHP experts please...

Spaceship Spaceship
Watch

Paddy

Established Member
Impact
6
Hi all PHP experts,

We are trying to change some PHP codes from a site we recently acquired, but we are no PHP experts and have come across a problem, which should be simple to solve for experienced PHP coders.

Like most sites, our index.php "pulls" the header.php and footer.php....

> We are trying to add in our adsense codes in the header.php but when we do, and upload the changes, the index.php cannot load the header (we can see the background image but nothing else loads in the page). Nb. all we did was paste in the adsense codes into the header.php

> So, we thought that maybe we have added the wrong codes, so we tried downloading the header.php file and then re-uploading it WITHOUT any changes... but the same problem happened again.

Questions:

1) Is this happening because of some root access privalege problem or,

2) Some binary format problem

3) Or, is there a simple reason why this is happening...


Thanks for all feedback.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I think maybe you have put the code in wrong, please paste your header code with the code in with the [ php ] and [ /php ] around them. Thanks, then i can take a look.
 
0
•••
webmonkey said:
I think maybe you have put the code in wrong, please paste your header code with the code in with the [ php ] and [ /php ] around them. Thanks, then i can take a look.

Thanks for your input. We just managed to solve the problem from another solution that was posted in another forum:

"are you getting any php errors? if the include is failing, php would normally throw an error at you. its possible your host has display errors set to off.

you can turn them on to debug.
at the top of index.php put
PHP:
ini_set('display_errors', 1);
error_reporting(E_ALL);
"

we just tried this and this is the problem ie we did not turn on the 'error reporting'.

Thanks again.
 
0
•••
Thats ok, im glad you fixed it mate.
 
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back