1

(1 replies, posted in Archive)

Jag löste problemet genom att uppgradera till php 4.3.6

2

(1 replies, posted in Archive)

Document 1: movie1.php

<?php
session_start();
$_SESSION['username']="Joe12345";
$_SESSION['authuser']=1;
?>
<html>
<head>
<title>Find my Favorite Movie!</title>
</head>
<body>
<?php
$myfavmovie=urlencode("Life of Brian");
echo "<a href='http://localhost/moviesite.php?favmovie=$myfavmovie'>";
echo "Click here to see information about my favorite movie!";
echo "</a>";
?>
</body>
</html>

Document2: moviesite.php

<?php
session_start();
//check to see if user has logged in with a valid password
if ($_SESSION['authuser']!=1) {
echo "Sorry, but you don´t have permission to view this page, you loser!";
exit();
}
?>
<html>
<head>
    <title>My Movie Site - <?php echo $_REQUEST['favmovie'] ?></title>
</head>
<body>
<?php
//delete this line: define ("FAVMOVIE", "The Life of Brian");
echo "Welcome to our site";
echo $_SESSION['username'];
echo "! <br>";
echo "My favorite movie is ";
echo $_REQUEST['favmovie'];
echo "<br>";
$movierate=5;
echo "My movie rating for this movie is ";
echo $movierate;
?>
</body>
</html>

Det går inte att logga in, vad gör jag för fel???

3

(12 replies, posted in Archive)

Hej. Nu kommer det fram en blank sida iallafall och i errorlog får jag detta.
[client 127.0.0.1] PHP Parse error:  parse error, unexpected $end in C:\\Program\\Apache Group\\Apache2\\htdocs\\phptest.php on line 10

Koden jag använde:

<html>
<head>
    <title>PHP Testing</title>
</head>
<body>
<?php
echo "If this works, we <i>really</i> did It!;
?>
</body>
</html>

när jag kör denna kod så fungerar det jag får upp en sida:

<?php
phpinfo();
?>

4

(12 replies, posted in Archive)

inte vad jag kan se. jag har kommit framåt lite efter att jag installerade PHPedit .men jag tycker en sak verkar konstigt, när jag
bara har php-script i ett doc. och sparar den med PHPedit så fungerar
den, men inte när html-kod finns med som ex. jag nämnde tidigare??? jag är nybörjare så då är det inte lätt.

5

(12 replies, posted in Archive)

ingen källkod visas. inget i errorlog

6

(12 replies, posted in Archive)

jag gjorde en sida i anteckningar som jag döpte till phptest.php
med följande kod:

<HTML>
<HEAD>
<TITLE>PHP Testing</TITLE>
</HEAD>
>BODY>
<?php
echo "If this works, we <i>really</i> did It!;
?>
</BODY>
</HTML>

och kör med explorer och skriver http://localhost/phptest.php
och får sidan kan inte hittas. dokumentet ligger in htdocs

7

(12 replies, posted in Archive)

jag har lagt till "AddType application/httpd-php .php3 .php
och AddType application/x-httpd-php-source .php
och LoadModule php_4module c:/php/sapi/php4apache2.dll
enligt boken samt startat om Apache. När inte det funka så följde jag anvisningarna enligt den länk jag nämnt.

8

(12 replies, posted in Archive)

jag har en bok som heter "begining php,apache,mysql web developement" den har jag följt också har jag provat en annan
som finns på nätet. http://ematte.se/tut/wamp.php

9

(12 replies, posted in Archive)

hur jag än följer installationen så går det inte att visa php filer i webbläsaren.
Men apache startsida fungerar??? varför??? något tips.