simple php script and error logs
Posted by: philleech (---.Red-88-3-135.dynamicIP.rima-tde.net)
Date: March 21, 2015 01:29PM

Hello. I am very new to PHP and WAMP but when I use the simple php script I get the following result displaying:

script - called test1.php (saved with notepad++ and defiantely a php file)

<html>
<head>
<title> PHP Test</title>
</head>
<body>
<? echo '<p>hello world</p>'; ?>
</body>
</html>

result (openend in wampserver using [localhost])

hello world
'; ?>

why does it show the coding after the hello world statement in the display page? It appears that the PHP is not being recognised. Is this a php issue or an apache issue?

I also have two error messages in the error log for PHP
[21-Mar-2015 12:11:49 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.
in Unknown on line 0

[21-Mar-2015 12:11:49 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.
in Unknown on line 0

Can anyone help me please

windows 7 64 bit
wampserver 2.5
Apache 2.4.9
php 5.5.12
MySQL 5.6.7



Edited 1 time(s). Last edit at 03/21/2015 02:18PM by philleech.

Options: ReplyQuote
Re: simple php script and error logs
Posted by: Otomatic (Moderator)
Date: March 21, 2015 05:21PM

Hi,

<? echo '<p>hello world</p>'; ?>
Should be
<?php echo '<p>hello world</p>'; ?>

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.