Forum Moderators: open

Message Too Old, No Replies

<script language="php"> Can Google see this?

Can Google read this <script> tag

         

bsnrjones

10:21 pm on Mar 28, 2003 (gmt 0)

10+ Year Member



Can Google see this if it is in my html file?

<script language="php">
"the script goes here"
</script>

I think I have read elsewhere that it will not. I want this information to be shown and read by Google. I am not trying to hide anything!

Burke

le_gber

10:27 pm on Mar 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I thought that PHP was a server side script can you use it as client side?

Anyway if server side - script is translated by the server <added> and outputed as HTML (right forgot to tell that)</added>
If client side - don't know but Javascript isn't so I would guess no

leo

[edited by: le_gber at 10:44 pm (utc) on Mar. 28, 2003]

ginga

10:39 pm on Mar 28, 2003 (gmt 0)

10+ Year Member



Assuming PHP is set up on your server correctly, it will pick this up and render the output of the script to the browser, so Google will see the HTML (or whatever) generated by the script, not the PHP code itself.

Why not just

<html>

<?php

saySomething();

?>

</html>

?

Regards,
Alex