php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32120 xml feature
Submitted: 2005-02-26 10:57 UTC Modified: 2005-03-06 18:26 UTC
From: johnnygroeneveld at chello dot nl Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: Irrelevant OS: n.v.t.
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: johnnygroeneveld at chello dot nl
New email:
PHP Version: OS:

 

 [2005-02-26 10:57 UTC] johnnygroeneveld at chello dot nl
Description:
------------
I was thinking.
when I want to parse PHP i have to use <?...?>
in XML this is reserved.
<?xml version="1.0"?>
would become:
<?
 header('content-type','text/xml');
 print('<?xml version="1.0"?>');
?>
wouldn't it be handy to have the <? to be turned of in let's say .xphp extensions and let php than parse this:
<php:eval>print('hello');</php:eval>
or something like that.
the header could automatically be set to text/xml.
Maybe that there is already something like this what i haven't heard of.
and <php:print>hello{$variable}</php:print> instead of <?=

just think about it.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-05 16:04 UTC] johnnygroeneveld at chello dot nl
found the XsltProcessor->registerPhpFunctions()
which enables me to do this in another way
 [2005-03-06 18:26 UTC] didou@php.net
not a bug ? => Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC