From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: First line of exported HTML causes error as .php Date: Wed, 27 May 2009 21:18:53 +0200 Message-ID: <3FDB9C4B-1167-4EE5-BA88-C8F81A3AD0E4@gmail.com> References: <8763fnr7ru.fsf@stats.ox.ac.uk> <7EA78739DB6FF044926304E83668BF8222C821E7@brewer.cmass.criticalmass.com> <87iqjmx412.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9Orx-0003BK-TE for emacs-orgmode@gnu.org; Wed, 27 May 2009 15:32:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9Ort-00038d-69 for emacs-orgmode@gnu.org; Wed, 27 May 2009 15:32:57 -0400 Received: from [199.232.76.173] (port=58410 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9Ors-00038M-LB for emacs-orgmode@gnu.org; Wed, 27 May 2009 15:32:52 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:38993) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9Ors-0003X9-3a for emacs-orgmode@gnu.org; Wed, 27 May 2009 15:32:52 -0400 Received: by ewy6 with SMTP id 6so4973488ewy.42 for ; Wed, 27 May 2009 12:32:51 -0700 (PDT) In-Reply-To: <87iqjmx412.fsf@kassiopeya.MSHEIMNETZ> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: Dan Davison , emacs org-mode mailing list On May 27, 2009, at 11:56 AM, Sebastian Rose wrote: > > Carsten implemented the new publishing option > > `:xml-declaration' > > for use in your `org-publish-project-alist'. > > > You could change that one too: > > > (setq org-publish-project-alist > '(("org" > :xml-declaration " \" ?>'; ?>" > ... I have now also pushed an update that wil handle the php case correctly automatically. The customization Sebastian describes above remains available. - Carsten > > > Sebastian > > > > > > > Jonathan Arkell writes: >> 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 syntax instead). Check >> http://ca.php.net/manual/en/ini.core.php#ini.short-open-tag for >> details. >> >> >> -----Original Message----- From: >> emacs-orgmode-bounces+jonathana=criticalmass.com@gnu.org >> [mailto:emacs-orgmode-bounces+jonathana=criticalmass.com@gnu.org] >> 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). >> >> >> >> 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. Emacs-orgmode@gnu.org >> 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. >> _______________________________________________ Emacs-orgmode >> mailing list >> Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- > Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 > Hannover > Tel.: +49 (0)511 - 36 58 472 > Fax: +49 (0)1805 - 233633 - 11044 > mobil: +49 (0)173 - 83 93 417 > Email: s.rose@emma-stil.de, sebastian_rose@gmx.de > Http: www.emma-stil.de > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode