[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

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

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, teddtedd.sperl...@gmail.com 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

[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 wrote: We

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

Re: [PHP] PHP and FoxPro

2009-07-21 Thread Floyd Resler
Matt, Thanks for the tip on handling memos. I always thought, If I could just append to the end of the existing string... but never figured out how to do it. I'll give your method a shot. Thanks! Floyd On Jul 21, 2009, at 2:04 PM, Matt Neimeyer wrote: What I did to handle memos... and

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

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,

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

2009-07-22 Thread Floyd Resler
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 offer more

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

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

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 PHP I

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 a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: On 7/28/09 8:44 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-07-28 at 09:42 -0400,

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

[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

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

[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

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

Re: [PHP] Pattern Matching

2009-08-07 Thread Floyd Resler
numeric and the _ character'; On Thu, Aug 6, 2009 at 6:57 PM, Floyd Resler fres...@adex-intl.com 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

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

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,

[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

[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:

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: printhere script language=javascript window.location.href=index.php /script here; Not strictly a PHP solution but it works. Take care, Floyd On Aug 28, 2009, at 5:34 AM, Ashley Sheridan wrote:

[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

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 Reslerfres...@adex-intl.com wrote: How can I rename a directory with files in it? The rename function gives me a directory

[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 have

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)

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 fres...@adex-intl.com To: Andrea Giammarchi an_...@hotmail.com Cc: php

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 fres

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
: 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 no longer keeps

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

2009-10-20 Thread Floyd Resler
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 powerful and easy

[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

[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

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

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 the

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

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] 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 missing

[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

[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

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

2010-03-11 Thread Floyd Resler
! 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's loading an image file? I know

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

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 would be nice if everyone adopted top

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 rows,

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 gould...@me.com 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

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| | 2| | 3| | 3| | 2|

[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

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 fres...@adex-intl.com 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 MySQL? I

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 with

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: ?PHP

Re: [PHP] is ?= good?

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/?=/? echo/g Don't let 'em scare ya! -Original Message- From: Ahmed Mohsen

[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

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 daniel.br...@parasane.net wrote: On Wed, Jun 23, 2010 at 09:52, Floyd Resler fres...@adex-intl.com wrote: Now that I'm finally landing some freelance PHP work, I am in need of some software

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 = input

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: snip 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 stay dropped for me,

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: snip Here's an example of my copy working: http://php1.net/b/zipcode-states/index.php Problem

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 on

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 coupon that I was going to put up on a site that I manage

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

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 enough but

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); If I were to

[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

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 side) of the text. It looks

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 left side) of the text. It looks really odd

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'm trying to draw text at a 90 degree angle, reading from bottom to top

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 requirement

[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

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 fres...@adex-intl.com wrote: I'm getting the following warning when running PHP scripts from the command line: PHP

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 the servers certificate, you can use any x509 certificate you

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 use the Web server's certificate

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 to

[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

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: The

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 to try an IDE. I currently use VIM for most editing

[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

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 problems getting my head around some login for a calendar

[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 ) form id=form1 name=form1 method=post action=http://www.abc.com/processing/process_form.php; onSubmit=return preSubmit(); label input name=area_interest

[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
:21 AM, Floyd Resler fres...@adex-intl.com wrote: 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 -- PHP General Mailing List (http

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Floyd Resler
On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: I have 2 buttons on a page: if (isset($_POST['botton1'])) {dothing1();} if (isset($_POST['button2'])) {dothing2();} They both work as intended when I click on them. If

Re: [PHP] 2 submit buttons.

2011-02-15 Thread Floyd Resler
On Feb 14, 2011, at 5:24 PM, Paul M Foster wrote: On Mon, Feb 14, 2011 at 05:15:11PM -0500, Floyd Resler wrote: On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: I have 2 buttons on a page: if (isset($_POST['botton1

[PHP] Upload Progress Meter

2011-03-23 Thread Floyd Resler
I am in need of an upload progress meter. I've seen plenty of tutorials = on-line requiring installing modules, hooks, patches, etc. However, my = Wordpress install accomplished this without me having to make any = modifications to my PHP install. So, how is it done? Thanks! Floyd -- PHP

Re: [PHP] Upload Progress Meter

2011-03-23 Thread Floyd Resler
On Mar 23, 2011, at 10:10 AM, Steve Staples wrote: On Wed, 2011-03-23 at 09:59 -0400, Floyd Resler wrote: I am in need of an upload progress meter. I've seen plenty of tutorials = on-line requiring installing modules, hooks, patches, etc. However, my = Wordpress install accomplished

[PHP] Class Constants

2011-04-13 Thread Floyd Resler
I'm doing some testing from the command line and would like to be able = to pass along a constant from a class. For example: php emailTest.,php OrderConfirmation OrderConfirmation is a constant in a class. Is there any way I can take = the value passed on the command line and have PHP figure

Re: [PHP] Class Constants

2011-04-13 Thread Floyd Resler
That didn't quite work. Here's what I did: $const=$argv[1]; $value=email::$const; When I run it I get an Access to undeclared static property error. Thanks! Floyd On Apr 13, 2011, at 1:16 PM, Richard Quadling wrote: On 13 April 2011 17:45, Floyd Resler fres...@adex-intl.com wrote: I'm doing

Re: [PHP] Class Constants

2011-04-13 Thread Floyd Resler
David, That worked great! Thanks! Floyd On Apr 13, 2011, at 2:25 PM, David Harkness wrote: On Wed, Apr 13, 2011 at 11:04 AM, Floyd Resler fres...@adex-intl.comwrote: That didn't quite work. Here's what I did: $const=$argv[1]; $value=email::$const; Instead try this: $const

[PHP] Contract Example

2011-05-23 Thread Floyd Resler
I landed my first big PHP contract (yeah!) and am need of a contract or agreement example. Does anyone have, or know of a good source for, contract/agreement examples? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Contract Example

2011-05-23 Thread Floyd Resler
On May 23, 2011, at 11:12 AM, Jonesy wrote: On Mon, 23 May 2011 10:39:10 -0400, Floyd Resler wrote: I landed my first big PHP contract (yeah!) and am need of a contract or agreement example. Does anyone have, or know of a good source for, contract/agreement examples? Thanks! Floyd

Re: [PHP] Contract Example

2011-05-23 Thread Floyd Resler
On May 23, 2011, at 11:29 AM, tedd wrote: At 10:39 AM -0400 5/23/11, Floyd Resler wrote: I landed my first big PHP contract (yeah!) and am need of a contract or agreement example. Does anyone have, or know of a good source for, contract/agreement examples? Thanks! Floyd Floyd

  1   2   >