Jump to content

Recommended Posts

Posted

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?

Posted

TCH-Don:

 

Thanks.

 

That sounds much simpler than I'd feared it might be. :)

Posted

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? :)

Posted
Just insert the php script

and 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.

Posted

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?

Posted

One more question, actually:

 

I'm planning fairly soon to implement CSS. Will that lead to any conflict with the .php designation?

Posted

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.

Posted

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?

Posted

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. :( )

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...