i'm so new to all of this

Problems with the Windows version of XAMPP, questions, comments, and anything related.

i'm so new to all of this

Postby Mr-Potatoes » 26. July 2004 16:05

it's a really shiny program lol but i have no idea what i'm doing fully. i'm good at C++ but i can't even test my programs.

i installed onto a folder in my C:\ drive.

i have windows XP Pro.

the book that i have says to just go ahead and write what they say and save it as a .php file. which is great and all but the only hing that shows up is the title. nothing else.

please help me. i really want to start to work with xampp and making my own dynamic sites locally


this is the exact code. no worky ::frustrated::
Code: Select all
<HTML>
<HEAD>
<TITLE> php test page</TITLE>
</HEAD>

<BODY>
<?php
echo "Testing Testing";
?>
</BODY>

</HTML>

Mr-Potatoes
 
Posts: 3
Joined: 26. July 2004 15:49

Postby Bugman » 27. July 2004 12:59

Was it in the docs folder and saved as a php file?

Bugman
Bugman
 
Posts: 53
Joined: 13. July 2004 23:39

Postby Mr-Potatoes » 27. July 2004 13:18

it's in here:

"Local Server\xampp\xampp\htdocs"

and still nothing. the php doesn't show. as you can see it's between the brackets and i saved it as testing.php. it's a file that i took straight from the book examples so that i don't mistakingly mis-type anything.
Code: Select all
<html>
<title>testing php</title>

<?php
$link = mysql_connect("localhost","root","mysqlpass") or die(mysql_error());
     mysql_select_db("wiley") or die (mysql_error());

//alter "movie" table to include running time/cost/takings fields
$add = "ALTER TABLE movie ADD COLUMN (
     movie_running_time int NULL,
      movie_cost int NULL,
      movie_takings int NULL)";
$results = mysql_query($add)
     or die(mysql_error());


//insert new data into "movie" table for each movie
$update="UPDATE movie SET
     movie_running_time=102,
     movie_cost=10,
     movie_takings=15
  WHERE movie_id = 1";
$results = mysql_query($update)
     or die(mysql_error());

$update="UPDATE movie SET
     movie_running_time=90,
     movie_cost=3,
     movie_takings=90
  WHERE movie_id = 2";
$results = mysql_query($update)
     or die(mysql_error());

$update="UPDATE movie SET
     movie_running_time=134,
     movie_cost=15,
     movie_takings=10
  WHERE movie_id = 3";
$results = mysql_query($update)
     or die(mysql_error());

?>

</html>

Mr-Potatoes
 
Posts: 3
Joined: 26. July 2004 15:49

Postby Bugman » 30. July 2004 01:26

You have checked that php is running ok?

If you goto the test area there are little icons that tell you if like mysql etc is all running ok

Bugman
Bugman
 
Posts: 53
Joined: 13. July 2004 23:39

tyr this...

Postby rblade3 » 05. August 2004 07:36

Start apache.

Go to notepad and type this:
<HTML>
<BODY>
<?php
echo "Why me God?";
?>
</BODY>
</HTML>

Save it as whymegod.php in your htdocs file.
Now bare with me I know you did all this.

Now in you browsers Address line type, http://localhost/whymegod.php

If this works it just means you need to make shore you view your php pages through your Localhost (or server).
hope it helps. I just about threw my comp. out cuz of this problem.
rblade3
 
Posts: 2
Joined: 05. August 2004 06:41


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests