<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: XML Generator DIR</title>
	<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/</link>
	<description>Throwing code to the wind</description>
	<pubDate>Sat, 22 Nov 2008 03:42:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Justin Rhoades</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-98</link>
		<author>Justin Rhoades</author>
		<pubDate>Sun, 03 Jun 2007 21:09:48 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-98</guid>
					<description>This is killer, many thanks!</description>
		<content:encoded><![CDATA[<p>This is killer, many thanks!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Justin Rhoades</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-161</link>
		<author>Justin Rhoades</author>
		<pubDate>Sun, 10 Jun 2007 01:49:02 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-161</guid>
					<description>For anyone trying to use the php5 CLI installed by Marc Liyanage's &lt;a href='http://www.entropy.ch/software/macosx/php/' rel="nofollow"&gt;Mac OS X php package&lt;/a&gt;: be sure to use "/usr/local/php5/bin/php" as the path when running the PHP binary.</description>
		<content:encoded><![CDATA[<p>For anyone trying to use the php5 CLI installed by Marc Liyanage&#8217;s <a href='http://www.entropy.ch/software/macosx/php/' rel="nofollow">Mac OS X php package</a>: be sure to use &#8220;/usr/local/php5/bin/php&#8221; as the path when running the PHP binary.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-176</link>
		<author>fromvega</author>
		<pubDate>Sun, 10 Jun 2007 19:23:35 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-176</guid>
					<description>Tks for the information Justin!</description>
		<content:encoded><![CDATA[<p>Tks for the information Justin!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: junal</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-763</link>
		<author>junal</author>
		<pubDate>Wed, 24 Oct 2007 07:21:40 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-763</guid>
					<description>Nice information Justin!</description>
		<content:encoded><![CDATA[<p>Nice information Justin!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: JSin</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-778</link>
		<author>JSin</author>
		<pubDate>Mon, 12 Nov 2007 05:17:10 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-778</guid>
					<description>Great job!!!
Works great on my server running php5 but when I popped it on a server running php 4.4 it hangs up at the "try" block. Is there anyway around this?</description>
		<content:encoded><![CDATA[<p>Great job!!!<br />
Works great on my server running php5 but when I popped it on a server running php 4.4 it hangs up at the &#8220;try&#8221; block. Is there anyway around this?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-779</link>
		<author>fromvega</author>
		<pubDate>Wed, 14 Nov 2007 01:35:33 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-779</guid>
					<description>Hello JSin,

Yeah there is a way around it but not so easy. It would be to rewrite a lot of the code since PHP 4 doesn't have the iterators I'm using neither the same XML library, sorry.

Regards</description>
		<content:encoded><![CDATA[<p>Hello JSin,</p>
<p>Yeah there is a way around it but not so easy. It would be to rewrite a lot of the code since PHP 4 doesn&#8217;t have the iterators I&#8217;m using neither the same XML library, sorry.</p>
<p>Regards</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Rayn</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-780</link>
		<author>Rayn</author>
		<pubDate>Tue, 20 Nov 2007 12:35:10 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-780</guid>
					<description>Big THX for this generator!!
I have very poor knowledge in php but some how i set up wamp sever, he is runnig on php 5.2.5 but when i run script i get this error -  Parse error: syntax error, unexpected '</description>
		<content:encoded><![CDATA[<p>Big THX for this generator!!<br />
I have very poor knowledge in php but some how i set up wamp sever, he is runnig on php 5.2.5 but when i run script i get this error -  Parse error: syntax error, unexpected &#8216;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-781</link>
		<author>fromvega</author>
		<pubDate>Wed, 21 Nov 2007 01:19:09 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-781</guid>
					<description>Hello, try to check if your XML is valid, if it's correct. If it's not the case try to check the PHP source code, maybe something has happened while you were editing it.</description>
		<content:encoded><![CDATA[<p>Hello, try to check if your XML is valid, if it&#8217;s correct. If it&#8217;s not the case try to check the PHP source code, maybe something has happened while you were editing it.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ranmal</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-796</link>
		<author>ranmal</author>
		<pubDate>Mon, 24 Dec 2007 08:57:22 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-796</guid>
					<description>Hello please help i'm getting error 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\wamp\www\images\xmlgen2_dir.php on line 32</description>
		<content:encoded><![CDATA[<p>Hello please help i&#8217;m getting error </p>
<p>Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\wamp\www\images\xmlgen2_dir.php on line 32</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-797</link>
		<author>fromvega</author>
		<pubDate>Tue, 25 Dec 2007 22:49:21 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-797</guid>
					<description>Hello ranmal,

First of all you need PHP 5 to be able to run this script. Second, be sure the code isn't messed up, try to download again and see what happens!

Bye!</description>
		<content:encoded><![CDATA[<p>Hello ranmal,</p>
<p>First of all you need PHP 5 to be able to run this script. Second, be sure the code isn&#8217;t messed up, try to download again and see what happens!</p>
<p>Bye!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Aysseline</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-806</link>
		<author>Aysseline</author>
		<pubDate>Wed, 02 Jan 2008 06:17:52 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-806</guid>
					<description>Hi, I'm trying your files on XP/xampp and get this errors:
Warning: DOMDocument::load() [function.DOMDocument-load]: I/O warning : failed to load external entity "file:///C%3A/xampp/htdocs/test/model.xml" in C:\xampp\htdocs\test\xmlgen2_dir.php on line 50

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\xmlgen2_dir.php on line 62

Fatal error: Call to a member function saveXML() on a non-object in C:\xampp\htdocs\test\xmlgen2_dir.php on line 73

And I don't understand (Maybe result for the first warning) this:
"To run the above command on Windows you may need to add the php executable to your system path. To do that type: set path = %path%;c:\directory\of\php\; in your command prompt then restart it."

Do I need to make a change in my php.ini ?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m trying your files on XP/xampp and get this errors:<br />
Warning: DOMDocument::load() [function.DOMDocument-load]: I/O warning : failed to load external entity &#8220;file:///C%3A/xampp/htdocs/test/model.xml&#8221; in C:\xampp\htdocs\test\xmlgen2_dir.php on line 50</p>
<p>Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\xmlgen2_dir.php on line 62</p>
<p>Fatal error: Call to a member function saveXML() on a non-object in C:\xampp\htdocs\test\xmlgen2_dir.php on line 73</p>
<p>And I don&#8217;t understand (Maybe result for the first warning) this:<br />
&#8220;To run the above command on Windows you may need to add the php executable to your system path. To do that type: set path = %path%;c:\directory\of\php\; in your command prompt then restart it.&#8221;</p>
<p>Do I need to make a change in my php.ini ?</p>
<p>Thanks</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-807</link>
		<author>fromvega</author>
		<pubDate>Wed, 02 Jan 2008 20:46:44 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-807</guid>
					<description>Hi Aysseline,

First of all, the first error indicates that the path to your file is wrong. The following errors are consequence of it. Fixing it will solve your problems.

Now, about the windows system path, it's just to be able to call the php executable from wherever you are. If php.exe isn't in your system path you would need to execute php from its own dir.

Bye!</description>
		<content:encoded><![CDATA[<p>Hi Aysseline,</p>
<p>First of all, the first error indicates that the path to your file is wrong. The following errors are consequence of it. Fixing it will solve your problems.</p>
<p>Now, about the windows system path, it&#8217;s just to be able to call the php executable from wherever you are. If php.exe isn&#8217;t in your system path you would need to execute php from its own dir.</p>
<p>Bye!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: glyf</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-810</link>
		<author>glyf</author>
		<pubDate>Thu, 17 Jan 2008 21:04:06 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-810</guid>
					<description>Thanks for this script, works great. One modification that is useful if you want to run the script repeatedly is to edit the write destination so it doesn't write into the image directory itself. That way, when the script is called a second time, it doesn't generate a reference to the previous xml file in the new xml file.

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for this script, works great. One modification that is useful if you want to run the script repeatedly is to edit the write destination so it doesn&#8217;t write into the image directory itself. That way, when the script is called a second time, it doesn&#8217;t generate a reference to the previous xml file in the new xml file.</p>
<p>Thanks!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Tony Coyle</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-812</link>
		<author>Tony Coyle</author>
		<pubDate>Mon, 21 Jan 2008 00:33:33 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-812</guid>
					<description>Nice work, script works well.  Would be handy to have a config flag/array to return only certain file types instead of all files.</description>
		<content:encoded><![CDATA[<p>Nice work, script works well.  Would be handy to have a config flag/array to return only certain file types instead of all files.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Benoit Borrel</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-835</link>
		<author>Benoit Borrel</author>
		<pubDate>Sun, 16 Mar 2008 23:30:31 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-835</guid>
					<description>Hello,

Thanks for this great script which saved me a lot of development time. I hacked it a bit to restrict images listing on specified image types only:

[line32, added 2 lines]
// list of researched image file types
$imageTypeList = array('gif','jpg','png');

[line 153, modified 1 line]
if($file-&#62;isFile() AND in_array(end(explode(".", $file)),$imageTypeList)) {

Thanks.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for this great script which saved me a lot of development time. I hacked it a bit to restrict images listing on specified image types only:</p>
<p>[line32, added 2 lines]<br />
// list of researched image file types<br />
$imageTypeList = array(&#8217;gif&#8217;,'jpg&#8217;,'png&#8217;);</p>
<p>[line 153, modified 1 line]<br />
if($file-&gt;isFile() AND in_array(end(explode(&#8221;.&#8221;, $file)),$imageTypeList)) {</p>
<p>Thanks.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ivan V.</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-852</link>
		<author>Ivan V.</author>
		<pubDate>Wed, 09 Apr 2008 14:44:00 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-852</guid>
					<description>Hi , I was wondering ,if this php script can list the subfolders , in one main folder? 
Like this:$directoryList = array('images'); , so when I pass in the images folder , it lists  all subfolders , and images inside root folder (i.e 'images').
I would like to use this kind of script in combination with flash. So the flash always loads this same xml.
btw. I'm a total newbie for php.
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi , I was wondering ,if this php script can list the subfolders , in one main folder?<br />
Like this:$directoryList = array(&#8217;images&#8217;); , so when I pass in the images folder , it lists  all subfolders , and images inside root folder (i.e &#8216;images&#8217;).<br />
I would like to use this kind of script in combination with flash. So the flash always loads this same xml.<br />
btw. I&#8217;m a total newbie for php.<br />
Thanks.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-853</link>
		<author>fromvega</author>
		<pubDate>Thu, 10 Apr 2008 01:52:50 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-853</guid>
					<description>Hello Ivan!

Not in the present state but everything is possible, we just need to write the code ;-) 

But unfortunately I don't have much time now to implement this feature.

Bye.</description>
		<content:encoded><![CDATA[<p>Hello Ivan!</p>
<p>Not in the present state but everything is possible, we just need to write the code <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>But unfortunately I don&#8217;t have much time now to implement this feature.</p>
<p>Bye.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ivan V.</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-854</link>
		<author>Ivan V.</author>
		<pubDate>Thu, 10 Apr 2008 11:59:14 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-854</guid>
					<description>Thanks for the quick respone , I hope you implement this kind of feature in future.
Bye.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick respone , I hope you implement this kind of feature in future.<br />
Bye.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Matjaz</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-876</link>
		<author>Matjaz</author>
		<pubDate>Sun, 18 May 2008 22:24:29 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-876</guid>
					<description>Thanks, very usefull for flash galleries.  ;)</description>
		<content:encoded><![CDATA[<p>Thanks, very usefull for flash galleries.  <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: saç bakımı</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-884</link>
		<author>saç bakımı</author>
		<pubDate>Sat, 14 Jun 2008 09:41:17 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-884</guid>
					<description>thank</description>
		<content:encoded><![CDATA[<p>thank</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Webweaver</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-924</link>
		<author>Webweaver</author>
		<pubDate>Thu, 31 Jul 2008 16:07:16 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-924</guid>
					<description>I just wanted to say what an awesome program you have saved me so much time with my projects.
Well done in this awesome work ;)</description>
		<content:encoded><![CDATA[<p>I just wanted to say what an awesome program you have saved me so much time with my projects.<br />
Well done in this awesome work <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Webeaver2000</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-933</link>
		<author>Webeaver2000</author>
		<pubDate>Tue, 12 Aug 2008 06:10:29 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-933</guid>
					<description>Hi again, could someone please help me i need to get this code :

{input:caption}
{callback:discoverOrientation}
{callback:filesize}

To out put like this eg:

Nitro1 video.flv
webweaver
video.flv

Nitro2 video.flv
Underground
video.flv

Nitro3 video.flv
Underground
video.flv

Could someone please help me with the code, to get the output correct?

it would be much appreciated
thanks ;)</description>
		<content:encoded><![CDATA[<p>Hi again, could someone please help me i need to get this code :</p>
<p>{input:caption}<br />
{callback:discoverOrientation}<br />
{callback:filesize}</p>
<p>To out put like this eg:</p>
<p>Nitro1 video.flv<br />
webweaver<br />
video.flv</p>
<p>Nitro2 video.flv<br />
Underground<br />
video.flv</p>
<p>Nitro3 video.flv<br />
Underground<br />
video.flv</p>
<p>Could someone please help me with the code, to get the output correct?</p>
<p>it would be much appreciated<br />
thanks <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-940</link>
		<author>fromvega</author>
		<pubDate>Fri, 15 Aug 2008 04:59:01 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-940</guid>
					<description>Hey Webeaver2000,

I was blocking your comments because they aren't kind comments/questions. You are posting a huge bunch of code! That's not how it works mate, sorry.

I'm not sure if I understand your problem. But you should be aware that this code is for XML files. It needs an XML file structure to work. It won't work for plain text files if its what you are trying to do.

If you need more help, please be kind to us and describe your problem more clearly and without pasting all your source code. ;)</description>
		<content:encoded><![CDATA[<p>Hey Webeaver2000,</p>
<p>I was blocking your comments because they aren&#8217;t kind comments/questions. You are posting a huge bunch of code! That&#8217;s not how it works mate, sorry.</p>
<p>I&#8217;m not sure if I understand your problem. But you should be aware that this code is for XML files. It needs an XML file structure to work. It won&#8217;t work for plain text files if its what you are trying to do.</p>
<p>If you need more help, please be kind to us and describe your problem more clearly and without pasting all your source code. <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Webeaver2000</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-942</link>
		<author>Webeaver2000</author>
		<pubDate>Tue, 19 Aug 2008 07:05:21 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-942</guid>
					<description>Lol, sorry, i just thought seeing my code you can see how its structured. Sorry, wont happen again,
I got it running now by tweaking a few things i still am having a few problems but i think i can knuckle them out now, 
Thanks again for a awesome script ;)</description>
		<content:encoded><![CDATA[<p>Lol, sorry, i just thought seeing my code you can see how its structured. Sorry, wont happen again,<br />
I got it running now by tweaking a few things i still am having a few problems but i think i can knuckle them out now,<br />
Thanks again for a awesome script <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Webeaver2000</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-948</link>
		<author>Webeaver2000</author>
		<pubDate>Wed, 10 Sep 2008 11:17:28 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-948</guid>
					<description>hi again ;), I still have this 1 problem. I would like to change the image to track in the model_dir.xml file so the xml file outputs this format 









I have really tried everthing lol i think I hope this is clear information its just when i change it on the model_dir i get errors and i dont know where to change the info so it matchs with the XML Generator DIR
your help would be great , cheers ;)</description>
		<content:encoded><![CDATA[<p>hi again ;), I still have this 1 problem. I would like to change the image to track in the model_dir.xml file so the xml file outputs this format </p>
<p>I have really tried everthing lol i think I hope this is clear information its just when i change it on the model_dir i get errors and i dont know where to change the info so it matchs with the XML Generator DIR<br />
your help would be great , cheers <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Webeaver2000</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-949</link>
		<author>Webeaver2000</author>
		<pubDate>Wed, 10 Sep 2008 11:22:45 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-949</guid>
					<description>the changing of the "image" to "Track" and "tracklist" in model_dir</description>
		<content:encoded><![CDATA[<p>the changing of the &#8220;image&#8221; to &#8220;Track&#8221; and &#8220;tracklist&#8221; in model_dir</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: kleklezin</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-970</link>
		<author>kleklezin</author>
		<pubDate>Fri, 10 Oct 2008 13:27:40 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-970</guid>
					<description>Hello man first of all thx for the script. another question... i have a image upload site and im trying to make a twist here since my galleries are in flash. So my ideia is... a upload image form, then when  you upload the images your script is called and creates the xml with the image names and folder, but since every upload is different each time the image should go to a special folder, that the userl will define.
Any clues on how do i do that? hehe thx man</description>
		<content:encoded><![CDATA[<p>Hello man first of all thx for the script. another question&#8230; i have a image upload site and im trying to make a twist here since my galleries are in flash. So my ideia is&#8230; a upload image form, then when  you upload the images your script is called and creates the xml with the image names and folder, but since every upload is different each time the image should go to a special folder, that the userl will define.<br />
Any clues on how do i do that? hehe thx man</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: mike</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-972</link>
		<author>mike</author>
		<pubDate>Thu, 16 Oct 2008 10:50:37 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-972</guid>
					<description>I have customised my the script as shown :

// list of directories to be read with no trailing slash
$directoryList = array('pictures');

// name of the XML file
$xmlFileName = 'gallery.xml';

// name of the XML model
$xmlModelName = 'model.xml';

I am assuming the model.xml is how i want my gallery.xml to look like.

I am failing to create the gallery.xml. I get the error shown below. 

Strict Standards: Non-static method DOMDocument::load() should not be called statically in H:\p3t\phpappfolder\public_php\Photo Album\xml_convert2.php on line 50</description>
		<content:encoded><![CDATA[<p>I have customised my the script as shown :</p>
<p>// list of directories to be read with no trailing slash<br />
$directoryList = array(&#8217;pictures&#8217;);</p>
<p>// name of the XML file<br />
$xmlFileName = &#8216;gallery.xml&#8217;;</p>
<p>// name of the XML model<br />
$xmlModelName = &#8216;model.xml&#8217;;</p>
<p>I am assuming the model.xml is how i want my gallery.xml to look like.</p>
<p>I am failing to create the gallery.xml. I get the error shown below. </p>
<p>Strict Standards: Non-static method DOMDocument::load() should not be called statically in H:\p3t\phpappfolder\public_php\Photo Album\xml_convert2.php on line 50</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Robert</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-984</link>
		<author>Robert</author>
		<pubDate>Wed, 22 Oct 2008 12:20:24 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-984</guid>
					<description>Thanks for the script, nice.

I wrote one in Classic ASP and what it does is write out the resulting XML file to the browser.

It looks like yours writes out to the images.xml file which seems to me to kind of defeat the purpose of dynamic calling and a sort of RESTful request from another server with (in Flash, crossdomain.xml privilages).

The reason I need to use a PHP script this time around is that the images are on an Apache file.

All I need to do is generate something compatible with Slideshow Pro, so a model like this,



	
		
	


As you can see, the only thing I'm interested in is calling a .PHP file with a directory name, and getting back the results in the browser via XML.

Flash can easily parse this, as well as any app. like HTTPTear which is good for RESTful access, or even just calling in FLEX.

I find calling URLs with parameters and obtaining back XML results far easier than calling the URL with params, and then having to access an .xml file it generates.

Can you help here?

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the script, nice.</p>
<p>I wrote one in Classic ASP and what it does is write out the resulting XML file to the browser.</p>
<p>It looks like yours writes out to the images.xml file which seems to me to kind of defeat the purpose of dynamic calling and a sort of RESTful request from another server with (in Flash, crossdomain.xml privilages).</p>
<p>The reason I need to use a PHP script this time around is that the images are on an Apache file.</p>
<p>All I need to do is generate something compatible with Slideshow Pro, so a model like this,</p>
<p>As you can see, the only thing I&#8217;m interested in is calling a .PHP file with a directory name, and getting back the results in the browser via XML.</p>
<p>Flash can easily parse this, as well as any app. like HTTPTear which is good for RESTful access, or even just calling in FLEX.</p>
<p>I find calling URLs with parameters and obtaining back XML results far easier than calling the URL with params, and then having to access an .xml file it generates.</p>
<p>Can you help here?</p>
<p>Thanks.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-986</link>
		<author>fromvega</author>
		<pubDate>Mon, 27 Oct 2008 18:50:38 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-986</guid>
					<description>Hello Robert,

What you want is pretty simple, just change this:

    $dom-&gt;save($directory.'/'.$xmlFileName); 

to this:

  echo $dom-&gt;saveXML();

Hope this works as expected!</description>
		<content:encoded><![CDATA[<p>Hello Robert,</p>
<p>What you want is pretty simple, just change this:</p>
<p>    $dom->save($directory.&#8217;/&#8217;.$xmlFileName); </p>
<p>to this:</p>
<p>  echo $dom->saveXML();</p>
<p>Hope this works as expected!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-987</link>
		<author>fromvega</author>
		<pubDate>Mon, 27 Oct 2008 18:54:33 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/13/xml-generator-dir/#comment-987</guid>
					<description>Mike, you can try to change all DOMDocument::load() calls to something like the following:

$dom = new DOMDocument();
$dom-&gt;load('thenameofthefile.xml');</description>
		<content:encoded><![CDATA[<p>Mike, you can try to change all DOMDocument::load() calls to something like the following:</p>
<p>$dom = new DOMDocument();<br />
$dom->load(&#8217;thenameofthefile.xml&#8217;);</p>
]]></content:encoded>
				</item>
</channel>
</rss>
