emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* First line of exported HTML causes error as .php
@ 2009-05-26 19:20 Dan Davison
  2009-05-26 20:46 ` Jonathan Arkell
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Davison @ 2009-05-26 19:20 UTC (permalink / raw)
  To: emacs org-mode mailing list

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-27 19:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-26 19:20 First line of exported HTML causes error as .php Dan Davison
2009-05-26 20:46 ` Jonathan Arkell
2009-05-27  9:56   ` Sebastian Rose
2009-05-27 19:18     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).