Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using windows7 . and VM VirtualBox for Ubuntu 12.04.

I have one PHP project which is written in Unix. But now I have to host it through Ubuntu 12.04. I have already imported that project into Ubuntu server and I am able to access other php pages of Ubuntu from windows browser using IP.

Now the problem is - I am not able to access that particular project. When I try to access it shows a blank page. I am not getting any error messages(display error is enabled) for that.

Please help me.. at-least give me some hint.

share|improve this question
    
What do you mean by 'written in Unix'? –  Parto Mar 21 at 10:31
    
PHP codes which is written in Unix operating system. –  user2991245 Mar 21 at 10:37
    
It's like I'm not understanding your issue completely but PHP code doesn't change depending on operating system. Maybe the paths. –  Parto Mar 21 at 10:41
    
I am also confused. Because php codes does't depends on operating system. And I checked the paths also. Its not giving any output –  user2991245 Mar 21 at 10:48
    
paths are correct –  user2991245 Mar 21 at 10:49

1 Answer 1

up vote 0 down vote accepted

First of all PHP is platform independent so nothing to do with unix or windows.

Now coming back to you problem reason could be:

  1. You are including some php file (that contains some error) using 'include' or 'require' statement in the file that you are trying to access.
  2. Do you have some javascript written in header of PHP page? If yes, error in that javascript page can also cause a blank response.

Try to create a new simple php file having nothing more than an echo statement. And try to access it & see if the problem persists.

share|improve this answer
    
thank u for ur comment... I have tried with simply writing an echo statement and i m able to access it properly. Regarding Javascript, I have to check... I will update u soon. Thnx –  user2991245 Mar 22 at 6:50
    
I am glad that it was helpful. To debug the errors quickly you can download the WebDeveloper extension for firefox from URL: addons.mozilla.org/en-US/firefox/addon/web-developer/?src=ss Also if the answer was helpful you can accept the answer :) –  Vivek Mar 22 at 8:34
    
thnx its working –  user2991245 Mar 24 at 8:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.