Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > PHP on Apache error, Please help me = (

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-04, 05:34
saiello saiello is offline
Registered User
 
Join Date: Aug 2002
Posts: 31
PHP on Apache error, Please help me = (

Hello All:

I am new to Linux, I am trying to defect from the Microsoft camp. When ever I attempt to run a php script on Apache or even from the command line I recieve that following error

./test.php4: line 1: syntax error near unexpected token `('

literaly the only thing in this php file is

<?php phpinfo(); ?>

I do not understand why this is not working. I am running Apache 2.0 and PHP version:

PHP 4.3.4 (cli) (built: Jul 15 2004 20:16:02)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

According to YaST (running SUSE) every thing is installed, and when I look in my Apache config files I have application assocations set up.

SUSESRVX:/etc/apache2/conf.d # cat php4.conf
<IfModule sapi_apache2.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
</IfModule>

This is set as an include file to the httpd.conf file

Any one have a clue?

Thanks so much,
Steven M Aiello
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On