You are using a browser which is not compatible with CSS (for more information, see Tara's tutorial).
Because of this, it is possible that our website may not appear
correctly in your browser. We apologise for the inconvenience, and
recommend you upgrade your browser to one which is compatible with CSS.
For more information, please visit our Browser Upgrade page.
thanks
But how can php be executed, if your browser doesnt read php and there is nowhere in the script a reference line that tells php where to look to execute the script?
It will maybe be a stupid question - that'sbecause I still don't get the real basics of the working of php.
[Spam deleted]
What I would need would be a SIMPLE example with steps listed one by one.
1) take the following code. 2) Put it into an HTML file caled name.html 3) sent to server, or whatever. Just my two cents.
$email = "you@yourdomain.com";
if (eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
{
mail($email, "The Googlebot came to call",
"Google has visited: ".$_SERVER['REQUEST_URI']);
}
?>
<?
Works
thanks !!
HELP!!!!
But I realize that I can do a lot of sh*t on the net with php code... ;p
thanks
Thanks Jacob
iam new to php programming can bring some
useful sites url
hel;p
<body>
<?php require("header.htm"); ?>
whats the best way to make a template file
and then put html into in?
seems to do it
unless there is a better way
for example
<?
$reviews = "<br><br>some html here <a href="whatever.html">agff</a>";
include ("temp.html");
?>
etc
i understand that varables are not for this
but how is it done
thanks I am very new
This is what the world has been waiting for - Thanks Tara
Here's the code if anyone is interested.
<?php
$email = "you@yourdomain.com";
if (eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
{
mail($email, "The Googlebot came to call",
"Google has visited: ".$_SERVER['REQUEST_URI']);
}
?>
<?
Thanks again
Ive been looking through a load of PHP guides all day but none of them had the basics!
this is the first page that I find which is written clearly. I made notes and all to understand the stuff. I am a veryvery newbee at php , i bought a book, but still cant figure somethings out.
Still I have a few questions, hope thats okay...
My server has php dev installed. I myself did not install anything. I wrote a testfile according to your tutorial.
test is on: http://www.showerzone.nl/test/testphp.htm
i inserted this code ][ <?php require ( "nav.inc") ; ?>][ into the html file.
But how can php be executed, if your browser doesnt read php and there is nowhere in the script a reference line that tells php where to look to execute the script?
It will maybe be a stupid question - that'sbecause I still don't get the real basics of the working of php.
hope u can help me out.
thanx - figidigi
header('Location: http://www.site.com/');
?>
I am writing a script in which it should transfer to another web page under certain condition. I know in ASP that I can use redirect statement but I would like to know about that in PHP.
Thanks
Add a new comment