prcollin Posted July 6, 2007 Share Posted July 6, 2007 Ok how do i save a php file as my main website in my server. I am saving hte php file as index.php but it is not working correctly for some reason is that all I have to do. Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 6, 2007 Share Posted July 6, 2007 when you access the folder say www,sample.com/folder now if the "folder" have index.php or index.html that will displayed even if you dont type that like www.sample.com/folder/index.html or .php Quote Link to comment Share on other sites More sharing options...
Barand Posted July 6, 2007 Share Posted July 6, 2007 If you are using IIS you have to add "index.php" to the default document names on the "documents" tab in your web site properties via IIS control panel Quote Link to comment Share on other sites More sharing options...
prcollin Posted July 6, 2007 Author Share Posted July 6, 2007 If you are using IIS you have to add "index.php" to the default document names on the "documents" tab in your web site properties via IIS control panel Ok so my main folders are www.blogvertising.org/public_html so then I would name my first page index.php to make it www.blogvertising.org/public_html/index.php I am a real noob at this stuff and it confounds me right now sorry ahead of time if I will have a lot of questions. Quote Link to comment Share on other sites More sharing options...
calabiyau Posted July 6, 2007 Share Posted July 6, 2007 Are you using /publichtml because that is the folder on the server where they are stored, or did you create that folder yourself. Normally you don't have to include /publichtml in the url, that is merely where the documents are stored on the server. try just: http://www.yourdomain.com/index.php Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted July 6, 2007 Share Posted July 6, 2007 If you place your file in e.g. /home/somebody/public_html/index.php then you'd access it like http://example.com/index.php (or just http://example.com). Quote Link to comment Share on other sites More sharing options...
prcollin Posted July 6, 2007 Author Share Posted July 6, 2007 Are you using /publichtml because that is the folder on the server where they are stored, or did you create that folder yourself. Normally you don't have to include /publichtml in the url, that is merely where the documents are stored on the server. try just: http://www.yourdomain.com/index.php yeah its just http://www.yourdomain.com/index.php i didnt mean to add public_html sorry Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted July 6, 2007 Share Posted July 6, 2007 What error are you getting (if any)? What web server are you using (Apache, IIS, ...)? Quote Link to comment Share on other sites More sharing options...
prcollin Posted July 6, 2007 Author Share Posted July 6, 2007 What error are you getting (if any)? What web server are you using (Apache, IIS, ...)? I got the file to work beh it was so stupid i am not going to post what happened. lol thanks for input though guys. And is apache a good server to use, Right now i am just uploading everything directly to my domain cause I own a hosting company. Quote Link to comment 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.