RE: [PHP] More info on timeout problem

2007-11-05 Thread Kristen G. Thorson
-Original Message- From: Instruct ICC [mailto:[EMAIL PROTECTED] Sent: Monday, November 05, 2007 3:34 PM To: php-general@lists.php.net Subject: RE: [PHP] More info on timeout problem Sounds much like what I'm trying to do. I have had to give up, for the time being, on using PHP to

RE: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Kristen G. Thorson
-Original Message- From: Bill Guion [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 14, 2007 12:35 PM To: PHP-General Subject: Re: [PHP] Getting mysql_query results into an array At 6:22 PM -0600 2/13/07, Richard Lynch wrote: The most efficient way is Don't do that. :-)

RE: [PHP] How php works?

2006-12-19 Thread Kristen G. Thorson
-Original Message- From: Larry Garfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 10:26 AM To: php-general@lists.php.net Subject: Re: [PHP] How php works? On Tuesday 19 December 2006 02:12, Robert Cummings wrote: Is that why the PHP License is non-GPL

RE: [PHP] php and DB2

2006-12-08 Thread Kristen G. Thorson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 3:39 PM To: php-general@lists.php.net Subject: [PHP] php and DB2 hi to all, my IT director got an idea to replace mysql with DB2. more power/flexibility/stability/security...

RE: [PHP] backing up a database

2006-11-29 Thread Kristen G. Thorson
-Original Message- From: James Tu [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 5:03 PM To: PHP General List Subject: Re: [PHP] backing up a database Thanks Brad: I'm just surprised that when people mention mysqldump, most of the time they don't talk about locking

RE: [PHP] PHP causing seg fault

2006-10-12 Thread Kristen G. Thorson
-Original Message- From: Glenn Richmond [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 4:45 AM To: php-general@lists.php.net Subject: [PHP] PHP causing seg fault Hi guys, I'm attempting to run a SugarCRM variant that uses SOAP to access information from the

RE: [PHP] Disable all caching

2006-10-10 Thread Kristen G. Thorson
-Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 12:55 PM To: php-general@lists.php.net Subject: RE: [PHP] Disable all caching I have a php (ver 4.x) script that is being cached. I have placed: META HTTP-EQUIV=CACHE-CONTROL

RE: [PHP] RE:[PHP] Client Computer Registration

2006-10-03 Thread Kristen G. Thorson
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 2:10 PM To: Wesley Acheson Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] RE:[PHP] Client Computer Registration On Tue, October 3, 2006 2:33 am, Wesley Acheson

RE: [PHP] Calculations

2006-06-27 Thread Kristen G. Thorson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:11 PM To: php-general@lists.php.net Subject: Re: [PHP] Calculations When my level of free time matches my level of curiousity, I'll have to research it further. For now, I'm ok

RE: [PHP] Stream download problem

2006-06-21 Thread Kristen G. Thorson
-Original Message- From: Michael Satterwhite [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 8:32 PM To: PHP Users Subject: [PHP] Stream download problem I have a site that generates a file to be streamed down. The relevant code is:

RE: [PHP] Stream download problem

2006-06-21 Thread Kristen G. Thorson
-Original Message- From: Michael Satterwhite [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 12:11 PM To: Kristen G. Thorson Subject: Re: [PHP] Stream download problem Kristen G. Thorson wrote: -Original Message- From: Michael Satterwhite [mailto:[EMAIL

RE: [PHP] Re: File Download Headers

2006-06-16 Thread Kristen G. Thorson
-Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 9:11 AM To: tedd Cc: [EMAIL PROTECTED]; Barry; php-general@lists.php.net Subject: Re: [PHP] Re: File Download Headers tedd wrote: Barry says you can use these three:

RE: [PHP] PHP JavaScript

2006-05-19 Thread Kristen G. Thorson
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 10:34 AM To: php-general@lists.php.net Subject: [PHP] PHP JavaScript input type=checkbox name=list37[] value=7 / Suddenly JavaScript doesn't care for the object and throws an error

RE: [PHP] String is not zero-terminated

2006-04-10 Thread Kristen G. Thorson
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 4:44 PM To: php-general@lists.php.net Subject: [PHP] String is not zero-terminated In order to attempt to figure out why my script segfaults PHP (5.0.4, 5.1.2, 5.1.3RC3) I've been compiling

RE: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer

2006-02-10 Thread Kristen G. Thorson
-Original Message- From: Bagus Nugroho [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 5:48 PM To: php-general Subject: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer Hello Everyone, I'm succesfully generate report from mysql table using PEAR :

Re: [PHP] ODBC question

2005-12-28 Thread Kristen G. Thorson
Jeremy Schreckhise wrote: I have an Openlink Single Tier Driver on an XP pro machine with windows installed on drive f: because I have a dual boot with Red Hat. Database is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server. I can connect to all progress databases and pull data utilizing a

Re: [PHP] Regex to wrap a href= tag around a p tag

2005-12-02 Thread Kristen G. Thorson
Shaun wrote: Hi M, Thanks for your help, the code works fine except if there is a line break in the html, for example this works ptest/p But this doesnt ptest /p Any ideas? See the last user contributed note from *csaba at alum dot mit dot edu *at

Re: [PHP] script won't work on other server

2005-12-02 Thread Kristen G. Thorson
Peppy wrote: This info is for the server where the script does not work: Apache/1.3.33 (Unix) PHP/4.3.10 FreeBSD cliffb55.iserver.net 4.7-RELEASE-p28 FreeBSD 4.7-RELEASE-p28 #42: Tu i386 This info is for the server where the script works: Apache/2.0.40 (Red Hat Linux) PHP Version 4.3.2

Re: [PHP] Upgrading on RH ES3

2005-12-02 Thread Kristen G. Thorson
Jeff McKeon wrote: I've got a server with RedHat ES3 running. It has PHP 4.3.2 installed but for an application I want to install I need a min of 4.3.9. This server also runs apache2.0. I can't find RPMs for RH ES3 so I downloaded the source for PHP4.4.1 figuring I would just compile

[PHP] preg_match_all for dummies

2005-11-23 Thread Kristen G. Thorson
I am a regex retard. I am trying to pull keywords out of this crazy bbcode-like file, but only for bbcode-like code NOT enclosed in HTML comments. I currently have managed to create this regex: '/(?!!--)\[!(\w+)::.*!\](?!--)/U' Which matches [!keyword::crazy bbcode!] and not

Re: [PHP] Re: Cookie problem with IE

2005-11-22 Thread Kristen G. Thorson
n.g. wrote: save below as testcookie.php, request it from your browser twice, what do you get at 2nd time? ?php setcookie('sessioncookie', 1); setcookie('storedcookie',1,time()+3600); var_dump($_COOKIE); ? On 11/22/05, Kristen G. Thorson [EMAIL PROTECTED] wrote: Anyone have any

Re: [PHP] Cookie problem with IE

2005-11-22 Thread Kristen G. Thorson
Jay Blanchard wrote: But I sure would like to see the URL once he has clicked it. Have you tried changing to $_GET['page']? Again, all of this is just for gigglesbut there is likely to be a clue. On privacy policies in IE (can he try another browser?) what is his setting? I'm still

[PHP] Cookie problem with IE

2005-11-21 Thread Kristen G. Thorson
Anyone have any suggestions? I'm still stuck. thanks, kgt Kristen G. Thorson wrote: I'm having problems with a customer who can't login to a wholesaler application. To ensure the problem was that the cookie was not being set, I sent him to this script: if( !isset( $_REQUEST['page

Re: [PHP] Cookie problem with IE

2005-11-21 Thread Kristen G. Thorson
Jay Blanchard wrote: [snip] Anyone have any suggestions? I'm still stuck. [/snip] Can you send him another test where a basic cookie gets set and then checked? . Not sure what you mean. I sent him to this script: ?php if( !isset( $_REQUEST['page'] ) ) { setcookie('VATtest','Cookie

Re: [PHP] Cookie problem with IE

2005-11-21 Thread Kristen G. Thorson
Jay Blanchard wrote: [snip] Not sure what you mean. I sent him to this script: ?php if( !isset( $_REQUEST['page'] ) ) { setcookie('VATtest','Cookie has been set.',time()+5, /); echo 'a href='.$_SERVER['PHP_SELF'].'?page=1Test cookie./a'; } else if( $_REQUEST['page'] == '1' ) { if( isset(

[PHP] Cookie problem

2005-11-18 Thread Kristen G. Thorson
I'm having problems with a customer who can't login to a wholesaler application. To ensure the problem was that the cookie was not being set, I sent him to this script: if( !isset( $_REQUEST['page'] ) ) { setcookie('VATtest','Cookie has been set.',time()+5, /); echo 'a

Re: [PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread Kristen G. Thorson
cybermalandro cybermalandro wrote: I am connecting to a PROGRESS DB through the MERANT ODBC driver, When I have the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return nothing but if I have the 4th parameter as lower case it returns my query results but with a PHP error complainning

Re: [PHP] PROGRESS SQL_CUR_USE_ODBC

2005-10-04 Thread Kristen G. Thorson
/05, *Kristen G. Thorson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: cybermalandro cybermalandro wrote: I am connecting to a PROGRESS DB through the MERANT ODBC driver, When I have the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return nothing but if I have

Re: [PHP] mysql/php date functions..

2005-09-26 Thread Kristen G. Thorson
Read up on mysql date types and functions. You can convert a unix timestamp to a mysql date with the FROM_UNIXTIME() function. If you want to store as unix timestamp, store it in an int field. To use mysql date functions on it, use the FROM_UNIXTIME() function. If you want to store dates

Re: [PHP] User redirection, passing HTTP AUTH credentials

2005-08-30 Thread Kristen G. Thorson
Dan Trainor wrote: Hello once more, all - I was wondering if it's at all possible to redirect a user to a remote site, while passing HTTP AUTH credentials somehow. I've been tinkering around with making a secure login gateway, and the first server that they log in to would negotiate the login

Re: [PHP] Automatically generated emails

2005-08-29 Thread Kristen G. Thorson
LOL. They could have opened up their browser window and performed the following: http://www.google.com/search?hl=enq=php+send+email+after+form+submitbtnG=Google+Search But I think they were trying to suggest that you 1. do the same, or 2. ask a more specific question. kgt Ravi Gogna

Re: [PHP] How to suppress HTTP headers?

2005-08-16 Thread Kristen G. Thorson
Or use sockets... http://us3.php.net/manual/en/function.fsockopen.php Just don't send any HTTP headers. kgt [EMAIL PROTECTED] wrote: BTW: I made a mistake last time. Apparently with CLI there are headers. You can use php -q to suppress headers when using PHP via CLI. Odd. Not sure I

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-05 Thread Kristen G. Thorson
Jack Jackson wrote: Kristen G. Thorson wrote: You said If the user makes changes, those changes get error checked but do not become part of the sql query. Where in your code is it failing to become part of the query? Put a check at each level and see where *exactly* it fails to get deep

Re: [PHP] Re: Is gethostbyaddr() slow?

2005-08-05 Thread Kristen G. Thorson
kalinga wrote: On 8/4/05, Kristen G. Thorson [EMAIL PROTECTED] wrote: kalinga wrote: if you are quering a external host, the bad network conditions may cause delay in results. if your server is connected to a heavily loaded hub/ cheap switch, or the target hosts DNS servers

Re: [PHP] Is gethostbyaddr() slow?

2005-08-04 Thread Kristen G. Thorson
I can say from personal experience that gethostbyaddr() and gethostbyname() can seem almost randomly slow, depending on machine, OS, software, who knows. I'm not smart enough to figure out the reason why it can vary so much on machines with nearly the same configuration, but I can tell you

Re: [PHP] Re: Is gethostbyaddr() slow?

2005-08-04 Thread Kristen G. Thorson
kalinga wrote: if you are quering a external host, the bad network conditions may cause delay in results. if your server is connected to a heavily loaded hub/ cheap switch, or the target hosts DNS servers are poorly configured/ slow in responce it adds further delay to your result. try dig/

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Kristen G. Thorson
The code below isn't much help to debug. Do some checking to figure out how far into your IF statement you're getting. Is the query running? Is it the query you expect? (Step #1 when inserting or creating dynamic queries that aren't working: print them out to make sure they are what you

Re: [PHP] Calculation error - PHP not following math hierarchi ???

2005-08-03 Thread Kristen G. Thorson
See http://us3.php.net/manual/en/language.operators.php http://us3.php.net/manual/en/language.operators.bitwise.php You want this: function calc_distance($curX,$curY,$newX,$newY) { // calculate distance to new location $distX = abs($curX - $newX); $distY = abs($curY - $newY); if ($distX

Re: [PHP] Job for SQL or PHP?

2005-08-03 Thread Kristen G. Thorson
Try INSERT INTO Orders (SELECT '678',Cust_ID,Item_No,No_ordered FROM Last_Order WHERE Cust_ID = '678') kgt -k. wrote: Just for the sake of example let's say i keep track of all of a customers previous orders in a table like this: Last_Order -- Cust_ID Item_No No_ordered When a

Re: [PHP] Re: Everything works...Unless they hit the back button...

2005-08-03 Thread Kristen G. Thorson
am I missing. . . ? Jack Jackson wrote: Hi Kristen, there's a misunderstanding: Kristen G. Thorson wrote: The code below isn't much help to debug. Do some checking to figure out how far into your IF statement you're getting. Is the query running? Yes it runs successfully

Re: [PHP] Error Suppression with '@'

2005-08-02 Thread Kristen G. Thorson
Example: I was working on a HORRIBLE piece of code for a cart app. The original programmer had a line like this: $result = mysql_query( SELECT * FROM user_logins WHERE cookie='.$cookie.' ); Where $cookie is a session id stored in a cookie (what else? ;). The problem was, he had some

Re: [PHP] error checking woes

2005-08-01 Thread Kristen G. Thorson
Jack, Read below: Jack Jackson wrote: Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and having LOTS of trouble. After being ceaselessly derided last night on an irc channel for my dimwitedness, I am still not any closer. The code which works is

Re: [PHP] PHP code in a MySQL record

2005-07-29 Thread Kristen G. Thorson
Is there a particular reason you need *PHP* in the database? If not, then use a placeholder system of some sort ( like #var# ) and str_replace(): while( $row=mysql_fetch_row($result) ) { echo str_replace( '#var#', $that_var, $row['entry'] ); } kgt Nathaniel Hall wrote: I am working

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Kristen G. Thorson
I'm not 100% sure where you're saying you're stuck, but I think you're trying to do with one query what you will probably find is best to do with several. Hopefully the following will help some: //first get all the questions $sql = select * from questions; $result = mysql_query( $sql );

[PHP] gethostbyname() time issues

2005-07-28 Thread Kristen G. Thorson
The following script: ?php $url_array = array( 'http://www.imakenews.com/progresspsdn/e_rss.aspx', 'http://rssnewsapps.ziffdavis.com/eweekdeveloper.xml', 'http://itpapers.zdnet.com/xml/RSS-239.xml',

Re: [PHP] gethostbyname() time issues

2005-07-28 Thread Kristen G. Thorson
Philip Hallstrom wrote: $diff = number_format(((substr($timeend,0,9)) + (substr($timeend,-10)) - (substr($timestart,0,9)) - (substr($timestart,-10))),4); This just looks wrong to me... at the very least shouldn't it be: (x + x) - (x + x) (x + y) - (w + z) = (x + y) + (-w - z) = x + y -

Re: [PHP] 404 error - DLL files needed ??

2005-07-14 Thread Kristen G. Thorson
In the extension manager for the site/directory where this is not working, make sure the check box Verify file exists is not checked. I think I ran into a similar problem with a different extension and had the same issue. kgt Grosz, Steve (IPG IT) wrote: Tjoekbezoer, I can tell you

Re: [PHP] cannot connect to MySQL server and not sure why

2005-07-14 Thread Kristen G. Thorson
MySQL authentication is user+host+password. Make sure user brucer_webmaster has host 69.90.88.155. kgt Bruce Gilbert wrote: I am having trouble connecting to MySQL server through a PHP script and I am not sure why. the error I receive is: Warning: mysql_pconnect(): Access denied for

Re: [PHP] date() problem

2005-07-07 Thread Kristen G. Thorson
Philip Hallstrom wrote: of leap years between the two dates. Leap years occur every 4 years, and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88 and 7/6/05 and Just to nitpick... :-) http://en.wikipedia.org/wiki/Leap_year The Gregorian calendar adds an extra day to February,

Re: [PHP] date() problem

2005-07-06 Thread Kristen G. Thorson
Ryan A wrote: Hi, I'm confused, this should give me the age as 17 instead of 16...but it does not...any ideas why? ?php print date(Y:m:d); $age=1988-07-06; $day1=strtotime($age); $day2 = strtotime(date(Y-m-d)); $dif_s = ($day2-$day1); $dif_d = ($dif_s/60/60/24); $age =

Re: [PHP] Weird Image Problem

2005-06-30 Thread Kristen G. Thorson
Richard Lynch wrote: On Wed, June 29, 2005 3:30 pm, Shane Little said: I'm bin2hex'ing images from an upload script and inserting into a mysql blob field. The php script that re-packs the hex data back to binary, does the createimagefromstring() and streams the image to the browser is

Re: [PHP] Removing nonlatin characters

2005-06-27 Thread Kristen G. Thorson
Have you seen: http://us2.php.net/manual/en/function.recode-string.php kgt Dotan Cohen wrote: I thought that this was another old STFA but marc and google are quiet. I as parsing a bunch of submitted works and some of them have non-latin characters. I know that I once saw in the

Re: [PHP] Showing tables (converting from MySQL to Oracle)

2005-06-23 Thread Kristen G. Thorson
This is really a question for an Oracle list, but I happen to know of the following page which has been helpful to me in the past: https://gdsg.ngdc.noaa.gov/tiki/tiki-index.php?page=SqlNotes kgt Shane Presley wrote: Hello, I've recompiled PHP to use Oracle, and been able to run a

Re: [PHP] Checkboxes From Intersection Redux

2005-06-15 Thread Kristen G. Thorson
Hopefully I understand your question correctly. You have this SQL: $media_query = 'SELECT media_id,media_name FROM media GROUP BY media_name'; And For every media_id which is associated with $cartoon in the table media_art, check the box; for all others leave them unchecked. The problem

Re: [PHP] php/osx and firebird

2005-06-15 Thread Kristen G. Thorson
Undefined service gds_db/tcp. Sounds to me like it's not finding the port in services. I don't know what default port Firebird is listening on, but you should have an entry like gds_db/tcp 1234/tcp in c:\windows\system32\drivers\etc\services. You'll have to find out exactly which

Re: [PHP] Apache fails to start (oracle path problem?)

2005-06-15 Thread Kristen G. Thorson
I ran into a similar problem trying to get ODBC working with a Progress database. I managed to solve it by setting the environment variables in the httpd startup script. Not much help, I know, but a suggestion. ;) good luck kgt Shane Presley wrote: Hello, I'm having trouble compiling

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Kristen G. Thorson
Most web browsers I know of don't print anything specified as background by default. I imagine that functionality extends to CSS-defined background colors and images. I doubt there's a way to change that preference other than setting it manually. If changing the print settings on your

Re: [PHP] Of .txt to .zip

2005-06-08 Thread Kristen G. Thorson
That's much clearer than your original question was. Try www.phpclasses.org Good luck. Denyl Meneses Guillén wrote: I do not want to open a ZIP , I want create a ZIP fron TXT . - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Denyl Meneses Guillén [EMAIL

Re: [PHP] How to find random records in a subset?

2005-06-03 Thread Kristen G. Thorson
Try using a temporary table. It should be pretty fast. You'd do something like 1. Select from table1 according to search criteria 2. Insert data from #1 into temp_table1 3. Random selection from temp_table1 kgt Brian Dunning wrote: I am using a routine to find 50 random records in a

Re: [PHP] foreach ($media as $key = $val) problem

2005-06-01 Thread Kristen G. Thorson
Jack Jackson wrote: Hi, all, This might look like a mysql problem but I assure you it's my botching the PHP which is the problem! I'm building a part of a page with info from three tables: art, media and media_art. Media_art is the intersection table. For every entry in art there can be

Re: [PHP] Search problem

2005-05-23 Thread Kristen G. Thorson
Jim Moseby wrote: Hi, I need to build up a search module for a shop. If I make a basic search (product title for example) it is ok. $query = SELECT product_id FROM products WHERE title LIKE '%$title%'; But i need an advance search for more than one field (title, description, price,

[PHP] Empty string problem

2005-05-19 Thread Kristen G. Thorson
Following is a snippet of code that I am trying to debug. Most of the time, the variable $sn (set on the last line), correctly contains the variable $this_customer_num. On some occasions, however, it does not contain $this_customer_num. I cannot figure out what may be happening that this

Re: [PHP] phpMyAdmin authentication error

2005-05-16 Thread Kristen G. Thorson
I haven't used mysqli, so I'm not as familiar with errors related to that library, but you said you downloaded the latest package of MySQL, which is hopefully 4.1.12. This version shouldn't cause this error with mysqli. In my experience, this error has always been a case of PHP compiled

Re: [PHP] Inner Join or 2nd Query...?

2005-05-11 Thread Kristen G. Thorson
I don't understand what you're trying to do. Do you want two separate list boxes, one for product types and one for makers? If so, use two queries. Use the same block of code you have for product types to populate the makers box. If that's not what you're looking for, you need to describe

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Kristen G. Thorson
, at 1:47 AM, Kristen G. Thorson wrote: Dan, I have done this before, but it was only a proof-of concept excercise for me, so my procedure may not work for you. My test was against an Amazon web service and generating a PDF from the XML returned to me. This method used Apache's FOP. Before

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Kristen G. Thorson
Dan Rossi wrote: On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote: especially since this wasn't to be our final approach. I'd be interested if you find out more information on the subject. What did you decide on ? LOL. That part got beyond me. I don't understand how all the PDF forms