emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Orgmode] First line of exported HTML causes error as .php


From: Jonathan Arkell
Subject: RE: [Orgmode] First line of exported HTML causes error as .php
Date: Tue, 26 May 2009 16:46:46 -0400

IT is how PHP is configured on your server.  The easiest thing is to set the 
option short_open_tag to false (assuming you don't use the short <? ?> tag 
syntax, and use the proper <?php ?> syntax instead).  Check 
http://ca.php.net/manual/en/ini.core.php#ini.short-open-tag  for details.


-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Dan Davison
Sent: May 26, 2009 1:20 PM
To: emacs org-mode mailing list
Subject: [Orgmode] First line of exported HTML causes error as .php

I think there's been a change in HTML export which has broken the way in
which I was using org to produce PHP files. The HTML exporter now
produces the following as the first line (I believe this is new).

<?xml version="1.0" encoding="iso-8859-1"?>

However, when the file is produced with a .php suffix

(setq org-export-html-extension "php")

and placed on a PHP-enabled web server, I get this error:

Parse error: syntax error, unexpected T_STRING in
/net/markov/export/postdocs/davison/pub_html/software/shellfish/shellfish.php
on line 1

It seems to work OK if I delete the first line. I know next to nothing
about these things and I'd appreciate it if someone could tell me
whether this should be viewed as a bug in org, or whether I am just
doing things the wrong way. (Is this how others produce PHP files in
org?)

Thanks,

Dan


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

The information contained in this message is confidential. It is intended to be 
read only by the individual or entity named above or their designee. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any distribution of this message, in any form, is strictly prohibited. If 
you have received this message in error, please immediately notify the sender 
and delete or destroy any copy of this message.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]