michellephp Posted June 10, 2008 Share Posted June 10, 2008 Hi everyone, Suddenly my website has gone a little bonkers. I think it has something to do with my webhost and their php configuration. Firstly, the index.html page was coming up with this weird pop-up: File Download - Security Warning Do you want to save this file , or find a program online to open it? Name: mybeads_com_au Type: Unknown File type, 35.4kb From: Mybeads.com.au Find Save Cancel My webhost fixed that, however all the php elements in all .html pages are not working. Things such as: <?php include("inc/viewcontents.php"); ?></td><td bgcolor="#F7D6FE" height="35" align="right"><?php include("inc/search.php"); ?> They just don't work in the .html pages such as www.mybeads.com.au/beads.html But they do work in the .php pages, such as www.mybeads.com.au/catalog.php (see top menu bar, search and view contents). Not to mention that my shopping cart admin now doesn't work - I log in, but as soon as I try to change anything it tells me my password is incorrect. Please help. Thanks, Michelle. Quote Link to comment Share on other sites More sharing options...
Buddski Posted June 10, 2008 Share Posted June 10, 2008 www.mybeads.com.au/beads.html Seems to work fine for me.. Quote Link to comment Share on other sites More sharing options...
michellephp Posted June 10, 2008 Author Share Posted June 10, 2008 do you see the "search" box at the top menu? Just under 'about us"? Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 10, 2008 Share Posted June 10, 2008 I look at that too all is working for me looks fine however sounds like a SESSION error on the admin login Quote Link to comment Share on other sites More sharing options...
michellephp Posted June 10, 2008 Author Share Posted June 10, 2008 Did you see the search box and the other php element? I have a screen shot, www.mybeads.com.au/images/html.JPG see the circled areas? Now look in www.mybeads.com.au/catalog.php - there are things there. Do they show up in beads.html for you? Please let me know, Thanks, Michelle. Quote Link to comment Share on other sites More sharing options...
michellephp Posted June 10, 2008 Author Share Posted June 10, 2008 I have just done one of those screenshot test things (that show your website in different browsers) and the php elements are not showing up. I have been reading and think it might be to do with register globals? Any thoughts? Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 10, 2008 Share Posted June 10, 2008 Do you mean it is dropping down 1 bar in the table because of the search area? Quote Link to comment Share on other sites More sharing options...
michellephp Posted June 10, 2008 Author Share Posted June 10, 2008 umm, can someone post a screenshot of beads.html? I mean the search and the "view your cart" just under the top menu, in the light purple bar, are missing! But only in all the .html pages - not in the .php pages. Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 10, 2008 Share Posted June 10, 2008 I think i see what you mean now however the Table system u used on the page that is working is not the same as the beads one. try changing it to .php see if it works then if so then your web host blocks php being in html format files Quote Link to comment Share on other sites More sharing options...
michellephp Posted June 10, 2008 Author Share Posted June 10, 2008 Hi, Yes changing it to .php fixed it, however this does not solve the problem because I cannot change all my pages to .php. And the table system is the same (actually copy and pasted) - I am not sure what you mean. Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 10, 2008 Share Posted June 10, 2008 why could u not change them all to php? and as it works the web host has Blocked apache from reading and checking .html files for php content Quote Link to comment Share on other sites More sharing options...
michellephp Posted June 10, 2008 Author Share Posted June 10, 2008 Hi, Thanks for your reply. Because this would mean a crazy amount of work, and I would prefer them to stay in html for search engines etc. And for existing links to me on other websites (I have many links to my tutorials etc). Is there anything I can do? I thought: # Use PHP4 as default AddHandler application/x-httpd-php4 .php Was meant to fix it? But it doesn't. I do appreciate your help. Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 10, 2008 Share Posted June 10, 2008 get Notepad++ Open all files Search for "beads.html" replace with "beads.php" all open documents dump DB do the same upload all done? Quote Link to comment Share on other sites More sharing options...
michellephp Posted June 10, 2008 Author Share Posted June 10, 2008 Hi, It's not just beads.html, it's all the other pages, too! Plus the other reasons I mentioned, I don't want to change them to .php. Quote Link to comment Share on other sites More sharing options...
blueman378 Posted June 10, 2008 Share Posted June 10, 2008 well its not that much work, jsut create a small script that searches for .html and THEN ,htm and renames it to.php in the file and the acctual file itself... saves you manually doing it Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 10, 2008 Share Posted June 10, 2008 Just do not do what I did I found a scripted that did that when I change a big site to php and forgot to set the path ended and it up changing over 100 websites on my hard drive...... Quote Link to comment Share on other sites More sharing options...
blueman378 Posted June 10, 2008 Share Posted June 10, 2008 haha i did that as well... but i did that to every document on my harddrive 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.