Re: [PHP] Working with dates in PHP

2002-10-10 Thread Tom Rogers
;].""); JP> $omonth = date("m", $odate); JP> print($odate['year'].""); JP> $oyear = date("Y", $odate); JP> print($oyear.""); JP> } JP> Any help would be appreciated. JP> James

[PHP] simple array in mysql

2002-10-12 Thread tim tom
What's the 'normal' way of storing array values in mysql table? -- tim __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] html form array

2002-10-13 Thread tim tom
dear all, i ran my code below on ie and it works. but when i use netscape 4.76 under linux, i only get the message "submitted" even though i've checked some fields. what do i need to add to make it work with netscape under linux? code follows: "; for($i=0;$i"; } } else { ?> method=post

Re: [PHP] $_FILES posting limited to 5?

2002-10-16 Thread Tom Rogers
s like: while (list($key) = each($_FILES['picname'])) { echo "$key "; while(list($key2,$val2) = each($_FILES['picname'][$key])){ echo "[$key2] $val2 "; } echo ''; } print_r($_FILES) will show you all. -- regards

Re[2]: [PHP] Blank PHP pages..

2002-10-16 Thread Tom Rogers
Hi, Thursday, October 17, 2002, 12:58:02 AM, you wrote: AG> I checked and register_globals is set to "on" - so that can't be the AG> problem. Stop teasing us and show us the code you have on those pages :) -- regards, Tom -- PHP General Mailing List (http://www.php

Re: [PHP] Re: Get the string in between two other strings

2002-10-17 Thread Tom Rogers
uot;Str1: '$str1' "; echo "Str2: '$str2' "; echo "Extracted: '".find_string($string,$str1,$str2)."'"; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_fetch_row options

2002-10-26 Thread Tom Rogers
ust one JT> value. Any suggestions? Thanks a bunch! (untested :) $result = mysql_query("select count(*) as cnt from database", $db); $staticvar += mysql_result($result,0,0); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Enum table entry

2002-10-18 Thread Tom Rogers
so you can serialize it as is and store it. Playback is simple too '; } Un-checked boxes are not returned in the post and checked ones return Yes I think. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Enum table entry

2002-10-19 Thread Tom Rogers
> table. Some of you people are pretty freakin' smart. :) JN> One note though, when you pull the serialized data out, you may have to JN> stripslashes before unserialize... JN> $school = unserialize ( stripslashes ( $row['school'] ) ); JN> Tom Rogers wrote: >&

Re: [PHP] Can anyone help please.

2002-10-27 Thread Tom Rogers
ing: Invalid argument supplied for foreach() in /www/u1255/shop_testing/show_cart.php on line 30 -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Library question

2002-10-27 Thread Tom Rogers
ollection of functions that PHP will call for encryption and such. In windows they will be something like mcrypt.dll or for unix libmcrypt. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] steganographie or digital watermarking

2002-10-27 Thread Tom Schulze
Hallo, does anybody know a class or function (or module) in php to do some simple digital watermarking or steganoraphie. Perhaps in combination with the image functions? Thanks in advance, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Tom Woody
-- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Woody Systems Administrator NationWide Flood Research, Inc. phone: 214-631-0400 x209 fax: 214-631-0800 Don't throw your computer out the window, throw the Windo

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Tom Woody
ndows it works as expected. > > Know someone how could i make the '+' left intact? Please help. > > > echo $_POST['test']; > ?> > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: h

Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread Tom Woody
processing script to determine whether the > checkbox was checked? > > Thanks, > Don > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Woody Systems Administrator NationWide Flood Resear

Re: [PHP] Get shipping problem continued!

2002-11-01 Thread Tom Rogers
quot;SELECT MAX(receipt_id) from receipts");){ echo 'Error: '.mysql_error().''; }else{ $shippingvar = mysql_result($query,0,0); } return $shippingvar; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More on cleaning Windows characters...

2002-11-04 Thread Tom Rogers
is to if,love is to yes" ahsb> http://www.nothingness.org/ ahsb> --- I ran into that problem inserting word tables into xml, i ran the stuff through iconv() to clean it up. $title = iconv("ISO-8859-1","UTF-8",$title); Not sure if that was the right way to do it but it worked :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display only so many characters

2002-11-05 Thread Tom Rogers
ace === false)&& $lspace > 0){ $t = substr($t,0,$lspace); for($x=$lspace;$x < ($maxchar+2);$x++){ $t .= '.'; } } $text = $t; } echo $text.''; -- rega

Re: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Tom Rogers
1; $purchitem[1] = 3; $purchitem[2] = 4; $s = '0'; while(list($key,$val) = each($purchitem)){ $s[$val-1] = '1'; } echo "s = $s "; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript and PHP

2002-11-06 Thread Tom Rogers
an entry with a value from javascript. vaue> Thanks This is a post method: function doit(){ testval = "Hello"; document.form1.result.value = testval; document.form1.submit(); } should end up with $_POST['result'] = Hello -- regards, Tom -- PHP General Mail

Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Tom Rogers
Fku1MdIRAkhnAKClykcWMUwiWbslAYklx3xm1qsjSQCdFAXh EN> roJ+kMyayqdY1UXxL6S5xuQ= EN> =1Zaw EN> -END PGP SIGNATURE- You probably need this patch http://download-2.gingerall.cz/download/sablot/Sablot-0.96.1.patch You can also use LDFLAGS=-lstdc++ before configuring PHP more info at http://php.benscom.com/manual/en/ref.xslt.php -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] generically accessing member variables problem

2002-11-06 Thread Tom Rogers
t; >> >> >> More important though is the first problem of generically >> >> accesing a member variable based on the passed in name of the >> >> variable. In other words I want to be able to choose which array I >> >> operate on by passing in the name of that array. >> >> >> >> >> >> Any help on this problem is appreciated. I know there must be a way to >> >> do this. Please let me know if I haven't formulated the problem >> >> clearly enough. >> >> >> >> jck >> >> >> >> >> >> >> > >> > >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> Amazing what you learn on this list :) This works: class Example { var $array1 = array(); var $array2 = array(); var $array3 = array(); function add2array($array_name,$val){ $this->{"$array_name"}[] = $val; } } $t = new Example(); $t->add2array('array1',25); $t->add2array('array2',26); $t->add2array('array3',"Hello"); echo ''; print_r($t); echo ''; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] generically accessing member variables problem

2002-11-06 Thread Tom Rogers
MM> echo ''; MM> print_r($t); MM> echo ''; MM> Cleaner and more scalable, no? Yes and to fit the original 3 seperate arrays it would be function add2array($element_name, $val){ $this->$array[$element_name][] = $val; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Tom Rogers
patch >> http://download-2.gingerall.cz/download/sablot/Sablot-0.96.1.patch >> >> You can also use LDFLAGS=-lstdc++ before configuring PHP >> more info at http://php.benscom.com/manual/en/ref.xslt.php EN> - -- EN> Jesus Christ: Imaginary Playmate to Millions of Adults!

Re[4]: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Tom Rogers
Hi, Thursday, November 7, 2002, 1:11:43 PM, you wrote: EN> Same error. >> As a test try compiling statically into apache...That is the way I have php at the moment. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[6]: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-07 Thread Tom Rogers
/local/lib/libsablot.so: undefined reference to `vtable for EN> __cxxabiv1::__vmi_class_type_info' EN> /usr/local/lib/libsablot.so: undefined reference to `operator new(unsigned)' EN> collect2: ld returned 1 exit status EN> make: *** [dummy] Error 1 EN> = End of

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tom Rogers
; $this->id = $id; TM> } TM> } ?>> TM> end third code snippet TM> Well that's it. I hope someone can help me on this. I'm not a person who TM> asks for help very quick. I prefer finding it out myself, also because I'm TM> pretty experienced at PHP. But this is the first time I really can't figure TM> out what it is... I really NED you now :) TM> Good luck and a lot of thanks in advance, TM> Tim. TM> P.S. I'm using PHP4, I do not know this code's reliability and behaviour TM> when running it with previous versions. Try this for your load() function: function load() { $newChild =& new Child(1); $this->add(&$newChild); $this->property = 'state 1'; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string to array

2002-11-08 Thread Tom Rogers
Hi, Friday, November 8, 2002, 10:43:10 PM, you wrote: MK> Hi all, MK> has anyone an elegant (and faster) way of converting 'string' to MK> array('s','t','r','i','n','g'), other then MK> for($i=0; $ihttp://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] starting recompiled php as a cgi-interpreter

2002-11-11 Thread Tom Woody
a > > CGI-Interpreter?? > > > > How to start and fire up? > > Please help. > > > > Oliver Etzel > > lowcost domains > > lowcost serverhousing www.t-host.com > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form question ???

2002-11-11 Thread Tom Rogers
)) { JH> echo(">"); JH> echo(">"); JH> echo(" name=\"quantities[]\">"); JH> printf(" %s%s", $myrow["name"], JH> $myrow["details"]); JH>

Re: [PHP] how to generate ms-word files

2002-11-14 Thread Tom Woody
on. > > This will save you much time... > > On Thu, 2002-11-14 at 12:34, michael wrote: > > hello > > > > I'm trying to generate ms-word files with php. Until now, I can > > create a document and even insert page-breaks. Is there any > > tutorials goi

[PHP] Specifying file to send in url...

2002-11-15 Thread Tom Woody
is even possible. Something tells me I have seen this done before but I am not sure. Thanks for any help on this. I have done some Googling and Archive search for something related and have come up blank. -- Tom Don't throw your computer out the window, throw the Windows out of your com

Re: [PHP] catching a robot or spider

2002-11-20 Thread Tom Woody
URL's for the robot. > > regards Wilbert > > > - > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel 070 4450855 > fax 070 4450852 > http://www.pdd.nl > [EMAIL PROTECTED] > - -- Tom Woody Systems

[PHP] Automatic file upload...

2002-11-21 Thread Tom Woody
bmitting a form): \n"; } else { echo "Upload Problem\n"; } ?> Filename: -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP as HTML

2002-06-04 Thread Tom Ray
Hey there- I'm trying to use an .htaccess file to parse .php files as .html does anyone know how to do this? It doesn't work with the same structure as parsing the .shtml files. any suggestions would be great. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray
L > AddType application/x-httpd-php .html > AddType application/x-httpd-php .htm > > ----- Original Message - > From: "Tom Ray" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 04, 2002 2:41 PM > Subject: [PHP] PHP as HTML > >

Re: [PHP] findin colors in gif files

2002-06-04 Thread Tom Rogers
hi you will need to find the hex values for each individual number which i think should be (without the hash) 76763636 Tom At 05:06 PM 5/06/2002, johannes reichardt wrote: >hi everybody, i am new to this list & php >and i have a big question that i would love to be answered ;) &

Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray
you know, that's a good question. How would I determine that on the server? Peter wrote: >Tom, this does work fine... doing what Kevin says... >ie the > >AddType application/x-httpd-php .html >AddType application/x-httpd-php .htm > >is PHP installed as a mo

Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray
stalled php as. > > >>you know, that's a good question. How would I determine that on the server? >> >>Peter wrote: >> >> >> >>>Tom, this does work fine... doing what Kevin says... >>>ie the >>> >>>AddType appl

[PHP] Retrieving Info from Cookies

2002-06-04 Thread Tom Ray
I've been playing with cookies, and I've been able to write information to a cookie, but now what I want to do is pull that information from the cookie. Is there something special I need to do to pull that info or should I just be to get that data by delcaring a variable in the php script? -

Re: [PHP] Retrieving Info from Cookies

2002-06-04 Thread Tom Ray
when I do that it comes up with Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' Justin French wrote: >you should be able to access it via $_COOKIE['name'], or what I do, $cookie >= $_COOKIE['name']. > >Justin F

Re: [PHP] findin colors in gif files

2002-06-05 Thread Tom Rogers
Hi I think you have to use fread to load the binary file, here is a quick function that will do what you want. It a little bit safer than just blindly changing hex values in the file, it only checks the colour table. Tom "; $gif[$x]

Re: [PHP] findin colors in gif files

2002-06-05 Thread Tom Rogers
HI Just a thought, if your on a windows box you will need to ad a 'b' to the fiopen function like fopen($file, "br") Tom At 09:43 PM 5/06/2002, freestylez wrote: >it almost works :) unfortunatly the gif file seems to be corrupted at some >point, >but anyhow - i am

Re: [PHP] findin colors in gif files

2002-06-05 Thread Tom Rogers
hi what gif is getting corrupted?, it works ok with the one you gave. To see what all those flag things are have a look at the gif spec at http://www.goice.co.jp/member/mo/formats/gif.html unpack puts the binary string into an array, flag gives some info as to the colour index table Tom At 09

Re: [PHP] Bug in ob_end_flush/xslt_process... Confirm?

2002-06-05 Thread Tom Rogers
not qualified to say :) but it seems that it is not only the xslt that is affexted as I could not load the xsl file using fread either unless I gave the full path. Tom At 05:02 AM 6/06/2002, Bret Mogilefsky wrote: >Hello php-gen'ers, > > >I've been whacking my head ag

Re: [PHP] Compiling PHP as static mod

2002-06-05 Thread Tom Rogers
Hi In your php config give it the path to the apache source files not the install directory. Tom At 11:55 AM 6/06/2002, Ray Hunter wrote: >When I try to compile php as a static module in php I get errors that the >mod_php4.c cannot find the header file. > >Here is my php c

Re: [PHP] Sessions on clustered machines

2002-06-06 Thread Tom Rogers
Hi Have a look at http://www.mohawksoft.com/phoenix/msession.html I just started playing with it and seems to be ok, except when I try my own session handler it chucks a core dump now, but if it is as good as they reckon I wont need my own handler :) Tom At 03:17 PM 6/06/2002, Cameron Just

[PHP] Search a flat file.

2002-06-07 Thread Tom Ray
I want to be able to search a flat file line by line looking for data such as a username then display all the information in that line. Is there some way to search the following format: record1:username:info:info:info record2:username:info:info:info record3:username:info:info:info So if someo

Re: [PHP] Re: Search a flat file.

2002-06-07 Thread Tom Ray
that arrays start with element 0 */ >if ($your_array[1]) == "some name" { >/* routine to display entire row */ >} >/* continue processing loop */ > >-- >Gaylen >PHP KISGB v4.0.5 Guest Book http://www.gaylenandmargie.com/phpwebsite/ > >"Tom Ray" <[EMAIL

[PHP] Getting users monitor size

2002-06-09 Thread Tom Ray
Is there a way to do this with PHP? I couldn't find it in the online docs and the archive search is offline :( thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Another Flat File question.

2002-06-09 Thread Tom Ray
I know I've asked this before but I don't believe I asked the question correctly. I have a flat file database that is delimited with colons. This file will have new records added to it on a regular basis. What I want to do is be able to search that file based on a keyword that is inputted by a

Re: [PHP] fputs/fgets working irregularly

2002-06-09 Thread Tom Rogers
Hi Why not just do it in one call? $fp = fopen("data/news.txt","w"); $np = fputs($fp,$pr.$ag); fclose($fp); Tom At 04:17 AM 10/06/2002, Kris wrote: >Hi all, > >I'm having some trouble getting my basic news script to work. Here is the >code: > >

[PHP] Re: Calendars

2002-06-10 Thread Tom Sommer
ture :) I'll drop you a note when it's complete -- Tom Sommer E-Mail: webmaster(a)tsn.dk Web: http://www.tsn.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Include question

2002-06-11 Thread Tom Ray
I'm trying to use the include function in some PHP scripts, but when I do include 'config.inc'; or include 'config.php; It returns all the information in the file when I look at my test php file (which calls the include) Anyone know why this is? -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
= 'yellow': Why is that? John Holmes wrote: >Umm...that's what it's supposed to do...it's "including" it... > >---John Holmes... > > > >>-Original Message- >>From: Tom Ray [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
7;s what it's supposed to do...it's "including" it... > >---John Holmes... > > > >>-Original Message- >>From: Tom Ray [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, June 11, 2002 9:29 PM >>To: [EMAIL PROTECTED] >>Subject: [PHP] Include

[PHP] Unlink question more or less

2002-06-11 Thread Tom Ray
I want to use unlink() to delete a wildcard, but at the moment I keep getting parse errors. Here's what happening: I'm mucking around with some login stuff, when a user logs in it writes a flat file that collects some information about them, the flat file is created with the name username.date

Re: [PHP] Emulating a class destructor

2002-06-11 Thread Tom Rogers
(); } } function close(){ //close open sockets, etc. mail("yourEmailHere","callback","Function Close called\n"); } } $clean = new cRoute; echo "exiting now "; exit; ?> Tom At 04:21 PM 12/06/2002, William_dw -- Sqlcoders wrote:

Re: [PHP] Unlink question more or less

2002-06-11 Thread Tom Ray
atetime part at all? The usernames are unique, right? > >---John Holmes... > > > >>-Original Message- >>From: Tom Ray [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, June 11, 2002 11:06 PM >>To: [EMAIL PROTECTED] >>Subject: [PHP] Unlink question mo

Re: [PHP] Emulating a class destructor

2002-06-11 Thread Tom Rogers
At 01:18 PM 12/06/2002, Lars Torben Wilson wrote: >On Tue, 2002-06-11 at 20:12, Tom Rogers wrote: > > Hi > > One way is to create an external reference to your class and use that in > > the cleanup function. To make the cleanup function visible it has to be > > decl

Re: [PHP] Emulating a class destructor

2002-06-11 Thread Tom Rogers
function close(){ //close open sockets, etc. mail("yourEmailHere",$this->txt."Callback","Function Close called\n"); } } $c1 = new cRoute("First:"); $c2 = new cRoute("Second:"); echo "exiting now "; ?> Tom

Re: [PHP] Emulating a class destructor

2002-06-11 Thread Tom Rogers
Hi It was the register_shutdown_function(array($this, 'cleanup')); syntax that had me stummped and looking for magic :) Tom snip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unlink question more or less

2002-06-12 Thread Tom Ray
Any word on when glob() will be in the production version? thanks for the help Miquel. - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Tom Ray" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 12, 2002 2:01 AM S

[PHP] Dynamic Arrays

2002-06-12 Thread Tom Ray
I have an array question. I want to use a dynamic array but I don't know how to do this. What I want to do is this, I want to write a form script that takes the elements of the form and submits them in the array then I want to do a loop and check to see if each element in the array has a value

Re: [PHP] beginner in PHP

2002-06-12 Thread Tom Ray
Try this: echo "$catalog[unitprice]"; in my experience I've only been able to use the echo() without the quotation marks if I'm calling a function, for variables you need the quotation marks. Hope this helps. Phillip Perry wrote: >Can someone tell me why this doesn't work? >The $mycart ar

Re: [PHP] beginner in PHP

2002-06-12 Thread Tom Rogers
Hi itemcd and unitprice should be in quotes I think if they are keys in an array. $catalog["itemcd"] $catalog["unitprice"] Tom At 10:56 PM 12/06/2002 -0400, Phillip Perry wrote: >Can someone tell me why this doesn't work? >The $mycart array is fine and the

RE: [PHP] beginner in PHP

2002-06-12 Thread Tom Rogers
Hi Then I guess you will have to add some debug code try this before the while loop and make sure your if ($value == $catalog["itemcd"]) will produce a match (and you do need the quotes really :) echo "".print_r($catalogue)."".print_r($mycart).""; To

Re: [PHP] Printer friendly version script

2002-06-13 Thread Tom Rogers
fancy layouts. Tom At 01:41 PM 13/06/2002 -0300, Angelo Marcos Rigo wrote: >Hi > Anybody knows a good printer friendly version php script > thank´s in advance > >Ângelo Marcos Rigo >Webmaster Colégio Anchieta >http://www.colegioanchieta.g12.br > > >

Re: [PHP] Printer friendly version script

2002-06-13 Thread Tom Rogers
t=yes) just regenerate the page without any fancy layouts. Tom At 01:41 PM 13/06/2002 -0300, Angelo Marcos Rigo wrote: >Hi > Anybody knows a good printer friendly version php script > thank´s in advance > >Ângelo Marcos Rigo >Webmaster Colégio Anchieta >http

Re: [PHP] Determine week

2002-06-16 Thread Tom Rogers
Hi Here is a messy solution, but I think it does what you want using strtotime() (well worth looking up in the manual :) "; ?> Tom At 02:55 AM 16/06/2002 +0300, Rosen wrote: >Hi, >how can I determine dates (start & end ) in one week. >I.e. 30th week is between 22.0

Re: [PHP] server problems

2002-06-18 Thread Tom Ray
And what are the directory/file permissions where you are writing the archive files? - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Kris Vose" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 18, 2002 11:54 AM Subject: Re: [PHP] server problems > A

[PHP] header("Location with & in URL

2002-06-21 Thread Tom Beidler
I'm trying to use header("Location to redirect to a URL that has variables in it, ie. http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client When it redirects I get the url minus everything after the first ampersand. I tried using htmlentities with no joy like so... $retUrl = htmlspeci

Re: [PHP] header("Location with & in URL

2002-06-21 Thread Tom Beidler
Nope, doesn't work. Maybe it's something with the server/PHP setup? > From: Richard Baskett <[EMAIL PROTECTED]> > Date: Fri, 21 Jun 2002 16:35:11 -0700 > To: Tom Beidler <[EMAIL PROTECTED]>, PHP General > <[EMAIL PROTECTED]> > Subject: Re: [PHP] hea

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Tom Rogers
; > >Warning: Failed to write session data (files). Please verify that the >current setting of session.save_path is correct (/tmp) in >/usr/local/apache/htdocs/cp/login.php on line 43 This below is your problem, you must be outputting white space so it can&#x

Re: [PHP] some one PLEASE help me!

2002-06-21 Thread Tom Rogers
Ignore me ..I just got up :) Tom At 01:09 PM 22/06/2002 +1000, Tom Rogers wrote: >At 01:09 PM 21/06/2002 -0500, Rick Kukiela wrote: >>Ok, I have never, in my entire life, have such a persistant little freakin >>problem with a programming language... It started out while i was

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Tom Rogers
( [35073] => Array ([ [views]=> Array ( [1] => 10 [0] => 6 ) ) ) Tom At 01:09 PM 28/06/2002 +1200, Morgan Grubb wrote: >I have a large dataset which can contain m

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Tom Rogers
missed a couple of quotes and braces there :) while ($row = mysql_fetch_assoc($result)) { $vehicles[$row['dealer_id']][$row['vehicle_id']]['views'][] = $row['page_views']; } At 02:03 PM 28/06/2002 +1000, Tom Rogers wrote: >Hi >I

[PHP] Sessions - Invalid argument(22)

2002-06-28 Thread Tom Vrana
ctory - and I get this message whe debugging: Warning: open(/tmp/sess_4a16ecf3a438538a71530971c6ccf2bb, O_RDWR) failed: Invalid argument (22) in Unknown on line 0 Just in case you wonder, access rights are OK Can anybody help pls ? I'm desperate

Re: [PHP] Two cases going to same case?

2002-06-30 Thread Tom Rogers
} case "3" do something3; break; } Tom At 05:18 AM 30/06/2002 -0400, Leif K-Brooks wrote: >I have a switch in a script I'm working on. I need to have case 1 and 2 >both to to case 3, but without case 1 going through case 2. Is this possible

Re: [PHP] emulating enable_trans_sid

2002-06-30 Thread Tom Rogers
Hi enable_trans_sid does exactly what you are trying to re create, if no cookies are available it modifies all the urls automatically. and transparently Tom At 12:48 PM 1/07/2002 +1000, Justin French wrote: >Hi, > >As discussed a few months back, I'm interested attempting to

Re: [PHP] emulating enable_trans_sid

2002-06-30 Thread Tom Rogers
Hi Ok probably the easiest is just to add to the end of each url, if cookies are supported SID will be an empty string. Tom At 01:59 PM 1/07/2002 +1000, you wrote: >I'm aware of this. What I'm trying to do is emulate this process on servers >which have not compiled with --

Re: [PHP] emulating enable_trans_sid

2002-07-01 Thread Tom Rogers
n the html. Your quite welcome to the files if it'll help. Tom At 04:03 PM 1/07/2002 +1000, Justin French wrote: >on 01/07/02 3:36 PM, Tom Rogers ([EMAIL PROTECTED]) wrote: > > > Ok probably the easiest is just to add > > to the end of each url, if cookies are supported SI

[PHP] adding a variable to a variable name

2002-07-03 Thread Tom Beidler
"level" . $i . "Name"; but that seems cloogey. Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ini_set() broken?

2002-07-07 Thread Tom Rogers
ted safety features... Tom At 10:50 PM 7/07/2002 -0500, Greg Donald wrote: >On Sun, 7 Jul 2002, Chris Shiflett wrote: > > >I refer you to this URL: > > > >http://www.tuxedo.org/~esr/faqs/smart-questions.html > >I refer you to this URL: http://php.net/ini_set and ask why

Re: [PHP] ini_set() broken?

2002-07-07 Thread Tom Rogers
Hi Even with the correct spelling it returns null (php-4.2.1) $x = ini_get('register_globals'); echo "current settings = ".$x.""; Tom At 12:43 PM 8/07/2002 +0800, Jason Wong wrote: >Tom Rogers said: > > Hi > > If you check with phpinfo() you will

[PHP] slightly ot, looking for definition and possible info link aboutEX-OR

2002-07-09 Thread Tom Beidler
re could I get more information about doing something like this. Once again, I'm not sure if this is possible using PHP and any other additional information would be greatly appreciate. Also let me know if the entire calculation would help. Thanks, Tom -- PHP General Mailing List (http://w

Re: [PHP] transparent clusters + sessions

2002-07-16 Thread Tom Rogers
session if you need it. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ErrorDocument 404 & Form

2002-07-17 Thread Tom Ray
Actaully, neither Apache or PHP is at fault. The ErrorDocument (either in httpd.conf or an .htaccess file) follows absolute paths, so you are calling your engine.php out of the root directory of the machine. So the question is, do you have engine.php in the / folder? If not you can put it there or

Re: [PHP] imagecolortransparent()

2002-07-22 Thread Tom Rogers
advance Post a bit of the code so we can see what you are doing -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Tom Rogers
KL> Output in IE6: KL> this should be printed out: this is a second line KL> regards, KL> KK The browser will ignore newlines use instead. to use newlines the text could be enclosed in text\n more text\n tags, but is probably what you need. -- Best regards, Tom

[PHP] Back button issue

2003-08-26 Thread Tom Tsongas
e the same way. This is consistent across both Netscape and IE. I currently have my session hanlding on the page set to the following: session_cache_limiter('none'); session_start(); Has anyone seen this behaviour before? Anyone know how to fix it? - Tom -- PHP General Mailing List (htt

Re[2]: [PHP] PHP Interview questions

2003-08-27 Thread Tom Rogers
e apple_label to current move orange_label to old apple move apples/oranges_label to old orange else move orange_label to current move apple_label to old_orange move apples/oranges_label to old apple endif -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing domains

2003-08-28 Thread Tom Rogers
ee Verizonmail at www.verizonmail.com do a str_replace('/www.','/',$parseddomain); then do your preg_replace -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] parsing domains

2003-08-28 Thread Tom Rogers
erizonmail at www.verizonmail.com No it should just get rid of the www so your left with domain.com and now that I see what you are after it should have been: $domain = str_replace('www.','',$domain); and if you need the dot now add it in $parseddomain = '.'.$dom

Re: [PHP] building php witk libiconv

2003-08-28 Thread Tom Rogers
AB> --with-iconv=/home/a.bonnefoy/portage/libiconv-1.9. AB> But now configure complains asking me to reinstall libiconv. AB> What to do??? AB> Thanks, AB> Alain. What happens if you just use --with-iconv ? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] var static

2003-08-28 Thread Tom Rogers
new db($count); } return $_miInstancia; } } $conexiondb =& db::getInstancia(1); print_r($conexiondb); $conexiondb2 =& db::getInstancia(); print_r($conexiondb2); ?> (The $count was just to prove we only have the one instance) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] jpeg libraries.

2003-08-28 Thread Tom Rogers
have any ideas as to what is going on? Or a suggestion as to what to MAS> look for? MAS> Thanks, MAS> -Mike You may also need to recompile gd -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] building php witk libiconv

2003-08-29 Thread Tom Rogers
Hi, Friday, August 29, 2003, 4:09:14 PM, you wrote: AB> Hi Tom, AB> configure ... --with-iconv AB> doesn't change anything, configure is ok but make ends with: AB> gcc: /usr//lib/.libs/libiconv.so: No such file or directory AB> gcc: /opt//lib/.libs/libiconv.so: No such file

Re: [PHP] Apache and forward slash

2003-08-30 Thread Tom Rogers
apache is on Win machines, CC> where I haven't had this problem before. I know this is off topic but u guys CC> know everything, so any help would be greatly appreciated. Thanks make sure apache is compiled with and using mod_dir (it should by default..) -- regards, Tom -- PHP Gen

Re: [PHP] Session Timeout

2003-08-30 Thread Tom Rogers
storeing the last accessed time in the $_SESSION array and check it on each start. I think by default garbage is collected 1 in every 100 hits. (1%) If it done on every hit it would start to impact performance on busy sites. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >