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. Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/ 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.. Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561787 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"? Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561791 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 Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561793 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. Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561795 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? Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561797 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? Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561798 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. Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561799 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 Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561801 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. Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561803 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 Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561809 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. Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561811 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? Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561815 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. Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561817 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 Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561837 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...... Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561839 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 Link to comment https://forums.phpfreaks.com/topic/109524-php-in-html-suddenly-gone-help-please/#findComment-561863 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.