Re: [PHP] configure problem?

2002-04-04 Thread Miguel Cruz

On Thu, 4 Apr 2002, Boris Wong wrote:
 got a question on the usage of include:
 
 when i do something like this:
 
 ? include('http://www.myurl.com'); ?
 
 where my php file is located under the same directory structure of
 www.my.url.com, the browse seems keep on loading until it returns a blank
 page. does this mean that php can't include any file located in the same
 directory structure of itself? or is it more like a configuration problem?

Um, does the page at http://www.myurl.com/ by any chance execute that 
include statement? Because then you have an infinite recursion.

I of course can't really figure out what you're talking about because you 
have made up domains like www.myurl.com and www.my.url.com and I don't 
know whether they're different because you weren't paying attention or 
because you meant them to be different. Use real data.

miguel


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




RE: [PHP] configure problem?

2002-04-04 Thread Boris Wong

sorry, my bad. i meant the two urls are the same. they're intranet pages so
giving out real data won't be useful.

Um, does the page at http://www.myurl.com/ by any chance execute that
include statement? Because then you have an infinite recursion.

that's not likely the case.

i also noticed that the 'Virtual Directory Support' is disabled. thought
this could be the root of the problem?

/bw

-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:10 AM
To: Boris Wong
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] configure problem?


On Thu, 4 Apr 2002, Boris Wong wrote:
 got a question on the usage of include:

 when i do something like this:

 ? include('http://www.myurl.com'); ?

 where my php file is located under the same directory structure of
 www.my.url.com, the browse seems keep on loading until it returns a blank
 page. does this mean that php can't include any file located in the same
 directory structure of itself? or is it more like a configuration problem?

Um, does the page at http://www.myurl.com/ by any chance execute that
include statement? Because then you have an infinite recursion.

I of course can't really figure out what you're talking about because you
have made up domains like www.myurl.com and www.my.url.com and I don't
know whether they're different because you weren't paying attention or
because you meant them to be different. Use real data.

miguel


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




RE: [PHP] configure problem?

2002-04-04 Thread Miguel Cruz

On Thu, 4 Apr 2002, Boris Wong wrote:
 sorry, my bad. i meant the two urls are the same. they're intranet pages so
 giving out real data won't be useful.

Yeah, it's not so much that I have any interest in visiting that page, as 
that the process of making stuff up always introduces extra confusion.

 Um, does the page at http://www.myurl.com/ by any chance execute that
 include statement? Because then you have an infinite recursion.
 
 that's not likely the case.

I'd check your server's error log just to be sure. Also, try including
that same address from a test page outside its directory structure, just
to see what happens.

miguel


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




Re: [PHP] configure problem: --with-mysql=/what exactly?

2001-11-20 Thread Arpad Tamas

Hi,
Do you have msyql-dev (or similar) package installed?
Arpi

 I have tried the following, each time removing config.cache
 beforehand:

 --with-mysql=/usr
 --with-mysql=/usr/include
 --with-mysql=/usr/include/mysql
 --with-mysql=/usr/lib

 According to a friend with mysql Debs installed it should be the
 first, yet PHP tells me each time it's using the bundled MySQL
 version and to be careful of running it with other mysql-using
 modules.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] configure problem

2001-11-19 Thread David Robley

On Tue, 20 Nov 2001 01:11, Chip wrote:
 I am setting up a new system for a friend and am getting the following
 error when running ./configure -

 /usr/libexec/elf/ld: cannot find -lgd.
 error code 1

 This machine is a default install of FreeBSD4.4, Apache-1.3.22,
 MySQL-3.23.44 and PHP-4.0.6. I have set this same system up on several
 other machines and have never come across this error.
 What am I missing that is causing this problem?
 --
 Chip W.

It would appear that you don't have gd on that machine, or it is not 
where the config is expecting to find it.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Someone removed all the twos from this deck, Tom deduced.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] configure problem

2001-11-19 Thread Chip

On Monday 19 November 2001 15:54, David Robley wrote:
 On Tue, 20 Nov 2001 01:11, Chip wrote:
  I am setting up a new system for a friend and am getting the following
  error when running ./configure -
 
  /usr/libexec/elf/ld: cannot find -lgd.
  error code 1
 
  This machine is a default install of FreeBSD4.4, Apache-1.3.22,
  MySQL-3.23.44 and PHP-4.0.6. I have set this same system up on several
  other machines and have never come across this error.
  What am I missing that is causing this problem?
  --
  Chip W.

 It would appear that you don't have gd on that machine, or it is not
 where the config is expecting to find it.

Well it's working now, and not because I didn't have gd installed, I did, do. 
I downloaded php-4.0.5 and ran the exact same ./configure line as in 4.0.6 
and it installed just fine, had no problem finding everything. Could there be 
a problem in 4.0.6 I wonder?
--
Chip W.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] configure problem

2001-11-19 Thread David Robley

On Tue, 20 Nov 2001 13:39, Chip wrote:
 On Monday 19 November 2001 15:54, David Robley wrote:
  On Tue, 20 Nov 2001 01:11, Chip wrote:
   I am setting up a new system for a friend and am getting the
   following error when running ./configure -
  
   /usr/libexec/elf/ld: cannot find -lgd.
   error code 1
  
   This machine is a default install of FreeBSD4.4, Apache-1.3.22,
   MySQL-3.23.44 and PHP-4.0.6. I have set this same system up on
   several other machines and have never come across this error.
   What am I missing that is causing this problem?
   --
   Chip W.
 
  It would appear that you don't have gd on that machine, or it is not
  where the config is expecting to find it.

 Well it's working now, and not because I didn't have gd installed, I
 did, do. I downloaded php-4.0.5 and ran the exact same ./configure line
 as in 4.0.6 and it installed just fine, had no problem finding
 everything. Could there be a problem in 4.0.6 I wonder?
 --
 Chip W.

FWIW Rasmus posted this about gd 2.01 and 4.0.6 a while back:

Build gd-2.0.1 with these two lines in your GD2 Makefile:

CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm

Don't install the lib anywhere, just leave them in the gd-2.0.1 directory.

Then build PHP using:

--with-gd=/home/your_dir/gd-2.0.1
--with-freetype-dir=/usr
--enable-gd-native-ttf   (note there was a typo in 4.0.6 on this one)
use: --enable-gd-native-tt  if you are using 4.0.6
--enable-gd-imgstrttf
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-xpm-dir=/usr/X11R6

This assumes that you have freetype2 installed along with the libjpeg and
libpng libs under /usr

-Rasmus

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Dinna wave that axe aboot, Jimmy! said Tom heedlessly.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]