colap Posted February 6, 2011 Share Posted February 6, 2011 test.php: <?php class Forall{ public $var_a=100; function process(){ echo 'This is for testing'.'<br>'; echo '$var_a: '.$this->var_a.'<br>'; } } $obj=new Forall(); $obj->process(); <form action='post' method='insvideo.php'> videotitle: <input type='text' name='nm_videotitle'/><br> description: <input type='text' name='nm_description' /><br> createddate: <input type='text' name='nm_createddate' /><br> image: <input type='text' name='nm_image' /><br> <input type='submit' /> </form> ?> error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. How can i know the line number for error? Quote Link to comment https://forums.phpfreaks.com/topic/226880-internal-server-error/ Share on other sites More sharing options...
denno020 Posted February 6, 2011 Share Posted February 6, 2011 I'm pretty sure that it's not indicating an error with your PHP, the error is literally with the server. Have you run PHP successfully on this server before? Is it a local server? It says the configuration file could be wrong, I would start there.. Denno Quote Link to comment https://forums.phpfreaks.com/topic/226880-internal-server-error/#findComment-1170641 Share on other sites More sharing options...
BlueSkyIS Posted February 6, 2011 Share Posted February 6, 2011 Parse error: syntax error, unexpected '<' in /Users/lesbrown/Sites/site1/phpFreaks/test.php on line 15 Quote Link to comment https://forums.phpfreaks.com/topic/226880-internal-server-error/#findComment-1170663 Share on other sites More sharing options...
colap Posted February 6, 2011 Author Share Posted February 6, 2011 Done. <?php class Forall{ public $var_a=100; function process(){ echo 'This is for testing'.'<br>'; echo '$var_a: '.$this->var_a.'<br>'; } } $obj=new Forall(); $obj->process(); ?> <form action='post' method='insvideo.php'> videotitle: <input type='text' name='nm_videotitle'/><br> description: <input type='text' name='nm_description' /><br> createddate: <input type='text' name='nm_createddate' /><br> image: <input type='text' name='nm_image' /><br> <input type='submit' /> </form> Quote Link to comment https://forums.phpfreaks.com/topic/226880-internal-server-error/#findComment-1170701 Share on other sites More sharing options...
ChemicalBliss Posted February 6, 2011 Share Posted February 6, 2011 I would respond to dennos post as we need more info than what you have provided. In scenarios like these its usually a malformed confirguration somewhere (could be a .htaccess file that came from another server). First: Backup website Second: Delete any .htaccess file in any folders in that website. Check Third: If that doesnt help it would be good to know if this is a local or remote server as denno has asked. hope this helps, Quote Link to comment https://forums.phpfreaks.com/topic/226880-internal-server-error/#findComment-1170808 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.