Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 17th, 2004, 10:40 PM
Ajak Ajak is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 Ajak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Executing PHP/MySQL on Win XP

I am reading the book: Build Your Own Database Driven Website Using PHP & MySQL by Kevin Yank. I have a website that supports PHP & MySQL, which I have been using to test PHP scripts. As I have Apache server & MySQL installed on my PC, I would like to run my scripts there but where do I place the HTML/PHP files so they will execute properly?.
System Specs:
Windows XP Pro.
AMD Athlon 1.6
256 MEG Ram
PHP 4.3.7
MySQL (mysqld-max-nt)
Apache Server 1.3
Mozilla Firefox Browser

Reply With Quote
  #2  
Old July 19th, 2004, 08:19 PM
daidalus13 daidalus13 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 16 daidalus13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 51 sec
Reputation Power: 0
Ajak,
You need to place your file in the directory that your server application serves from.
Look for a subdirectory '../htdocs' in your apache installation directory tree.
An example of this in a typical Apache2 installation would be something like...
"D:\Program Files\Apache Group\Apache2\htdocs"
You are using Apache 1.3 but this should be the same with Apache2
Hope it helps.
daidalus13

Reply With Quote
  #3  
Old July 20th, 2004, 10:00 PM
Ajak Ajak is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 Ajak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for replying. Yes I tried that folder first but the php file did not execute, so it must be a configuration problem. It is only a simple example which I have included below, when I run the html file, the php file which it calls, comes up blank. I haven't got a clue how to fix it, any ideas?.

[ welcome1.html ]

<html>
<head>
<title> Query String Link Example </title>
</head>
<body>
<a href="welcome1.php?name=Kevin"> Hi, I'm Kevin! </a>
</body>
</html>

[ welcome1.php ]

<html>
<head>
<title> Query String Link Example </title>
</head>
<body>
<?php
$name = $_GET['name'];
echo( "Welcome to our Web site, $name!" );
?>
</body>
</html>

Reply With Quote
  #4  
Old July 26th, 2004, 01:11 PM
daidalus13 daidalus13 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 16 daidalus13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 51 sec
Reputation Power: 0
The code is fine. It works on my pc. It can be a configuration problem. Are you able to run any other php sciprts on the same machine?

Generaly speaking, when something does not work, I try the command line interface, which gives back nice feedback. Trying to fix things by running them on the browser is a lot harder because, as you mentioned, you only got a blank screen to work with.
Sorry about the terribly late reply... !

Reply With Quote
  #5  
Old February 16th, 2005, 07:20 AM
Tinitus Tinitus is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Posts: 2 Tinitus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 m 14 sec
Reputation Power: 0
Send a message via MSN to Tinitus Send a message via Yahoo to Tinitus
Exclamation

Hi Ajak,

I've got similar problem when I installed Apache 1.3.33 and PHP4 ... They was runing, but Apache didn't know
that there is PHP ... So I check out all my conf for Apache and for PhP ... and every thing was just perfect, exept
one thing :

AddType application/x-http-php .php

this line in httpd.conf should be :

AddType application/x-httpd-php .php

and ... the default folder where you should place your http\PhP files is /Appache/htdocs...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Executing PHP/MySQL on Win XP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT