Search found 21 matches

by barry_normal
Thu Jul 13, 2006 5:17 pm
Forum: PHP - Code
Topic: saving xml file from php
Replies: 3
Views: 362

Thanks so much Buddha443556,

I got save_xml from having tried createElement() first (as it says in the text book I was reading) and then discovering that subsequently it was actually create_element(). Just thought I'd give it a try.

But I've used dump now and it works like a dream.

All the best
B
by barry_normal
Thu Jul 13, 2006 4:37 pm
Forum: PHP - Code
Topic: saving xml file from php
Replies: 3
Views: 362

saving xml file from php

Hello there, I'm sure this should be easy but I just can't work it out. Please help. I've created a domxml doc like this: $docOut = domxml_new_doc("1.0"); $root = $docOut->create_element("locations"); $root = $docOut->append_child($root); $detail = $docOut->create_element("l...
by barry_normal
Thu Jul 13, 2006 9:15 am
Forum: PHP - Code
Topic: load xml into php script
Replies: 4
Views: 567

Hi Jenk,

That's the only logical way to do it.

Thanks for your help

Cheers
B
by barry_normal
Thu Jul 13, 2006 9:03 am
Forum: PHP - Code
Topic: load xml into php script
Replies: 4
Views: 567

Hi Jenk, I think the actionscript xmlVal.send(proxima.php); should be sending the object as a string. I just don't know how to accept that incoming string in the php file. I could save it as a file then open that with proxima.php but that seems to defeat the point of having a send() method... Doesn'...
by barry_normal
Thu Jul 13, 2006 8:46 am
Forum: PHP - Code
Topic: load xml into php script
Replies: 4
Views: 567

load xml into php script

Hello there, this is baffling me a bit. What I want to do is send an XML object from Flash to a PHP proxy script which will then contact external resources with the data contained in the XML object. so the actionscript looks something like this: var xmlVal:XML = new XML(); //xmlVal.xmlDecl = "<...
by barry_normal
Sat Jul 08, 2006 5:35 am
Forum: PHP - Code
Topic: Dom XML get_element_by_tag_name() question
Replies: 0
Views: 226

Dom XML get_element_by_tag_name() question

Hello there, just wondering if anyone can tell me whether when you copy <item> elements from and RSS feed using something like this: $doc = domxml_new_doc("1.0"); $doc = domxml_open_file('http://news.google.co.uk/nwshp?hl=en&tab=wn&q=&output=rss'); $item_array = $doc->get_eleme...
by barry_normal
Fri Jul 07, 2006 2:28 pm
Forum: PHP - Code
Topic: OOP problem
Replies: 12
Views: 917

Thanks chaps,

You live and learn.
That's very weird though. I distinctly remember installing 5 before starting any of this.

Obviously didn't work for some reason...

All the best
B
by barry_normal
Fri Jul 07, 2006 2:11 pm
Forum: PHP - Code
Topic: OOP problem
Replies: 12
Views: 917

Hi feyd, Sorry for being so backward PHP Version: 4.3.11 PHP OS: Darwin Error Reporting: 2047 (E_ALL) Register Globals: Off Short Tags: On Display Errors: Off Loaded Extensions: xslt xmlrpc xml wddx tokenizer standard sockets session posix pgsql pdf pcre overload odbc mysql mssql ming mime_magic mha...
by barry_normal
Fri Jul 07, 2006 1:53 pm
Forum: PHP - Code
Topic: OOP problem
Replies: 12
Views: 917

Hi feyd, <?php include 'Ob.php'; echo "abcdefg"; $send = "HELLO THERE PARAMETER!"; $di = new Ob($send); $di->hiya(); ?> and <?php class Ob { var $n; function __construct($in){ $this->n = $in; } function hiya(){ echo $this->n; } } ?> Doesn't work either...
by barry_normal
Fri Jul 07, 2006 1:29 pm
Forum: PHP - Code
Topic: OOP problem
Replies: 12
Views: 917

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Thanks fe...
by barry_normal
Fri Jul 07, 2006 1:08 pm
Forum: PHP - Code
Topic: OOP problem
Replies: 12
Views: 917

OOP problem

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hello the...
by barry_normal
Mon Jul 03, 2006 6:04 pm
Forum: PHP - Code
Topic: global variables
Replies: 3
Views: 386

thanks Christopher,

Interesting. In the end I did it without globals but I'll keep this in mind for next time...

Cheers
B
by barry_normal
Mon Jul 03, 2006 5:40 pm
Forum: PHP - Code
Topic: global variables
Replies: 3
Views: 386

global variables

Hello, I want to use a global variable instead of passing things back and forth but just declaring it seems to kill my whole show. Take away the word global and it works up to a point... the point being where I want to access my global array. Why is this happening to me? Any help would be really bri...
by barry_normal
Mon Jul 03, 2006 11:35 am
Forum: PHP - Code
Topic: nesting in php
Replies: 1
Views: 222

nesting in php

Sorry for the newbie style question but are nested for loops allowed in php? Like this: for($q=0; $q<sizeof($add); $q++){ for($u=0; $u<sizeof($keep); $u++){ echo $u ."XXX "; if(1){ echo "smurf"; $temp_arr[$cnt] = $add[$q]; $cnt++; } } } Any help would be greatfully received B
by barry_normal
Sun Jul 02, 2006 5:02 pm
Forum: PHP - Code
Topic: PHP DOM API
Replies: 5
Views: 521

Hi Everah, I'm trying to build a little feed reader so it needs to feret the information out from whichever sites you choose and key words you enter. Much of that I then want to automate dependent on geography and what I want the news to look like. php is a real godsend because I thought I was going...