Jump to content

Bentley4

Members
  • Posts

    58
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Bentley4's Achievements

Member

Member (2/5)

0

Reputation

  1. So basically you're saying that search engines(or rather webcrawlers associated to them) will always be able to find and list my main/homepage in search engines but not subdivisions if I don't link to them? Thnx
  2. If that is the case I don't understand the following: I have a www.myname.info page. I have never linked to it anywhere and I'm pretty sure noone ever has because its relatively new and is blank. Yet when I type 'myname' it comes up as the 6th search result on google. I also have a flickr account with my name recently created, it contains no photos, haven't linked to it and I don't understand why anyone would link to it if it's still blank(so I assume noone did.) I can also find this account by typing in my name.
  3. Actually I'm not even going to use it for friends, just for people I don't know yet that I want to show my profile in a non-work related context. (different structure of website, work: more emphasis on skills, non-work: more emphasis on intrests and hobbies.) I also have a public one that everyone can look up, which gives less detail.
  4. I want to implement different versions of my site, one for potential employers, one for friends,... I would give them a link if I wanted them to check it out. When you said 'lawful good ones'; In other words it is possible for google, yahoo and bing?
  5. Hi guys, Is it possible for a website to only be accessed by a link or typing the url? (in other words I don't want search engines to pick it up) How should I do this? B
  6. Ok, I'm sorry. Thnx for the tip. I've implemented the session construct but it still doesn't work appropriatly. Does anyone know what is wrong with the following code? : <?php session_start(); $_SESSION['time'] = time(); $starttime = $_SESSION['time']; ?> <html> <body> <?php if(!isSet($_GET['sid'])){ echo '<form name="input" action="./StudentAnswers.php" method="GET">'; echo '<input type="text" name="sid"/>'; echo '<input type="submit" value="Submit">'; } else{ echo "End of exercices"; $endtime = time(); $totaltime = endtime - starttime; echo "Total time: ".$totaltime; } ?> </body> </html>
  7. Well, that just doesn't work. The complete code for several screens is in 1 page.(because I used get) If you do starttime - endtime it just returns 0 because for each screen the code completely runs. It doesn't work either if you place the starttime under an a certain event using 'if'.
  8. Hi WebStyles, I want to do it without using awstats or google analytics. Just with php code and without using MySql. I know I can store the startdate. I just don't know how to subtract the time form the first screen from the time the user comes on the last screen. I was also thinking along the lines of using fget or fread, but I don't know how to recall information from a specific line or next to a certain word.
  9. Hi guys! I would like to know the total time someone spent on my website by saving it into a textfile. Is this possible? I've used this code so far. When the form is filled in, I want to know the time spent on filling in the form and submitting it(real code is longer). This code is not good because it just displays the time when a user visits the last screen(I understand why). But If I declare it above the if statement, it returns a totaltime of 0:0:0.(I also understand why, I just don't know any solution to the problem.) Is there any solution without using MySql? <?php $name = $_GET['sid']; if(!isSet($_GET['sid'])){ $Hin = date("H"); $Min = date("i"); $Sin = date("s"); $timein = $Hin.":".$Min.":".$Sin ; $date = date("D d M Y"); $fp = fopen("formdata.txt", "a"); $savestring = $name . ", ".$date. ", " . $timein . "\n"; fwrite($fp, $savestring); fclose($fp); echo '<form name="input" action="./StudentAnswers.php" method="GET">'; echo '<input type="text" name="sid"/>'; echo '<input type="submit" value="Submit">'; } else{ echo "End of exercices"; $Hout = date("H"); $Htot = $Hout - $Hin; $Mout = date("i"); $Mtot = $Mout - $Min; $Sout = date("s"); $Stot = $Sout - $Sin; $TotalTime = $Htot.":".$Mtot.":".$Stot ; $fp = fopen("formdata.txt", "a"); $savestring = $name . ", total time: " . $TotalTime. "\n"; fwrite($fp, $savestring); fclose($fp); } ?>
  10. It was for the folowwing structure: I. Mainquestion 1.Question1 Answer1 2.Question2 Answer2 .... I needed seperate layout control for the Mainq, question and answers. The problem is that they are echoed by conditional statements.
  11. Thanks, works! What do you reccomend me to do in this situation?
  12. Hi guys, When I use this statement it gives the syntax error, unexpected T_STRING, expecting ',' or ';' : echo "<p class="SuperqAndQAndA">" ; Any idea why? Also, can I nest different p classes? Eg: echo "<p class="QandA"><p class="Answers">".$row['TAnswer']."</p></p>";
  13. I know it is. But before I used double quotes and I had to escape it, like in this example: echo "<a href=\"/index.php?sid=".$name."&question=".$nextquest."\">next</a>"; It is not an answer unless you meant to say, concatenation quotes never need to be escaped.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.