By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,303 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,303 IT Pros & Developers. It's quick & easy.

Unexpected $end error only on local server

P: n/a
This is the strangest thing. On my local beta server (WinXP Pro SP3,
PHP 5.2.3), I am getting an unexpected $end. On the production server,
I am not. The files are identical. Just for shits and giggles, I made
a new folder on my local machine, copied all the files from the
production server, opened it, and again got the same thing. The
production server is running version 4.4.7. So I thought, aha! - older
version of PHP. So I opened up an account at a free hosting service
([http://www.000webhost.com/]), and uploaded the exact files there as
well. That server is running 5.2.6. There is no error on that server
either. So:

localhost - error
new folder on local host - error
production server - no error
000webhost server - no error

Does anyone have any idea why my local server would throw an error, and
the production server not? If want to see code, I will be happy to post
it.

TIA.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Sep 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Gazing into my crystal ball I observed Adrienne Boswell
<ar****@yahoo.comwriting in news:Xns9B1959018CBE1arbpenyahoocom@
69.16.185.250:
This is the strangest thing. On my local beta server (WinXP Pro SP3,
PHP 5.2.3), I am getting an unexpected $end. On the production
server,
I am not. The files are identical. Just for shits and giggles, I
made
a new folder on my local machine, copied all the files from the
production server, opened it, and again got the same thing. The
production server is running version 4.4.7. So I thought, aha! -
older
version of PHP. So I opened up an account at a free hosting service
([http://www.000webhost.com/]), and uploaded the exact files there as
well. That server is running 5.2.6. There is no error on that server
either. So:
Fixed.

I'm still not sure exactly where the error was, but I removed and
replaced things until the problem stopped occurring. I believe it might
have been somewhere on localhost where there was <? and not <?php doing
it.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Sep 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.