anwiii, on 25 June 2010 - 06:42 AM, said:
no. all files should be in the same main directory. what web hosting company are you using to host your website?
So now we have to figure out why it's not working for YOU. I don't get any message when I visit your website with or without the "www". so I don't really know what your talking about? Where do you get this message and when do you get it? is it an error message of some sort? do you see your site at all? i am not fully understanding what you are meaning. someone mentioned earlier that your webhost may not support php. have you verified that your webhost supports php? if so, what version is it?
Hi, my site is hosted at 50webs.net. That error message won't happen right now because as soon as I saw it didn't work I removed those files from the server and put the original index.html file back in there. I got that message when I uploaded the php and htaccess files plus the new index files and went to the site. Once I changed the site back I got it once again, but like you said I probably just needed to refresh the browser. So basically the message is only displayed when I add the modified index.html file plus the php and htaccess files. I assume 50webs allows php as it has a PHP Settings link, there is lots of setting in there such and choosing PHP 4, PHP 5 or PHP 6 and the following settings, (I have put what the current setting is for each next to the headings).
register_globals (ON)
The
register_globals setting controls how you access form, server, and environment variables. By default this variable is set to
Off, requiring you to use special arrays to access these variables. When register_globals is set to
On, PHP scripts are more vulnerable to attacks.
short_open_tag (ON)
Tells whether the short form (<? ?> ) of the PHP's open tag should be allowed. If you want to use PHP in combination with XML, you can disable this option in order to use <?xml ?> inline. Otherwise, you can print it with PHP, for example: <?php echo '<?xml version="1.0"?>'; ?> . Also if disabled, you must use the long form of the PHP open tag (<?php ?> ).
display_errors (OFF)
These settings define whether PHP should display errors in the browser or be silent. It is recommended that you turn this setting
Off during production to avoid any accidental display of sensitive information about your website. This holds true especially for dynamic websites that send usernames and passwords to access a database.
magic_quotes_gpc (OFF)
Magic Quotes represent the process of escaping special characters with a '/' to allow a string to be entered into a database. The process is considered 'magic' because PHP can do this automatically for you if you have magic_quotes_gpc turned on.
file_uploads (ON)
The
file_uploads settings allow you specify whether or not to allow HTTP file uploads.
allow_url_fopen (ON)
This option enables the URL-aware fopen wrappers that enable accessing URL object like files.
allow_url_include (OFF)
This option allows the use of URL-aware fopen wrappers with the following functions:
include(), include_once(), require(), require_once().
memory_limit (8M)
This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts from eating up all available memory on a server.
post_max_size (8M)
Sets max size of post data allowed. This setting also affects file upload.
Note that this value must be larger than upload_max_filesize.
upload_max_filesize (2M)
This setting specifies the maximum size of an uploaded file. Note that the
upload_max_filesize value must be smaller than
post_max_size. Otherwise the
post_max_size value should be used.
max_execution_time (30)
This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server.]
zend_optimizer (OFF)
This setting enables Zend Optimizer and Ion Cube for your PHP version. Note that if this setting is enabled, the APC module should be automatically turned off.
apc (OFF)
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
If enabled, this setting will automatically turn off the Zend Optimizer and the Ion Cube modules for incompatibility reasons.