English 中文(简体)
简单的XMLElement差错,但xml有效[封闭]
原标题:SimpleXMLElement error but xml is valid [closed]

这是错误:

[01-Sep-2011 08:15:01] PHP 警告: 简单XMLElement:__() 施工[和设计; h ref=简单的xmlelement.-building >simplexmlelement.-building]: ./domain/feed-y Self-tips.php:1: parser差错 : 起始标料,“斜线”;第135条线上没有见到/home/domain/public_html/jointdrs.php。

[01-Sep-2011 08:15:01] PHP 警告: 简单XMLElement:__() 施工[和设计; h ref=简单的xmlelement.-building >simplexmlelement.-building]: 1f45 in /home/domain/public_html/jointdrs.php on line 135

[01-Sep-2011 08:15:01] PHP 警告:

[01-Sep-2011 08:15:01] PHP 致命错误: 除电文外,别无例外,不能在家/家/世袭/公投-html/合并:135

Stack trace: #0 /home/domain/public_html/mergedrss.php(135): SimpleXMLElement->__construct( .../domain... , 0, true) #1 /home/domain/public_html/mergedrss.php(57): MergedRSS->__fetch_rss_from_url( .../domain... ) #2 /home/domain/public_html/feed.php(21): MergedRSS->export(false, true, 15) #3 {main} thrown in /home/domain/public_html/mergedrss.php on line 135

问题回答

如果你确定Xml,造成这一错误的两种最常见的情况如下。

(A) 你用手法代替插手。

// For files/urls use the following.
// See: http://www.php.net/manual/en/function.simplexml-load-file.php
$xml = simplexml_load_file( example.xml );

// For xml strings use the following.
// See: http://www.php.net/manual/en/function.simplexml-load-file.php
$xml = simplexml_load_string($exmpleString);

B) 另一个共同问题是,你试图进入一个有保障的网站(https://)和您的网址(php)的复印件,的确能够在php.ini进行开放式的延伸。 如果解决办法适用于你,则请见帮助解决该问题的视角,视您是否依赖一个轴心或窗口服务器而定。

如果没有你的更多信息,如来源xml,以及你使用这一信息,我所能提供的一切帮助。

Good:





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签