RE: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Andrew Hill
Doug, Have you tried setting the variables with putenv() ? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Virtuoso Universal Server -Original Message- From: Doug Smith [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Doug Smith
Andrew, I tried adding these lines to my php script... putenv(LD_LIBRARY_PATH=/home/db2inst1/sqqlib/lib); putenv(DB2INSTANCE=db2inst1); // i assume that's the right way to create those statements But... I didn't have any luck with that either :/ ..same error.

[PHP] sucking news out of the usenet

2002-08-08 Thread andy
Hi guys, I am trying to build a usenet gateway which is collecting usenet posts and puts them into a phpbb forum. Same other way around. So I did read an excelent article on that published by Armel Fauveau at: http://www.phpbuilder.com/columns/armel20010427.php3?page=1 (this is where the code

RE: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Dan Vande More
I used this: Some of his info is wrong, or I had problems with, but hey, this worked: * Now we know DB2 works now to test it with PHP and

[PHP] Re: sucking news out of the usenet

2002-08-08 Thread Philip Hallstrom
I'm not on expert on usenet, but I'd recommend reading the RFC that defines the message headers. In particular you're going to need to look at the Message-ID, References, Xref, In-Reply-To, Subject, and Date headers and do what you can to try and sort them out... good luck! -philip On Thu, 8

[PHP] Re: can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Doug Smith
does this look like the ODBC SDK of unixODBC (not that i expect you to know unixODBC) /usr/lib/libboundparam.so.1 /usr/lib/libboundparam.so.1.0.0 /usr/lib/libesoobS.so.1 /usr/lib/libesoobS.so.1.0.0 /usr/lib/libgtrtst.so.1 /usr/lib/libgtrtst.so.1.0.0 /usr/lib/libnn.so.1 /usr/lib/libnn.so.1.0.0

Re: [PHP] sucking news out of the usenet

2002-08-08 Thread Ilia A.
Andy, I've recently written an newsgroup (NNTP) gateway between FUDforum and newsgroup, which allows read/write data sharing between the two. The solution for tracking down the reply to is done via 2 headers X-Reply-To or In-Reply-To or most commonly References headers. There are a number of

[PHP] DynaPic Class funktion

2002-08-08 Thread Sascha Braun
Hello, can somebody explain me, how this class is working and how I can use it? ? //Images Wrapper for thumbs and other stuffs, require GDLib //Riccardo Pasquini, 04/04/2001, v0.1 [EMAIL PROTECTED] class DynaPic { var $m_sPicName; var $m_sFormat; var $m_hPic; var

RE: [PHP] Re: can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Andrew Hill
Doug, It may be - I'm a bit more familiar with iODBC. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Virtuoso Universal Server -Original Message- From: Doug Smith [mailto:[EMAIL PROTECTED]] Sent:

[PHP] File Question

2002-08-08 Thread B i g D o g
I have been looking all over the manual and I have not found anything for __FILE__ does anyone know where I can get more info on its use in PHP? .: B i g D o g :. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Doug Smith
Dan, Thank you for the link unfortunately, even after initally logging in as db2inst1 and then su to root (w/o the dash) and stopping/starting apachectl -- i still had no luck :/ same old error: Warning: SQL error: , SQL state ËtøO@ÈØÿ¿6#A@ in SQLConnect in

Re: [PHP] File Question

2002-08-08 Thread Ray Hunter
I guess my question is does PHP support additional macros like this? .: B i g D o g :. - Original Message - From: B i g D o g [EMAIL PROTECTED] To: PHP GEN [EMAIL PROTECTED] Sent: Thursday, August 08, 2002 2:23 PM Subject: [PHP] File Question I have been looking all over the manual

Re: [PHP] sucking news out of the usenet

2002-08-08 Thread andy
that sound somehow more complicated that I have expected :-( I guess this is a lot of work. May have to skip that for another time. Thanx for your help, andy - http://www.OZforum.info Australia Information Forum Ilia A. [EMAIL PROTECTED] schrieb im Newsbeitrag

[PHP] getting PHP --with-imap to work on OS X? (cross-post)

2002-08-08 Thread Michael Geary
Hi folks, I am trying to get a web-based mail system set up on my OS X machine. I have successfully compiled and installed Apache, Postfix, UW-IMAP, MySQL, and a version of PHP 4.2.2 _without_ imap support. However, it seems that for a web mail client to work, I need to have imap support

Re: [PHP] PHP warning with 4.2

2002-08-08 Thread Nick Oostveen
You should be able to fix this by changing the function DECLARATION for the argument in question to take the variable by reference instead of by value (which is the default). So it should be something like: OCIFetchInto ( $var1, $rvar2, $var3 ) What you are currently doing is specifying at

[PHP] Using ini_set with session.gc_maxlifetime

2002-08-08 Thread Neil Innes
I've got a site on a server where I can't change the php.ini setting for session.gc_maxlifetime, which is set at the default 1440 seconds. My client wants to entend the time to an hour. The only way I am aware of how to do this kind of thing is through ini_set. However, the documentation

[PHP] Asking for help...

2002-08-08 Thread Ashley M. Kirchner
Okay, I give up. I can't figure this out. So, instead of spamming the list with my code, I'll ask for help and those who reply I'll send the code to. The problem is as follows: I'm building a multi page form (called form.php) which 'include's each $step one by one (step1.inc, step2.inc,

RE: [PHP] File Question

2002-08-08 Thread Maxim Maletsky
Ray, __FILE__ is the constant (there's also __LINE__) that is defined right within the file, so its value cannot be modified. Look up here: http://www.php.net/manual/en/language.constants.php Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From:

Re: [PHP] Asking for help...

2002-08-08 Thread Bas Jobsen
Op donderdag 08 augustus 2002 23:22, schreef Ashley M. Kirchner: DELETES another field and resubmits. At this point, that variable was already registered, and deleting the value from the form has no effect. The old value is still there and gets submitted. I need to check

[PHP] $http_host use case

2002-08-08 Thread David D
Hi all, I make 2 sites with 2 domain names that use same scripts, Each has got its html templates in a special dir selected judgging from $HTTP_HOST values. I was wondering me how a web crawler (search engine robot) could refer those pages. Would crawler bring that parameter in order to refer

[PHP] Please help with array_diff()

2002-08-08 Thread Gandalf
Hello! Please have a look at the following sample code and help me out if you can $db = new db_SQL(); $sql = SELECT Name, Email FROM whatever WHERE whatever=whatever; $db-query( $sql ); while ($db-next_record()) { //This is my first array $foo[] = array (name=$db-f(Name),

[PHP] mysql_result

2002-08-08 Thread Sascha Braun
I need some help! I am getting a result out of my link Database an want it to Display the result in two collums like this: +-++ + Result 1+ Result 2 + +-++ +Result 3 + Result 4 +

[PHP] Help with multiple select

2002-08-08 Thread rdkurth
I need to get the data from the table and add it to the multiple select statement below. What I am trying to do is give the user a form to change his pervious selections. Now doing this if there is only one thing selected is easy. but I need a way to select multiple fields. The data in $mins

[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

RE: [PHP] mysql_result

2002-08-08 Thread Maxim Maletsky
??? Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: Sascha Braun [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:18 AM To: PHP Mailingliste Subject: [PHP] mysql_result I need some help! I am

RE: [PHP] Help with multiple select

2002-08-08 Thread Maxim Maletsky
Try: $mins = 2,3,5,6,7; $ret = array_reverse(explode(',', $mins)); // now you have something like: // $ret[2] = 0; // $ret[3] = 1; // // etc, basically string became and array in reversed way... then in script... if(isset($mins[2])) ... if(isset($mins[3])) and so on . but, I

Re[2]: [PHP] Help with multiple select

2002-08-08 Thread rdkurth
Hello Maxim, Is this what you are saying to do. I don't understand way this would work and what I have hear does not work mins=1,4,6,; $ret = array_reverse(explode(',', $mins)); select name=mins[] id=mins size=12 multiple ? if(isset($mins[0])){? option value=0 selected0/option ?}else{? option

[PHP] exec problem

2002-08-08 Thread Li, Xin
Hi, I want to launch a program which writes a file on the server. But the process is under the owner of webuser who doesn't have write permission, and I don't want to set the directory writable to all users. I've searched the doc and tried every way but couldn't find a solution. Anybody knows

RE: Re[2]: [PHP] Help with multiple select

2002-08-08 Thread Maxim Maletsky
Change $mins to $ret in the HTML code. Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:34 AM To: Maxim Maletsky; php-general Subject: Re[2]: [PHP] Help with

Re[4]: [PHP] Help with multiple select

2002-08-08 Thread rdkurth
Hello Maxim, I had done that but when I run it using the numbers 1,3,4 in the $mins variables the fields that where selected where 0 1 and 2. If I change it to $mins=3,5 it select 0 1 . if I use $mins=3,4,6,8,10,22; it select 0 through 5 Thursday, August 08, 2002, 4:46:49 PM, you wrote: MM

[PHP] Matchmaking site

2002-08-08 Thread Oficina Digital
Hello, I am new to the list and don't know how kind you are helping complete beginners in PHP. I intend to set a personals matchmaking site for people interested in entheogens (http://singlemates.yage.net) I don't know where to begin, I have some PHP cookbooks handy and am looking to do it the

RE: Re[4]: [PHP] Help with multiple select

2002-08-08 Thread Maxim Maletsky
Can you give me thefull code (from the point you create 1,2,3 till you compose the whole HTML block)? I will slightly rewrite it for you. Or, simply look well inside the code and learn it well. It is not a tough problem at all - you just got confused by array_reverse() function. Sincerely,

[PHP] FILEMTIME

2002-08-08 Thread Mike Zagorski
Hello, I amusing the following PHP code.. but I want to make it so that it also displays the time in 24 hr mode and the time is +3600 seconds. (1 hour) ? $last_modified = filemtime(about.php); print(Last Updated ); print(date(m/j/Y, $last_modified)); ? How can I do this? Thanks Mike

Re: [PHP] Most portable back button in php

2002-08-08 Thread Justin French
I have this code on one of my sites... it sits inthe config file, so every page is able to establish their URL. For my site, the definition of URL is just the stuff after http://www.domain.com/. $script = $_SERVER['PHP_SELF']; $script = eregi_replace('^/', '', $script); $qs =

Re: [PHP] E-commerce site issue?

2002-08-08 Thread Justin French
on 09/08/02 3:56 AM, The Gabster ([EMAIL PROTECTED]) wrote: Hi all, Using my own server (not through an ISP), how do I go about setting up an e-commerce site? So I can accept credit cards for purchases? Do you want to ACCEPT credit cards (process the purchases manually), or PROCESS

Re: [PHP] Matchmaking site

2002-08-08 Thread Justin French
Unless you have experience in other web based languages (other than HTML), I'd suggest this is a difficult place to start because you'll need: - user registration and management - session management - detailed searching systems - automated matchmaking and emailing systems - image resizing and

[PHP] PHP multipart form data

2002-08-08 Thread Mike Dunlop
hello, i have php 4.2.2 compiled with --enable-ftp running (as a module in apache under red-hat 6.2) and I can not get file uploads through a web page to work!?!? The form variable $userfile (which is the file input name) is returning false; Any ideas how to troubleshoot this? -- PHP

Re: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Matt
It seems way too difficult to configure db2 on linux. Let alone trying to do it on freebsd, which I hope to tackle that next week. I tell you though, I really love mysql, it's so easy to use, and configure. mysql just works. mysql's performance on a table I have that has roughly 250,000 rows of

[PHP] Open 10 http connections in parallel

2002-08-08 Thread NoWhErEMan
Hello, I had to write a script to open 10 http connections for different links and get the response from the host. I do it by fopen each url one by one and save the response to a separated file. But it slow! I wonder if i can open 10 connnect (or more) in parallel? Thanks in advance.

Re: [PHP] DynaPic Class funktion

2002-08-08 Thread Jason Wong
On Friday 09 August 2002 04:13, Sascha Braun wrote: Hello, can somebody explain me, how this class is working and how I can use it? ? //Images Wrapper for thumbs and other stuffs, require GDLib //Riccardo Pasquini, 04/04/2001, v0.1 [EMAIL PROTECTED] Have you tried asking the author?? --

Re: [PHP] Re: [PHP-INST] RH7.3 + PHP-4.2.2 : make install -- [install-sapi] Error 1

2002-08-08 Thread Bob Lockie
- Original Message - From: Bob Lockie [EMAIL PROTECTED] Sent: Thursday, August 08, 2002 2:20 PM Subject: Re: [PHP-INST] RH7.3 + PHP-4.2.2 : make install -- [install-sapi] Error 1 Run 'rm config.cache' and 'make clean' before each compile. What's the method of getting that into the

RE: [PHP] Open 10 http connections in parallel

2002-08-08 Thread Martin Towell
use C and fork() php (AFAIK) can't do parallel programming -Original Message- From: NoWhErEMan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Open 10 http connections in parallel Hello, I had to write a script to open 10 http

Re: [PHP] Please help with array_diff()

2002-08-08 Thread Jason Wong
On Friday 09 August 2002 06:14, Gandalf wrote: $diff = array_diff($foo[0], $bar[0]); What does $foo[0] and $bar[0] contain? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

RE: [PHP] Open 10 http connections in parallel

2002-08-08 Thread Steve Edberg
I've never done this before, but you probably could open these connections via a socket, and set them all non-blocking. Presumably you'd them have to write a loop that polled all connections to check if they'd closed, or time them out after some number of seconds. See

[PHP] Problem with selection

2002-08-08 Thread rdkurth
Could somebody look at this and tell me way it is not selecting the option fields in the $mins variable. I have looking at this all day and can not figure out what is wrong with it. ?php $mins=3,4,6,23,59; $ret=array_reverse(explode(',',$mins)); $td = td valign=topselect name=\mins[]\ id=\mins\

Re: [PHP] Matchmaking site

2002-08-08 Thread Peter J. Schoenster
On 9 Aug 2002 at 0:59, Oficina Digital wrote: Hello, I am new to the list and don't know how kind you are helping complete beginners in PHP. I intend to set a personals matchmaking site for people interested in entheogens (http://singlemates.yage.net) I don't know where to begin, I have

[PHP] RE: Open 10 http connections in parallel

2002-08-08 Thread Philip Hallstrom
What about the PCNTL functions? http://www.php.net/manual/en/ref.pcntl.php I haven't used them, but there's a fork function in there... On Fri, 9 Aug 2002, Martin Towell wrote: use C and fork() php (AFAIK) can't do parallel programming -Original Message- From: NoWhErEMan

[PHP] Re: FILEMTIME

2002-08-08 Thread Lars Olsson
Mike Zagorski wrote: Hello, I amusing the following PHP code.. but I want to make it so that it also displays the time in 24 hr mode and the time is +3600 seconds. (1 hour) ? $last_modified = filemtime(about.php); print(Last Updated ); print(date(m/j/Y, $last_modified)); ? How can

[PHP] Re: PHP multipart form data

2002-08-08 Thread Lars Olsson
Mike Dunlop wrote: hello, i have php 4.2.2 compiled with --enable-ftp running (as a module in apache under red-hat 6.2) and I can not get file uploads through a web page to work!?!? The form variable $userfile (which is the file input name) is returning false; Any ideas how to

[PHP] posting news via php - 535 error

2002-08-08 Thread andy
Hi there, I am trying to write a script which is posting news to a newsserver. Unfortunatelly I do get a 535 error back which is not reported in: http://www.faqs.org/rfcs/rfc977.html Section 3.10.2 Maybe someone of you guys has a clue of an idea what is going wrong. connecting works, so I did