| View previous topic :: View next topic |
| Author |
Message |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Mon Jun 12, 2006 7:00 pm Post subject: load remote glade file |
|
|
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
|
Posted: Wed Jun 14, 2006 6:27 pm Post subject: |
|
|
| 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
|
Posted: Thu Jun 15, 2006 7:34 pm Post subject: |
|
|
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
|
Posted: Thu Jun 15, 2006 7:44 pm Post subject: |
|
|
| Are you using "new_from_memory" or new_from_buffer? |
|
| Back to top |
|
 |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Thu Jun 15, 2006 7:47 pm Post subject: |
|
|
| new_from_memory |
|
| Back to top |
|
 |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Thu Jun 15, 2006 7:49 pm Post subject: |
|
|
| 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
|
Posted: Thu Jun 15, 2006 7:51 pm Post subject: |
|
|
| Try new_from_buffer |
|
| Back to top |
|
 |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Thu Jun 15, 2006 7:52 pm Post subject: |
|
|
| just tryed it says method dose not exist |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Thu Jun 15, 2006 8:07 pm Post subject: |
|
|
| 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
|
Posted: Thu Jun 15, 2006 8:11 pm Post subject: |
|
|
ok no i did not upgrade.
thanks |
|
| Back to top |
|
 |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Thu Jun 15, 2006 8:35 pm Post subject: |
|
|
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 |
|
 |
|