Re: [PHP] SSPI php extension

2012-02-03 Thread Hendrik Schmieder

Curtis Maurand schrieb:

Hendrik Schmieder wrote:
 > Hello,
 >
 > Is there a SSPI php extension ?
 > I only found a perl extension sofar.
 > (http://search.cpan.org/~tomk/Win32-IntAuth-0.20/lib/Win32/IntAuth.pm)
 >
 > I want to make what is written on the above side for the server in php.
 >
 > with best regards
 >
 > Hendrik
 >

>
> Apache has one (mod_auth_sspi)
>

This doesn't help me since the php script isn't executed in the context 
of apache nor IIS.


The function in the php script has two arguments, both string.
The first argument ($username) has the form n...@domain.tld, the second 
is some sort of token .


Now the php function should check if the token is valid and if it is 
also possible to check if the token is for the user given by the first 
argument.


keyword : Windows athentification.

with best regards

   Hendrik



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



[PHP] SSPI php extension

2012-02-02 Thread Hendrik Schmieder

Hello,

Is there a SSPI php extension ?
I only found a perl extension sofar.
(http://search.cpan.org/~tomk/Win32-IntAuth-0.20/lib/Win32/IntAuth.pm)

I want to make what is written on the above side for the server in php.

with best regards

  Hendrik



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



[PHP] reading private properties (print_r)

2007-05-10 Thread Hendrik van Arragon

Hi,
I dislike the output of print_r(), so I desited write my own print_r(). 
I need this funktion for debugging issues, and therfor it is nice to 
have the private attributs, which are normaly hidden.


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



[PHP] Re: Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Patrick Blousson schrieb:
Hi,
What about your hard disk partitions? Sessions only works on NTFS 
partitions. FAT don 't have a last accessed flag on file.

Patrick.
- Original Message - From: "Hendrik Schmieder" 
<[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, October 08, 2004 7:23 AM
Subject: Sessions not destroyed


Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
session.gc_maxlifetime = 120
But even after 20 minutes the session file is still there.
And the session file ist also not deleted  if we then stop the apache 
service.

Has anybody an idea ?
TIA
  Hendrik Schmieder 


NTFS
but you claim about FAT is wrong for PHP >= 4.2.3 :
Since PHP 4.2.3 it has used mtime (modified date) instead of atime. So, 
you won't have problems with filesystems where atime tracking is not 
available.
<http://www.php.net/manual/en/ref.session.php>

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


Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Anyway , if the apache service is stopped (I am not speaking about a 
crash) all session files must be deleted.

Why? Why should users loose their sessions just because I need to 
restart web server?

OK,
good point.
So I redrew the request for deleting, when Apache is stopping ,
but not the other point.
Your php code is a workaround, but no real solution .
 Hendrik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: [PHP-INSTALL] install errors with oci8

2004-10-08 Thread Hendrik Schmieder
Bob Redding schrieb:
Running on Mandrake 10.0, Apache 2 and Oracle Client
Bob Redding
 

Look where you have libclntsh.a or libclntsh.so.
 Hendrik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Graham Cossey schrieb:
[snip]
 

If you are right, then this is a severe design bug.
 

Depends on your point of view. It is a sideeffect of loading current
session (and thus accessing it) before the session gc is called.
So the question is, should the session module give up on current session
just because it should have been garbaged, even if the session file
still exists?
   

Apologies if I'm way off here, but I'm relatively new to PHP.
Surely it should be down to settings in php.ini, not a point of view or the
probability of the garbage collection possibly having run when a new session
is started. Why can there not be a session_timeout value that is adhered to?
Would it not also save everyone from writing their own code to determine
whether or not they should be using the session that PHP is making
available?
If my site is accessed by few users and I have a session 'timeout' of
30minutes specified, if Bob leaves his PC at 10:00 I would expect that if he
returned at 10:40, and no-one else had accessed the system, his session
would have expired and he would need to re-authenticate to create a new
session.
Short of writing custom session handlers, the current arrangement seems
somewhat haphazard to me.
Those are my current thoughts anyway.
Graham
 

Graham,
that's also my point.
Unfortunately this isn't happening.
Bob can work on as he never left his PC.
 Hendrik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100


Should be session.gc_divisor

OK , changed in php.ini, but no change in behaviour.
And you need to start at least one other session so that the first 
one gets cleared.

If you are right, then this is a severe design bug.

Depends on your point of view. It is a sideeffect of loading current 
session (and thus accessing it) before the session gc is called.

So the question is, should the session module give up on current 
session just because it should have been garbaged, even if the session 
file still exists?

That's the point.
If the current sesions timed out, since there was no action in the 
session lifetime, then the session file must be deleted.
On the other side, if there's an action in the session lifetime, the 
timer for this session should be reset to zero.

Anyway , if the apache service is stopped (I am not speaking about a 
crash) all session files must be deleted.

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


Re: [PHP] fopen and http://

2004-10-08 Thread Hendrik Schmieder
Adam Williams schrieb:
Hi, I'm having a problem with fopen and http files.  I keep getting the 
error:

Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) 
[function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 
Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15
http://zed/htdocs/rgfindingaids/series594.html does not exist

But I don't understand why I am getting that error about failed to open 
strem: HTTP request failed, when I can bring up the links fine in a 
browser on the server running the php script.  So can anyone help me out?  
Thanks

 

What say phpinfo about Registered PHP Streams ?
      Hendrik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100

Should be session.gc_divisor
OK , changed in php.ini, but no change in behaviour.
And you need to start at least one other session so that the first one 
gets cleared.
If you are right, then this is a severe design bug.
 with best regards
Hendrik Schmieder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
M. Sokolewicz schrieb:
are you using the default PHP sessions? or are you using a custom 
session handler?

Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
session.gc_maxlifetime = 120
But even after 20 minutes the session file is still there.
And the session file ist also not deleted  if we then stop the apache 
service.

Has anybody an idea ?
TIA
  Hendrik Schmieder

We are using the default php sessions ,
This are all of our session settings;
[Session]
session.save_handler = files
session.save_path = D:\Worksheet-Server\apache\sessiondata
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 100
session.gc_dividend= 100
session.gc_maxlifetime = 120
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
with best regards
  Hendrik Schmieder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Sessions not destroyed

2004-10-08 Thread Hendrik Schmieder
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
session.gc_maxlifetime = 120
But even after 20 minutes the session file is still there.
And the session file ist also not deleted  if we then stop the apache 
service.

Has anybody an idea ?
TIA
  Hendrik Schmieder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] pdf_open_pdi_page

2004-10-08 Thread Hendrik Schmieder
Matt M. schrieb:
I was on that page.
There's nothing which comes close to your  assumption.
   

sorry, wrong link you dont need PDFlib+PDI.  Is that the license that you have?
here is an assumption.  I assumed you would read the pdflib manual, did you see?
Note All functions described in this section require PDFlib+PDI. The
PDF import library (PDI) is not contained in PDFlib or PDFlib Lite.
Although PDI is integrated in all precompiled editions of PDFlib, a
license key for PDI (or PPS, which includes PDI) is required.
 

I only  have read the php manual at
<http://www.php.net/manual/en/ref.pdf.php>..
This states that you only need a licence for commercial use.
I thought, that this only a legal point.
At the moment, I  try to investigate wheter I can do with pdflib what I
wanted to do with pdfs.
At least any documented function in the php manaul should work witout
any licence,
otherwise they shouldn't be described.
with best regards
 Hendrik Schmieder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Hendrik Schmieder
Matt M. schrieb:
Do you have a source for your assumption ?
   

to use pdi you need PDFlib Personalization Server (PPS)
http://www.pdflib.com/products/pdflib/pps.html
 

I was on that page.
There's nothing which comes close to your  assumption.
with best regards
 Hendrik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Hendrik Schmieder
Matt M. schrieb:
*Fatal error*: PDFlib error: [2016] PDF_open_pdi: PDF import (PDI) not
supported in this configuration in
*d:\worksheet-server\wss\html\pdf\test2.php* on line *7*
   

I could be wrong but I think you need a special license for this functionality.
 

Do you have a source for your assumption ?
 Hendrik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] pdf_open_pdi_page

2004-10-06 Thread Hendrik Schmieder
Hello,
when I try to execute the php script below
I get the following error message
*Fatal error*: PDFlib error: [2016] PDF_open_pdi: PDF import (PDI) not 
supported in this configuration in 
*d:\worksheet-server\wss\html\pdf\test2.php* on line *7*

I'm using Apache 1.3.31 with php 4.3.8 on Windows 2000 .
The line
extension=php_pdf.dll
is uncommented in php.ini
phpinfo shows
PDF Supportenabled
PDFlib GmbH Version  5.0.3
Revision$Revision: 1.112.2.9 $
What am I missing ?
Here is the script :

$pdf = pdf_new();
if (pdf_open_file($pdf))
{
   $pdi = pdf_open_pdi($pdf, 'pdf/pdftest.pdf', "", 0);
   $page = pdf_open_pdi_page($pdf, $pdi, 1, "");
   $page = pdf_open_pdi_page($pdf, $pdi, 1, "");
   $width = pdf_get_pdi_value($pdf, "width", $pdi, $page, 0);
   $height = pdf_get_pdi_value($pdf, "height", $pdi, $page, 0);
   pdf_begin_page($pdf, $width, $height);
   pdf_place_pdi_page($pdf, $page, 0.0, 0.0, 1.0, 1.0);
   $font = pdf_findfont($pdf, "Courier", "host", 0);
   pdf_setfont($pdf, $font, 20);
   pdf_show_xy($pdf, "Second page", 200, 350);
   pdf_close_pdi_page($pdf, $page);
   pdf_end_page($pdf);
   pdf_close($pdf);
   $data = pdf_get_buffer($pdf);
   $fp = fopen ('pdftest.pdf', 'wb');
   fwrite ($fp, $data);
   fclose ($fp);
}
else echo "pdf_open_file failed \n";
?>
with best regards
 Hendrik Schmieder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] exec different result from command line

2003-03-31 Thread Jan-Hendrik
Hi folks !

I've got a strage problem I don't know how to solve:

I am calling ImageMagick's identify. If I do that via command line, I get a
textline as result with all images. If I do the same with exec or passthru,
I only get results with certain image-types.

Does anyone have any idea of what the problem could be ?

thanks !



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



Re: [PHP] newbee

2003-01-09 Thread Hendrik van Niekerk
Prolem solved. Thanks to all those that assisted me.

Hendrik

"Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
004c01c2b813$33f181b0$bdcaa8c0@jg42000">news:004c01c2b813$33f181b0$bdcaa8c0@jg42000...
> Without seeing some code I would guess that it is register globals issue.
> It falls into the same explanation as the previous problem.  You can fix
> this in one of two ways.
> 1) use the super globals
> instead of $typeqty use $_POST['typeqty'] or $_GET['typeqty'] depending on
> how it is passed.
> 2) turn register globals on in the php.ini file.
>
> - Original Message -
> From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 09, 2003 11:58 AM
> Subject: Re: [PHP] newbee
>
>
> > Joseph
> >
> > I can get the errors to go away but then my example just shows a blank
> page!
> > The variable are not being passed through to the .php doc
> >
> > hendrik
> >
> > "Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
> > 003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000...
> > > This is because of the default error reporting setting in the newer
> > version
> > > of php.  This was not the case when your book was written.
> > > In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you
> will
> > > quit getting the 'Undefined Variable' notices.
> > > - Original Message -
> > > From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, January 09, 2003 10:50 AM
> > > Subject: [PHP] newbee
> > >
> > >
> > > > Hi
> > > >
> > > > I'm very new to PHP. (have just bought the book "PHP and MySQL Web
> > > > Deelopment") SAMS authors Luke Welling and Laura Thompson
> > > >
> > > > I working with the examples in the book.
> > > >
> > > > I have loaded MySQL, Apache and PHP onto a NT server. All the test
> > passed
> > > as
> > > > per the examples in the book.
> > > >
> > > > Working with the the first example in chapter one.
> > > >
> > > > I have the HTML document that when the quantities are entered the
> > > > "processorder.php" should be called to show the results and do some
> > calcs.
> > > >
> > > > what happens is that the php file is called but I get an error
> message:
> > > >
> > > > "Warning: Undefined variable typeqty in C:\apache
> > > > group\apache\htdocs\processorder.php on line 23"
> > > >
> > > > this varialbe is defined in the html document exactly as in the php
> > > > document.
> > > >
> > > > now this warning is repeated for all the variables that should have
> been
> > > > passed to the php for processing.
> > > >
> > > > What am I missing ?
> > > >
> > > >
> > > > thank you in advance
> > > >
> > > >
> > > > Hendrik van Niekerk
> > > >
> > > >
> > > >
> > > > --
> > > > 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] newbee

2003-01-09 Thread Hendrik van Niekerk
Joseph

I can get the errors to go away but then my example just shows a blank page!
The variable are not being passed through to the .php doc

hendrik

"Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
003201c2b803$ada54f60$bdcaa8c0@jg42000">news:003201c2b803$ada54f60$bdcaa8c0@jg42000...
> This is because of the default error reporting setting in the newer
version
> of php.  This was not the case when your book was written.
> In your php.ini file set error reporting = E_ALL & ~E_NOTICE and you will
> quit getting the 'Undefined Variable' notices.
> - Original Message -
> From: "Hendrik van Niekerk" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 09, 2003 10:50 AM
> Subject: [PHP] newbee
>
>
> > Hi
> >
> > I'm very new to PHP. (have just bought the book "PHP and MySQL Web
> > Deelopment") SAMS authors Luke Welling and Laura Thompson
> >
> > I working with the examples in the book.
> >
> > I have loaded MySQL, Apache and PHP onto a NT server. All the test
passed
> as
> > per the examples in the book.
> >
> > Working with the the first example in chapter one.
> >
> > I have the HTML document that when the quantities are entered the
> > "processorder.php" should be called to show the results and do some
calcs.
> >
> > what happens is that the php file is called but I get an error message:
> >
> > "Warning: Undefined variable typeqty in C:\apache
> > group\apache\htdocs\processorder.php on line 23"
> >
> > this varialbe is defined in the html document exactly as in the php
> > document.
> >
> > now this warning is repeated for all the variables that should have been
> > passed to the php for processing.
> >
> > What am I missing ?
> >
> >
> > thank you in advance
> >
> >
> > Hendrik van Niekerk
> >
> >
> >
> > --
> > 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] Newbee observation

2003-01-09 Thread Hendrik van Niekerk
Why does the webmaster not reject messages that are dates > today's date eq
there are numerous messages that have dates with year 2010 and up. A moron
who does not have the correct computer date on his machine should pack it up
and send it back to the company that sold it to them.

JMHO




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




[PHP] newbee

2003-01-09 Thread Hendrik van Niekerk
Hi

I'm very new to PHP. (have just bought the book "PHP and MySQL Web
Deelopment") SAMS authors Luke Welling and Laura Thompson

I working with the examples in the book.

I have loaded MySQL, Apache and PHP onto a NT server. All the test passed as
per the examples in the book.

Working with the the first example in chapter one.

I have the HTML document that when the quantities are entered the
"processorder.php" should be called to show the results and do some calcs.

what happens is that the php file is called but I get an error message:

"Warning: Undefined variable typeqty in C:\apache
group\apache\htdocs\processorder.php on line 23"

this varialbe is defined in the html document exactly as in the php
document.

now this warning is repeated for all the variables that should have been
passed to the php for processing.

What am I missing ?


thank you in advance


Hendrik van Niekerk



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




Re: [PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Hendrik Daldrup

Yes,

the basic settings are, but some modules differ.

Regards,
Hendrik

Jason Wong wrote:

>On Wednesday 09 October 2002 03:14, Hendrik Daldrup wrote:
>  
>
>>Hi,
>>
>>i recently had a problem with a script on a server, which uses php 4.2.3.
>>I couldn't find the problem and so installed it on a different server
>>and it worked right away.
>>Only difference on that server was: php 4.2.2.
>>
>>
>
>Are the php.ini the same?
>
>  
>




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




[PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Hendrik Daldrup

Hi,

i recently had a problem with a script on a server, which uses php 4.2.3.
I couldn't find the problem and so installed it on a different server 
and it worked right away.
Only difference on that server was: php 4.2.2.

I checked some sites and it seems there are some issues with postnuke, 
xoops and several other scripts with php 4.2.3.

Is this a known bug, or is it s.th. like the register_globals thing, 
where you either need to update the script or set it to "On" in php.ini?

Regards,
Hendrik


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




[PHP] php code in templates... how to?

2002-10-03 Thread Hendrik Daldrup

Hi,

i am working with templates, which i put into a string ($user_screen) 
and in the end i make the output with

echo $user_screen;

where $user_screen would contain the template file data.
However, if the $user_screen contains any php code it gets echo'ed as 
well, instead of parsed.
(ok, that sounds logical),
but is there a way i can make php parse the php code within this string?

i thought, that maybe "include" would work that way, but its not 
possible to include a string, is it?

thx

Hendrik




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




[PHP] shell_exec "root" question

2002-08-08 Thread Hendrik Daldrup

Hi,

i wrote a script, which runs

echo shell_exec("exim -bp");

so it simply gives me the current mail queue.
However, it only works when called by user "root", because exim won't 
let "group" or "others" execute it.
So, i cannot use it with apache, because it runs as "nobody".
Well, i saw scripts that can do so, but i have no clue how it is 
possible for them.
Does anyone have an idea?
I thought about adding a cron-job and let it update a file every 5 
minutes with the current mail queue, but that will cause unnecesary load 
and it won't be up2date.

So, any ideas are welcome,

Thanks,

Duncan


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




[PHP] Re:Re:Re:[PHP] compile php with GD2

2002-03-03 Thread Hendrik

hm,
well i allready tried it, but it didnt work, so i chose to add it as a module.
...but the problem is, that i cannot "make" php. I allways get this error:

php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.1.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.1.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.1.2/ext'
make: *** [all-recursive] Error 1


...and i have no idea how to solve it!
Any help more than welcome...

Regards,

Duncan 


In article <001001c1c15f$22473370$0100a8c0@red5>, php-general@ring-
wraith.com says...

> hi again,
> 
> well sorry about that, it worked when i changed it to:
> 
> ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-curl 
>--with-swf=/usr/local/flash

 --enable-ftp --with-gd=/usr --with-jpeg-dir=/usr/local --with-xpm-
dir=/usr/X11R6 --with-png-dir=/usr --with-imap --with-ming=/usr/src/ming-
0.2a --enable-magic-quotes --with-mysql --enable-safe-mode --enable-
track-vars --with-ttf --enable-versioning --with-zlib

> 
> ...however, now i ran into another problem: Ming!
> The source is located /usr/src/ming-0.2a
> and the installed files are located:
> /usr/lib
> /usr/include
> 
> but neither of these 3 is accepted in the configure line.
> Or can i just leave it in the configure line and then just add the php_ming.so file, 
>copy it into the extension dir and add it to php.ini file?
> 
> Regards,
> 
> Duncan
> 

Um, lateral thinking here? The same solution that worked for GD should 
work for Ming. In other words, 

--with-ming=/usr

and configure will look under /usr for the lib and include.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

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









Re: Re: [PHP] compile php with GD2

2002-03-01 Thread Hendrik

hi again,

well sorry about that, it worked when i changed it to:

./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-curl 
--with-swf=/usr/local/flash --enable-ftp --with-gd=/usr --with-jpeg-dir=/usr/local 
--with-xpm-dir=/usr/X11R6 --with-png-dir=/usr --with-imap 
--with-ming=/usr/src/ming-0.2a --enable-magic-quotes --with-mysql --enable-safe-mode 
--enable-track-vars --with-ttf --enable-versioning --with-zlib

...however, now i ran into another problem: Ming!
The source is located /usr/src/ming-0.2a
and the installed files are located:
/usr/lib
/usr/include

but neither of these 3 is accepted in the configure line.
Or can i just leave it in the configure line and then just add the php_ming.so file, 
copy it into the extension dir and add it to php.ini file?

Regards,

Duncan






[PHP] compile php with GD2

2002-03-01 Thread Hendrik

hi there,

i tried to compile php with GD2 support and the following configure line:

./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-curl 
--with-swf=/usr/local/flash --enable-ftp --with-gd=/usr/lib --with-jpeg-dir=/usr/local 
--with-xpm-dir=/usr/X11R6 --with-png-dir=/usr --with-imap --with-ming 
--enable-magic-quotes --with-mysql --enable-safe-mode --enable-track-vars --with-ttf 
--enable-versioning --with-zlib




...but i allways get the following error:



checking whether to include include FreeType 1.x support... yes
checking whether to include T1lib support... no
configure: error: Unable to find libgd.(a|so) anywhere under yes




Problem is, that the libgd.a file IS located in /usr/lib, as set in --with-gd, but it 
doesnt matter how i edit the line, i allways get this error.

Does anyone have an idea, what i could try to get it compiled?



Regards,



Duncan




[PHP] Re: PHP commands and HTML combobox

2002-02-01 Thread Hendrik Mans


"Eduardo Melo" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 
>Option 01
>Option 02
>Option 03
> 

Use:

  yy

xx is what will end up in your GET (or POST) parameters and ultimately in
$combo, while yy is what will be displayed in your  control.

Take care,
Hendrik




-- 
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] ReFilling mySQL Database with CSV file!!

2002-02-01 Thread Hendrik Mans


"Thomas Edison Jr." <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 2. Structure and data

This is the one you want. It's not CSV (comma separated values), but rather
the complete SQL code used to build your entire database. You'll be able to
import this into your new phpMyAdmin, or just pipe it into the mysql command
line client (assuming you have access to that).

Take care,
Hendrik




-- 
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]