Yep seen it recently helping someone out here.
If using Dreamweaver start a new document (php) and then cut out all the code from the old and paste it in the new.
You should find it works perfectly!
Good Luck
Mark
Hi,
I am using a very simple php include <?php include('includes/config.php'); ?> at the top of my header (which is also an include) and am getting '' at the top of my page.
The config.php just contains 5 variables with MySQL login details.
Has anybody seen this before and if so what am I doing wrong?
Cheers
Jason
Yep seen it recently helping someone out here.
If using Dreamweaver start a new document (php) and then cut out all the code from the old and paste it in the new.
You should find it works perfectly!
Good Luck
Mark
Like Blogs? Heres mine - Not been updated in an Age sorry! :cry
Hi Mark,
Thanks for that. I actually had the strange text appearing twice on the page and your suggestion has fixed one of them.
The other one still persists, although I can get rid of it if I include the config.php file on the top of every individual page rather than in the 'included' header.
Weird ....
Cheers
Jason
What browser are you using? Sometimes I find that strange stuff gets into the text file, but finding it can be hard as the characters don't actually show until it appears in a browser.
Only guess beyond suggested is copy just between the <?php and ?> tags so skipping anything outside of those into a new file. You'll probably find the strange chars are outside those tags otherwise PHP would throw a wobbly about invalid characters.
Not sure if this will be the config or header file that's got the dodgy chars however.
Trev
Thanks Trev, I'll give it a go.
Cheers
Jason
Hi,
from memory a long time ago... I had this issue when uploading files to a server that had been saved in Wordpad. Try saving the files using notepad if this is the case?
Chris C
sunshine.co.uk - Cheap Holidays, Hotels and Flights on Paid on Results
email: chris.c [at] sunshine.co.uk
Affiliate Area
bonvoyage.co.uk - Cruise Deals coming soon
Sorry been a busy day! Haven't got back on since I posted until now.
All I can think of is to do the same procedure for all the files concerned (including the include files), it does sound like a corruption problem.
Good Luck
Mark.
Like Blogs? Heres mine - Not been updated in an Age sorry! :cry
Cheers everyone for your help and suggestions.
Mark, I owe you one![]()
The only file I didn't change yesterday was the config.php include (silly billy). Suddenly thought of it first thing, changed it and now all works a treat.
Cheers![]()
http://www.nichetaxi.com - takes the hard work out of finding niches for your adsense websites! And its free!
Yep, must be a Dreamweaver issue.
A few of the pages I had developed in MX on an older PC and the config.php file was one of them.
Not sure if it maybe just an MX issue as I've never had the problem using v8 (yet).
More than welcome, glad to be of help!
Mark.
Like Blogs? Heres mine - Not been updated in an Age sorry! :cry
In case anybody comes across the same problem, I think I have sussed out how it can happen.
I was working remotely on a website using Dreamweaver MX and I added a php file to the site. That page then had the ''' displayed, so can only assume it's when you create a php file remotely.
Cheers
Jason
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks