473,405 Members | 2,444 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,405 software developers and data experts.

PHP code is not getting parsed or isn't outputting anything.

Hi forum. I'm interested in learning PHP. I'm having trouble though configuring the PHP installation to work with Apache 2.2. I've written a couple of simple scripts but they don't work properly. I'm only getting what is echoed in the script such as "Today is" but then nothing ---
Expand|Select|Wrap|Line Numbers
  1. Today is <? print strftime("%m/%d/%Y");  ?>
[Please use CODE tags when posting source code. Thanks! --pbmods]

I'm assuming Apache is not running PHP properly. I've configured the httpd.conf file in Apache and the php.ini files accordingly.

Would be great if someone could point out the likely cause of this problem.

I'd also be interested to here opinions on how long it takes to get a good enough grasp of PHP to understand the workings of Joomla, Zen Cart, and the like. I'm not well computer savvy and perhaps should leave it alone, but would certainly invite some expert opinions.

Hope to here from you
Jun 6 '07 #1
3 1560
epots9
1,351 Expert 1GB
did u remember to move the "php5ts.dll" file into the windows directory and restart apache??

if it still doesn't work or if apache says it can't start up TRY THIS

i've used that site many times to install apache and php on another computers.
Jun 6 '07 #2
pbmods
5,821 Expert 4TB
Changed thread title to better describe the problem.

Are you getting any errors? Check your error_log, or else try turning on PHP debugging messages.

Does your PHP installation support short tags? Check to see if your PHP code is showing up in the source of the page.

You can edit this behavior in your php.ini file, though I recommend you get in the habit of just using the long-format <?php tag, since using short tags will prevent your server from parsing well-formed XHTML files properly.
Jun 6 '07 #3
Yeah, the problem was short tags. Sorry. I had another file I tried but had <? php instead of <?php.
Jun 6 '07 #4

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

Similar topics

5
by: Philip Ronan | last post by:
OK, here's my 2p worth: === Q. Why am I getting the error message 'Headers already sent'? A. PHP produces this error message when you try to set a header for a web page after you have already...
26
by: Michael Strorm | last post by:
Hi! I posted a message a while back asking for project suggestions, and decided to go with the idea of creating an adventure game (although it was never intended to be a 'proper' game, rather an...
14
by: Ian Richardson | last post by:
I'm writing a large Javascript application (uncompressed source around 400K) which is doing almost all the initialisation it needs to in a just-in-time manner. However, I have included an option...
67
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
6
by: Daniel Loose | last post by:
Hello, I have this strange including problem: I want to read a piece of HTML, residing in some file, into a variable, not echo it out. So far so easy - but now the HTML contains a line of...
0
by: Derek | last post by:
Hi All, I am trying to build a web based application using ASP.NET that I can use to store and retrieve source code samples. The question I have is what is the best way to store information that...
1
by: Joe | last post by:
While I understand that Server Side Includes still work, I realize it's not the best practice for sharing code such as a common set of includes between screens. In ASP.NET I've already built...
4
by: ssaammee | last post by:
I have legacy ADA and C++ code, and I need to export this code into an XML format so I can create a tool to analyze and work with it. I tried various tree-dump-* commands with g++ and didn't find...
28
by: Joey Martin | last post by:
One of my servers got hacked with the SQL injection due to poor coding. So, I had someone write a stored procedure and new code. But, to me, it looks just as flawed, even using the stored...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.