473,385 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PHP works or not?Anyway....help...

OK, this is my problem. PHP 4.3.0 on Windows XP, Apache, MySQL, both working. PHP works or not? This is a case, code :

<html>
<head>
<title>Bob's Auto Parts - Order Results</title>
</head>
<body>
<h1>Bob's Auto Parts</h1>
<h2>Order Results</h2>
<?php echo'<p>Order processed.</p>'; ?>
</body>
</html>

will give Order processed. '; ?> (of php code)

So, it's like it does not recognize end - ";" and ?>. Furthermore, any other php added after, in this code, does not work. It will any other "echo xxxxx" show as "echo xxxxx". Functions not work (date, define).
But if I change
<?php echo'<p>Order processed.</p>'; ?> to

<?php echo '<p>Order processed.</p>'; ?> (space between echo and '<p..)
there will be no output.

So, PHP works?What is a problem here?

Again, installations of Apache and MySQL all fine, PHP manual installation, changed apache ini file , Apache and MySQL working. Maybe PHP installation?

Thanks.
Nov 2 '06 #1
6 1342
ronverdonk
4,258 Expert 4TB
Is the type of your file .htm or .html ? If so, rename it to .php.

Ronald :cool:
Nov 2 '06 #2
It is .php. Same thing happens when I install Wamp, phptriads not working.
What is wrong here?PHP works or not?
Nov 3 '06 #3
ronverdonk
4,258 Expert 4TB
Just to see how (or if) php is installed, make a little program
[php]<?php
phpinfo();
?>[/php]
save it as php_info.php and run it at your server (something like
Expand|Select|Wrap|Line Numbers
  1. http://localhost/php_info.php
.
When correct it shows you the installed php system. When error, your php is not (correctly) installed.

Ronald :cool:
Nov 3 '06 #4
Nope.

Nothing. I started install again, now with different manual - first apache, then PHP, apache working, PHP not :( .......

What can be problem?....Any idea?.....

:(
Nov 3 '06 #5
vssp
268 100+
Uninstall allthe php and appache server and download wammp or xammp to isstall ur system

Its very easy to apche php and mysql

vssp
Nov 4 '06 #6
I said before I tried wamp, phptriad etc, none worked. What could be different with xampp? Can you help me with my installation of PHP? Is there something I didn't do, maybe something in my system is wrong? Again, I first followed procedure where PHP install goes last. Maybe MySQL is problem? Now in Services there is "mysql", even when uninstalled from system. Any help? :( :( :(
Nov 4 '06 #7

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

Similar topics

8
by: Peter Abel | last post by:
Hi all, I'm working under W2k with Python 2.2.2 (#37, Oct 14 2002, 17:02:34) on win32 I have a file *test_data.txt* with the following content: 0123456789 0123456789 abcdefghi...
4
by: Matt Whiteley | last post by:
I have some python code in a directory called customModules and this sits under the main directory which contains a piece of server.py code. Under 2.1.x and 2.2.x, I did the following in server.py...
10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
5
by: gabbott | last post by:
I've designed a very simple VB.NET project that uses the .NET framework functionality to access registry keys. At the moment it pulls values from a few keys and puts them into a listbox. The...
4
by: Sanjay | last post by:
I have written a web service to return information from the database. This works and the data is returned in XML format from the database and displayed on the web page as well when this web service...
3
by: Hamilton Woods | last post by:
Diehards, I developed a template matrix class back around 1992 using Borland C++ 4.5 (ancestor of C++ Builder) and haven't touched it until a few days ago. I pulled it from the freezer and...
4
by: Summercoolness | last post by:
does anyone know why this CSS works in IE 7 but not Firefox or Safari? (it works weird in Firefox and Safari) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://...
6
by: Doug Ferguson | last post by:
I am using a webservice client that was created from a WSDL file in .Net 1.1. The client ALWAYS works the first time I call it. The second call returns one of two exceptions. It either returns...
4
by: anonymoushamster | last post by:
I am using the built in membership system and its great. However I need users to be able to login via another page , and for the session to be initialised for a user ( basically so they dont have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.