Re: [PHP-DEV] parse_str and session vars]

2002-03-03 Thread Thomas Wentzel
Sure, Rasmus! But... I'm using parse_str because file2 in my example is supposed to be a generic handler for all other scripts on my "site". Offcourse I could use "1.5 million" $HTTP_GET_VARS for each registered session variable (as I wouldn't know what to expect) The reason I did write to this li

Re: [PHP-DEV] parse_str and session vars

2002-03-03 Thread Markus Fischer
On Mon, Mar 04, 2002 at 08:49:09AM +0100, Thomas Wentzel wrote : > file2.php: > session_start(); > $old=$foo; > parse_str($QUERY_STRING); > > Header("Location: file3.php?old=$old&foo=$foo"); > ?> > > file3.php: > session_start(); > echo "foo: $foo"; >

Re: [PHP-DEV] PHP module creation

2002-03-03 Thread Rasmus Lerdorf
Make sure you have: PHP_EXTENSION(exif, $ext_shared) in your config.m4 and then simply do: ./configure --with-foo=shared You will find it in your ./modules directory. -Rasmus On Sun, 3 Mar 2002, Steven J. Sobol wrote: > On 3 Mar 2002, Lars Torben Wilson wrote: > > > On Sun, 2002-03-03 at

Re: [PHP-DEV] parse_str and session vars

2002-03-03 Thread Rasmus Lerdorf
You are posting to the wrong list. And why are you using parse_str()? PHP automatically imports these variables for you. Use $foo=$HTTP_GET_VARS['foo'] in that second script of yours. Next time send your user-level question like this to php-general. -Rasmus On Mon, 4 Mar 2002, Thomas Wentzel

[PHP-DEV] parse_str and session vars

2002-03-03 Thread Thomas Wentzel
Hi, I have encountered an issue with parse_str, that I believe needs to be addressed - allthough I might be mistaken, and in that case feel free to ridicule me - and tell me to go to the general list :) Well... I want to be able to do something like this: file1.php: file2.php:

Re: [PHP-DEV] PHP module creation

2002-03-03 Thread Markus Fischer
On Sun, Mar 03, 2002 at 10:25:14PM -0500, Steven J. Sobol wrote : > I've followed the instructions at http://www.zend.com/apidoc/ > and generated test code for a php extension, and can get it to compile > into a PHP binary, but I'm having difficulty finding the info I need to > get it to compile

Re: [PHP-DEV] php + cygwin - some more

2002-03-03 Thread Marcus Börger
hi, i checked timezone and _timezone works for me if have no idea who can do this but after checking compilation with cygwin i now have *.o files. Maybe this is the problem why it did not compile but nether the less adding this type would be a good idea. Could anyone add *.o to .cvsignore files

[PHP-DEV] makerpm script in source distri

2002-03-03 Thread Arjen Lentz
Hi, (particularly Zak) I sometimes create RPMs from the source distri (any 4.x version), so I can do an easy install on some RH machines. The 'makerpm' script in the root of the source tree does this quite nicely, except it hasn't been changed for a while and therefore has a few probs I needed to

Re: [PHP-DEV] PHP module creation

2002-03-03 Thread Steven J. Sobol
On 3 Mar 2002, Lars Torben Wilson wrote: > On Sun, 2002-03-03 at 17:30, topside wrote: > > Where can I get information/documentation on creating my own PHP modules in > > C? I basicly just want to use some C functions within PHP - so I figure I > > can write a PHP module with functions which use

Re: [PHP-DEV] PHP module creation

2002-03-03 Thread Lars Torben Wilson
On Sun, 2002-03-03 at 17:30, topside wrote: > Where can I get information/documentation on creating my own PHP modules in > C? I basicly just want to use some C functions within PHP - so I figure I > can write a PHP module with functions which use the C functions I need. > > thanks > --topside T

Re: [PHP-DEV] PHP module creation

2002-03-03 Thread Brian Foddy
This is a good place to start... http://www.zend.com/apidoc/ Brian On Sun, 3 Mar 2002 19:30:09 -0600, topside wrote: >st want to use some C functions with -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PHP module creation

2002-03-03 Thread topside
Where can I get information/documentation on creating my own PHP modules in C? I basicly just want to use some C functions within PHP - so I figure I can write a PHP module with functions which use the C functions I need. thanks --topside -- PHP Development Mailing List

Re: [PHP-DEV] php + cygwin - some more

2002-03-03 Thread Marcus Börger
At 19:58 03.03.2002, Stanislav Malyshev wrote: >MB>> datetime.c: In function `php_mktime': >MB>> datetime.c:187: wrong type argument to unary minus >MB>> gmadjust = -(is_dst ? (int)timezone - 3600 : (int)timezone); >MB>> see (int) conversion of timezone -> gmadjust has type int >MB>>

Re: [PHP-DEV] GetImageSize,read_exif_data,Bug #6787,#14994

2002-03-03 Thread Marcus Börger
At 22:04 03.03.2002, Michael Ulbrich wrote: Ah - not off topic Comment on : Tags in TIFF hold analogous data to the JPEG markers, Its just the other way round JPEG APP1 sections contains a TIFF header including IFD0 structure and TIFF6.0 Tags. As i wrote today morgning (my one) i would prefer

[PHP-DEV] linking shared lib in new extension

2002-03-03 Thread Keyser Soze
Hi, I'm developing a new extension for php, and I need to compile it with a shared libin PHP I added the lines in config.m4: PHP_ADD_LIBRARY(mylib,,MYEXT_SHARED_LIBADD) and Makefile.in: MYEXT_SHARED_LIBADD = -lmylib LTLIBRARY_SHARED_LIBADD = $(MYEXT_SHARED_LIBADD) In php it compiles well.

Re: [PHP-DEV] ICONV patch for bug 14423

2002-03-03 Thread Dan Kalowsky
Um yeah, this is the patch I ment to send initially :) If no comments/concerns are heard within 24 hours, you'll find this patch in the cvs. On Sun, 3 Mar 2002, Derick Rethans wrote: > Hello, > > attached is a fixed diff, it works on Linux now (RH 7.1). > > Derick > > On Sun, 3 Mar 2002, Dan Ka

Re[2]: [PHP-DEV] Parsing File Names

2002-03-03 Thread Daniel Lorch
hi, > $handle=opendir('/path/to/files'); > while (false !== ($file = readdir($handle))) { > if (preg_match("/(.*) - (.*).mp3/i", $file, $matches)) { > $artist = $matches[1]; > $song = $matches[2]; > // insert into db > } > } ?>> I'd suggest to write it like t

[PHP-DEV] PHP and VisualStudio.Net revisited

2002-03-03 Thread Sebastian Bergmann
Today I tried to build PHP (current CVS) with the final version of Microsoft's new VisualStudio.Net. Good news first: It works. But there's still something wrong with the strtoll.c file from the bundled libmysql. I do the following: * Open the project * Rebuild * Get

Re: [PHP-DEV] GetImageSize,read_exif_data,Bug #6787,#14994

2002-03-03 Thread Michael Ulbrich
Marcus Boerger wrote: > > Hi Rasmus, > > today i woke up and i think the solution is to have read_exif_data > a third parameter whether or not to return information if no exif is > present. And to support TIFFs with GetImageSize we only need > a small addition of say less than 100 lines c code..

Re: [PHP-DEV] opendir SafeMode Multiuser Problem/Patch

2002-03-03 Thread Chand
At 03:54 PM 3/3/2002 -0500, James E. Flemer wrote: >Well actually, open_basedir is not *supposed* to check >UIDs. However, safe_mode *is*, and it was not for the >opendir() function. So I patched it to do so (in CVS). Also >I noticed that when the CHECKUID_ALLOW_ONLY_DIR flag is >passed to php_che

Re: [PHP-DEV] opendir SafeMode Multiuser Problem/Patch

2002-03-03 Thread James E. Flemer
Well actually, open_basedir is not *supposed* to check UIDs. However, safe_mode *is*, and it was not for the opendir() function. So I patched it to do so (in CVS). Also I noticed that when the CHECKUID_ALLOW_ONLY_DIR flag is passed to php_checkuid(), that it misses the case where you are referring

[PHP-DEV] PHP 4.2 branch

2002-03-03 Thread Derick Rethans
Hello, I just wanted to ask you to commit your pending fixes / functionality as soon as possible. There will be a branch for the PHP 4.2.x series on Wednesday. regards, Derick -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] cursor focus

2002-03-03 Thread Andrew Lindeman
That's actually a javascript kinda thing, really... --Andrew On Saturday 02 March 2002 07:14 pm, Ralph Jarvis wrote: > This is really a newbie question, but here goes. > > I am running PHP4 with Apache on Redhat 6.2. > > I am sure I read this somewheres, but can't find it again. When I open

Re: [PHP-DEV] php + cygwin - some more

2002-03-03 Thread Stanislav Malyshev
MB>> datetime.c: In function `php_mktime': MB>> datetime.c:187: wrong type argument to unary minus MB>> gmadjust = -(is_dst ? (int)timezone - 3600 : (int)timezone); MB>> see (int) conversion of timezone -> gmadjust has type int MB>> MB>> datetime.c: In function `php_date': MB>> datet

[PHP-DEV] Re: Bug #15761 Updated: IMAP-SSL Bug

2002-03-03 Thread Derick Rethans
Hola, we really need an --enable-all :) Derick On 3 Mar 2002 [EMAIL PROTECTED] wrote: > ID: 15761 > Updated by: [EMAIL PROTECTED] > Reported By: [EMAIL PROTECTED] > Status: Feedback > Bug Type: IMAP related > Operating System: RedHat 7.2 > PHP

Re: [PHP-DEV] php + cygwin - some more

2002-03-03 Thread Marcus Boerger
At 15:29 03.03.2002, you wrote: >Ok, seeing that some people indeed do use cygwin to build PHP, here's >report about my achievements: Just checked with new cygwin and it builds, compiles but does not link, seem to be a problem with underscore generation. The cli executable does not find its funct

Re: [PHP-DEV] CVS Account Request: morpehous

2002-03-03 Thread Jan Lehnardt
Hi, On 3 Mar 2002 15:03:00 - "Vildan Hasanbegovic" <[EMAIL PROTECTED]> wrote: > I have a second year student in Science in Software Engineering and writing in PHP on the daily basis. congratualtions ;) and what for do you need a CVS account? Jan -- Q: Thank Jan? A: http://geschenke.an.dasm

Re: [PHP-DEV] ICONV patch for bug 14423

2002-03-03 Thread Derick Rethans
Hello, attached is a fixed diff, it works on Linux now (RH 7.1). Derick On Sun, 3 Mar 2002, Dan Kalowsky wrote: > I need a review bug #14423 (http://bugs.php.net/bug.php?id=14423&edit=1) > > I think I've figured out what is wrong, but unfortunately I cannot do a > buildconf on the machine I'm

Re: [PHP-DEV] GD Shared library confusion

2002-03-03 Thread Rasmus Lerdorf
ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) And no, none of my /usr/lib/*pspell*.la files have -L/usr/lib in their dependency_libs. Lots of other .la files in /usr/lib have that, but not pspell. -Rasmus On Sun, 3 Mar 2002, Jani Taskinen wrote: > > Libtool version? Not all have

[PHP-DEV] Re: GetImageSize,read_exif_data,Bug #6787,#14994

2002-03-03 Thread Rasmus Lerdorf
> today i woke up and i think the solution is to have read_exif_data > a third parameter whether or not to return information if no exif is > present. And to support TIFFs with GetImageSize we only need > a small addition of say less than 100 lines c code... Good to hear you woke up. Not waking

Re: [PHP-DEV] GD Shared library confusion

2002-03-03 Thread Jani Taskinen
Hmm..it depends on so many things. But the bug exists only in some 1.4.x versions (including 1.4). --Jani On Sun, 3 Mar 2002, Markus Fischer wrote: >On Sun, Mar 03, 2002 at 06:37:53PM +0200, Jani Taskinen wrote : >> >> Libtool version? Not all have this problem.. > >$ libto

Re: [PHP-DEV] GD Shared library confusion

2002-03-03 Thread Markus Fischer
On Sun, Mar 03, 2002 at 06:37:53PM +0200, Jani Taskinen wrote : > > Libtool version? Not all have this problem.. $ libtool --version ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) I think I lost discussion point somewhere now .. sorry -- Please always Cc to me when

[PHP-DEV] patches to rfc1687.c

2002-03-03 Thread Jim Segrave
> > I will look later into the patch. But from a first look: > the patch is bullshit. It opens up about 1000 security > vulnerabilities because of double frees. Yes - when I was going over the body of the code, I'd forgotten the definition of SAFE_RETURN, which takes care of the frees. That was

Re: [PHP-DEV] GD Shared library confusion

2002-03-03 Thread Jani Taskinen
Libtool version? Not all have this problem.. --Jani On Sun, 3 Mar 2002, Markus Fischer wrote: >On Sun, Mar 03, 2002 at 06:16:07PM +0200, Jani Taskinen wrote : >> >> As long as the config.m4's use PHP_ADD_LIBRARY_WITH_PATH() >> and the other macros and don't touch LIBS themselv

Re: [PHP-DEV] GD Shared library confusion

2002-03-03 Thread Markus Fischer
On Sun, Mar 03, 2002 at 06:16:07PM +0200, Jani Taskinen wrote : > > As long as the config.m4's use PHP_ADD_LIBRARY_WITH_PATH() > and the other macros and don't touch LIBS themselves, > there won't be any /usr/lib entries in it. > > So, I'd check the .la files. There's propably l

Re: [PHP-DEV] GD Shared library confusion

2002-03-03 Thread Jani Taskinen
As long as the config.m4's use PHP_ADD_LIBRARY_WITH_PATH() and the other macros and don't touch LIBS themselves, there won't be any /usr/lib entries in it. So, I'd check the .la files. There's propably libpspell.la which has -L/usr/lib defined in 'dependency_libs='. And

[PHP-DEV] CVS Account Request: morpehous

2002-03-03 Thread Vildan Hasanbegovic
I have a second year student in Science in Software Engineering and writing in PHP on the daily basis. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] GetImageSize,read_exif_data,Bug #6787,#14994

2002-03-03 Thread Marcus Boerger
Hi Rasmus, today i woke up and i think the solution is to have read_exif_data a third parameter whether or not to return information if no exif is present. And to support TIFFs with GetImageSize we only need a small addition of say less than 100 lines c code... marcus ---

[PHP-DEV] php + cygwin - some more

2002-03-03 Thread Stanislav Malyshev
Ok, seeing that some people indeed do use cygwin to build PHP, here's report about my achievements: After upgrading cygwin to latest version (1.3.10-1) and all tools there (autoconf 2.52, libtool 1.4e) and checking out latest CVS, it builds. Only problems being: 1. line 187 of datetime.c - comp

Re: [PHP-DEV] comparing strings values, etc.

2002-03-03 Thread derick
Hello Tim, you should be writing to the [EMAIL PROTECTED] mailinglist. This list is fro developing PHP, not for developing _with_ PHP. regards, Derick On Sun, 3 Mar 2002, Tim Martens wrote: > Hi - I'm a major newbie. > > - I have a file that pulls an include into a for a user to edit > - be

[PHP-DEV] comparing strings values, etc.

2002-03-03 Thread Tim Martens
Hi - I'm a major newbie. - I have a file that pulls an include into a for a user to edit - before pulling the include, I'd like to open it and check it's value - if the include's value is exactly equal to the string: Hello World then I want to overwrite that string with nothing; close the inc

[PHP-DEV] CVS Account Request: jkachlik

2002-03-03 Thread Jan Kachlik
Study php, help with translations to czech language. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php