Boojum Posted December 17, 2003 Posted December 17, 2003 I recently downloaded a PHP script from one of the tutorials elsewhere in this forum which is supposed to detect Googlebot spidering of one's pages and e-mail notification thereof. However, in the description above the script, there was some mention of having to use the latter on a page "capable of understanding PHP." I'm not sure what that actually means. Would I need, for example, to change the names of the pages in question from, e.g., "index.html" to "index.php"? And would that in turn necessitate other changes in my code? Quote
TCH-Don Posted December 17, 2003 Posted December 17, 2003 Just insert the php script and rename it the page index.php Quote
Boojum Posted December 17, 2003 Author Posted December 17, 2003 TCH-Don: Thanks. That sounds much simpler than I'd feared it might be. Quote
Boojum Posted December 17, 2003 Author Posted December 17, 2003 Good grief, Don! You've been here just about exactly a year longer than I--and posted 1,900 more messages. Do you ever sleep? Quote
TCH-Don Posted December 18, 2003 Posted December 18, 2003 Good grief, Don! You've been here just about exactly a year longer than I--and posted 1,900 more messages. Do you ever sleep? About 4 hours a day ( yawn!) Quote
Deverill Posted December 18, 2003 Posted December 18, 2003 Just insert the php scriptand rename the page index.php Remember a couple of things though. 1. If you have index.htm or index.html you should remove them so they don't get picked up before the server gets around to looking at index.php 2. In you .htaccess file in the public_html folder you can add these lines: AddType application/x-httpd-php .htm AddType application/x-httpd-php .html which will tell the server that your .htm and .html files may contain PHP code so look for it and handle it appropriately. Quote
Boojum Posted December 18, 2003 Author Posted December 18, 2003 TCH-Jim: It's my intent, when I upload the new version of the site, to name all the pages ".../index.php", etc., and remove all the old .html versions. Will your added .htaccess code still be needed? Quote
Boojum Posted December 18, 2003 Author Posted December 18, 2003 One more question, actually: I'm planning fairly soon to implement CSS. Will that lead to any conflict with the .php designation? Quote
surefire Posted December 18, 2003 Posted December 18, 2003 No. Jim's htaccess code tells the server to pars files with.htm extension as php. If you name your files as php then the server gets the idea. Quote
Boojum Posted December 18, 2003 Author Posted December 18, 2003 Odd. After writing my previous reply, I clicked "Add Reply," then realized I wanted to rephrase something and cancelled. I then found the "Add Reply" button dimmed, and had to first click the preview button before being allowed to add the reply. Is this the way it's supposed to work? Quote
Deverill Posted December 18, 2003 Posted December 18, 2003 Jack beat me to it and is exactly right. Quote
TCH-Don Posted December 18, 2003 Posted December 18, 2003 Yes you can use CSS with php with out any problems. and for anyone wanting to try php checkout the , Php Minitutorial 1, by Jack. This was the eye opener for me. My thanks to Jack, Jim Uni and tracy for getting me started. there are many more tutorials in Client Written Tutorials by Jack and others that may help. Quote
Boojum Posted December 18, 2003 Author Posted December 18, 2003 Thanks, all. By the way, when I do start implementing CSS, do I need to change the document-type declaration atop my pages, or will the current "HTML 4.01..." still work? (Sorry to inundate everyone with questions all the time. One day, I hope to be able to return the favor by actually answering some of others' questions. Until then, I will at least try to ask good questions. ) Quote
Boojum Posted December 19, 2003 Author Posted December 19, 2003 TCH-Don: Four hours? Sounds like about an hour more than I've averaged lately--but then again, I suffer intractable insomnia. Yawn. Thud. Zzzzzzzzzz. Quote
TCH-Don Posted December 19, 2003 Posted December 19, 2003 I have a bad back and can't lay down for very long. Besides I have heard that people that sleep less, live longer Quote
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.