473,466 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Viewing my PHP files.

nomad
664 Recognized Expert Contributor
I'm using Dreamweaver mx2004 and XAMPP.
When I write a php in Dreamweaver and I want to view it in my Broswer it does not show.
Under Dreamweaver Management I have saved by php file in these directory.
Local info
Local Root folder C:\Program Files\xampp\htdocs

Romote info
Access Local/Network
Remote Folder: C:\testing

Testing Server
Server model: PHP MySQL
Access Local/Network
Testing sever Folder: C:\Program Files\xampp\htdocs

Are these setting right?

thanks
nomad
PS here is my php code.
[PHP]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$mood ="sad";
if ($mood == "happy") {
echo "hooray, !";
}
?>
</body>
</html>
[/PHP]
Jun 8 '07 #1
2 1272
epots9
1,351 Recognized Expert Top Contributor
u get a blank page cuz your not printing/echo-ing anything.

your condition says if $mood equals happy echo blah, but u declared $mood to be sad so that condition return false and doesn't go.

try:[PHP]$mood="happy";[/PHP] or (NOT BOTH) [PHP]if($mood != "happy")[/PHP]

**make sure your service is running too.
Jun 8 '07 #2
nomad
664 Recognized Expert Contributor
u get a blank page cuz your not printing/echo-ing anything.

your condition says if $mood equals happy echo blah, but u declared $mood to be sad so that condition return false and doesn't go.

try:[PHP]$mood="happy";[/PHP] or (NOT BOTH) [PHP]if($mood != "happy")[/PHP]

**make sure your service is running too.
thanks epots9 that was it I forgot to add another echo for the sad part.

nomad
Jun 8 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: yogesh | last post by:
How to store the java applet emebedded in a web page for offline viewing? I saved the web page but it got saved without the applet.and also I searched for the corressponding .class file for the...
2
by: Matthias H. | last post by:
Hi guys, Our team has a very strange problem. I hope anybody can help. We have a class called webpage and all our aspx-pages bases on it. Then we have a SYS.IO.File Class which have a...
0
by: Selden McCabe | last post by:
I have a web site which supports a number of languages, usiing RESX files. With ResourceWriter, it is possible to add a new resource to an existing RESX file, and later the ResourceManger shows...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
3
by: sss024 | last post by:
Word document viewing in RichTextBox control
4
by: John R. Dougherty | last post by:
I have developed an application with VB.NET, which includes the Crystal Reports (Visual Studio .NET 2003 edition) controls. I can run the application on my PC and it does work fine, but on any...
10
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
10
by: David Lee Conley | last post by:
When I open the Data Sources window and create a new data source, everything works fine. But if I have a form showing in the IDE, the Data Sources window becomes disabled and doesn't display any...
14
by: kmpathy | last post by:
I am new Sql Plus Want to know the command for viewing databases avaialble using default password and username on my co. server.. (example : dir command for viewing files) help me.
1
by: =?Utf-8?B?TWFuaQ==?= | last post by:
I am using vista home premium. I am a new computer user. I could not view files in a CD/DVD. When i use the same CD in another computer with XP there is no problem in viewing the picture files. ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.