Re: Fw: adding a temporary note to announcement on gtk.php-coder.net
| From: | Steph | Date: | Fri, 12 Oct 2001 23:33:46 +0000 |
| Subject: | Re: Fw: adding a temporary note to announcement on gtk.php-coder.net | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-115@lists.php.net to get a copy of this message | ||
Frank, you're a star :)
You're right, it's loading from the wrong directory, I moved php.exe and everything else
out of php4 dir and into php4\dev (where php files and xpm files reside) and typed:
cd\php4\dev
php -q gtk.php
and hey presto, it all works fine! Thank you for analyzing that, I had thought along those lines as
far as putting xpm files into strange directories and trying again ... but not in that direction..
I've removed the exe and dll's from php4\dev back to php4 and everything works as expected
*so long as* I stick the xpm files in php4 alongside them.
But it didn't *used* to load from the wrong directory... I've used the
"fileopener.php" file we all write first, from the first week of using PHP-GTK, and
I've always put the xpm files in the same directory as the php files until now.
There the mystery remains. Something must've been changed in the way PHP chooses which
directory is "current" for this to happen, but I'm utterly ignorant of it.
----- Original Message -----
From: "Frank M. Kromann" <frank@frontbase.com>
To: "Steph" <steph.fox@btinternet.com>
Sent: Friday, October 12, 2001 10:53 PM
Subject: Re: Fw: adding a temporary note to announcement on gtk.php-coder.net
Hi Step,
The only thing I can see then is you are running your stuff with an other current directory.
if you do this:
cd\
php4\php -q c:\php4\samples\test.php
and your test.php loads a pixmap without a full path it will load it from c:\ where it does not
exist.
cd \php4\samples
\php4\php -q test.php
will give you the correct working directory and your pixmap will load as expected.
If this is not what is happening on your system I dont know what is going wrong. I do remember some
errors in the way php handled the current working directory though so if this worked in 0.0.4 that
might be due to an error in php it self ?
- Frank
> ps Markus and I already tried this, my pixmaps load fine elsewhere..
>
> ----- Original Message -----
> From: "Steph" <Steph.Fox@btinternet.com>
> To: "Frank M. Kromann" <frank@frontbase.com>
> Sent: Friday, October 12, 2001 10:18 PM
> Subject: Re: adding a temporary note to announcement on gtk.php-coder.net
>
>
> :) yeah sorry I didn't realise til a moment ago, I sent you error messages for gtk.php
> out of the samples folder (which I'd just been running) as well as for your file ... yours is
> just the last three lines!
>
> There's nothing wrong with the pixmaps. Glade can use them. There's nothing wrong
> with my code, and there's certainly nothing wrong with Andrei's code. I have the pixmaps
> in the same directory 'dev' as the php files, and this hasn't changed since Day One.
> The only thing that's changed is that they used to work....!
>
> There's something very wrong with my set-up somewhere along the line, and I can't
> even see how, I just know everything started to go wrong after 0.0.4 - but as Markus has gently
> pointed out, it may be nothing to do with PHP-GTK at all.
>
> Don't worry about it, it's just this machine.
>
> ----- Original Message -----
> From: "Frank M. Kromann" <frank@frontbase.com>
> To: "Steph" <steph.fox@btinternet.com>
> Sent: Friday, October 12, 2001 10:10 PM
> Subject: Re: adding a temporary note to announcement on gtk.php-coder.net
>
>
> Hi Steph,
>
> What are you doing ? the php file I gave you only had 15 lines or so so how are you getting
> errors in line 847 ?
>
> could you send me one of your xpm files so I can see if I can load it ?
>
> - Frank
>
> > Very Art Deco! :)
> >
> > but I'm afraid I had to run glade.exe in order to see it ...
> >
> > <b>Warning</b>: pixmap_create_from_xpm() cannot load pixmap in
> > <b>C:\php4\devtk.php</b> on line <b>847</b><br />
> > <br />
> > <b>Warning</b>: gtkpixmap() expects argument 1 to be GdkPixmap, null given in
> > b>C:\php4\dev\gtk.php</b> on line <b>848</b><br />
> > <br />
> > <b>Warning</b>: pack_start() expects argument 1 to be GtkWidget, null given
> > in
> > <b>C:\php4\dev\gtk.php</b> on line <b>852</b><br />
> > <br />
> > <b>Fatal error</b>: Call to a member function on a non-object in
> > <b>C:\php4\de
> > \gtk.php</b> on line <b>854</b><br />
> > C:\php4\dev\gtk.php has been running
> > <br />
> > <b>Warning</b>: pixmap_create_from_xpm() cannot load pixmap in
> > <b>C:\php4\devpm.php</b> on line <b>13</b><br />
> > <br />
> > <b>Warning</b>: gtkpixmap() expects argument 1 to be GdkPixmap, null given in
> > b>C:\php4\dev\xpm.php</b> on line <b>15</b><br />
> > <br />
> > <b>Fatal error</b>: Call to a member function on a non-object in
> > <b>C:\php4\de
> > \xpm.php</b> on line <b>16</b><br />
> > C:\php4\dev\xpm.php has been running
> >
> > ----- Original Message -----
> > From: "Frank M. Kromann" <frank@frontbase.com>
> > To: "Steph" <steph.fox@btinternet.com>
> > Sent: Friday, October 12, 2001 9:24 PM
> > Subject: Re: adding a temporary note to announcement on gtk.php-coder.net
> >
> >
> > Hi Steph,
> >
> > Try this.
> >
> > - Frank
> >
> > > - otherwise we'll be inundated again -
> > >
> > > I still can't get my darn pixmaps to pick up, I've just been through my
> > > entire system deleting any copy of php.exe etc that isn't actually locked up in an archive..
> > > god alone knows what's occurring here... probably the same reason Apache and IE won't work
> > > when I have PHP-GTK running, I think I'm going to have to reinstall everything else cos it
> > > obviously isn't this now.