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
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+
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
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
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
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 (($
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)
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/)
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
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.
> 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"
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
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
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
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
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
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
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
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
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
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
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
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]>
>
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
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
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
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
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,",
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]>
>
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
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
ether?
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
Tom Beidler
Orbit Tech Services
805.682.8972 (phone)
805.682.5833 (fax)
[EMAIL PROTECTED]
http://www.orbittechservices.com/
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
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/
>>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
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
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
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
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
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)
[
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
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
. 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
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
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?
>>.>>.>>>.>>>>>.>>>>>>>>> <<<<<<<<<.&
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
>>.>>.>>>.>>>>>.>>>>>>>>>
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
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]
>>.
59 matches
Mail list logo