Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher

ok, I changed all the paths to include:
( http://www.host.com/directory/sub-directory ) before the /maps2/map1.jpg
call.  It still falls apart, but... if I shorten the path I can get to the
image.  I am beginning to think there is a weakness in the file structure on
my site.  Anyone else see anything like this?
Hugh
- Original Message -
From: "hugh danaher" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 9:41 PM
Subject: Re: [PHP] Re: die! die! directory!


> ok, I'll buy that, but.  Now, in a strictly php page that is also
> failing intermittently I have the following:
>
> $im_size = GetImageSize("./maps/$map");
>
> Same basic HTML problem?
>
> I'll change everything to be relative to http:// and see if that helps.
>
> - Original Message -
> From: "Larry Jeannette" <[EMAIL PROTECTED]>
> To: "'hugh danaher'" <[EMAIL PROTECTED]>
> Sent: Friday, February 08, 2002 7:49 PM
> Subject: RE: [PHP] Re: die! die! directory!
>
>
> > This is a standard HTML question, not a PHP question.
> >
> > If you do not include http:// or a / in front of the src value then it
> > is taken as relative to the documents directory - ie: if the document is
> > at the location http://www.someplace.com/somedir and src=map1.jpg then
> > the browswer will look for the image at
> > http://www.someplace.com/somedir/map1.jpg, if src=/map1.jpg then the
> > browser will look for it http://www.someplace.com/map1.jpg (the / tells
> > it to start from the web sites root, or top level, directory).
> >
> > LRJ
> >
> > -Original Message-
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 08, 2002 5:35 PM
> > To: php
> > Subject: [PHP] Re: die! die! directory!
> >
> >
> > Phil, Thanks for the suggestion.  I tried it and it worked the first
> > time, but as I changed to a second directory ./maps2/ it fell apart
> > again.
> >
> > Also, what I didn't state at the start, was that map1.jpg is actually a
> > variable, $map.  It's just that when I was pounding on it, I settled on
> > using hard names instead of variables figuring that I was at least
> > limiting the source for error.  The problem is the same though, it seems
> > to work then dies.  Not my machine either, I ftp the file to olm and see
> > the results on line.
> >
> > Thanks for your help.  If you have any other suggestions, please let me
> > know. Hugh
> >
> >
> >
> > - Original Message -
> > From: "Philip Hallstrom" <[EMAIL PROTECTED]>
> > To: "hugh danaher" <[EMAIL PROTECTED]>
> > Sent: Friday, February 08, 2002 5:05 PM
> > Subject: Re: die! die! directory!
> >
> >
> > > what if you do this:
> > >
> > > print "";
> > >
> > > ??
> > >
> > > On Fri, 8 Feb 2002, hugh danaher wrote:
> > >
> > > > Help!
> > > >
> > > > I've been beating on a problem all day and think I've isolated the
> > problem to the following line:
> > > >
> > > >print "";
> > > >
> > > > If I call the statement as is, I get a little red x where my map
> > > > should
> > be.  In earlier calls to the same directory, I can get a server error,
> > misconfiguration...
> > > >
> > > > if I change the line to:
> > > >
> > > >print "";
> > > >
> > > > I see the image.
> > > >
> > > > is there a way to declare the path before asking for the file, or a
> > better way to state the file location.
> > > >
> > > > Any help will be greatly appreciated.
> > > >
> > > > Hugh
> > > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher

Thanks Jason, I'll give it a try too.
Hugh
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 9:20 PM
Subject: Re: [PHP] Re: die! die! directory!


> On Saturday 09 February 2002 09:35, hugh danaher wrote:
> > Phil, Thanks for the suggestion.  I tried it and it worked the first
time,
> > but as I changed to a second directory ./maps2/ it fell apart again.
> >
> > Also, what I didn't state at the start, was that map1.jpg is actually a
> > variable, $map.  It's just that when I was pounding on it, I settled on
> > using hard names instead of variables figuring that I was at least
limiting
> > the source for error.  The problem is the same though, it seems to work
> > then dies.  Not my machine either, I ftp the file to olm and see the
> > results on line.
> >
>
> Instead of using "./maps2/" why don't you just use "maps2/" ?
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>
> /*
> If it ain't broke, don't fix it.
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher

ok, I'll buy that, but.  Now, in a strictly php page that is also
failing intermittently I have the following:

$im_size = GetImageSize("./maps/$map");

Same basic HTML problem?

I'll change everything to be relative to http:// and see if that helps.

- Original Message -
From: "Larry Jeannette" <[EMAIL PROTECTED]>
To: "'hugh danaher'" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 7:49 PM
Subject: RE: [PHP] Re: die! die! directory!


> This is a standard HTML question, not a PHP question.
>
> If you do not include http:// or a / in front of the src value then it
> is taken as relative to the documents directory - ie: if the document is
> at the location http://www.someplace.com/somedir and src=map1.jpg then
> the browswer will look for the image at
> http://www.someplace.com/somedir/map1.jpg, if src=/map1.jpg then the
> browser will look for it http://www.someplace.com/map1.jpg (the / tells
> it to start from the web sites root, or top level, directory).
>
> LRJ
>
> -Original Message-
> From: hugh danaher [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 5:35 PM
> To: php
> Subject: [PHP] Re: die! die! directory!
>
>
> Phil, Thanks for the suggestion.  I tried it and it worked the first
> time, but as I changed to a second directory ./maps2/ it fell apart
> again.
>
> Also, what I didn't state at the start, was that map1.jpg is actually a
> variable, $map.  It's just that when I was pounding on it, I settled on
> using hard names instead of variables figuring that I was at least
> limiting the source for error.  The problem is the same though, it seems
> to work then dies.  Not my machine either, I ftp the file to olm and see
> the results on line.
>
> Thanks for your help.  If you have any other suggestions, please let me
> know. Hugh
>
>
>
> - Original Message -
> From: "Philip Hallstrom" <[EMAIL PROTECTED]>
> To: "hugh danaher" <[EMAIL PROTECTED]>
> Sent: Friday, February 08, 2002 5:05 PM
> Subject: Re: die! die! directory!
>
>
> > what if you do this:
> >
> > print "";
> >
> > ??
> >
> > On Fri, 8 Feb 2002, hugh danaher wrote:
> >
> > > Help!
> > >
> > > I've been beating on a problem all day and think I've isolated the
> problem to the following line:
> > >
> > >print "";
> > >
> > > If I call the statement as is, I get a little red x where my map
> > > should
> be.  In earlier calls to the same directory, I can get a server error,
> misconfiguration...
> > >
> > > if I change the line to:
> > >
> > >print "";
> > >
> > > I see the image.
> > >
> > > is there a way to declare the path before asking for the file, or a
> better way to state the file location.
> > >
> > > Any help will be greatly appreciated.
> > >
> > > Hugh
> > >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: die! die! directory!

2002-02-08 Thread Jason Wong

On Saturday 09 February 2002 09:35, hugh danaher wrote:
> Phil, Thanks for the suggestion.  I tried it and it worked the first time,
> but as I changed to a second directory ./maps2/ it fell apart again.
>
> Also, what I didn't state at the start, was that map1.jpg is actually a
> variable, $map.  It's just that when I was pounding on it, I settled on
> using hard names instead of variables figuring that I was at least limiting
> the source for error.  The problem is the same though, it seems to work
> then dies.  Not my machine either, I ftp the file to olm and see the
> results on line.
>

Instead of using "./maps2/" why don't you just use "maps2/" ?


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
If it ain't broke, don't fix it.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php