[PHP] Error Trapping

2009-07-10 Thread Floyd Resler
I'm having a hard time getting my head around this problem. I have to connect to a FoxPro database using an ODBC driver. Sometimes when I connect I get an error. The error doesn't occur all the time and usually another connect attempt works. I can trap the error through an error handler

Re: [PHP] Error Trapping

2009-07-10 Thread Floyd Resler
Eddie, Thanks for the tip. It suddenly occurred to me what I was doing wrong. I do use an error trap but I was telling my script to stop running after the error. So, now I ignore it and continue through the loop you suggested. I guess it was working exactly the way I had written it!

Re: [PHP] mod primary key field - newbie question

2009-07-13 Thread Floyd Resler
Sounds like you want to set the auto increment. To do that, use this query: alter table `table_name` auto_increment 1; That will reset it to one. Although I've never tried it, I assume you can give it another value. Take care, Floyd On Jul 13, 2009, at 5:35 PM, c...@hosting4days.com wrot

Re: [PHP] Back from the dead with a racing question!

2009-07-17 Thread Floyd Resler
On Jul 17, 2009, at 1:54 PM, Jason Pruim wrote: On Jul 17, 2009, at 11:56 AM, Bastien Koert wrote: On Fri, Jul 17, 2009 at 11:51 AM, tedd wrote: At 11:12 AM -0400 7/17/09, Jason Pruim wrote: Hi everyone! So some of you may have noticed that I have been away for quite awhile... Been tr

[PHP] PHP and FoxPro

2009-07-19 Thread Floyd Resler
We currently use the Easysoft ODBC Bridge to connect to a remote FoxPro database. The problem is that the bridge, after a while, starts consuming a ton of system resources and we have to reboot the machine. Afterwards, it can take upwards to two hours before everything is running quickly

Re: [PHP] PHP and FoxPro

2009-07-20 Thread Floyd Resler
Paul, Believe me I would like nothing more that to get rid of FoxPro and convert it to MySQL. Sadly, that's not possible right now. I'll check into dBase. Thanks! Floyd On Jul 19, 2009, at 4:53 PM, Paul M Foster wrote: On Sun, Jul 19, 2009 at 09:00:49AM -0400, Floyd Resler w

Re: [PHP] PHP and FoxPro

2009-07-21 Thread Floyd Resler
Matt, Thanks for the information. I'll look into using ODBTP. I noticed you mentioned the problem with memos. I currently have that problem with the set up we're using and it is a pain! Thanks! Floyd On Jul 20, 2009, at 3:22 PM, Matt Neimeyer wrote: We currently use the Easysoft ODBC B

Re: [PHP] PHP and FoxPro

2009-07-21 Thread Floyd Resler
ERE x=y You might be able to limit the total number of calls to the database that way... If I wasn't in the process of migrating to MySQL I might give it a whirl... :) Hope this helps whatever you decide to do. On Tue, Jul 21, 2009 at 8:27 AM, Floyd Resler wrote: Matt, Thanks fo

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-21 Thread Floyd Resler
Keep in mind that sessions are based on the domain. I've run into situations where someone will be working in several different sites that we host. Each site is accessed via http://domain/site. Each site has it's own database, users, etc. However, because they all hang off the same doma

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Floyd Resler
You can do so much more with storing sessions in a database. For example, I can determine which of my users is currently on by looking in the sessions table. Not only does using a database for sessions offer more security, it also offers more flexibility. Take care, Floyd On Jul 22, 2009

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Floyd Resler
9, at 8:36 AM, Ashley Sheridan wrote: On Wed, 2009-07-22 at 08:32 -0400, Floyd Resler wrote: You can do so much more with storing sessions in a database. For example, I can determine which of my users is currently on by looking in the sessions table. Not only does using a database for sessions

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Floyd Resler
The nice thing about the database, though, is that you can specify which MySQL user has access to the sessions table. That way you can really lock it down by giving access to only INSERT, SELECT, UPDATE, and DELETE just for that table. Thanks! Floyd On Jul 22, 2009, at 9:36 AM, Andrew Bal

Re: [PHP] Structure of PHP files

2009-07-23 Thread Floyd Resler
When I first started programming in PHP I used the second method you mentioned. I had a single file I called utils.php and it contained all the functions I could possibly need throughout my site. Unfortunately, this file grew to be over 10,000 lines and most of the time I only needed a co

Re: [PHP] Structure of PHP files

2009-07-23 Thread Floyd Resler
'Tis true. I just find dealing with the smaller files much easier. At the time I was using Komodo IDE and it would get very sluggish with the larger files. Take care, Floyd On Jul 23, 2009, at 9:34 AM, Robert Cummings wrote: Floyd Resler wrote: When I first started programming in

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Floyd Resler
On Jul 28, 2009, at 9:55 AM, Miller, Terion wrote: On 7/28/09 8:52 AM, "Ashley Sheridan" wrote: On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: On 7/28/09 8:44 AM, "Ashley Sheridan" wrote: On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: On 7/28/09 8:35 AM, "

Re: [PHP] Re: Message Board Recommendations

2009-07-29 Thread Floyd Resler
On Jul 29, 2009, at 8:44 AM, Al wrote: tedd wrote: Hi gang: I have a client who is looking for a "Message Board for Subscribers" to be installed on his site -- one with a good admin. Any recommendations? Thanks, tedd If your request is for a forum type, then SMF is super http://www.s

[PHP] Locating Bad Image Files

2009-07-29 Thread Floyd Resler
I use convert to create thumbnail images. However, we have several PDFs that convert doesn't seem to like. Even though it produced error messages it still creates the thumbnail which doesn't display an image. Is there an easy way for me to identify those bad image files somehow in PHP by

Re: [PHP] OUCH (RESOLVED)

2009-08-05 Thread Floyd Resler
Terion, I've been sitting in the background watching all this unfold and thought I would chime in. I passed along your "all caps" email to a co-worker of mine (she programs in FoxPro) and she said she could definitely relate to what you were going through! As for people being honest (es

[PHP] Pattern Matching

2009-08-06 Thread Floyd Resler
I need some assistance in pattern matching. I want allow the admin user to enter a pattern to be matched in my order form editor. When someone then places an order I want to do a match based on that pattern. Some of the examples I thought for the patterns are: - must be numeric a

Re: [PHP] Re: Pattern Matching

2009-08-07 Thread Floyd Resler
Thanks to Martin's answer to my question (giving me the regular expressions to my patterns) I can convert the patterns the admin users enter into regular expressions. Thanks! Floyd On Aug 6, 2009, at 6:19 PM, Ben Dunlap wrote: I need some assistance in pattern matching. I want allow the ad

Re: [PHP] Pattern Matching

2009-08-07 Thread Floyd Resler
re at least 1 character) ##-A#A = \d\d-\w\d\w On Thu, Aug 6, 2009 at 6:57 PM, Floyd Resler wrote: I need some assistance in pattern matching. I want allow the admin user to enter a pattern to be matched in my order form editor. When someone then places an order I want to do a match based on

Re: [PHP] Is select_db necessary?

2009-08-12 Thread Floyd Resler
mysql_select_db is not necessary but it does make writing queries easier since you don't have to specify which database in each query. Take care, Floyd On Aug 11, 2009, at 11:23 PM, Allen McCabe wrote: I have seen different scripts for working with SQL, and most follow the same method wit

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Floyd Resler
I use a combination of procedural and OOP for my scripts. Mainly because I have a lot of old code I wrote before I understood OOP. Now that I do it makes my life so much easier because of the organizational and reusability benefits. In today's world I will gladly trade a little overhead

Re: [PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Floyd Resler
I would create a room history table that contained three fields: room number, status, date stamp. Each time the status of a room changes insert a new record into the table with the current status and date/ time. Take care, Floyd On Aug 18, 2009, at 10:45 AM, Behzad wrote: Dear list, e-Gr

[PHP] PDF Width

2009-08-19 Thread Floyd Resler
Does anyone know how I can find the width of a PDF in PHP? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SESSIONS lost sometimes

2009-08-20 Thread Floyd Resler
Leon, Sessions are used on a per-domain basis. So, no matter how many windows or tabs you have open for mydomain.com it will be the same session for all. Having a different session start up for each window or tab would be a major pain. If you needed to keep track of a user ID, for exam

[PHP] String Formulas

2009-08-26 Thread Floyd Resler
How can I take a mathematical formula that is in a string and have the result, product, sum, etc. returned? I did a search on the Web and couldn't find any suitable solutions. Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] String Formulas

2009-08-26 Thread Floyd Resler
Wow, I would never have even thought of that! Thanks! Take care, Floyd On Aug 26, 2009, at 12:08 PM, Ashley Sheridan wrote: On Wed, 2009-08-26 at 12:03 -0400, Floyd Resler wrote: How can I take a mathematical formula that is in a string and have the result, product, sum, etc. returned? I

Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread Floyd Resler
Another solution would be to use JavaScript. In your process.php script you could do this: print<< window.location.href="index.php" here; Not strictly a PHP solution but it works. Take care, Floyd On Aug 28, 2009, at 5:34 AM, Ashley Sheridan wrote: On Fri, 2009-08-28 at 17:32 +080

[PHP] Renaming a Directory

2009-09-08 Thread Floyd Resler
How can I rename a directory with files in it? The rename function gives me a "directory not empty" error. I know I could do it be creating the directory, moving the files, and then deleting the old one. Is there an easier way? Thanks! Floyd -- PHP General Mailing List (http://www.php.

Re: [PHP] Renaming a Directory

2009-09-09 Thread Floyd Resler
Nope, nothing wrong with that at all. Just didn't think of it! Thanks! Floyd On Sep 8, 2009, at 5:46 PM, Eddie Drapkin wrote: On Tue, Sep 8, 2009 at 5:39 PM, Floyd Resler wrote: How can I rename a directory with files in it? The rename function gives me a "directory not empty&

[PHP] strtotime strangeness

2009-10-04 Thread Floyd Resler
For some reason the strtotime is no longer returning the year portion. For example, strtotime("10/04/2009") will result in a date of -10-04. This started happening recently and I haven't done any updates other than the normal OS updates. I am running Mac OS X 10.5.8. Does anyone hav

Re: [PHP] strtotime strangeness

2009-10-04 Thread Floyd Resler
I couldn't find anything in the php.ini file to account for this. I am running PHP 5.2.10. I've never actually updated it myself so the software updater updated it at some point. I did a little test and found out that date(:Y",$timestamp) returns . However, date("y", $timestamp) retu

Re: [PHP] strtotime strangeness

2009-10-04 Thread Floyd Resler
Yeah, the ;Y" was a typo in my email. That's what happens while trying to type while watching my Colts play! Thanks! Floyd On Oct 4, 2009, at 3:06 PM, Tommy Pham wrote: - Original Message ---- From: Floyd Resler To: Andrea Giammarchi Cc: php-general@lists.php.net Sent: Su

Re: [PHP] strtotime strangeness

2009-10-04 Thread Floyd Resler
Sorry to hear that! I live in Cincinnati so I normally don't get to watch the Colts play when they are on at the same time as the Bengals. But this week I did and, best of all, they won! On Oct 4, 2009, at 3:24 PM, Eddie Drapkin wrote: On Sun, Oct 4, 2009 at 3:22 PM, Floyd Resler

Re: [PHP] strtotime strangeness

2009-10-05 Thread Floyd Resler
oming soon. Thanks! Floyd On Oct 5, 2009, at 9:54 AM, Daniel Brown wrote: On Sun, Oct 4, 2009 at 17:00, Floyd Resler wrote: Sorry to hear that! I live in Cincinnati so I normally don't get to watch the Colts play when they are on at the same time as the Bengals. But this week I did a

Re: [PHP] Please don't kick me!

2009-10-19 Thread Floyd Resler
Phillip, I use ezpdf (http://www.ros.co.nz/pdf/). I've been using it for years and have found it very capable of making any PDF I want. Take care, Floyd On Oct 19, 2009, at 4:47 PM, Philip Thompson wrote: Hi all. I know this question has been asked a thousand times on the list, but my

Re: [PHP] Please don't kick me!

2009-10-19 Thread Floyd Resler
pson wrote: On Oct 19, 2009, at 3:52 PM, Floyd Resler wrote: Phillip, I use ezpdf (http://www.ros.co.nz/pdf/). I've been using it for years and have found it very capable of making any PDF I want. Take care, Floyd This one seems fairly neat. However, it appears as though the author

Re: [PHP] Please don't kick me!

2009-10-20 Thread Floyd Resler
9, at 3:25 PM, Philip Thompson wrote: On Oct 19, 2009, at 4:21 PM, Floyd Resler wrote: Nope. I've never had any troubles with it. I've been able to produce all kinds of PDFs including loan agreements, inventory pick lists with barcodes, and various others. I find it incredibly

[PHP] Text File Busy

2009-10-21 Thread Floyd Resler
For some reason I'm getting a Text file busy error when I try to execute PHP scripts from the command line now. It used to work, but now it doesn't. I do have #!/usr/bin/php at the top of my script. If I feed the file to php (i.e. /usr/bin/php -f filename.php) it works. Of course, I can

[PHP] Re: Text File Busy

2009-10-22 Thread Floyd Resler
It happens on any file I try so there must be something else going on. Thanks! Floyd On Oct 21, 2009, at 4:17 PM, Shawn McKenzie wrote: Floyd Resler wrote: For some reason I'm getting a Text file busy error when I try to execute PHP scripts from the command line now. It used to work

Re: [PHP] [php] INSERT and immediately UPDATE

2009-10-28 Thread Floyd Resler
Allen, Use mysql_insert_id(). This will return the id of the last record inserted. Take care, Floyd On Oct 28, 2009, at 3:21 PM, Allen McCabe wrote: Hey everyone, I have an issue. I need my (employee) users to be able to insert shows into the our MySQL database and simultaneously uploa

Re: [PHP] Best ajax library

2009-12-12 Thread Floyd Resler
I've always been a big fan of prototype which does AJAX plus a whole lot more. Take care, Floyd On Dec 12, 2009, at 7:00 AM, Ali Asghar Toraby Parizy wrote: > Hi friends. > What ajax library do you suggest for php developers? > Can i use gwt with php, or It is compatible only with java web appli

Re: [PHP] Strange MySQL Problem

2009-12-14 Thread Floyd Resler
You're missing a tick in the query. There should be a tick before the $_POST[ISBN]. Take care, Floyd On Dec 14, 2009, at 3:41 AM, Parham Doustdar wrote: > Hello there, > Here's a short PHP script a friend has written, and given to me to test. > However, I am getting a MySQL error saying that t

Re: [PHP] Fixe Point Decimal Data type

2009-12-17 Thread Floyd Resler
I may be over-simplifying or not completely understanding fixed point decimals, but would number_format work? Take care, Floyd On Dec 17, 2009, at 9:21 AM, Raymond Irving wrote: > Hello, > > Is there a way to represent numeric values as fixed point decimals in PHP? If > not, why was this data

Re: [PHP] SQL Queries

2009-12-21 Thread Floyd Resler
You should be able to do this from within the query. Try the following query: DELETE users.* FROM users LEFT JOIN notes USING(user_id) WHERE notes.note_id IS NULL Take care, Floyd On Dec 20, 2009, at 4:30 PM, דניאל דנון wrote: > Hey, Lets assume I got a table named "users". > It contains id

Re: [PHP] Object Oriented Programming question

2010-01-19 Thread Floyd Resler
Ben, I use a combination of procedural and OOP in my scripts. It depends on my needs. As an example, I use OOP for gathering order information. I created a class which gathers all the order information allowing me to easily access any piece of data in the order. I could do this with

Re: [PHP] Storing time in mysql prior to 1970

2010-01-27 Thread Floyd Resler
Haig, What kind of problems are you having? I do this by using the date function to convert to the -MM-DD format for MySQL. I've had no problems with birth dates prior to 1970. Take care, Floyd On Jan 27, 2010, at 5:58 PM, Haig Davis wrote: > Hi Everyone, > > I'm sure I'm missin

[PHP] Accessing Windows File Comments

2010-02-25 Thread Floyd Resler
One of my users has asked if I can display comments with a file list on their site. So I thought I might be able to use the comments from the properties of the file. Is there any way I can access this from PHP? The files are actually stored on a Linux box. Thanks! Floyd -- PHP General Mail

[PHP] Drawing Images Without Writing To a File

2010-03-11 Thread Floyd Resler
I want to draw tabs in a tab bar without having to actually write the images to a file. Is it possible to generate the image and send the data back and make the browser think it's loading an image file? I know this can be done by sending the proper headers back for an entire page, but I just w

Re: [PHP] Drawing Images Without Writing To a File

2010-03-11 Thread Floyd Resler
r way! Thanks! Floyd On Mar 11, 2010, at 10:40 AM, Ken Sande wrote: > Floyd Resler wrote: >> I want to draw tabs in a tab bar without having to actually write the images >> to a file. Is it possible to generate the image and send the data back and >> make the browser think it&#

Re: [PHP] Top vs. Bottom Posting.

2010-03-25 Thread Floyd Resler
Absolutely top posting is the most efficient way of doing it! If I need to see what the thread is all about, I have no problems starting from the bottom and working my way up. It would be nice if everyone adopted top posting, though. Trying to read threads where postings are at the top and b

Re: [PHP] Top vs. Bottom Posting.

2010-03-25 Thread Floyd Resler
On Mar 25, 2010, at 9:48 AM, Lester Caine wrote: > Floyd Resler wrote: >> Absolutely top posting is the most efficient way of doing it! If I need to >> see what the thread is all about, I have no problems starting from the >> bottom and working my way up. It woul

Re: [PHP] MySQL: Return Number of Matched Rows

2010-03-25 Thread Floyd Resler
On Mar 25, 2010, at 5:10 PM, James Colannino wrote: > Hey everyone, > > I have a question. If I do a mysql query that updates a column in a row > to the same value, I get 0 rows affected. However, I also get 1 or more > matched rows. Is there a way that I can return the number of matched > ro

Re: [PHP] Server-side postscript-to-PDF on-the-fly conversion

2010-03-27 Thread Floyd Resler
On Mar 27, 2010, at 12:41 AM, Rob Gould wrote: Is there a free solution out there that will enable me to take a PHP- generated postscript output file, and dynamically, on-the-fly convert it to a PDF document and send to the user as a download when the user clients on a link? More descri

Re: [PHP] Determining Top # from MySQL

2010-04-11 Thread Floyd Resler
On Apr 10, 2010, at 10:02 PM, Ashley M. Kirchner wrote: > > > Given a MySQL query like this $q = "select num from table", I get a result > like this: > > > > +---+ > > |num| > > +---+ > > | 1| > > | 4| > > | 6| > > | 2| > > | 4| > > | 5| > > | 3| > > | 2| > > | 4| > > |

[PHP] Date Math

2010-04-20 Thread Floyd Resler
I need to get the difference in months between two dates. The dates could be as much as 60 months apart. Is there any easy way to do this either through PHP or MySQL? I know how I can do it through code but thought there might be a simple one or two line option. Thanks! Floyd -- PHP Genera

Re: [PHP] Date Math

2010-04-21 Thread Floyd Resler
On Apr 21, 2010, at 5:39 AM, Michiel Sikma wrote: > On 20 April 2010 17:40, Floyd Resler wrote: > >> I need to get the difference in months between two dates. The dates could >> be as much as 60 months apart. Is there any easy way to do this either >> through PHP or

Re: [PHP] Multiple Login in a single PC should not be possible

2010-05-14 Thread Floyd Resler
On May 14, 2010, at 3:18 AM, Jagdeep Singh wrote: > Hi All! > > I am looking for a solution, I want a user to do a single Login only on a PC > . > > E.g. If a User has logged on my website website.com in Internet explorer, > then he cant login on same website in another browser like Firefox etc

Re: [PHP] authentication issue...

2010-05-29 Thread Floyd Resler
On May 28, 2010, at 9:43 PM, Jason Pruim wrote: Hey Everyone, So I'm sitting here on a friday night trying to figure out how in the world I'm going to fix an issue that should probably be simple to me but is escaping me at the moment Take this authentication function: $lo

[PHP] Another RegEx Question

2010-06-07 Thread Floyd Resler
I need to test for the existence of at least one punctuation (@#$%') character in a string. What would my regular expression be? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is

2010-06-10 Thread Floyd Resler
On Jun 10, 2010, at 8:53 PM, Daevid Vincent wrote: I use them ALL the time. MUCH cleaner IMHO than the alternatives. And *IF* someday it is ever depricated, it's trival to: s/ -Original Message- From: Ahmed Mohsen [mailto:mre...@gmail.com] Sent: Thursday, June 10, 2010 3:35 P

[PHP] Invoice Software

2010-06-23 Thread Floyd Resler
Now that I'm finally landing some freelance PHP work, I am in need of some software that I can add clients, enter estimates, keep track of hours, and create invoices with. I'd like it to be Web-based. I could write my own, of course, but why do it if it's already done?! Does anyone know of su

Re: [PHP] Invoice Software

2010-06-23 Thread Floyd Resler
On Jun 23, 2010, at 11:24 AM, Bastien Koert wrote: > On Wed, Jun 23, 2010 at 10:01 AM, Daniel P. Brown > wrote: >> On Wed, Jun 23, 2010 at 09:52, Floyd Resler wrote: >>> Now that I'm finally landing some freelance PHP work, I am in need of some >>> sof

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Floyd Resler
On Jun 24, 2010, at 2:22 PM, Michael Calkins wrote: > > This is very straight forward, if password a and b are not equal to each > other, how can I let the user know that with out losing all of the entered > information on the registration form? > I was trying this: > ---$p1 = ""; > $p2 = "";

Re: [PHP] State and City Database

2010-07-09 Thread Floyd Resler
On Jul 9, 2010, at 1:58 PM, Jim Lucas wrote: > Paul M Foster wrote: >> On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote: >> >> >> >> >>> Here's an example of my copy working: >>> >>> http://php1.net/b/zipcode-states/index.php >> >> Problem: the city and state select drop-downs won't sta

Re: [PHP] State and City Database

2010-07-09 Thread Floyd Resler
On Jul 9, 2010, at 2:32 PM, Jim Lucas wrote: > Floyd Resler wrote: >> On Jul 9, 2010, at 1:58 PM, Jim Lucas wrote: >> >>> Paul M Foster wrote: >>>> On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote: >>>> >>>> >>>> &g

Re: [PHP] Serial Numbers

2010-07-12 Thread Floyd Resler
On Jul 12, 2010, at 2:52 PM, Gary wrote: > I'm sure it is possible, but I am unsure how to do this. I have created a > Sale coupon that I was going to put up on a site that I manage, for visitors > to print out and bring to the store. The coupon is currently a .png, however > I was planning o

Re: [PHP] Serial Numbers

2010-07-12 Thread Floyd Resler
On Jul 12, 2010, at 3:22 PM, Ashley Sheridan wrote: > On Mon, 2010-07-12 at 15:17 -0400, Floyd Resler wrote: >> >> On Jul 12, 2010, at 2:52 PM, Gary wrote: >> >> > I'm sure it is possible, but I am unsure how to do this. I have created a >> > Sale

Re: [PHP] handing over data between two PHP connections

2010-07-18 Thread Floyd Resler
On Jul 18, 2010, at 3:27 PM, tobias.muelle...@web.de wrote: Hello everybody For a science project I am working on a mechanism that hands over data from a smartphone to a web-browser (=Internet PC). Both connect to a PHP server. The PHP server has to receive the data (=some kind of an URL

Re: [PHP] PHP database interface layer

2010-07-22 Thread Floyd Resler
On Jul 22, 2010, at 3:14 PM, Marc Guay wrote: >> i recommend propel >> http://www.propelorm.org/ > > Holy Moses that thing is a monster. It requires installing extra > libraries (Phing) in order to create an XML schema reverse-engineered > from my existing database. The code looks simple enoug

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Floyd Resler
On Aug 6, 2010, at 8:08 AM, tedd wrote: > At 10:10 PM -0400 8/5/10, Rick Dwyer wrote: >> 2nd question, in the 3 [2] lines below: >> >> $checkstat = "select field from table where fieldid = $field_id"; >> $result1 = @mysql_query($checkstat,$connection) or die("Couldn't execute >> query"); >> >>

[PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
I'm trying to draw text at a 90 degree angle, reading from bottom to top. For some reason, all of the letters are aligning to the top (i.e. the left side) of the text. It looks really odd! Has anyone else experienced this before? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
On Aug 12, 2010, at 10:42 AM, Ashley Sheridan wrote: > On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: > >> I'm trying to draw text at a 90 degree angle, reading from bottom to top. >> For some reason, all of the letters are aligning to the top (i.e. the left &g

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
On Aug 12, 2010, at 11:50 AM, tedd wrote: >> On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: >> >>> I'm trying to draw text at a 90 degree angle, reading from bottom to top. >>> For some reason, all of the letters are aligning to the top (i.e. the lef

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
On Aug 12, 2010, at 12:17 PM, Ashley Sheridan wrote: > On Thu, 2010-08-12 at 12:14 -0400, Floyd Resler wrote: > >> On Aug 12, 2010, at 11:50 AM, tedd wrote: >> >>>> On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: >>>> >>>>> I

Re: [PHP] a test (list is too quite)

2010-09-04 Thread Floyd Resler
On Sep 4, 2010, at 1:00 PM, tedd wrote: At 12:47 PM -0400 9/4/10, chris h wrote: Evidently all is well in the world of php... :) If it was so, we would all be out of work. Instead, I think it's the lull before the storm. I'll ask a question to stir things up. :-) Cheers, tedd Good

[PHP] Adjusting Session Times

2010-09-14 Thread Floyd Resler
We just got a client whose requirement is that user sessions expire after 30 minutes of inactivity. Our other clients are happy with not having their sessions expire during the work day (i.e. life is 8 hours). I am using a MySQL database to store the session data. My thought is to adjust the

Re: [PHP] Adjusting Session Times

2010-09-14 Thread Floyd Resler
but would have required a major rewrite. Your idea gives me the flexibility and doesn't require any major rewriting - just a little tweaking. Thanks! Floyd On Sep 14, 2010, at 12:58 PM, tedd wrote: > At 10:26 AM -0400 9/14/10, Floyd Resler wrote: >> We just got a client whose

[PHP] Sending Encrypted Email

2010-09-15 Thread Floyd Resler
This is kind of both on and off topic. I need to send encrypted email. I have found code to do this but I'm not sure which certificate file to use. Can I use our server's signed certificate we use for Apache? Does anyone know of a clear, step-by-step tutorial? Thanks! Floyd -- PHP General

[PHP] Interacting With Shell

2010-09-17 Thread Floyd Resler
I need to run a Linux command from within PHP but the command has interaction. At one point I need to enter a password. Is this type of interaction possible inside a PHP script? Thanks! Floyd smime.p7s Description: S/MIME cryptographic signature

[PHP] PHP Warning

2010-09-17 Thread Floyd Resler
I'm getting the following warning when running PHP scripts from the command line: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 How can I get rid of this? My error report directives are: error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR Thanks! Floyd

Re: [PHP] PHP Warning

2010-09-17 Thread Floyd Resler
Thanks for the help. The culprit was in my cli/php.ini file. Thanks! Floyd On Sep 17, 2010, at 10:53 AM, Daniel Brown wrote: > On Fri, Sep 17, 2010 at 10:35, Floyd Resler wrote: >> I'm getting the following warning when running PHP scripts from the command >> line: >

Re: [PHP] Re: Sending Encrypted Email

2010-09-21 Thread Floyd Resler
On Sep 21, 2010, at 1:00 AM, Erik L. Arneson wrote: > On Thu, 16 Sep 2010, Nathan Rixham wrote: >> Floyd Resler wrote: >>> I need to send encrypted email. Can I use our server's signed certificate >>> we use for Apache? >> >> Yes you can use t

Re: [PHP] Re: Sending Encrypted Email

2010-09-21 Thread Floyd Resler
On Sep 21, 2010, at 11:15 AM, Erik L. Arneson wrote: > On Tue, 21 Sep 2010, Floyd Resler wrote: >> I got it all figured out. The part I was missing was combining the >> certificate with the key and giving it to the end-user to install on >> their system. I was able to

Re: [PHP] Friday's Post

2010-10-01 Thread Floyd Resler
On Oct 1, 2010, at 12:04 PM, Paul M Foster wrote: > I'll be politically incorrect and say that it's evil. It's funny you should say that because years ago I did a short video called "PHP Commando". PHP Commando was battling the evil forces of Dr. Dot Net and his sidekick, Macro Mae. Leave it

[PHP] Google Calendar

2010-10-12 Thread Floyd Resler
I am attempting to use the Zend Gdata framework to communicate with Google Calendars and am having a problem. If I start a new event like this: $event=$gcal->newEventEntry(), nothing happens. My code simply stops executing at that call. If I replace it with this: $event=new Zend_Gdata_Calendar

Re: [PHP] Google Calendar

2010-10-13 Thread Floyd Resler
I turned on E_ALL & E_STRICT and I still don't receive any type of error message. My code simply stops. I'm not sure what the problem is but I found a Google Calendar wrapper that suits my needs and doesn't require Zend. Thanks! Floyd On Oct 12, 2010, at 10:22 PM, Kranthi Krishna wrote: > Th

Re: [PHP] Eclipse, Komodo, Netbeans, Zend Studio, PHP Storm, other?

2010-10-13 Thread Floyd Resler
On Oct 13, 2010, at 12:58 PM, Hansen, Mike wrote: > I'm about to do a lot of work on an existing code base and I think I'd like > to try an IDE. I currently use VIM for most editing. > > What IDE are you using? > > What do you like about the one you are using? > > Which ones have you tried?

Re: [PHP] Eclipse, Komodo, Netbeans, Zend Studio, PHP Storm, other?

2010-10-13 Thread Floyd Resler
On Oct 13, 2010, at 2:20 PM, Ashley Sheridan wrote: > On Wed, 2010-10-13 at 14:09 -0400, Floyd Resler wrote: > >> On Oct 13, 2010, at 12:58 PM, Hansen, Mike wrote: >> >>> I'm about to do a lot of work on an existing code base and I think I'd like >&

[PHP] Calendar Logic Help

2010-10-20 Thread Floyd Resler
I'm having problems getting my head around some login for a calendar. Specifically, the problem is drawing weekly views for events that span multiple days. I've gotten it so that if an event starts in the week being viewed, the days draw correctly for the remainder of the week. However, if th

Re: [PHP] Calendar Logic Help

2010-10-20 Thread Floyd Resler
On Oct 20, 2010, at 12:47 PM, Tommy Pham wrote: >> -Original Message- >> From: Floyd Resler [mailto:fres...@adex-intl.com] >> Sent: Wednesday, October 20, 2010 9:17 AM >> To: PHP >> Subject: [PHP] Calendar Logic Help >> >> I'm having p

[PHP] Forcing Download - IE Issue

2010-10-27 Thread Floyd Resler
I'm trying to force a download using the following code: header('Content-type: text/calendar'); header('Content-Disposition: attachment; filename="calendar.ics"'); echo $calendar; It works great in all browsers except IE. In IE, the window opens and then closes without ever display the download

Re: [PHP] form post question

2010-10-28 Thread Floyd Resler
On Oct 28, 2010, at 10:12 AM, Jack wrote: > I have a form which has the following: ( quick clip ) > > > > action="http://www.abc.com/processing/process_form.php"; onSubmit="return > preSubmit();"> > > > > > > value="Peer Guide" /> > >Peer Guide > >

[PHP] Barcode Reader

2010-12-06 Thread Floyd Resler
Does anyone know of a class that can extract information from a barcode image? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Barcode Reader

2010-12-06 Thread Floyd Resler
; barcode. > > > > Jason Pruim > > On Dec 6, 2010, at 11:21 AM, Floyd Resler wrote: > >> Does anyone know of a class that can extract information from a barcode >> image? >> >> Thanks! >> Floyd >> >> >> -- >>

[PHP] Sorting Help

2012-04-11 Thread Floyd Resler
I need to sort the following array: { [Smith, Bob]=>array(137.5,125.5), [Jones, Robert]=>array(132.7,128.2) } The array needs to be sorted by the first number (i.e. 137.5) and then the second in descending order. I looked at array_multisort but couldn't figure out how to make wo

Re: [PHP] Sorting Help

2012-04-11 Thread Floyd Resler
On Apr 11, 2012, at 1:11 PM, admin wrote: > > > -Original Message- > From: Floyd Resler [mailto:fres...@adex-intl.com] > Sent: Wednesday, April 11, 2012 11:26 AM > To: PHP > Subject: [PHP] Sorting Help > > I need to sort the following array: >

Re: [PHP] sms class

2012-04-17 Thread Floyd Resler
On Apr 17, 2012, at 5:11 PM, Mike Mackintosh wrote: > In reality, a SMS messages are transported the SS7 network, or voice network. > To make the digital transition, carriers use a box called an SMPP gateway. To > get access to this box, is by contract and terms of he carrier, and most > commo

[PHP] Session Checking

2012-07-09 Thread Floyd Resler
I want to have an alert pop up to let the user know their session is about to expire. Would the best approach be to do a timer in Javascript or check it in PHP. I'm storing session data in a MySQL database so I can know when a session will expire. If I check it through PHP will the session ex

  1   2   >