Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Andrew Ballard
On 10/23/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote: ?php echo coucou . print('v ' . print('u ' . print('toctoc ') . 'hihi ') ) . 'tata ' . print('zozo ' . print('pupu ')); That's not cool, that's a mess. Why doe sit happen the

Re: [PHP] problem with foreach

2007-10-23 Thread Andrew Ballard
On 10/23/07, tedd [EMAIL PROTECTED] wrote: At 12:01 PM -0500 10/22/07, Adam Williams wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[]

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Andrew Ballard
On 10/23/07, Robert Cummings [EMAIL PROTECTED] wrote: My bad, print is not a function, and so: print( 'toctoc ' ).'hihi '; is equivalent to: print( 'tocktoc '.'hihi ' ); Ah. I see. I knew they were optional, but I didn't know that when you include them PHP evaluates ('toctoc')

Re: [PHP] Can a PHP script process a file on a remote computer?

2007-10-24 Thread Andrew Ballard
How big is the file? fgetcsv() will read any file that you can get a handle to using fopen() or fsockopen(), including remote files. However, if allow_url_fopen is not enabled, you can't use fopen(). Also if the file is so large that your script is timing out while waiting for it to be uploaded,

Re: [PHP] Can a PHP script process a file on a remote computer?

2007-10-24 Thread Andrew Ballard
On 10/24/07, Jon Westcot [EMAIL PROTECTED] wrote: The test file that I'm using -- which probably is a small version of the normal file -- is around 60 MB in size (just under 30,000 records). That sounds like a rather large file to process anyway. You might need to use some scheduled task

Re: [PHP] show required row first and then other remaining rows

2007-10-25 Thread Andrew Ballard
This should work: ORDER BY CASE WHEN id = 3 THEN 0 ELSE 1 END, name Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email question

2007-10-31 Thread Andrew Ballard
On 10/31/07, Jake [EMAIL PROTECTED] wrote: What is a =20 at the end of a line in an email? It is a space character when the message is encoded using quoted-printable encoding. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is better way to write the query

2007-11-02 Thread Andrew Ballard
On Nov 2, 2007 10:41 AM, afan pasalic [EMAIL PROTECTED] wrote: ...is there any suggestion for the process of inserting up to 5K records at the time ... Is it possible to save your data to a text file and then use one of MySQL's built-in import queries? (I know in some situations it isn't an

Re: [PHP] help with link from mysql

2007-11-07 Thread Andrew Ballard
On Nov 7, 2007 5:22 PM, Joey [EMAIL PROTECTED] wrote: I have a situation where I am storing data to a blob field. Everything works in respect to in and out of the DB, however when we type in a link like so HYPERLINK http://www.abc.com/subfolder/folder2/http://www.abc.com/subfolder/folder2/

Re: [PHP] My first xml try

2007-11-09 Thread Andrew Ballard
Ronald, On Nov 9, 2007 9:05 PM, Ronald Wiplinger [EMAIL PROTECTED] wrote: I tried to use echo statements for debugging and found that it seems I do not get the information of require(). What do I need to change? I'm not sure what error you're getting, but I would guess it can't find the

Re: [PHP] My first xml try

2007-11-10 Thread Andrew Ballard
On Nov 10, 2007 12:56 AM, Ronald Wiplinger [EMAIL PROTECTED] wrote: Andrew Ballard wrote: Ronald, On Nov 9, 2007 9:05 PM, Ronald Wiplinger [EMAIL PROTECTED] wrote: I tried to use echo statements for debugging and found that it seems I do not get the information of require(). What do I

Re: [PHP] [NEWBIE GUIDE] For the benefit of new members

2007-11-16 Thread Andrew Ballard
On Nov 16, 2007 10:30 AM, Peter Ford [EMAIL PROTECTED] wrote: I was all ready to jump on Point #6 to disagree until I read the next paragraph, updating that with the correct information. PHP can find out the OS of the system on which the browser is running. Strictly speaking, PHP

Re: [PHP] Performance question for table updating

2007-11-27 Thread Andrew Ballard
On Nov 24, 2007 2:32 AM, Jon Westcot [EMAIL PROTECTED] wrote: Hi all: For those who've been following the saga, I'm working on an application that needs to load a data file consisting of approximately 29,000 to 35,000 records in it (and not short ones, either) into several tables.

Re: [PHP] sprintf() oddness

2007-12-03 Thread Andrew Ballard
On Dec 1, 2007 11:30 AM, tedd [EMAIL PROTECTED] wrote: At 7:10 AM -0500 12/1/07, Christoph Boget wrote: Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? The 4th significant digit in both cases is '5' but in the first case,

Re: [PHP] calculate a varchar

2007-12-03 Thread Andrew Ballard
On Dec 3, 2007 10:56 AM, John Taylor-Johnston [EMAIL PROTECTED] wrote: Is there a calculation function? I'm using an e-commerce shopping cart. I want to tweak the code. The author is using a varchar(100) field to store prices. Taking advantage of there being a varchar, instead of entering a

Re: [PHP] sprintf() oddness

2007-12-03 Thread Andrew Ballard
On Dec 3, 2007 3:29 PM, tedd [EMAIL PROTECTED] wrote: At 2:04 PM -0500 12/3/07, Andrew Ballard wrote: Oh, man I'm having flashbacks to a flame war that broke out on a SQL Server board I read related to bankers rounding versus traditional rounding and which was more correct or accurate

Re: [PHP] Calendar

2007-12-04 Thread Andrew Ballard
On Dec 3, 2007 7:37 AM, Emil Edeholt [EMAIL PROTECTED] wrote: Hi, I'm about to add some simple calendar functions to my application, and I'm thinking of how I should implement recurring events. Are there one standard way most people use that works well? I guess you have some kind of emitter

Re: [PHP] Calendar

2007-12-05 Thread Andrew Ballard
On Dec 5, 2007 6:09 AM, Richard Heyes [EMAIL PROTECTED] wrote: There is not much simple about a calendar, especially when you start dealing with recurring events. How far into the future your calendar allow events to recur will depend at least in part on how you intend to store them. For

Re: [PHP] how to recognize ENUM column in table?

2007-12-06 Thread Andrew Ballard
On Dec 6, 2007 1:38 PM, Afan Pasalic [EMAIL PROTECTED] wrote: hi, I use the code from http://www.php.net/manual/en/function.mysql-fetch-field (example #1) I'm getting everything I need but can't recognize if the column is ENUM() type? e.g. column status is ENUM('0','1') or

Re: [PHP] Help Sending Mail

2007-12-11 Thread Andrew Ballard
On Dec 11, 2007 12:20 PM, Richard Lynch [EMAIL PROTECTED] wrote: PS GMail will not accept \r\n between header lines, only \n I dunno if RFC822 specifies which ending but I *do* know that this breaks the current PEAR mimePart.php code. Editing the code to hack \r\n to just \n for the _CRLF

Re: [PHP] determine date range

2007-12-12 Thread Andrew Ballard
On Dec 12, 2007 11:39 AM, slith [EMAIL PROTECTED] wrote: I'm working on hotel type booking script where prices will vary depending on the season. prices are updated every year so i need to take a user inputed date and determine which season the date falls under. i figured i can convert all

Re: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Andrew Ballard
On Dec 14, 2007 3:02 AM, Arno Kuhl [EMAIL PROTECTED] wrote: I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) then date(W, $unixdate) returns 01. I know that according to the ISO spec, the last week of the ISO year

Re: [PHP] Multiple File Downloads

2007-12-14 Thread Andrew Ballard
On Dec 14, 2007 3:49 PM, David Giragosian [EMAIL PROTECTED] wrote: On 12/14/07, Jason Pruim [EMAIL PROTECTED] wrote: On Dec 14, 2007, at 3:37 PM, Daniel Brown wrote: On Dec 14, 2007 3:32 PM, David Giragosian [EMAIL PROTECTED] wrote: I've used Richard Lynch's Blog example for

Re: [PHP] Tracking visitor times

2007-12-18 Thread Andrew Ballard
On Dec 18, 2007 6:05 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote: Hi, Is it possible to track how long has a single visitor been on my site? example: I go to www.somesite.com at 5.am and I exit the page (close my browser or just go to another site) at 6.am. How do i track that 1 hour period

Re: [PHP] About PHP Implements

2007-12-19 Thread Andrew Ballard
On Dec 18, 2007 4:58 PM, Jim Webber [EMAIL PROTECTED] wrote: Hello I have a PHP4 server and I'm trying to figure out how to do implements on classes. Is there an analogous way to do this without PHP5 installed? It isn't inheritance in the same sense as PHP5, but you can use the

Re: [PHP] Just to confirm...

2007-12-19 Thread Andrew Ballard
On Dec 19, 2007 11:53 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 19, 2007 11:18 AM, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, December 19, 2007 9:31 am, Richard Heyes wrote: I think that any MTA or client that doesn't work with the Reply-To header isn't worth beans.

Re: [PHP] MSSQL

2008-01-08 Thread Andrew Ballard
On Jan 8, 2008 8:58 PM, Shelley Shyan [EMAIL PROTECTED] wrote: Did you check that you have enabled MSSQL extension? That is, On XP system, you should have this line 'extension=php_msql.dll' in php.ini file and the leading ';' be removed. On Ubuntu, you should also install mssql extension,

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Andrew Ballard
On Jan 15, 2008 11:25 AM, Adam Williams [EMAIL PROTECTED] wrote: Thanks, I think I have it: $dateexplode = explode(-, $_POST[date_entered]); if (!preg_match(/^(\d{2})$/, $dateexplode[0],$data1) || !preg_match(/^(\d{2})$/, $dateexplode[1],$data2) || !preg_match(/^(\d{4})$/,

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Andrew Ballard
On Jan 15, 2008 11:51 AM, Adam Williams [EMAIL PROTECTED] wrote: Andrew Ballard wrote: Just curious why you won't take 1-15-2008. Once you validate it, you can always assign it to a variable as either a timestamp or a DateTime object and then format it however you want when you display

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Andrew Ballard
On Jan 15, 2008 1:31 PM, Adam Williams [EMAIL PROTECTED] wrote: Andrew Ballard wrote: All the more reason I would turn it into a timestamp or DateTime object in PHP first. That will prevent trying to insert something like what I used above. Then I would get rid of the MySQL STR_TO_DATE

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Andrew Ballard
On Jan 15, 2008 2:05 PM, Brady Mitchell [EMAIL PROTECTED] wrote: I'm having users enter dates in MM-DD- format. is there a way to check if what they have entered is invalid (like if they enter 1-15-2008 instead of 01-15-2008) ? Why not use something like

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Andrew Ballard
On Jan 15, 2008 2:38 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, January 15, 2008 12:31 pm, Adam Williams wrote: Andrew Ballard wrote: I don't see the point in needing to convert it to a timestamp. The length_start and length_end fields in MySQL are defined as date fields. All I

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Andrew Ballard
On Jan 18, 2008 10:18 AM, Richard Heyes [EMAIL PROTECTED] wrote: I am wondering if there is a way to block out email addresses in specific format from a form? We ahve a form that people have to enter an email address, and the form has been getting used by bots to send spam to a listserv.

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Andrew Ballard
On Jan 24, 2008 1:11 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 24, 2008 8:13 AM, Jay Blanchard [EMAIL PROTECTED] wrote: The first time we ever see all of us face to face there will have to be a lot of beer bought. The conversation will be interesting though. Several folks will ask

Re: [PHP] are email address could be spammed

2008-01-25 Thread Andrew Ballard
On Jan 25, 2008 8:58 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Jan 25, 2008, at 8:52 AM, Eric Butera wrote: On Jan 25, 2008 8:43 AM, Dotan Cohen [EMAIL PROTECTED] wrote: On 25/01/2008, Eric Butera [EMAIL PROTECTED] wrote: not to mention the 'all-your-email-belong-to-us' aspect of

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Andrew Ballard
On Jan 29, 2008 1:53 PM, Christoph Boget [EMAIL PROTECTED] wrote: Constructors return the object, correct? Actually, I don't think so. I believe constructors return void, while the 'new' keyword returns a copy of the object. Andrew -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] first php class take 2

2008-01-29 Thread Andrew Ballard
On Jan 29, 2008 3:36 PM, Jochem Maas [EMAIL PROTECTED] wrote: nihilism machine schreef: How does this look now? just as bad as before. you haven't even tried to run the code have you? ?php class dbconfig { public $connInfo = array(); public $connInfo[$hostname] =

Re: [PHP] Re: disable referer ? (was: Framed Linked Content)

2008-01-31 Thread Andrew Ballard
On Jan 31, 2008 2:24 PM, Per Jessen [EMAIL PROTECTED] wrote: Richard Lynch wrote: It CANNOT be tied to the IP address, because most users' IP addresses are not static. I think it is for the duration of the session. Mine certainly is. Yours might be. AOL users are *NOT*. In peak

Re: [PHP] Re: disable referer ? (was: Framed Linked Content)

2008-01-31 Thread Andrew Ballard
On Jan 31, 2008 2:49 PM, Per Jessen [EMAIL PROTECTED] wrote: Robert Cummings wrote: Information leakage is a security issue. IMHO referer logging should need to be turned on, not off. Rob, I appreciate your opinion, but like I said - when Firefox (or MSIE) switches off REFERER by default,

Re: [PHP] php competion

2008-02-04 Thread Andrew Ballard
On Feb 4, 2008 4:10 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, February 4, 2008 2:36 am, Jochem Maas wrote: Richard Lynch schreef: On Sun, February 3, 2008 11:51 am, Robert Cummings wrote: On Sun, 2008-02-03 at 18:15 +0200, Paul Scott wrote: On Sun, 2008-02-03 at 20:10 +1100,

Re: [PHP] Re: New search related question

2008-02-04 Thread Andrew Ballard
provide a good combination of indexing and advanced search operators. Andrew Andrew Ballard wrote: On Feb 4, 2008 3:13 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy

Re: [PHP] Re: New search related question

2008-02-04 Thread Andrew Ballard
On Feb 4, 2008 3:13 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: If there aren't many files and you don't intend to grow this site much larger and intend to always have static HTML, any easy implementation would be to read each file and search for the terms either in the keywords tag or in the

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Andrew Ballard
On Feb 6, 2008 12:48 PM, Martin Marques [EMAIL PROTECTED] wrote: Nathan Nobbe escribió: On Feb 6, 2008 12:13 PM, Martin Marques [EMAIL PROTECTED] wrote: see what you have as the value for the date.timezone ini setting. I've already checked that, and it's not set. then you should

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Andrew Ballard
On Feb 6, 2008 8:46 PM, Rob Gould [EMAIL PROTECTED] wrote: Let's say I have a PHP-based wine application, and it's taking a set of mySQL data that looks like this: wineidname size 123 Silver Oak

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Andrew Ballard
On Feb 6, 2008 11:20 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 6, 2008 10:59 PM, Andrew Ballard [EMAIL PROTECTED] wrote: Of course, in this case you could just avoid all the confusion with this statement as well: SELECT DISTINCT name, size FROMwine im not sure why, but i

Re: [PHP] re: php file extension

2008-02-07 Thread Andrew Ballard
On Feb 7, 2008 2:49 PM, MaryAnn Woodall [EMAIL PROTECTED] wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? MaryAnn No, they have different name and are different files. It would depend

Re: [PHP] PHP/mySQL question about groups

2008-02-07 Thread Andrew Ballard
On Feb 7, 2008 1:20 AM, Warren Vail [EMAIL PROTECTED] wrote: I did some looking into performance issues many years ago at company that developed and marketed another database server, comparing the query plan to the actual code, and a query plan usually shows the processes that consume the

Re: [PHP] generate xls file on fly

2008-02-08 Thread Andrew Ballard
On Feb 8, 2008 10:14 AM, Hiep Nguyen [EMAIL PROTECTED] wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can click on that link and a

Re: [PHP] Better DB Class MySQL

2008-02-10 Thread Andrew Ballard
On Feb 9, 2008 7:39 PM, Larry Garfield [EMAIL PROTECTED] wrote: http://www.php.net/pdo All the cool kids are doing it. Tried it. (Actually, I am using it for some stuff.) But I seriously hope it works better for MySQL than it does for SQL Server. Andrew

Re: [PHP] DOMXML Warning

2008-02-13 Thread Andrew Ballard
On Feb 13, 2008 1:20 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Feb 13, 2008 2:51 AM, Miguel J. Jiménez [EMAIL PROTECTED] wrote: Hi, after enabling error reporting with E_ALL I am having this strange warning while loading a XML: Warning: DOMDocument::load() [function.DOMDocument-load]:

Re: [PHP] generate xls file on fly

2008-02-14 Thread Andrew Ballard
On Thu, Feb 14, 2008 at 9:23 AM, Hiep Nguyen [EMAIL PROTECTED] wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: let say that user searched and found 10 records, in the meantime, other users may change any of these 10 records, so if we saved mysql statement and re-run

Re: [PHP] group by on mssql_query

2008-02-14 Thread Andrew Ballard
On Thu, Feb 14, 2008 at 4:13 PM, [EMAIL PROTECTED] wrote: Column 'location_city.dst' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. Not fimilar with MSSQL to be honest. Yes, MS SQL is strict and will not allow you to return

Re: [PHP] XSLTProcessor without validation

2008-02-15 Thread Andrew Ballard
On Fri, Feb 15, 2008 at 3:31 AM, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 02. 15, péntek keltezéssel 07.54-kor Siegfried Gipp ezt írta: Am Donnerstag, 14. Februar 2008 21:01:42 schrieb Richard Lynch: You could also consider filing a Feature Request in http://bugs.php.net/ Well,

Re: [PHP] Better DB Class MySQL

2008-02-17 Thread Andrew Ballard
On Feb 17, 2008 3:49 PM, Larry Garfield [EMAIL PROTECTED] wrote: On Thursday 14 February 2008, Richard Lynch wrote: On Sun, February 10, 2008 9:31 am, Jochem Maas wrote: Larry Garfield schreef: http://www.php.net/pdo All the cool kids are doing it. not true - some of them use

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Andrew Ballard
On Feb 18, 2008 8:58 AM, Edward Kay [EMAIL PROTECTED] wrote: Now, I can replace the tabs with commas and opening the resulting files in a basic text editor all looks fine. When you do this, ensure you escape any commas that may exist in the data. IIRC, Excel handles this be enclosing the

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Andrew Ballard
On Feb 18, 2008 12:02 PM, Edward Kay [EMAIL PROTECTED] wrote: On Mon, February 18, 2008 10:36 am, Jay Blanchard wrote: [snip] That's funny... MS defaults to tabs for a file whose extension is .csv which is an acronym for (C)omma (S)eparated (V)alues. [/snip] Welcome to

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Andrew Ballard
On Feb 18, 2008 1:08 PM, Graham Cossey [EMAIL PROTECTED] wrote: My biggest gripe with tab delimited files is that they are quite a bit bigger than comma delimited files so I may have to split the large files I receive into smaller 'chunks' to allow them to be uploaded. Why would

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Andrew Ballard
On Feb 18, 2008 1:39 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-02-18 at 13:24 -0500, Andrew Ballard wrote: On Feb 18, 2008 1:08 PM, Graham Cossey [EMAIL PROTECTED] wrote: My biggest gripe with tab delimited files is that they are quite a bit bigger than comma delimited

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Andrew Ballard
On Feb 18, 2008 4:01 PM, Graham Cossey [EMAIL PROTECTED] wrote: On Feb 18, 2008 6:45 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Feb 18, 2008 1:39 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-02-18 at 13:24 -0500, Andrew Ballard wrote: On Feb 18, 2008 1:08 PM

Re: [PHP] xpath question

2008-02-19 Thread Andrew Ballard
On Feb 19, 2008 8:13 PM, RJO [EMAIL PROTECTED] wrote: Hey guys, I have a form accepting a KML file from users and from there I want to draw polylines based on a KML file's PlacemarkerLineStringcoordinates element. The problem I am having is that sometimes the KML file can have a

Re: [PHP] Converting tab delimited file to CSV

2008-02-20 Thread Andrew Ballard
On Feb 20, 2008 3:54 AM, Graham Cossey [EMAIL PROTECTED] wrote: If it's any help the data I'm getting comes out of a third party Cognos environment. The data opened into Textpad looks like this : Column One Column Two Column ThreeColumn Four Column Five Column Six

Re: [PHP] Date Function

2008-02-22 Thread Andrew Ballard
On Fri, Feb 22, 2008 at 2:48 PM, VamVan [EMAIL PROTECTED] wrote: Hi All, Greetings!! A small PHP Script for help ?php $date_format = '02/22/2008 14:00:00'; $start_date = date(Y-m-d h:i:s, strtotime($date_format)); echo $start_date; ? output is 2008-02-22 02:00:00 but not

Re: [PHP] while

2008-02-23 Thread Andrew Ballard
On Sat, Feb 23, 2008 at 11:16 AM, Emiliano Boragina [EMAIL PROTECTED] wrote: Hi everyone I am beginner I have the following code: ? $buscar = $_REQUEST['buscar']; $base = inscripcion; $conexion = mysql_connect ( 'localhost' , 'root' , 'root' );

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Andrew Ballard
On Tue, Feb 26, 2008 at 10:16 AM, tedd [EMAIL PROTECTED] wrote: At 3:47 PM +0100 2/26/08, Per Jessen wrote: tedd wrote: Sometimes I feel like a child here. Under what circumstances would one require that? If your script is in a https directory, isn't that secure? OR, is

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Andrew Ballard
On Tue, Feb 26, 2008 at 11:54 AM, tedd [EMAIL PROTECTED] wrote: At 11:03 AM -0500 2/26/08, Robert Cummings wrote: On Tue, 2008-02-26 at 10:57 -0500, Andrew Ballard wrote: Am I misunderstanding you somewhere? I don't think you are. I think Ted has been doing it the hard way

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Andrew Ballard
On Tue, Feb 26, 2008 at 4:06 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Andrew Ballard wrote: On Tue, Feb 26, 2008 at 11:54 AM, tedd [EMAIL PROTECTED] wrote: At 11:03 AM -0500 2/26/08, Robert Cummings wrote: On Tue, 2008-02-26 at 10:57 -0500, Andrew Ballard wrote: Am I

Re: [PHP] How do you send stylized email?

2008-02-27 Thread Andrew Ballard
On Tue, Feb 26, 2008 at 11:39 PM, Paul Scott [EMAIL PROTECTED] wrote: [snip] --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm Seriously? All e-mail? Sorry - couldn't resist. That is one serious disclaimer.

Re: [PHP] How do you send stylized email?

2008-02-27 Thread Andrew Ballard
On Wed, Feb 27, 2008 at 2:16 PM, Paul Scott [EMAIL PROTECTED] wrote: On Wed, 2008-02-27 at 13:18 -0500, Andrew Ballard wrote: Seriously? All e-mail? Sorry - couldn't resist. That is one serious disclaimer. I especially like the last line. Holy crap! I had never actually looked

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Andrew Ballard
On Wed, Feb 27, 2008 at 3:12 PM, Robert Cummings [EMAIL PROTECTED] wrote: I thought ASP was the language and .NET was the framework. Not exactly. .NET is the framework, but ASP is not a language. The most common languages for .NET development are usually Visual Basic and C#. However, lots of

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-27 Thread Andrew Ballard
On Wed, Feb 27, 2008 at 4:55 PM, Jason Pruim [EMAIL PROTECTED] wrote: So I was supposed to go home a half hour ago but that didn't happen... I hate deadlines! :P Can someone tell me why this code works for setting the table name: function authentication($user, $pass, $authenticated,

Re: [PHP] Guidance

2008-02-28 Thread Andrew Ballard
On Thu, Feb 28, 2008 at 7:32 AM, Jochem Maas [EMAIL PROTECTED] wrote: Stut schreef: On 28 Feb 2008, at 12:15, Timothy Asiedu wrote: Please I would be grateful if you could remove my e-mail address: [EMAIL PROTECTED] from the general Mailing List. Unsubscribe instructions are in the

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Andrew Ballard
On Thu, Feb 28, 2008 at 12:56 PM, Jason Pruim [EMAIL PROTECTED] wrote: On Feb 28, 2008, at 12:39 PM, Eric Butera wrote: On Thu, Feb 28, 2008 at 11:57 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Feb 28, 2008, at 11:28 AM, Eric Butera wrote: On Wed, Feb 27, 2008 at 5:12 PM,

Re: [PHP] Text Color

2008-02-29 Thread Andrew Ballard
On Fri, Feb 29, 2008 at 10:21 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Feb 29, 2008, at 10:07 AM, Richard Heyes wrote: echo TRTD.$myrow[char_name].TD.$myrow[char_level].TD. $class[class].TD.$myrow[kara].TD. $myrow[karateam].TD.$myrow[karasub]; Either CSS styling or the

[PHP] PDO with MS SQL Server - output parameters/return values not returned

2007-07-27 Thread Andrew Ballard
I am unable to get the values of output parameters for SQL Server stored procedures that have multiple parameters or return values for any procedures. I have tried this with both the odbc: and mssql: drivers on a Windows XP development machine. (The live application will be hosted on a Windows

Re: [PHP] About XSL Transformation

2007-07-29 Thread Andrew Ballard
I tried to declare xsl:variable to increment within xsl:for-each, however I ran in to some dead ends. Variables in XSL are not most programmers think of when they hear the term variable. They are variable in the sense that they can be assigned a value at run-time, but they are really more like

Re: [PHP] Reading registry values

2007-07-30 Thread Andrew Ballard
I'm assuming you are intending to read the web server registry for configuration purposes, not the client's registry. Look at the section on COM in the manual. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Does PDO prevent class functions from calling other class functions?

2007-08-02 Thread Andrew Ballard
Ken, Your method name is site_for_pub, and you are trying to call site_for_pub_id. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Does PDO prevent class functions from calling other class functions?

2007-08-02 Thread Andrew Ballard
It's usually the obvious things that get you -- especially after you've been staring at the same piece of code for any length of time. :) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 5 and ms sql server express won't play nice !

2007-08-20 Thread Andrew Ballard
... but the second comment seems helpful. [1] http://www.php.net/manual/en/function.mssql-connect.php For SQL Server 2005, getting the right version of that ntwdblib.dll is crucial. However, Microsoft has apparently abandoned the NTWDBLIB library, so I have begun working with PDO ODBC

Re: [PHP] Questions about overloading and visibility in PHP5

2007-09-18 Thread Andrew Ballard
1) It seems that the getter and setter are not called on every single call. For example, if I do the following: $bar = new foo; $bar-x = 'x'; There is no output. I would expect to see Setting $this-x to x. Another example: $bar = new foo; $bar-y = 'y'; echo $bar-y; I would expect

Re: [PHP] date weirdness

2007-09-18 Thread Andrew Ballard
I'm seeing 11/4 twice for example. Sometimes dates are missing from the list. The results change from day to day. That would be DST. The number of seconds per day changes on Nov. 4, 2007 in the US local time zones. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Strategy for Secure File Storage

2007-09-25 Thread Andrew Ballard
Kevin Murphy wrote: The problem is IE7. All browsers work with this code as is but IE says Internet Explorer cannot download test.pdf from XXX The problem with IE was when you told it not to cache the document. If you just want the browser to download the file rather than let the Adobe

Re: [PHP] Re: strpos error (I'm missing something obvious)

2007-10-02 Thread Andrew Ballard
I'd suggest the following *slight* enhancement to make sure that the HTTP_REFERER actually *begins* with the site name, not simply contains it. // prevents visits from pages like http://badsite.com/form.htm?http://www.wnc.edu if (strpos($referer, $site) === 0) { echo 'yes'; } (or, if you

Re: [PHP] Re: strpos error (I'm missing something obvious)

2007-10-02 Thread Andrew Ballard
On 10/2/07, Al [EMAIL PROTECTED] wrote: I didn't mean that the function was foolproof, only the match function itself. Understood. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any known security issues with IMAP?

2007-10-04 Thread Andrew Ballard
On 10/4/07, Chris [EMAIL PROTECTED] wrote: Don O'Neil wrote: I'm not sure how opening an email inbox can hijack pages but maybe someone more creative than I can show me.. I don't know about the IMAP/POP3 itself, but if you are displaying the messages in a web browser for something like

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Andrew Ballard
On 10/9/07, Robert Cummings [EMAIL PROTECTED] wrote: $sucker = new TryToViolateEncapsulation(); $sucker = (array)$sucker; $keys = array_keys( $sucker ); $sucker[reset( $keys )] = 500; $sucker = serialize( (object)$sucker ); $sucker = 'O:25:TryToViolateEncapsulation'.substr( $sucker, 14 );

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Andrew Ballard
On 10/9/07, Robert Cummings [EMAIL PROTECTED] wrote: Certainly you'll notice I've extended the original class, overriden the __wakeup() call and basically used inheritance and polymorphism to my advantage. Noticed. :-) I said a *little* more difficult. Of course, I could declare the class

Re: [PHP] exit and ob_*

2007-10-12 Thread Andrew Ballard
On 10/12/07, Philip Thompson [EMAIL PROTECTED] wrote: I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be

Re: [PHP] Parsing Strings

2007-10-15 Thread Andrew Ballard
On 10/15/07, Philip Thompson [EMAIL PROTECTED] wrote: Hi. Before I try and reinvent the wheel, I thought I'd query the list. I want to take this string: thisIsAStringIHave and turn it into: This Is A String I Have Essentially, I want to capitalize the first letter (ucfirst) and then

Re: [PHP] problem with foreach

2007-10-22 Thread Andrew Ballard
On 10/22/07, Adam Williams [EMAIL PROTECTED] wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr input type=checkbox name=option[] value=Civil RightsCivil Rightsbr input

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Andrew Ballard
On Tue, Mar 18, 2008 at 11:47 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Tue, Mar 18, 2008 at 11:43 PM, Shelley [EMAIL PROTECTED] wrote: Hi all, What do you think is the FASTEST sql to get the total number of a table with millions of records? when you say 'total number' do you mean

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 10:35 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard [EMAIL PROTECTED] wrote: That works; I'm just wondering why you went with a count on an 'ID' column rather than COUNT(*). ouch, it looks like im horribly wrong :O

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 10:53 AM, tedd [EMAIL PROTECTED] wrote: At 10:35 AM -0400 3/19/08, Nathan Nobbe wrote: On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard [EMAIL PROTECTED] wrote: That works; I'm just wondering why you went with a count on an 'ID' column rather than COUNT

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 1:04 PM, TG [EMAIL PROTECTED] wrote: It seems that count(*) pulls all the data from the row then performs a count increment whereas count(did) only pulls the 'did' column. Again, I don't believe COUNT(*) pulls any data. If there is a row, it simply counts it. The row

Re: [PHP] eval uquestion

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 3:22 PM, chetan rane [EMAIL PROTECTED] wrote: HI All I have the follwoing code function cleanufx($str){ return ucase($str); } $value=xyz; $var =ufx; $fn=clean$var($value); $val =eval($fn;); echo $val; can anyone tell me what is

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 3:47 PM, George J [EMAIL PROTECTED] wrote: Hi, I have a script that contains a form and a pagination routine that calls itself. I want to pass an sql query along with some other variables to the called script. The code to acheive this, using the form, is working but

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Andrew Ballard
On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, I'm wondering if anyone else happens to be using Mozilla Thunderbird and seeing this behavior, and also if this behavior is a feature or a bug. When I hit the reply button to respond to a message most of the

Re: [PHP] mysql joins

2008-03-25 Thread Andrew Ballard
On Tue, Mar 25, 2008 at 8:20 AM, Steven Macintyre [EMAIL PROTECTED] wrote: I have three tables, namely; User - UID - Firstname - Surname - Tel - Cell - Email Tracker - UID - Points Winners - UID - Datetime (-00-00 00:00:00) I need to get the following

Re: [PHP] loosing session in new window (IE only)

2008-03-25 Thread Andrew Ballard
On Tue, Mar 25, 2008 at 3:49 PM, Lamp Lists [EMAIL PROTECTED] wrote: hi, i have a list of people on one page. each row, on the end has link a href=person.php?id=123 target=_blankview details/a. it's requested to open detail page in new window. very few people complained they can't open

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-25 Thread Andrew Ballard
On Tue, Mar 25, 2008 at 9:31 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:11 PM, Mark Weaver [EMAIL PROTECTED] wrote: Hi all, [snip!] Cookie Test Page == if (isset($_COOKIE[cookiename])){ list($first,$second,$third) =

  1   2   3   4   5   6   7   >