Re[2]: [PHP] Creating a line break between letter groupings

2003-11-19 Thread Tom Rogers
)); TR> if(empty($key){ TR> $key = $char;//first result set key TR> else{ TR> if($key != $chat){ TR> echo ''; TR> $key = $char; TR> } TR> } TR> //rest of loop TR> } TR> -- TR> regards, TR> Tom Stupid keyboard :) $key =

Re: [PHP] echo or print

2003-11-20 Thread Tom Rogers
wise echo is a tiny bit faster. You can do stuff like this if(isset($_GET['name'] && print('DEBUG: received name set to '.$_GET['name']."\n")){ //normal processing here } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passthru gives error in httpd/error_log

2003-11-20 Thread Tom Rogers
doesn't, and JH> I have no idea what happened. JH> Any clues and hints are much appreciated. JH> /Jesper You probably have to put the full path to ls -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fighting with functions

2003-11-21 Thread Tom Rogers
"item"=>"book","price"=>14.95, "tax"=>.065) ); function getTax($cost,$taxrate){ return $cost * $taxrate; } echo ''; echo 'Item numberItemCostTaxTotal'; $total = 0; foreach($items as $key=>$item){ echo ''; echo

Re[2]: [PHP] echo or print

2003-11-21 Thread Tom Rogers
Hi, Saturday, November 22, 2003, 4:55:05 AM, you wrote: WvV> David T-G wrote: WvV> Guys, Jay asked a serious question (I think). Anyways, let's take this one WvV> step further to something that I've really been wondering about. WvV> (.. long bunch of HTML ..) WvV>

Re[2]: [PHP] passthru gives error in httpd/error_log

2003-11-21 Thread Tom Rogers
Hi, Saturday, November 22, 2003, 1:23:36 AM, you wrote: JH> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message JH> news:[EMAIL PROTECTED] JH> No, I've tried that along with all other obvious path stuff. JH> /Jesper Then there must be some kind of restrictio

Re: [PHP] need help with gettext i18n

2003-11-24 Thread Tom Rogers
ng wrong? M> Thank you for any help on that, M> Merlin If on linux you may need to generate the right files with something like: localedef -ci de_DE -f ISO_8859-1:1987 de_DE Then restart apache as it caches locale info I think -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Telling GD2 Where Fonts Are

2003-11-27 Thread Tom Rogers
n> son> mail2web - Check your email from the web at son> http://mail2web.com/ . son> -- son> PHP General Mailing List (http://www.php.net/) son> To unsubscribe, visit: http://www.php.net/unsub.php Give the fu

Re: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Tom Rogers
; $redirect gets sent to the screen and then rest of the page is r> displayed. I know the code block is getting executed, but I have no r> idea WHY the header() function is not doing its job. r> Any thoughts? Please CC me on the post since I am on the digest. r> Thanks Try addi

Re: [PHP] forms and mysql

2003-12-02 Thread Tom Rogers
yrow["id"], B> $myrow["teama"],$myrow["teamb"]); Just stick a V between as in ..>%s V %s <... printf will ignore anything without a % before it and just copy it to the output -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getimagesize() & MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Tom Rogers
le, it's just binary data. G> Thanks, G> Galen Do the get sizes while it is still as a file after upload then save the size info with the file in the db or use unpack to get the size from the raw data, it is usually in the header somewhere. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with INSERT query

2003-12-09 Thread Tom Rogers
** ijc> ijc> " method="post">> ijc> ijc> > ijc> ijc> Teacher ijc> ijc> ijc> Name: ijc> > ijc> ijc> ijc> Contact No: ijc> name="tutor_contact"> ijc> ijc> ijc

Re: [PHP] treu type fonts

2003-12-09 Thread Tom Rogers
t means that free type fonts c> support is installed correctly? or please correct me if im wrong. Depending on where gd came from you may not be able to create gif files only read them. Try generating a png or jpeg -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with where clause

2003-12-16 Thread Tom Rogers
e and RK> if so how. RK> I am stumped on this one. RK> select * from table where field1= '$this' and field2 = '$that' and field3 = RK> 'a and b' probably like: select * from table where field1= '$this' and field2 = '$that' and (fie

[PHP] strange!

2003-12-16 Thread Tom Holton
Hello everyone, I looked through the FAQs and documentation and I cannot find this anywhere: We have a new Redhat server with this kernal: 2.4.20-20.9smp #1 SMP We used redhat itself to install apache and php (I used to always do it by hand) apache: Server version: Apache/2.0.40 PHP Version 4.2.2

Re: [PHP] saving resource objects

2003-12-16 Thread Tom Rogers
this $last_id =0; if(isset($_SESSION['last_id'])) $last_id = $_SESSION['last_id']; $sql = "SELECT * FROM table WHERE id > '$last_id' order by id"; //do query $x =0 while(get_reults && $x < 10){ //do whatever $x++; } $_SESSION['last_id'] = id; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] saving resource objects

2003-12-16 Thread Tom Rogers
Hi, Wednesday, December 17, 2003, 12:32:25 PM, you wrote: ML> Thanks for the info, Tom. That explains it. I can't really run the query ML> again because of time and the size of the database. There is currently over ML> 200,000,000 records in some of the tables. The subsets I get ar

Re: [PHP] Setting the environment PATH

2003-12-19 Thread Tom Rogers
tenv('PATH'); $newpath = $newpath.':'.$current_path; putenv('PATH='.$new_path); Now any exec shells will get the new path -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] apache chroot + mail()

2003-12-23 Thread Tom Rogers
can't think of RV> anything that's your own fault. RV> -- Quote Of The Day -- from inside a chroot jail you will never get mail to work, try using one of the many classes that are around to do SMTP mailing. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mcrypt and PHP to encrypt values to be passed to differend server

2003-12-28 Thread Tom Rogers
c_message=$enc_message //next page $enc = new encrypt_class(); $serial = $enc->decode($_GET['enc_message']); $message = unserialize($serial); print_r($message); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can somebody convert this short Perl Script to PHP?

2003-12-29 Thread Tom Rogers
u can start with #!/usr/bin/php = 0; $s-- ) { $oldname = ($s > 0)? $filename.$s : $filename; $newname = $filename.($s+1); if(file_exists($oldname)){ rename($oldname,$newname); } } } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP forms that are valid XHTML

2003-12-30 Thread Tom Rogers
ed locally on the client and not passed when you press submit, there is nothing wrong with using both if id is needed like -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] urlencoding.

2003-12-31 Thread Tom Rogers
= 'UserID='.$UserID; $query_string .= '&Password=.stripslashes($Password); $query_string .= '&Email=.stripslashes($Email); $query_string .= '&FName='.stripslashes($FName); $query_string .= '&LName='.stripslashes($LName); $query_string .= '&ErrorMsg='.$ErrorMsg; $redirectStr .= urlencode($query_string); header("Location: $redirectStr"); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[3]: [PHP] Having problems with a while loop

2004-01-01 Thread Tom Rogers
e); RK> $fpData = explode(":", $fpLine); RK> $fpData[0] = trim($fpData[0]); RK> echo $fpData[0]; RK> } RK> And no I am just reading a .htpasswd file to get the user name out of RK> it should be while(!eof. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sort a while loop ?

2004-01-02 Thread Tom Rogers
> Checked by AVG anti-virus system (http://www.grisoft.com). DC> Version: 6.0.556 / Virus Database: 348 - Release Date: 26/12/2003 add ORDER BY number DESC to your mysql query -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] End slash, small problem.

2004-01-02 Thread Tom Rogers
the last character? RA> Thanks, RA> -Ryan I do it like this: $sep = (PHP_OS == 'Windows')? '\':'/'; $template_path .= (substr($template_path,-1) == $sep)? '':$sep; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] End slash, small problem.

2004-01-03 Thread Tom Rogers
1) == $sep)) $template_path .= $sep; Not in single quotes I thought ..could be wrong though :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting results from Select Multiple HTML tag

2004-01-05 Thread Tom Rogers
it: TL> ex: count($_POST['test[]']); TL> That doesn't even look right. Anyone understand what I'm tryin to get TL> at? Any help would be great. TL> Best Regards, TL> -- TL> Tyler Longren TL> J.D. Web Services, L.C. try $_POST['test'][] or

Re: [PHP] web-based and command line mcrypting and back again

2004-01-06 Thread Tom Rogers
options. GCN> Command Line Example: GCN> echo "abcdefghijklmnopqrstuvwxyz" | mcrypt -Fb -m ecb -a tripledes | GCN> encode-base64 GCN> echo "" | decode-base64 | mcrypt -dFb -m ecb -a tripledes GCN> I would appreciate any comments or suggestions. GCN> Respectfully, GCN> Gary try setting the iv to all 0's $iv = 0; $iv = pack("a".mcrypt_enc_get_iv_size($td),$iv); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: web-based and command line mcrypting and back again

2004-01-07 Thread Tom Rogers
Hi, Wednesday, January 7, 2004, 8:54:16 AM, you wrote: GCN> Tom, GCN> I appreciate the suggestion, but even after setting the iv to zero GCN> within the php code and including the --noiv option within the command GCN> line; it still does not produce the same base64 encoded string und

Re: [PHP] Changing the Time Zone in php.ini

2004-01-08 Thread Tom Rogers
putenv('TZ=America/Chicago'); break; case 'ukdomain.com': putenv('TZ=GB'); break; default: putenv('TZ=Australia/Brisbane'

Re: [PHP] open_basedir clarification

2004-01-09 Thread Tom Dangler
to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/" php manual link: http://www.zend.com/manual/features.safe-mode.php Tom Dangler >>> "Matt Grimm" <[EMAIL PROTECTED]> 01/08/04 07:16PM >>> Can anyone cla

Re: [PHP] Week calculating

2004-01-13 Thread Tom Rogers
end: $year = 2004; $start = strtotime($year.'-1-1'); $tuesday = strtotime('1st tuesday', $start); while($year == 2004){ echo date('d/m/Y',$tuesday).''; $tuesday += (7*24)*60*60; $year = intval(date('Y',$tuesday))

Re: [PHP] Empty reference parameter

2004-01-13 Thread Tom Rogers
quot;object passed"; } } test($ref); $ref =& new object; test($ref); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to display a font with two words???

2004-01-13 Thread Tom Rogers
? MH> prob. a stupid question, MH> thanks a lot, MH> Matt if you are using echo do echo ''; if outside of php just add the quotes -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can php select which ini file to use?

2004-01-13 Thread Tom Rogers
mailto:[EMAIL PROTECTED] If you run php as cgi you can try putting the inifile in the same directory as the php.exe and it will probably use that one first. (I do this with the cli version haven't tried it with cgi) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is ' or " different in MS-Word then ascII?

2004-01-14 Thread Tom Rogers
28 156 226 128 157 for the 2 quotes here is a bit of code to fix them and a few others, I would be interested if anyone knew the complete set of these weirdos :) $crap = array(chr(226).chr(128).chr(147),chr(226).chr(128).chr(156),chr(226).chr(128).chr(157),chr(226).chr(128).chr(153)); $clean = arra

Re[2]: [PHP] is ' or " different in MS-Word then ascII?

2004-01-14 Thread Tom Rogers
rested if anyone knew the complete set of these weirdos :) TR> $crap = TR> array(chr(226).chr(128).chr(147),chr(226).chr(128).chr(156),chr(226).chr(128).chr(157),chr(226).chr(128).chr(153)); TR> $clean = array('-','"','"',"'"); T

Re: [PHP] how to check the form filled all

2004-01-19 Thread Tom Rogers
g any value, it returns 'true'. SH> what's wrong with my code? try if(empty($val)) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] connecting PHP to MS Access

2004-01-19 Thread Tom Rogers
similar - any thoughts? I'm sure someone has had to do this TT> before - am I on the right track or should I be looking elsewhere? TT> Thanks TT> -Tim Probably the simplest way is to install the mysql odbc driver in windows then just export from access, it should create the table automatic

Re: [PHP] Odd Code Error.

2004-01-20 Thread Tom Rogers
t; else JP> { JP> echo "EA is NOT EQUAL to NFH see $EA"; JP> } ?>> JP> Thanks in advance. JP> Jonathan Pitcher Try swapping positions if("NFH" == $EA) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mcrypt win32 install problem ?

2004-01-21 Thread Tom Rogers
d to my computer / configuration... VD> current config VD> PHP 4.3.4 VD> Win 2000 VD> PEAR VD> php in fo seems correct about mcrypt It seems they changed the name of the deinit function in windows, use mcrypt_generic_end($td); instead of mcrypt_generic_deinit($td); -- regards

Re[2]: [PHP] mcrypt win32 install problem ?

2004-01-21 Thread Tom Rogers
Hi, Thursday, January 22, 2004, 2:16:22 AM, you wrote: scb> Hi Tom, Vincent, list, scb> Tom, your response caused some confusion here. I have mcrypt running on win32 scb> (Win98, Apache 1.3.29 & 2.0.48, PHP 4.3.4 & PHP 5beta3) and am in fact using scb> mcrypt_generic_dei

Re: [PHP] Html forms on windows servers

2004-01-22 Thread Tom Rogers
erver, and maybe its php101... but I CSA> could really use some help. CSA> Thanks, CSA> Carolina You probably need to use $message_body = "Nombre: ".$_POST['f_nombre']."\n" for all the values submitted via the form. I would guess that register_globals is set to off (the default these days). If they are not posted then use $_GET['f_nombre'] and if not sure use $_REQUEST['f_nombre'] -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
the stream without having to save it to a file first if that is what is worrying you. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] pass by reference

2004-01-22 Thread Tom Rogers
Hi, Friday, January 23, 2004, 3:18:06 PM, you wrote: KW> This one time, at band camp, Tom Rogers <[EMAIL PROTECTED]> wrote: >> php can output the stream without having to save it to a file first if >> that is what is worrying you. KW> That was sorta my concern, but not

Re: [PHP] mycrypt on local doesn't decode but does on web server?

2004-01-24 Thread Tom Rogers
e W>   W> Will Get the dll from here and try (just the mycrypt.dll, don't use the php_mycrypt.dll it is missing a bit) http://ftp.proventum.net/pub/php/win32/misc/mcrypt/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem: Failed to write session data (lack of resources?)

2004-01-25 Thread Tom Rogers
k like this drwxrwxrwt2 root root 0 Jan 25 23:00 tmp -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match_all : not all regular expressions ?

2004-01-26 Thread Tom Rogers
he line with the regular expression after preg_match_all JJM> What's that ? preg_* functions needs delimiters for the expression like '//' or if there are likely to be / in the text you can use others like '!!' Its also a good idea to use single quotes so the expression gets ignored by php -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cgi--remove X-Powered-By and Content-type

2001-01-10 Thread Tom Harris
I'm sure this is an easy question (I'm just too dumb to figure it out). When I run a php script from the shell it always outputs X-Powered-By: PHP/4.0.3pl1 Content-type: text/html Normally I just ignore this, but I've been using cron to run a php script and I'm getting my mailbox cluttered with

[PHP] submit opens two windows/pages

2001-01-14 Thread Tom Beidler
would also like a pop up or junior window to open. Thanks for any assistance, Tom >>.>>.>>>.>>>>>.>>>>>>>>> Tom Beidler Orbit Tech Services 805.455.7119 (cell) 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] >>.

[PHP] new email address

2001-01-17 Thread Tom Beidler
Just a quick note to all. My old address, [EMAIL PROTECTED], will no longer be in service. You can reach me at [EMAIL PROTECTED] or [EMAIL PROTECTED] Please make the necessary changes to your address books. Thanks, Tom >>.>>.>>>.>>>>>.>>>>&g

[PHP] ClibPDF Tutorial?

2001-01-18 Thread Tom Harris
Does anyone know a good tutorial on using the ClibPDF functions (I gave up on pdflib, couldn't get it complied correctly)? I don't need to know how to do anything complex, just put text into a pdf that outputs directly to the browser. Thanks. -- PHP General Mailing List (http://www.php.net/

[PHP] why does pdfclock and example 1 doesn't

2001-01-18 Thread Tom Harris
On http://www.php.net/manual/en/ref.cpdf.php the clock example works fine for IE. But the Example 1(even the modified one in the comments) falls victim to the IE wants Content-length set, problem. Can some explain this to me? Thanks -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] cpdf text wrap

2001-01-19 Thread Tom Harris
When I create a pdf with the cpdf functions my text keeps going off the edge of the page. How do I make it wrap to the next line? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

[PHP] file upload error w/internet exploder!

2001-02-22 Thread Tom Beidler
isplayed in the form field prior to upload. IE only displays the file name, no path. Is there a way that I could force the path along, echo maybe? >>.>>.>>>.>>>>>.>>>>>>>>> <<<<<<<<<.&

php-general@lists.php.net

2001-02-22 Thread Tom Harris
I want to assign a value using the url however the value contains both a ? and an & so PHP (or the browser) seems to get confused. Here's an example: http://www.mysite.com/index.php?id=23&url=http://www.anothersite.com/file.ph p?qid=234&forum=4 Everything after url= should be the value of $url

[PHP] echo only displays first character

2001-03-16 Thread Tom Harris
e both assigned earlier in the script by pulling data from a MySQL database. Is $name a reserved word or something? Anyone know why just changing the array's name fixes the problem? Thanks, -Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] pulldown population not getting the last value

2001-03-18 Thread Tom Beidler
demo_id'" . " ORDER BY name"; $contact_result = mysql_query ($contact_query) or die ("Cannot build contact"); while ($contact_row = mysql_fetch_array ($contact_result)) { $name = $contact_row["name"]; $option_co

[PHP] unlink failed message in page but files are removed!

2001-03-19 Thread Tom Beidler
. On the script that doesn't work, I query the database to find files that were posted by others which are 24 hours old and then delete them. Thanks in advance. >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidle

Re: [PHP] pulldown population not getting the last value

2001-03-19 Thread Tom Beidler
on 3/19/01 7:08 AM, Jason Stechschulte at [EMAIL PROTECTED] wrote: > On Sun, Mar 18, 2001 at 05:38:36PM -0800, Tom Beidler wrote: >> I'm trying to create a pulldown menu with distinct names from the found set. >> For some reason I never get the last name. Here's my co

Re: [PHP] Compiling Truetype fonts

2001-04-17 Thread Tom Rogers
HI I have been corrected b4 but I compiled gd with truetype support and it works fine. I think you have to edit the gd Makefile. Then delete the php config.cache and re run configure Tom At 11:47 PM 17/04/01 +0200, barce wrote: >Hello, > >I am having problems compiling truetype font sup

[PHP] submit form values to new site after validation

2001-04-19 Thread Tom Beidler
riables is through a submitted form or the url and I don't want to put the credit card info in the url. Any help would be greatly appreciated. Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidle

Re: [PHP] Lynx, Cron and PHP

2001-04-19 Thread Tom Rogers
Hi Just run lynx -dump url > /dev/null in the cron Tom At 10:55 AM 20/04/01 +1000, Chris Aitken wrote: >I have a PHP script which runs a query, and emails the results to me. I am >trying to make Cron run this script. > >I can get it to launch my PHP script and it emails m

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Tom Rogers
Hi Here is another way $x = 1; while($x < 5): $index = "name".$x; $name = $$index; echo $name.""; endwhile; had troubles with echo and $$variable, thats why the extra stephabit Tom At 10:58 AM 23/04/01 +1000, Chris Aitken wrote: >Hi >

[PHP] "reffered from" environmental variable?

2001-04-24 Thread Tom Beidler
7;s hosting one of the two sites that will be using the shopping cart. Any help would be appreciated, Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [

[PHP] explode won't explode

2001-04-27 Thread Tom Beidler
fore and works. if (($color != "") && ($color != "n/a")) { $colorarry = explode(",", $color); while (list($key,$value) = each($colorarry)) { $color_option_block .= "$value\n"; } I'm not that familiar with explode. Are my $key and $value vari

[PHP] PHP script that creates an SSL connection

2001-04-28 Thread Tom Beidler
ot; Any input or direction greatly appreciated. Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.co

[PHP] is CURL right for SSL post to payment processing Authenticate.net

2001-05-01 Thread Tom Beidler
e.net/docs Thank you for contacting our customer service group." I found some info about CURL, http://curl.haxx.se/, and it seems like it might do the trick. I was wondering if anyone has experience with this a can confirm that this is the best approach or give me some other direction. Thanks

[PHP] is CURL right for SSL post to payment processing Authenticate.net

2001-05-01 Thread Tom Beidler
hat this is the best approach or give me some other direction. Thanks, Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://w

Re: [PHP] PHP & Java ?

2001-05-04 Thread Tom Carter
tered the javascript part of the code, or the html it refers to. I'ld back track and check carefully if I was you. Templates won't help directly, except that if you find one which does what yuo want then obviously you know that will work. Personally, I prefer writing my own stuff for my o

[PHP] problem with PHP and .htaccess

2001-05-04 Thread Tom Carter
27;m not very comfortable wit h.htaccess, not something I've used very much. I am fairly sure that it isn't the last linethe exact same file worked fine doing, say phpMyAdmin, with the only difference being that phpMyAdmin has all its files in one directory. I hope this email makes

Re: [PHP] Netscape and post

2001-05-05 Thread Tom Carter
Are you trying to post a form back to the same script, which will then process it? If so then the easiest way is just On Fri, 4 May 2001, Chris Adams wrote: > On 4 May 2001 21:48:46 -0700, Richard Kurth <[EMAIL PROTECTED]> wrote: > > I am having problems with Netscape and post in a form > > In

Re: [PHP] "Free" Database Design Program

2001-05-05 Thread Tom Carter
that complex in mysql) Hope this helps, Tom Carter Web Architect roundcorners ltd. On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: > Anyone know a "Free" database Design program? I'm needing to organize my > MySQL databases and design new databases. > > regards, &g

Re: [PHP] "Free" Database Design Program

2001-05-05 Thread Tom Carter
I've not heard of such a thing, and I would doubt that there is such a thing for mysql...generally such tools are for the db2's etc. let me know if you find anything tho, quite intruged Tom Carter Web Architect roundcorners ltd. On Sat, 5 May 2001, Augusto Cesar Castoldi wrote: >

Re: [PHP] nslookup function ?

2001-05-06 Thread Tom Carter
A built in function in PHP (avoids running command line stuff) that does a reverse DNS lookup on an IP address... $host = gethostbyaddr($REMOTE_ADDR); (took me quite a while to find this one) HTH, Tom On Sat, 5 May 2001, Kurth Bemis wrote: > At 04:11 PM 5/4/2001, Matthew Luchak wr

Re: [PHP] Really easy question

2001-05-06 Thread Tom Carter
The easiest way is to create a simple page (called say test.php) with the following This should display a page with all sorts of information about your PHP, and serves as a good test as to whether or not PHP is working Good luck! Tom Carter Web Architect roundcorners ltd. On Sun, 6 May 2001

Re: [PHP] Re: [PHP] Large Memory Problem

2001-05-07 Thread Tom Carter
can download it to your local machine at your leisure HTH Tom On Mon, 7 May 2001, [iso-8859-1] Natasha wrote: > Hi, > > you probably didn't understand my problem. > > I'm not on a very speedy connection, however having > access to a server, which has PHP enab

Re: [PHP] Zip support

2001-05-08 Thread Tom Carter
them on the server and use exec() to run zip on the command line to read the files back into php. Not the best way I know, but it worked. HTH, Tom > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e

Re: [PHP] Search a string between

2001-05-09 Thread Tom Carter
The problem is that it matches the first foo with the first /foo and the second foo witht eh /foo ( andmatches those properly) but it also matches the first foo with the second /foo (thisnk of the logic of the regex). What you need to do is rather than specify any character (.*) specify any charac

Re: [PHP] ASP 2 PHP?

2001-05-09 Thread Tom Carter
I don't have any direct experience using it, but colleagues I know have given it great reviews. ASP2PHP script (nice name ;o) ) http://asp2php.naken.cc/ Tom Carter Web Architect roundcorners ltd. On Wed, 9 May 2001, Brandon Orther wrote: > Hello, > > I am looking at a complete

RE: [PHP] Hi!

2001-05-11 Thread Tom Carter
If you know what page(s) are being used to load the end page then on these pages you could pass the $HTTP_REFERER value from the middle page to the end one and use that in the redirect Tom Carter Web Architect roundcorners ltd. On Fri, 11 May 2001, Johan Vikerskog (ECS) wrote: > Hi Ben.

[PHP] Search engines and mod_rewrite

2001-05-13 Thread Tom Carter
aincat=weather&subcat=sunny. Would this in fact even fix the problem? Its a hard thing to test! Does anyone have any experience using this? And what is the advice from people on how best to get google&co to spider your site and find your content effectively? Thanks in advance Tom -- PH

[PHP] Multiple emails

2001-05-20 Thread Tom Carter
not I might add! Any advice and past experience would be very welcome. BTW, my system is apache on linux, php 4.0.4pl1 running on a cobalt raq. Thanks in advance Tom Carter Web Architect roundcorners ltd. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] select the max value

2001-05-21 Thread Tom Rogers
Hi try: select * from score order by scorevalue DESC LIMIT 1 or if your db supports sub selects: select * from score where scorevalue=(select MAX(scorevalue) from score) Tom At 03:38 PM 21/05/01 -0500, Jacky wrote: >Hi all >Is this the corerct way of selecting the max value in a

[PHP] Getting elapsed time between two MySQL time fields

2001-12-31 Thread Tom Beidler
need to do this in MySQL? Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] mktime and variables not working

2002-01-03 Thread Tom Beidler
I'm trying to calculate elapsed time and I'm having trouble using mktime with variables. Here's my code; $reformat_stop = str_replace(":", ",", $x[stop]) . ",1,1,2002"; $stop=mktime($reformat_stop); I don't know how to format the code for mktime to use a variable. I keep getting -1 for $stop bu

[PHP] how can I add a variable to this sample

2002-01-03 Thread Tom Beidler
$service_type_insert = $x[$keyservice_type]; $service_type_insert = $x['\$keyservice_type']; $service_type_insert = $x["$keyservice_type"]; Is there a way that I can format it correctly? Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

[PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Tom Beidler
So far nothing seems to work which leads me to believe there's something else wrong. Here's what I've tried $service_type_insert = $x['926service_type']; //works fine when I hard code a value in and returns proper value $service_type_insert = $x[$$keyservice_type]; //returns empty even though

Re: [PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Tom Beidler
No more callers. We have a winner! Thanks to all for your input! > From: "Geo" <[EMAIL PROTECTED]> > Date: Fri, 4 Jan 2002 02:27:45 +0200 > To: "Tom Beidler" <[EMAIL PROTECTED]> > Subject: Re: how can I add a variable to this sample > > $x

Re: [PHP] Checking the season

2002-01-05 Thread Tom Rogers
e 08 or 09 in the month part...on my system this happens (linux/apache/php4.1) "; ?> This prints: date = 21/12/2001 Also prints the same date for a month of 08 Tom At 11:34 AM 6/01/02, webapprentice wrote: >I'll have to use and if/elseif construct, because I don&#x

Re: [PHP] Checking mail origin?

2002-01-08 Thread Tom Rogers
Hi You could get all your users to add an encrypted signature to their emails and check that on recieipt. Tom At 11:35 AM 9/01/02, Bogdan Stancescu wrote: >Hi all! > >I'm working on a free software package due to be launched on freshmeat >some time soon (next month most proba

Re: [PHP] ok, I ask again.. how to encrypt to be able to match database info?

2002-01-21 Thread Tom Rogers
Hi Encrypt the password from the form using the same salt value as the one used for the database then compare them... Tom At 05:36 22/01/02, Hawk wrote: >I've asked this several times but it doesn't seem like anyone understands my >problem, the passwords are encrypted in the

Re: [PHP] PHP and XHTML

2002-01-26 Thread Tom Rogers
Hi use single quotes and it is simpler echo ''; Tom At 09:40 27/01/02, Frans Englich wrote: >This works just perfectly: > > "); ?> > > > regards, > Cyth > > --- > >-BEGIN PGP SIGNED MESSAGE- >Hash: S

[PHP] problem with relative header

2002-01-28 Thread Tom Beidler
move the pages to an "ultra top secret" server that I won't have access to so I would like to make it easy for him when he moves them instead of telling him what to edit. Unfortunately I only get a simple "connection error" message instead of the address that is failing

Re: [PHP] image generation issues

2002-02-11 Thread Tom Rogers
Hi Some of MS fonts wont work, try downloading some freeware fonts. Tom At 01:24 PM 2/12/02, Adrian Murphy wrote: >tried everything suggested and still get 'could not read font' oh well >thanx. > >- Original Message - >From: "hugh danaher" <

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Tom Rogers
Hi It uses cookies and only cookies and it seems that sessions are started on every access but can be turned off on individual pages if required. Tom At 07:44 AM 2/16/02, Peter J. Schoenster wrote: >On 15 Feb 2002, at 14:43, Bendik Simonsen wrote: > > > > I have however, noti

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Tom Rogers
Hi Yes you are right ... i had my head tied up with sessions :) Tom At 02:12 PM 2/16/02, michael kimsal wrote: >Tom Rogers wrote: >>Hi >>It uses cookies and only cookies and it seems that sessions are started >>on every access but can be turned off on individual pag

[PHP] http_referer

2002-02-18 Thread tom hilton
Hi, I am trying to pull http_referer info on users accessing a certain page, but am not having any luck. When I run phpinfo(), the referer information is listed with all the other server variables, but when I pull a list of the server variables as an array and print them, they all appear except f

Re: [PHP] Apache+PHP+DSO: maybe trivial (?): apxs doesn't create libphp4.so under AIX 4.3.3

2002-02-19 Thread Tom Rogers
Hi Make sure you include at least one internal apache module as shared (i used mod_rewrite) otherwise apache doesn't include enough linker information in apxs. you will probably have to do make distclean and start again with configure Tom At 09:18 PM 2/19/02, Erwin S R U B A R wrote

<    3   4   5   6   7   8   9   10   11   12   >