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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 21:01:35 2025 UTC