Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Web page appears corrupted in windows 7 and ok in linux

General discussions related to php

Moderators: macek, egami, gesf

Web page appears corrupted in windows 7 and ok in linux

Postby rleitman » Fri Oct 12, 2012 5:35 am

I have a web site I downloaded with pure php code and js. in linux its all good, but in windows with XAMPP, the Web pages (only after login page which appears ok) appears corrupted and full of lines of code and layout is totally offset.

what can cause it and how to fix ?
rleitman
New php-forum User
New php-forum User
 
Posts: 7
Joined: Fri Oct 12, 2012 5:33 am

Re: Web page appears corrupted in windows 7 and ok in linux

Postby seandisanti » Fri Oct 12, 2012 9:21 am

you may have different versions of php running, different server variables set, etc.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: Web page appears corrupted in windows 7 and ok in linux

Postby rleitman » Fri Oct 12, 2012 9:58 am

thanks , solve the issue ! however, I had to go lower version of php/mysql, so how can I find what to fix in the code to meet future versions of php ?
rleitman
New php-forum User
New php-forum User
 
Posts: 7
Joined: Fri Oct 12, 2012 5:33 am

Re: Web page appears corrupted in windows 7 and ok in linux

Postby seandisanti » Fri Oct 12, 2012 10:44 am

Honestly, i think the funnest way to do it is to setup your wamp/lamp/xamp etc with the version you'd like to be at, and then troubleshoot errors until it works, then update server and site.

Or if you want to update yourself and your code, you can check php.net for changes since the version that the script was originally intended for.

Or if you only have short codes, you could look up each function call at php.net/function_name to see what's deprecated.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.