If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Calling php

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-09, 09:45
pearl2 pearl2 is offline
Registered User
 
Join Date: Nov 2003
Location: Sinapore
Posts: 187
Calling php

Hi,

In my PHP scripts, I had been using only "<?" to indicate the start of PHP. That had gone without problems for a quite a while.

But recently, I found my scripts couldn't execute and the PHP code was showing on the web page. I had to change "<?" to "<?php" to get the scripts to run.

Is it possible to configure PHP (or perhaps the Apache config file) to tell the server to parse the scripts with just "<?" (i.e. with php appended to the question mark)?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 04-23-09, 11:58
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
It could be a setting in your PHP,INI file
however as <?PHP is the standard way to identify PHP script in files I'd suggest you switch tot he standard
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 04-24-09, 13:44
pearl2 pearl2 is offline
Registered User
 
Join Date: Nov 2003
Location: Sinapore
Posts: 187
Quote:
Originally Posted by healdem
It could be a setting in your PHP,INI file
however as <?PHP is the standard way to identify PHP script in files I'd suggest you switch tot he standard
Thanks, healdem

I had thought "<?" was the more PHP-friendly version.
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

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