Re: [PHP] Alternatives for Meta Refresh

2002-12-31 Thread Timothy Hitchens \(HiTCHO\)
Let me give you a direction with this one. You can use a http/1.1 stream and keep flushing the buffer with an script timeout set to 0. Simply open the page then just add something to the buffer and flush and then wait a little while then flush... just like a database would do. I do have a workin

Re: [PHP] Alternatives for Meta Refresh

2002-12-31 Thread Justin French
on 31/12/02 2:48 AM, Stephen ([EMAIL PROTECTED]) wrote: > I'm writing a PHP chat script and I'm rather stumped on this. I either want > the chat window to refresh when there's a new message or refresh every few > seconds but not with meta refresh, rather something with less noise (the > infamous I

Re: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Justin French
on 31/12/02 5:54 PM, electroteque ([EMAIL PROTECTED]) wrote: > hi i've just started a job and they are sadly using php3 , what is the work > around for the session handling limitation ? i have an authentication class > which will not work now beause it cant handles sessions :| I don't think ther

Re[2]: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 4:01:35 PM, you wrote: DR> oh have you got an example proper usage of it ? i had it working then DR> suddenly i didnt :| DR> -Original Message- DR> From: Tom Rogers [mailto:[EMAIL PROTECTED]] DR> Sent: Tuesday, December 31, 2002 7:57 PM DR> To: electroteque

RE: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Dan Rossi
oh have you got an example proper usage of it ? i had it working then suddenly i didnt :| -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 31, 2002 7:57 PM To: electroteque Cc: [EMAIL PROTECTED] Subject: Re: [PHP] RE: PHP3 + session handling limitation

RE: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Dan Rossi
yes sorry to be vague i've started to try and implement this , but is tedious to get going, plus it has the pear db like functions so upgrading shouldnt be a problem then when it comes round to it -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 31, 20

Re: [PHP] makeing an array

2002-12-31 Thread Timothy Hitchens \(HiTCHO\)
Use the count like following inside to ensure that you don't call on a non existent index. for ($i = 0, $x = count($comment); $i < $x; $i++) { echo $comment[$i].''; } Why do you want to echo out $comment_1 ??? Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO | Open Platform Web Develop

Re: [PHP] makeing an array

2002-12-31 Thread Philip J. Newman
So in saything that I could do this ... $s = 10 $comment[1] = '$comment_1'; $comment[2] = '$comment_2'; $comment[3] = '$comment_2'; for($i = 0; $i <= $s; $i++) { echo $comment[$i].""; } - Original Message - From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]> To: "Philip J. Ne

Re[2]: [PHP] Serializing a DOM object

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 5:28:43 AM, you wrote: >> Try encoding like this: >> $retval = base64_encode(serialize( domxml_open_mem( $xml ))); >> and on the next page: >> $xml = unserialize(base64_decode($xml)); >> It works via html but don't know enough about soap BC> Well, you don't have to

Re: [PHP] makeing an array

2002-12-31 Thread Timothy Hitchens \(HiTCHO\)
Example of an Array: $my_first_array = array(1 => 'first', 2 => 'second', 3 => 'third'); You can now access these like so: echo $my_first_array[1]; etc etc of if you had this: $my_first_array = array('first_name' => 'Philip', 'last_name' => 'Newman'); You could do this: echo $my_first_arra

php-general Digest 1 Jan 2003 04:58:08 -0000 Issue 1796

2002-12-31 Thread php-general-digest-help
php-general Digest 1 Jan 2003 04:58:08 - Issue 1796 Topics (messages 129780 through 129823): Re: Repeats of values 129780 by: Andrew Brampton 129782 by: Tom Rogers 129783 by: Thomas Seifert MySQL Join 129781 by: John Hinton 129811 by: Jason Wong Re:

[PHP] makeing an array

2002-12-31 Thread Philip J. Newman
Can someone help me make an array ... I have $foo amount of loops to preform (1-20), and would like to make the veriable work for me like $comment_1, $comment_2 etc etc. http://nz.php.net/manual/en/function.array.php makes no sence to me after i read it and read it ... help me please --- Philip

RE: [PHP] use included GD of external

2002-12-31 Thread Richard Pijnenburg
Yeah, I want to install 4.3.0 And I only want to use GD with php. But isn't it so that the external GD version is "more advanced" then the internal? I've got this from the GD site: php 4.3.0 is available, and it includes a version of gd as "standard equipment." I have only taken a brief prelimin

Re: [PHP] use included GD of external

2002-12-31 Thread Rick Widmer
At 03:13 AM 1/1/03 +0100, Richard Pijnenburg wrote: Hi list, What is better to use? The included GD library or the external ( Boutell.com ) GD library? Unless you have to use the external library because other things are sharing it, just use the GD that comes with PHP. We are talking about 4.

[PHP] PHP 4.3.0 (Win32, zip) not bundled with PEAR?

2002-12-31 Thread Tobias Schlitt
Hi PHP-lovers! Happy new year! I just downloaded the PHP 4.3.0 binaries (Win32, zip) and saw, that no PEAR related stuff is included... is that right or is there a mistake in it? I thought, PEAR would be integral part of PHP since some versions... Regards! Toby -- -- PHP General Mailing Li

Re: [PHP] Re: loading a db table into a php array from mysql

2002-12-31 Thread Rick Widmer
At 02:57 PM 12/31/02 -0500, David T-G wrote: ...and then Tularis said... % % Usually, % using mysql to handle your tables is *way* faster than letting php % handle it. Yes, do as much as you can in the database. The people who wrote it spent a lot of time trying to optimize it. % % In your

Re: [PHP] Php 4.3.0 and Mail() function

2002-12-31 Thread Rick Widmer
At 10:11 AM 12/31/02 -0500, Carl Bélanger wrote: I just upgraded to php 4.3.0 and all by bulletin board are now returning error about the mail function: Fatal error: Call to undefined function: mail() in /var/wwwx/htdocs/forum/private.php on line 687 What could be missing? ./configure looks

[PHP] use included GD of external

2002-12-31 Thread Richard Pijnenburg
Hi list, What is better to use? The included GD library or the external ( Boutell.com ) GD library? On the Boutell.com site I found that the included GD version is alike to 2.0.2 from their site. But sins 2.0.9 is out, I would like to know witch version to use. Thanks in advance, and a happy

RE: [PHP] Running PHP on Windows OS

2002-12-31 Thread David Freeman
> So, there is something in the new security of XP and Win 2K > SP 3 that > does not let the dll load and run. Ever since I loaded SP 3 > I have had > problems - like many others! Don't know about Win2k as I haven't tried it but Apache/PHP/MySQL is working perfectly well on my Win XP laptop

[PHP] HTTP_IF_MODIFIED_SINCE

2002-12-31 Thread Ian M. Evans
Are there any settings I need to change in order to get the HTTP_IF_MODIFIED_SINCE variable set when applicable? I saw some threads on google about session_cache_limiter() but even after following that, I still don't get access to the HTTP_IF_MODIFIED_SINCE variable when revisiting a page with the

[PHP] Running PHP on Windows OS

2002-12-31 Thread Todd Cary
After wasting a day on trying to get Apache to load PHP, I discovered what I believe to be the probllem, but no solution: M$!!! I have another box that has Win 2K running on it *AND* it does not have SP 3! Apache loads like a dream and so does PHP So, there is something in the new securit

RE: [PHP] receiving XML stream as server via PHP

2002-12-31 Thread Boget, Chris
> Using PHP with cURL, I am currently able to dynamically > create XML documents and HTTP POST to a remote server, > receive an XML response, and parse XML as needed. > What I am having trouble finding information on is doing > the reverse. Basically, I am trying to create a PHP script > that a

Re: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2002-12-31 Thread Jason Wong
On Wednesday 01 January 2003 06:30, [EMAIL PROTECTED] wrote: > I was hoping for better news. Thanks for the suggestion, but it will put a > very big strain on my application since every DELETE query will open and > close the mysql connection everytime. Think about deleting 100s of records > one at

Re: [PHP] MySQL Join

2002-12-31 Thread Jason Wong
On Wednesday 01 January 2003 00:21, John Hinton wrote: > Stuck on this join temp > > From one table I need to > > mysql_query("CREATE TEMPORARY TABLE temp TYPE=HEAP SELECT DISTINCT > field1, field2 FROM $table"); > > both field1 and field2 have various repeating data and I need to return > only th

Re: [PHP] mail()

2002-12-31 Thread Jason Wong
On Tuesday 31 December 2002 22:05, Edward Peloke wrote: > Hello all, > > For some reason, I have one computer running php that I can't get the mail > function to work on. I get this error: Warning: Failed to Receive in > c:\program files\apache group\apache\htdocs\mailtest.php on line 2 > > The ma

Re: [PHP] receiving XML stream as server via PHP

2002-12-31 Thread Timothy Hitchens \(HiTCHO\)
You can post to your server with a mimetype of "text/xml" and in your script pickup the raw post as: $HTTP_RAW_POST_DATA Then just process this string as XML and return to buffer or not. Have fun. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO | Open Platform Web Development Consutling -

RE: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2002-12-31 Thread @ Nilaab
I was hoping for better news. Thanks for the suggestion, but it will put a very big strain on my application since every DELETE query will open and close the mysql connection everytime. Think about deleting 100s of records one at a time. Surely someone has thought of a better way to do this with My

[PHP] Missing logos

2002-12-31 Thread Richard A Downing
I have just installed 4.3.0 with apache-2.0.43. I did not have this problem with 4.3.0RC4 which this build overwrote. My system is Linux-2.4.21pre1, gcc-3.2.1, glibc-2.3.1. Running a standard test.php file consisting solely of: results in incorrect html with the image sources of the php and zen

Re: [PHP] receiving XML stream as server via PHP

2002-12-31 Thread Timothy Hitchens \(HiTCHO\)
The variables will created (as of 4.x) in the $_POST and $_GET global arrays and you can then access them using what ever functions you need to use. As for XML if it is posted as raw you will get an error from Apache saying Bad Request. I have just setup an example to see what is possible to get

[PHP] Re: Using strtotime on 'old' dates.

2002-12-31 Thread David J. Johnson
Sorry to bug, but any ideas? "David J. Johnson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there any way to use strtotime on dates earlier than the Unix epoch? I'm > using strtotime to reformat the date information for insertion into MySQL. > I know that

Re: [PHP] Running PHP on Windows OS

2002-12-31 Thread John Nichel
I don't do Windows all that often, so I'm not sure this will work, but I seem to remember this problem a while back. You may want to try putting the php4apache.dll in the same directory as all the dll's that came with Apache, and load it like this LoadModule php4_module php4apache.dll HTH

Re: [PHP] Missing logos

2002-12-31 Thread Tyler Longren
- Original Message - From: "Richard A Downing" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 31, 2002 5:54 AM Subject: [PHP] Missing logos > I have just installed 4.3.0 with apache2.0.43. > Running a standard test.php file consisting solely of: > > > > results in in

[PHP] Missing logos

2002-12-31 Thread Richard A Downing
I have just installed 4.3.0 with apache2.0.43. Running a standard test.php file consisting solely of: results in incorrect html with the image sources of the logo incorrectly formed. See below. The src="d/public_html/test.php?=PHP... should, I think be src="~/public_html/test.php?=PHP. I re

[PHP] receiving XML stream as server via PHP

2002-12-31 Thread Kristopher Yates
Hi, Using PHP with cURL, I am currently able to dynamically create XML documents and HTTP POST to a remote server, receive an XML response, and parse XML as needed. What I am having trouble finding information on is doing the reverse. Basically, I am trying to create a PHP script that acts as

RE: [PHP] Flow diagrams.-- Resending

2002-12-31 Thread Jimmy Brake
On Mon, 2002-12-30 at 06:59, Sridhar Moparthy wrote: > Hi Jimmy, > > Thank You for the your reply. Here is the example. > > If > 1. Jobs 'B' and 'C' starts immediately after Completion of job'A' > 2. Job 'D' starts after completion of both Jobs 'B' and 'C'. > 3. Job 'E' starts after completion of

[PHP] Running PHP on Windows OS

2002-12-31 Thread Todd Cary
I am having a problem getting Apache to load the php4apache.dll. I have tried putting the "/" and "\" in every way I can think of and I get an error that Apache cannot find c:/active_php/sapi/php4apache.dll (and it IS there). LoadModule php4_module c:/active_php/sapi/php4apache.dll I have even

Re: [PHP] fwrite() debugging

2002-12-31 Thread Michael J. Pawlowsky
Try *** REPLY SEPARATOR *** On 31/12/2002 at 5:27 PM Alberto Brea wrote: >Could somebody please tell me what I'm doing wrong here? > >The code is: >$fd=fopen($filename, "a"); >fwrite($filename, "xyz"); >fclose($fd); ?> > >And I get the following error message: >"Warning: f

[PHP] SUMMARY - Re: [PHP] Re: loading a db table into a php array from mysql

2002-12-31 Thread David T-G
Tularis, et al -- ...and then David T-G said... % % ...and then Tularis said... % % % % Usually, % % using mysql to handle your tables is *way* faster than letting php % % handle it. ... % % % % In your case, you could just do a complex join I think. That would give % % Ahhh... A new term.

Re: [PHP] fwrite() debugging

2002-12-31 Thread Timothy Hitchens \(HiTCHO\)
The $fd is the file handler now not the $filename. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO | Open Platform Web Development Consutling - Outsourcing - Training - Support - Original Message - From: "Alberto Brea" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Ja

[PHP] fwrite() debugging

2002-12-31 Thread Alberto Brea
Could somebody please tell me what I'm doing wrong here? The code is: And I get the following error message: "Warning: fwrite(): supplied argument is not a valid File-Handle resource in c:\archivos de programa\apache group\apache\htdocs\visitrep\report_options.inc on line 111" Thanks a lot in

Re: [PHP] Getting short (DOS) name of file?

2002-12-31 Thread Leif K-Brooks
I'm using exec(). Frank M. Kromann wrote: PHP should not have any problems with long file names. I use it often on both WIndows 2000 and Windows XP without anu problems. What is it you are trying to do ? - Frank Thanks... thing is, it can be anything from c:\whatever.exe to c:\program fil

Re: [PHP] Re: loading a db table into a php array from mysql

2002-12-31 Thread David T-G
Tularis, et al -- ...and then Tularis said... % % Usually, % using mysql to handle your tables is *way* faster than letting php % handle it. Hmmm... OK. But that's so many queries... "Or is it?", he asks, reading farther. % % That's what it was made for, speed...! Well, yeah, I figured t

[PHP] FastCGI

2002-12-31 Thread Fernando Serboncini
Hi, obviously, I don't if this is the right newsgroup to ask such questions, but here it goes... what has happened with FastCGI support on the 4.3 version of PHP? On changelog I saw that SAPI/FastCGI was discontinued. But when I do phpinfo() it reports "Server API : CGI/FastCGI" and when I go w

[PHP] Re: loading a db table into a php array from mysql

2002-12-31 Thread Tularis
Usually, using mysql to handle your tables is *way* faster than letting php handle it. That's what it was made for, speed...! In your case, you could just do a complex join I think. That would give all results in one table, and you could just order that on scheduletime, and voila, you'd have

[PHP] Re: Keeping script running, but returning control to user?

2002-12-31 Thread Tularis
What you could do is put your 'lengthy process' in a shutdow function (register_shutdown_function()), and just do the header. There is actually even a simpler way to do this, but it's not advised: - first @set_time_limit(0); // Make sure there is no limit ob_start(); //

Re: [PHP] Serializing a DOM object

2002-12-31 Thread Boget, Chris
> Try encoding like this: > $retval = base64_encode(serialize( domxml_open_mem( $xml ))); > and on the next page: > $xml = unserialize(base64_decode($xml)); > It works via html but don't know enough about soap Well, you don't have to use soap - you can use sessions and get the same result. As for

Re: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2002-12-31 Thread Stephen
>From experience, I don't think you can run more then one SQL statement at once in a single time. Try assigning each variable with delete, then query them all seperately. I also don't think you need the ; in the SQL statement... - Original Message - From: "@ Nilaab" <[EMAIL PROTECTED]> To

[PHP] loading a db table into a php array from mysql

2002-12-31 Thread David T-G
Hi, all -- I'm so far about knee-deep in my project where I'll be using php to talk to the mysql database and spit out my web pages. I wonder if I should be making individual calls to the database or loading a table into an array so that I can walk it without those calls. For instance, I have an

[PHP] assigning to $this in constructor?

2002-12-31 Thread Matt Friedman
I think I was once able to assign to the $this reference in the constructor of a php class. I don't seem to be able to do this anymore. Is this new in 4.3? Is there anyway to alter what object is returned from a php class constructor? For instance, there might have been an error so you would ret

[PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2002-12-31 Thread @ Nilaab
Hello Everyone, I want to DELETE multiple items of multiple TABLES in a MySQL database. My version of MySQL is 3.23, which means this version doesn't support the DELETE functionality on multiple tables. The following is my PHP code, where $item_id is a multi-dimensional array containing the ids of

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Andrew Wallace
Um where is $lookuptable set? Seems like you should have: $lookuptable = setCurrentDevGroup($this->ComputerID); $query = "SELECT name FROM $lookuptable WHERE (ID=$this->ComputerID)"; echo $lookuptable; // gives an empty string. andy Martin S wrote: NOW what am I doing wrong?? function

[PHP] Re: Repeats of values

2002-12-31 Thread Thomas Seifert
On Tue, 31 Dec 2002 10:47:57 -0600 [EMAIL PROTECTED] (Anthony Ritter) wrote: > while($line = mysql_fetch_array($result)){ > print "\t\n"; > while(list (,$value) = each ($line)) { Thats just wrong, mysql_fetch_array returns an array with all the fields accessible per field-id and field-name

Re: [PHP] Repeats of values

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 2:47:57 AM, you wrote: AR> I'm running the following sql query which outputs a repeat value for each AR> field in the html cell box. AR> Like this: AR> .. AR> 3.3 3.3 78 78 2002-06-11 2002-06-11 AR> ... AR> which is not what I w

[PHP] MySQL Join

2002-12-31 Thread John Hinton
Stuck on this join temp >From one table I need to mysql_query("CREATE TEMPORARY TABLE temp TYPE=HEAP SELECT DISTINCT field1, field2 FROM $table"); both field1 and field2 have various repeating data and I need to return only the first occurance of the distinct data along with the rest of the dat

Re: [PHP] Repeats of values

2002-12-31 Thread Andrew Brampton
Hi, I think changing while(list (,$value) = each ($line)) { to foreach ($line as $value) { might help but I'm unsure, either way foreach is easier to read :) Andrew - Original Message - From: "Anthony Ritter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 31, 2002 4:

php-general Digest 31 Dec 2002 15:58:36 -0000 Issue 1795

2002-12-31 Thread php-general-digest-help
php-general Digest 31 Dec 2002 15:58:36 - Issue 1795 Topics (messages 129728 through 129779): Re: SQL Error 129728 by: John W. Holmes Re: PHP Look Back 2002 129729 by: John W. Holmes Making with $values!!! 129730 by: Alexander Guevara 129732 by: Maciek Ruck

[PHP] openssl_csr_sign issues

2002-12-31 Thread Larry
Wondering if anyone else has run into the following problem (or if I'm missing something totally obvious). I've got a program that basically generates a key and certificate for a user who enters all the associated information (common name, passphrase, etc). So I've created a dummy CA cert and key t

[PHP] Repeats of values

2002-12-31 Thread Anthony Ritter
I'm running the following sql query which outputs a repeat value for each field in the html cell box. Like this: .. 3.3 3.3 78 78 2002-06-11 2002-06-11 ... which is not what I would like. I was trying to get: . 3.3 78 2002-06-11 ...

[PHP] Php 4.3.0 and Mail() function

2002-12-31 Thread Carl Bélanger
I just upgraded to php 4.3.0 and all by bulletin board are now returning error about the mail function: Fatal error: Call to undefined function: mail() in /var/wwwx/htdocs/forum/private.php on line 687 I've checked in the pear list of installed packages and I have the latest mail (1.0.2). I'

[PHP] Problems getting PHP to work (IIS5/XP Pro)

2002-12-31 Thread Jeff Lewis
Now I tried this on the Windows list but didn't get any replies. I also found an old thread on another site that Rasmus had replied to and I tried that suggestion but no luck. I just ran the PHP installer and it set it up as a cgi I guess. I'd do the other way if I could find complete instructi

RE: [PHP] Date problem

2002-12-31 Thread John W. Holmes
> Our school holds many seminars of varying durations and dates. I want to > make a page which says "What's on today" which will show all the seminars > that are on today. However the entry in the database will show two fields > "Commencing Date" and "Ending date". > > Is there a routine in PHP I

[PHP] mail()

2002-12-31 Thread Edward Peloke
Hello all, For some reason, I have one computer running php that I can't get the mail function to work on. I get this error: Warning: Failed to Receive in c:\program files\apache group\apache\htdocs\mailtest.php on line 2 The machine is running windows and apache as the web server. In my php.

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Marek Kilimajer
so you want $lookuptable=setCurrentDevGroup($devID); switch($lookuptable) { ... Martin S wrote: Jason Wong wrote: On Tuesday 31 December 2002 20:48, Martin S wrote: This is the function which should return e.g. "printers" for $lookuptable. But doesn't. function setCurrentDevGroup($dev

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Jason Wong wrote: > If you want it so that the value of $lookuptable (in the global scope) is > changed when you call your function then you have to do something like: > >function doo($dah, $dee, $etc) { > global $lookuptable; > $lookuptable = "Hello world"; > } > > doo(1, 2, 3);

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Jason Wong
On Tuesday 31 December 2002 21:44, Martin S wrote: > > But something like: > > > > echo setCurrentDevGroup($devID); > > That gives the correct value as well. But I wanted it as a variable > ($lookuptable) ... > > What I am trying to do is: > > setCurrentDevGroup($this->Computer); // call functio

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Jason Wong wrote: > On Tuesday 31 December 2002 20:48, Martin S wrote: > >> This is the function which should return e.g. "printers" for >> $lookuptable. But doesn't. >> >> function setCurrentDevGroup($devID) >> { >> global $adb; >> $query = "SELECT dev_group FROM

Re: [PHP] Getting short (DOS) name of file?

2002-12-31 Thread Michael Sims
On Tue, 31 Dec 2002 02:14:18 -0500, you wrote: >Thanks... thing is, it can be anything from c:\whatever.exe to >c:\program files\program name\bin\program.exe. I'll write a function >that goes to each directory in a string and does a dir /x if I have to, >but isn't there a simpler way? I don't

[PHP] Re: [PHP-DEV] PHP Look Back 2002

2002-12-31 Thread Marcus Börger
Have fun reading! Indeed a funny reading! The only thing i missed was the december diberauschendenscussion "Quoting behaviour exposed". Reference: http://news.php.net/article.php?group=php.dev&article=%3CPine.LNX.4.50.0212281820140.1306-10%40eco.foo%3E Happy new year and hopefully an e

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Jason Wong
On Tuesday 31 December 2002 20:48, Martin S wrote: > This is the function which should return e.g. "printers" for $lookuptable. > But doesn't. > > function setCurrentDevGroup($devID) > { > global $adb; > $query = "SELECT dev_group FROM tracking WHERE (computer = > $

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Jason Wong wrote: > On Tuesday 31 December 2002 20:02, Martin S wrote: >> Marek Kilimajer wrote: >> > You forgot global $adb; at the beginning of your function, or use >> > >> > $sth = $GLOBALS['adb']->prepare($query); >> >> Nope sorry, I've just edited it from my post here. It is in the function.

Re: [PHP] Making with $values!!!

2002-12-31 Thread Marek Kilimajer
escape $ with \, Alexander Guevara wrote: hi.. i have this and i cant get it work!!.. HERES THE CODE --- for ($i=1;$i<11;$i++){ echo" TEXT "; }

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Jason Wong
On Tuesday 31 December 2002 20:02, Martin S wrote: > Marek Kilimajer wrote: > > You forgot global $adb; at the beginning of your function, or use > > > > $sth = $GLOBALS['adb']->prepare($query); > > Nope sorry, I've just edited it from my post here. It is in the function. Hmm, whenever you post co

[PHP] Parameters and Access

2002-12-31 Thread rblack
Hi All, I'm trying to run a parameterised query in MS Access using odbc_prepare and odbc_execute but to no avail. The error message I'm getting is: Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1., SQL state 07001 in SQLExecute in c: \inetpub\wwwroot

Re: [PHP] Arrays of strings from regex

2002-12-31 Thread Marek Kilimajer
David Pratt wrote: Am working through document to collect pieces that match and then insert them into an array so they can be used to construct another file. Looking in my doc for lines like this: {\*\cs43 \additive \sbasedon10 db_edition;} {\*\cs44 \additive \sbasedon10 db_editor;} {\*\cs45

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Martin S
Marek Kilimajer wrote: > You forgot global $adb; at the beginning of your function, or use > > $sth = $GLOBALS['adb']->prepare($query); Nope sorry, I've just edited it from my post here. It is in the function. /Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Error

2002-12-31 Thread Marek Kilimajer
This is just a notice, somewhere in the code is something like this if($array['index']=='something') do_something(); but $array['index'] is undefined. Should be if(is_array($array) && array_key_exists('index',$array) && $array['index']=='something') ... (which is quite long). Another option is to

Re: [PHP] chunking a blob field. adding a large object chunk bychunk

2002-12-31 Thread Marek Kilimajer
You could do UPDATE table SET blob_field = CONCAT(blob_field, '$next_chunk') but I'm not sure if your sql server will not read the whole field into memory anyway. Mike Brancato wrote: if I wanted to read a very large object into a blob field, is there a way i could do it in 1MB chunks. using an

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Marek Kilimajer
You forgot global $adb; at the beginning of your function, or use $sth = $GLOBALS['adb']->prepare($query); Martin S wrote: NOW what am I doing wrong?? function setCurrentDevGroup($devID) { $query = "SELECT dev_group FROM tracking WHERE (computer = $devID)"; $sth = $

Re: [PHP] Date problem

2002-12-31 Thread Rick Widmer
At 05:23 PM 12/31/02 +0800, Denis L. Menezes wrote: Hello friends. Is there a routine in PHP I can use to find if today's date fits between the commencing date and the ending date? SELECT * FROM Table WHERE NOW() >= StartDate AND NOW() <= EndDate Rick -- PHP General Mailing List (http://

[PHP] Re: PLEASE HELP

2002-12-31 Thread gamin
"Dale" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I was able to successfully install the php on my win2k server. I am, > however, getting an error any time I try to initialize a variable. This is > the error I am getting: > > Notice: Undefined index: adv_au

[PHP] PHP Error

2002-12-31 Thread Dale
I was able to successfully install the php on my win2k server. I am, however, getting an error any time I try to initialize a variable. This is the error I am getting: Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132 I am not sure as to whether I forgot to do something when

[PHP] Re: Keeping script running, but returning control to user?

2002-12-31 Thread gamin
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need a way to keep the script running on the server, but control to > the user. I'm doing some lengthy processes on the server, and it seems > stupid to keep the user waiting pointlessly. I'm tr

Re: [PHP] Re: rtf....I knew it couldn't be this easy

2002-12-31 Thread gamin
"Edward Peloke" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks, > > I tried it and don't get a blank line but it still shows all the code when > opened in word. Forgive how lengthy it is but here is the actual code: I > tried escaping the special chara

[PHP] Arrays of strings from regex

2002-12-31 Thread David Pratt
Am working through document to collect pieces that match and then insert them into an array so they can be used to construct another file. Looking in my doc for lines like this: {\*\cs43 \additive \sbasedon10 db_edition;} {\*\cs44 \additive \sbasedon10 db_editor;} {\*\cs45 \additive \sbasedon10

[PHP] Date problem

2002-12-31 Thread Denis L. Menezes
Hello friends. Happy New Year to you all. Our school holds many seminars of varying durations and dates. I want to make a page which says "What's on today" which will show all the seminars that are on today. However the entry in the database will show two fields "Commencing Date" and "Ending d

Re: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Tom Rogers
Hi, Tuesday, December 31, 2002, 4:54:36 PM, you wrote: e> hi i've just started a job and they are sadly using php3 , what is the work e> around for the session handling limitation ? i have an authentication class e> which will not work now beause it cant handles sessions :| Have a look at phplib

Re[2]: [PHP] Getting short (DOS) name of file?

2002-12-31 Thread Tom Rogers
Hi, Tuesday, December 31, 2002, 5:14:18 PM, you wrote: LKB> Thanks... thing is, it can be anything from c:\whatever.exe to LKB> c:\program files\program name\bin\program.exe. I'll write a function LKB> that goes to each directory in a string and does a dir /x if I have to, LKB> but isn't there