Epatron said:
Have you tested that does PHP codes show at the page?
<?php
echo "Hello world!";
?>
Test that, if you get Hello world, I don't know whats wrong but if you dont get that text try to re-save index.php like this:
1. Open WordPad
2. Name it index.php ( Yes same file name )
3. Use "Text-file" < trust me :3
4. Save (Do you wanna replace it? Answer YES!)
5. Try codes again!
I really hope that works!
Wow, well im not even getting Hello World, just a blank page.
The problem may be this:
I have a script thats based in index.php. Theres another script that refers to index.php, and all of this came as a result of me trying to get index.php to be my main domain page. So when I typed in mydomain.com i would get the script. But I had to type in mydomain.com/index.php
I failed at getting the index.php to be my domainpage for some annoying reason as i wrote elsewhere, so i thought maybe get my domain page to redirect to mydomain.com/index.php.
Right now the problem may be im technically trying to redirect from an index.html on the same folder (my domains folder) to an index.php. Maybe mydomain.com/ doesnt know where to go, oh i dunno this is sooo frustrating man
---------- Post added at 01:55 PM ---------- Previous post was at 01:53 PM ----------
Epatron said:
Have you tested that does PHP codes show at the page?
<?php
echo "Hello world!";
?>
Test that, if you get Hello world, I don't know whats wrong but if you dont get that text try to re-save index.php like this:
1. Open WordPad
2. Name it index.php ( Yes same file name )
3. Use "Text-file" < trust me :3
4. Save (Do you wanna replace it? Answer YES!)
5. Try codes again!
I really hope that works!
Arent we never supposed to open wordpad when editing php, html and other codes because it modifies the character encoding, like microsoft word and unlike notepad?
Also are you aware im trying to redirect from the index.html to the index.php?