Click here to Skip to main content
15,867,756 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionMovement for Isometric Game Pin
Isoprog16-Nov-09 19:03
sussIsoprog16-Nov-09 19:03 
AnswerRe: Movement for Isometric Game Pin
Asday30-Nov-09 1:26
Asday30-Nov-09 1:26 
Questionblob file (.jpg) has been inserted into database but no value, please help.... Pin
alexyxj16-Nov-09 12:04
alexyxj16-Nov-09 12:04 
AnswerRe: blob file (.jpg) has been inserted into database but no value, please help.... Pin
alexyxj16-Nov-09 12:11
alexyxj16-Nov-09 12:11 
QuestionLAMP installation trouble Pin
Gjm14-Nov-09 17:36
Gjm14-Nov-09 17:36 
AnswerRe: LAMP installation trouble Pin
enhzflep15-Nov-09 13:48
enhzflep15-Nov-09 13:48 
AnswerRe: LAMP installation trouble Pin
Richard MacCutchan15-Nov-09 22:02
mveRichard MacCutchan15-Nov-09 22:02 
QuestionLAMP installation trouble Pin
Gjm14-Nov-09 17:35
Gjm14-Nov-09 17:35 
I am trying to install LAMP in ubuntu
For that
I completed the following steps successfully in the order shown below

   1. sudo apt-get install apache2
   2. sudo /etc/init.d/apache2 start
   3. sudo apt-get install php5 libapache2-mod-php5
   4. sudo /etc/init.d/apache2 restart

After the above steps I created a PHP page named test.php in /var/www
The contents of test.php is
<?php
echo "Hello World";
?>


I am 100% sure that there is no syntactical errors in the php code.
But when I access the page using "http://localhost/test.php", the following error showed


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/test.php on line 2


I don't know what to do at this situation. Please suggest me a solution.

GeneralAntivirus 2009 [modified] Pin
Granny200714-Nov-09 16:58
Granny200714-Nov-09 16:58 
Questionidle thoughts....a multi-website session manager...is it possible? Pin
cjoki13-Nov-09 9:03
cjoki13-Nov-09 9:03 
Questionjoomla plugins Pin
pujafaldu13-Nov-09 1:30
pujafaldu13-Nov-09 1:30 
AnswerRe: joomla plugins Pin
EliottA13-Nov-09 9:22
EliottA13-Nov-09 9:22 
AnswerRe: joomla plugins Pin
Richard MacCutchan13-Nov-09 9:29
mveRichard MacCutchan13-Nov-09 9:29 
QuestionProblem installing PHP5.3.0 under IIS 6 and Windows Server 2003 Pin
CrazyCoder2612-Nov-09 18:12
CrazyCoder2612-Nov-09 18:12 
AnswerRe: Problem installing PHP5.3.0 under IIS 6 and Windows Server 2003 Pin
Marc Firth12-Nov-09 22:11
Marc Firth12-Nov-09 22:11 
GeneralRe: Problem installing PHP5.3.0 under IIS 6 and Windows Server 2003 Pin
CrazyCoder2612-Nov-09 22:59
CrazyCoder2612-Nov-09 22:59 
Question[Message Deleted] Pin
Jackaal12-Nov-09 6:47
Jackaal12-Nov-09 6:47 
AnswerRe: how to make a simple invoice? Pin
Marc Firth12-Nov-09 22:19
Marc Firth12-Nov-09 22:19 
GeneralRe: how to make a simple invoice? Pin
Jackaal13-Nov-09 6:57
Jackaal13-Nov-09 6:57 
QuestionHow to write a makefile ? Pin
euerka12-Nov-09 2:35
euerka12-Nov-09 2:35 
AnswerRe: How to write a makefile ? Pin
N a v a n e e t h14-Nov-09 18:17
N a v a n e e t h14-Nov-09 18:17 
QuestionPython Code Error - Programmers Assistance Please Pin
Mike Stratton11-Nov-09 16:40
Mike Stratton11-Nov-09 16:40 
AnswerRe: Python Code Error - Programmers Assistance Please Pin
Richard MacCutchan11-Nov-09 21:31
mveRichard MacCutchan11-Nov-09 21:31 
GeneralRe: Python Code Error - Programmers Assistance Please Pin
Mike Stratton16-Nov-09 23:06
Mike Stratton16-Nov-09 23:06 
GeneralRe: Python Code Error - Programmers Assistance Please Pin
Cape Cod Mike9-Dec-09 17:35
Cape Cod Mike9-Dec-09 17:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.