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

2002-07-09 Thread Tom Beidler
I have a client that is looking to generate unlock codes for a cd and has given me a calculation that is new to me. There are a number of numbers associated with each CD, i.e. CD id, CD serial #, hardware code. Based on the info entered, they've provided a calculation that can be used to generate

[PHP] adding a variable to a variable name

2002-07-03 Thread Tom Beidler
I'm wondering if this can be done, and if so, what's the proper way to do it. For the current issue I'm trying to unset some variables with common names and I would like to step through them with a loop. Here's where I'm at to give you an idea but the code doesn't work. for ($i = 2; $i <= 4; $i+

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

[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

[PHP] determining where the computer is that posts to a db

2002-05-29 Thread Tom Beidler
I have a time billing application and I need to determine where people are logging in from to make sure they are signing in at work and not at home. Currently I'm logging the IP address and hostname but I don't think that's the totally sano way to do it. The work sites are using local ISP's that

Re: [PHP] bumping up hour by one

2002-05-01 Thread Tom Beidler
operator error. I didn't show all the code. Here it is; $display_time = date("H:i"); // round time to nearest 15 minute interval $display_timex = explode (":",$display_time) ; if (($display_timex[1] >= 00) || ($display_timex[1] <= 07)) { $insert_time = $display_timex[0] . ":00"; } elseif (($

[PHP] bumping up hour by one

2002-05-01 Thread Tom Beidler
I'm having some problem with some code where I'm trying to round the hour up to the next hour if the minutes are between 53 and 59. Here's the important part of the code so you can see what I'm trying to do. $display_time = date("H:i"); // round time $display_timex = explode (":",$display_time)

[PHP] recommendation on PHP bulk email class or script

2002-05-01 Thread Tom Beidler
Just wondering if anyone has a preference for an existing bulk email class or script that is out there. I'm hoping it might be basic that I could use as a start and customize for my companies specific needs. Any input appreciated. Thanks, Tom -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] good php editor for the mac

2002-04-26 Thread Tom Beidler
BBedit it is. I've been holding off on switching for awhile but I just started using it today and I'm already kicking myself for not switching earlier. There was no problem/learning curve that I was afraid of and I've found a number of improvements over the workflow from Dreamweaver. Thanks for al

[PHP] good php editor for the mac

2002-04-26 Thread Tom Beidler
Could someone suggest a good php editor for the mac? I'm currently using Dreamweaver because I like the site management and a wysiwyg html editor. But otherwise it's a bummer because it doesn't support php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] calculating US holidays

2002-04-15 Thread Tom Beidler
> Organization: Captain Jack Communications > Date: Mon, 15 Apr 2002 14:48:15 -0500 > To: "Tom Beidler" <[EMAIL PROTECTED]>, "php list" > <[EMAIL PROTECTED]> > Subject: Re: [PHP] calculating US holidays > > $month = date("m"

[PHP] calculating US holidays

2002-04-15 Thread Tom Beidler
I need to calculate the date to see if it's a holiday, i.e. is today presidents day, which happens to be the third monday of february. Can someone point me to some code that can do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] header location redirect to frameset target

2002-04-02 Thread Tom Beidler
Can you specify a frameset target, i.e. _blank, in a redirect. I have a site built with frames and one of the frames has a redirect in it. Currently the redirect works but pulls the site I want up in the frame and doesn't create an entire new page. -- PHP General Mailing List (http://www.php.ne

[PHP] Tutorial or links for using MyODBC with Excel

2002-03-05 Thread Tom Beidler
I was wondering if anyone could point me to some information about using MyODBC with Excel, or possibly MyODBC in general. I have limited experience using ODBC. I have used Filemaker Pro with a SQL plug-in on the Mac to connect with MySQL successfully but that's it. I've already scanned through th

[PHP] problem with relative header

2002-01-28 Thread Tom Beidler
I pulled some code off of the PHP site to use relative header info. I made the correction and removed the additional "/" and I've got in running fine on my development OSX machine but I've had problems on two different ISPs. Here's the code I've used; header("Location: http://"; . $HTTP_SERVER_VA

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

[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

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

2002-01-03 Thread Tom Beidler
I have a large form that I would like to edit a number of records. I'm putting all of the fields into one array and then I would like to pull the fields independently from a loop. Here's part of the loop foreach ($z as $key => $value) { $service_type_insert = $x['$keyservice_type']; W

[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] Getting elapsed time between two MySQL time fields

2001-12-31 Thread Tom Beidler
I have some records in a MySQL database that store a start and stop time. In my display page that displays the record info I would like to use PHP to find the elapsed time between the two fields. So if I had; Start 13:44:20 Stop 13:49:25 Possibly use a function to calculate Elapsed 5:05 Do I ne

[PHP] incorrect results from is_dir

2001-12-07 Thread Tom Beidler
I'm getting TRUE from is_dir when no directory exists. Here's my code; //Find out if there is an image folder existing $image_folder = floor ($service_datex[1]) . "_" . floor ($service_datex[2]) . "_" . $service_datex[0] . "_" . $site_id; chdir('site_images'); if (is_dir($image_folder) == "TRUE

[PHP] Pull from mysql_fetch_array at a given time

2001-12-03 Thread Tom Beidler
I'm trying to pull three results from a database and then display them in a page. The HTML is clugey so I would like to place print statements in three different places, rather then in a while loop and try and rewrite the HTML for each item. So far I have; $gethot_query = "SELECT title FROM even

Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Tom Beidler
and model_id. Thanks for the good solution though, I should have been more specific. Tom > From: Christopher William Wesley <[EMAIL PROTECTED]> > Date: Fri, 19 Oct 2001 10:43:35 -0700 (PDT) > To: php list <[EMAIL PROTECTED]> > Cc: Tom Beidler <[EMAIL PROTECTED]> >

Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Tom Beidler
if(left(model.model,7)='No model specified','',model.model)"; I get the same results with both. If you can, let me know where I strayed. Also, out of curiosity, is it faster to do it in MySQL rather then PHP? Thanks, Tom > From: "Mark Charette" <[EM

[PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Tom Beidler
I'm running a query that pulls up automotive makes for a given year and orders them alphabetically. One of the options is "no make specified" which I would like to always move to the end of the mysql_fetch_array. So my while loop would pull up AMC Ford Volkswagon No make specified Instead of A

Re: [PHP] PHP Chat recommendations

2001-09-26 Thread Tom Beidler
I did, that's why I'm asking for a recommendation. There are quite a few. > From: "Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]> > Organization: PHPBeginner.com > Date: Wed, 26 Sep 2001 17:18:15 +0200 > To: "'Tom Beidler'&q

[PHP] PHP Chat recommendations

2001-09-26 Thread Tom Beidler
Does anyone have a recommendation on a PHP based Chat system. I'm looking for an easy to install and reliable system. 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 a

[PHP] multiple selections in list/menu field

2001-09-14 Thread Tom Beidler
I'm trying to use a list/menu field with multiple options allowed but I'm only getting the very last selection. Here's part of my code to build the list/menu field; print ("\n"); print ("$option_pd4"); print (" \n"); Here's the code to build the options; $pd4arry = array(array("c1,",

Re: [PHP] double values in array

2001-09-13 Thread Tom Beidler
MYSQL_ASSOC did the trick. Thanks > From: Andrew Perevodchik <[EMAIL PROTECTED]> > Reply-To: Andrew Perevodchik <[EMAIL PROTECTED]> > Date: Thu, 13 Sep 2001 08:10:52 +0300 > To: Tom Beidler <[EMAIL PROTECTED]> > Cc: php list <[EMAIL PROTECTED]> >

[PHP] double values in array

2001-09-12 Thread Tom Beidler
I have a form that I would like to send an email once it's validated. I'm using the following code that builds the body of the email. $y = mysql_fetch_array ($getrec_result); while (list($key,$value) = each($y)) { $body .= "$key: $value\n"; } My body looks like this 0: 3 id: 3 1: 2001-09-1

[PHP] newbie looking to sync access with MySQL

2001-09-05 Thread Tom Beidler
I have a potential customer that just called and would like to create a web site that would display secure info for their clients. Currently his employees are using a flat Access database to add, edit and delete records and he would like to keep it that way. Normally I would create a web manager

[PHP] two dimensional array or two arrays?

2001-08-28 Thread Tom Beidler
I have some code I use to create pulldown menus. It's as follows; $categoryarry = array("","1","2","3","4","5"); while (list($key,$value) = each($categoryarry)) { if ($value == $srch_cat) { $cat_option .= "$value\n"; } else { $cat_option .= "$value\n"; } } It works fine when the pu

[PHP] phpMyAdmin install error

2001-08-22 Thread Tom Beidler
I'm getting the following error with phpMyAdmin; Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/web/isp.com/public_html/dloc/admin/lib.inc.php on line 308 Error Any ideas where to start looking. All I've set in the config.inc.p

[PHP] passing variables between PHP and Perl

2001-08-19 Thread Tom Beidler
I'm integrating a telephony service into a clients site. I'm pretty handy with PHP but I don't have much knowledge of perl. I've setup up my client's site using PHP and the service provided me with a Perl script to make the telephone connection. I used virtual() in my PHP script to pass variables

[PHP] PHP and Perl script in same file?

2001-08-16 Thread Tom Beidler
Can php and perl code reside in the same file? When the document is served up it parses the PHP and then the Perl? -- 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

[PHP] passing variables from PHP to Perl script

2001-08-16 Thread Tom Beidler
I'm trying to integrate an Internet Telephony service for a client. I have a number of variables I need to dump into the clients database and then to pass to the Internet Telephony service via a Perl script they have provided for me that will reside on the client's server. Can I somehow pass them

Re: [PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
16 Aug 2001 13:21:53 -0400 > To: "Tom Beidler" <[EMAIL PROTECTED]>, "php list" > <[EMAIL PROTECTED]> > Subject: Re: [PHP] loose variables when url parsed through Netscape > > You're not sending CC numbers in the url as plain text are you? That'

[PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
I'm trying to integrate a payment processing service for a client. The client would like to store the values passed from the payment processing service in a database on the clients server. I'm using a Meta Tag redirect from the payment processing service to my client to pass the variables. Unfort

[PHP] sample or tutorial for conditional pulldown menus

2001-08-07 Thread Tom Beidler
I have a client that would like to duplicate something they've seen on one of their competitor's web sites. It's for an automotive parts supplier and they would like to build a search engine for different make, model, and year applications. Since a picture is worth a thousand words here's a url to

Re: [PHP] Fatal error: Call to undefined function:mysql_pconnect() in ...

2001-07-11 Thread Tom Beidler
I have tried mysql_connect() with the same result "Fatal error: Call to undefined function: mysql_connect()..." > From: "Matthew Loff" <[EMAIL PROTECTED]> > Organization: Willetts Systems > Date: Wed, 11 Jul 2001 16:01:13 -0400 > To: "'Tom Beidl

[PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread Tom Beidler
I'm working with an new ISP and I'm having trouble connecting to MySQL through PHP 4. Here's some server specifics; PHP Version 4.0.4pl1 Apache/1.3.14 DBA supportenabled Supported handlersgdbm db2 db3 I'm getting the following error; Fatal error: Call to undefined function: mysql_pconn

[PHP] Netscape error on first attempt to load PHP page but not second

2001-07-03 Thread Tom Beidler
a secure site using cookies and redirects if the cookie isn't set. Thanks, Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTE

[PHP] Re: recommend a good PHP site specific search engine

2001-07-03 Thread Tom Beidler
I should have mentioned that it will run on a Windows box. on 7/3/01 7:00 AM, Tom Beidler at [EMAIL PROTECTED] wrote: > Can anyone suggest a good PHP/MySQL search engine to be used to search a > site (not the entire Internet). I have a site with an extensive amount of > manual page

[PHP] recommend a good PHP site specific search engine

2001-07-03 Thread Tom Beidler
Can anyone suggest a good PHP/MySQL search engine to be used to search a site (not the entire Internet). I have a site with an extensive amount of manual pages that we would like to provide a search engine for. Thanks, Tom >>.>>.>>>.>>>>>.>>>&g

[PHP] how to delete cookies

2001-06-19 Thread Tom Beidler
ether? >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.com/ >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>

[PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked

2001-06-18 Thread Tom Beidler
egy? Have I said Thank you enough to Rasmus Lerdorf and whomever else was involved in resuscitating the list? Thanks Rasmus Lerdorf and all others involved for getting the list back up and running. >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.com/ >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>

[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

[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] 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] 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] "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] 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] 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

[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

[PHP] pulldown population not getting the last value

2001-03-18 Thread Tom Beidler
ntact .= "$name\n"; } What gives? Any help would be appreciated. Thanks, Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL

[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] Newbie file upload problem

2001-02-14 Thread Tom Beidler
ck the permissions on the PHP temp directory and assign PHP the permission to write to my final destination directory. Which they say they have done. Any ideas where to look next? Thanks, Tom >>.>>.>>>.>>>>>.>>>>>>>>>

[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] 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] >>.