gnope php gtk gui gnope.org  

load remote glade file

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Mon Jun 12, 2006 7:00 pm    Post subject: load remote glade file Reply with quote

is it posible to load a glade file from a web site.
i tryed doing this
$login = new GladeXML('http://btarchives.com/glade/login.glade');
but it tells me it cant find it

any help much appreciated

regrads leon pegg
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Jun 14, 2006 6:27 pm    Post subject: Reply with quote

Load the file via file_get_contents and create the glade object from string.
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Thu Jun 15, 2006 7:34 pm    Post subject: Reply with quote

i have tryed these methods but none work any ideas;

$glade = new GladeXML::new_from_memory(file_get_contents('http://btarchives.com/glade/login.glade'));

and

$glade = GladeXML::new_from_memory(file_get_contents('http://btarchives.com/glade/login.glade'));

and

$glade = GladeXML::glade_xml_new_from_memory(file_get_contents('http://btarchives.com/glade/login.glade'));

any help would be thanked
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu Jun 15, 2006 7:44 pm    Post subject: Reply with quote

Are you using "new_from_memory" or new_from_buffer?
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Thu Jun 15, 2006 7:47 pm    Post subject: Reply with quote

new_from_memory
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Thu Jun 15, 2006 7:49 pm    Post subject: Reply with quote

may be an example would show me were i am going wrong here
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu Jun 15, 2006 7:51 pm    Post subject: Reply with quote

Try new_from_buffer
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Thu Jun 15, 2006 7:52 pm    Post subject: Reply with quote

just tryed it says method dose not exist
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu Jun 15, 2006 8:07 pm    Post subject: Reply with quote

Did you already upgrade your php-gtk2.dll? If not, look into the announcement forum
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Thu Jun 15, 2006 8:11 pm    Post subject: Reply with quote

ok no i did not upgrade.
thanks
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Thu Jun 15, 2006 8:35 pm    Post subject: Reply with quote

updating the dlls fix the problem.
had to install by had as i use a custom gnope
thanks for all the help i think i will watch the anonsments from now on.
look at me i did every thing that i moand about sorry

you have been a great heklp
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.