Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-29-2011, 09:17 AM   PM User | #1
sunnynosid
New Coder

 
Join Date: Sep 2011
Posts: 50
Thanks: 4
Thanked 0 Times in 0 Posts
sunnynosid is an unknown quantity at this point
Exclamation File in subdomain not opening in browser.

I created a file in my subdomain, but when i go to this page(file) in browser, then the following error occurs:


(Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@mywebsite.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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.)

Please help me.
sunnynosid is offline   Reply With Quote
Old 09-29-2011, 10:41 AM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,516
Thanks: 45
Thanked 440 Times in 429 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Well we can't help you unless you show us your code can we!

If you come here and tell us your script is causing problems then you need to show us the script. Also as the error message says, have you checked your servers error logs?
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 09-29-2011, 12:14 PM   PM User | #3
sunnynosid
New Coder

 
Join Date: Sep 2011
Posts: 50
Thanks: 4
Thanked 0 Times in 0 Posts
sunnynosid is an unknown quantity at this point
Question

I think the problem is in file path. Please tell me the following:

My folder named 'Blogs' is in my folder named 'matter'. Folder 'matter' is in my public_html. There is a file named 'file.php' in the folder 'Blogs'. The full path for file.php should be /home/myusername/public_html/matter/Blogs/file.php. In the same way what should be the full path for a file named 'myfile.php'? 'myfile.php' is in folder 'material'. 'material' is in folder 'blogs'. 'blogs' is the folder of my subdomain 'blogs.mysite.com'.

Last edited by sunnynosid; 09-29-2011 at 12:17 PM..
sunnynosid is offline   Reply With Quote
Old 09-29-2011, 01:15 PM   PM User | #4
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,516
Thanks: 45
Thanked 440 Times in 429 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
I've already told you to show some code. Coming back and then throwing file paths in instead of the code won't solve anything.

The description of your file paths is so confusing I'm not even going to try to answer.

You're not helping yourself much.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 09-29-2011, 01:30 PM   PM User | #5
sunnynosid
New Coder

 
Join Date: Sep 2011
Posts: 50
Thanks: 4
Thanked 0 Times in 0 Posts
sunnynosid is an unknown quantity at this point
I cant give you the code because that will be more confusing to you. So please tell me only following:
What will be the full path for a file that is in my subdomain 'blogs.mysite.com'?
Like /home/username/public_html/....
sunnynosid is offline   Reply With Quote
Old 09-29-2011, 02:08 PM   PM User | #6
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,516
Thanks: 45
Thanked 440 Times in 429 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
I think you need to read the cpanel documentation.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Tags
error, file, opening, subdomain

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:49 PM.


Advertisement
Log in to turn off these ads.