Re: [PHP] while-question

2008-11-17 Thread Andrew Ballard
On Mon, Nov 17, 2008 at 9:47 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Nathan Rixham schreef: >> Jochem Maas wrote: >>> $a = range(1,10); >>> for ($i = 0, $c = count($a); $i < $c; print($a[$i]."\n"), $i++); >> >> think the point of this is to count the items in an array without count >> mate :p

Re: [PHP] Date Issue

2008-11-18 Thread Andrew Ballard
On Mon, Nov 17, 2008 at 6:02 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Mon, 2008-11-17 at 16:57 -0600, Boyd, Todd M. wrote: >> > -Original Message- >> > From: Craige Leeder [mailto:[EMAIL PROTECTED] >> > Sent: Monday, November 17, 2008 4:50 PM >> > To: Boyd, Todd M. >> > Cc: [EMAI

Re: [PHP] Date Issue

2008-11-18 Thread Andrew Ballard
On Tue, Nov 18, 2008 at 2:58 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > It just flew in the face of all I knew at the time to have a > non-associative system-generated array (by that I mean one whos keys are > integars and not string keys) that doesn't start at 0. No other arrays > defined in

Re: [PHP] mysql_fetch_object and modulo %

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 9:32 AM, Craige Leeder <[EMAIL PROTECTED]> wrote: > Alain Roger wrote: >> >> Hi, >> >> how can i do to test if the row number (record number) sent by >> mysql_fetch_object is odd or even ? >> i mean that: >> while ($row = mysql_fetch_object($result)) >>{ >> if($row%2

Re: [PHP] HTTP Authentication

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda <[EMAIL PROTECTED]> wrote: > Guys, > > I have to access a WS that uses HTTP auth directly with PHP. > > I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get > it > working. I believe it has something to do with the password c

Re: [PHP] Invalid Arguements

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 10:39 AM, Terion Miller <[EMAIL PROTECTED]> wrote: > I've been trying to catch on to php on the fly, I started with Cold fusion > years ago then did asp for a long time, for some reason php gives me > problems, it doesn't at all seem intuitive to me or even logical for that

Re: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 12:47 PM, Thiago H. Pojda <[EMAIL PROTECTED]> wrote: > On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote: >> >> On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda <[EMAIL PROTECTED]> >> wrote: >> > Guys

Re: [PHP] Curl with asp pages....

2008-11-27 Thread Andrew Ballard
On Thu, Nov 27, 2008 at 7:12 PM, ioannes <[EMAIL PROTECTED]> wrote: > What are the differences between asp and non-asp pages when you are curling > them? Apart from ,as referred to in php.net, you need to urlencode the post > values... Do you also need to urlencode the variable names? And if the

Re: [PHP] Curl with asp pages....

2008-11-28 Thread Andrew Ballard
On Fri, Nov 28, 2008 at 9:59 AM, <[EMAIL PROTECTED]> wrote: > > The one thing that's always tripped me up with ASP sites is that you have to > add EVERY input, even the type="submit" with the correct value from the one > and only submit button on the page. Again, I think that's the ASP.NET part

Re: [PHP] Curl with asp pages....

2008-11-28 Thread Andrew Ballard
On Fri, Nov 28, 2008 at 10:08 AM, <[EMAIL PROTECTED]> wrote: > >> There is a slight difference in how ASP handles multiple form fields >> that share the same name (as well as SELECT MULTIPLE lists) such that >> ASP does not need (and should not use) square brackets in field names >> the way PHP do

Re: [PHP] Parsing XML

2008-11-28 Thread Andrew Ballard
On Fri, Nov 28, 2008 at 5:45 AM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Fri, 2008-11-28 at 10:15 +0100, Per Jessen wrote: >> Ashley Sheridan wrote: >> >> > Do any of you have a copy of this extension, or failing that, a >> > suggestion of how I can parse XML files without having to install

Re: [PHP] Last working day of a month

2008-12-04 Thread Andrew Ballard
On Thu, Dec 4, 2008 at 9:03 AM, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Hi all, > > I am busy trying to figure out how to get the last working day in a month. > > I was wondering if there was a script already written, but this is what I > imagine should work: > > Get the current day and see if

Re: [PHP] IE8 and HTML5

2008-12-05 Thread Andrew Ballard
On Fri, Dec 5, 2008 at 5:03 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Hi, > >>a client reported problems with a web app >> written by me with IE8. > > Why on earth would you support a beta browser? > > -- > Richard Heyes > Agreed. Test your site in the beta if you have time so you can anticip

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Andrew Ballard
> - Original Message - From: "David Stoltz" <[EMAIL PROTECTED]> > To: > Sent: Friday, December 05, 2008 1:19 PM > Subject: RE: [PHP] Help with IF ELSE > > >> The problem turned out to be, since I'm using the MCRYPT function to >> encrypt the password, once in a while the encrypted password

Re: [PHP] Help with IF ELSE

2008-12-05 Thread Andrew Ballard
On Fri, Dec 5, 2008 at 6:42 AM, David Stoltz <[EMAIL PROTECTED]> wrote: > I turned on error reporting (ALL) as you suggested. Nothing is being > sent to the browserstill doesn't work if the recordset isn't empty. > > I'm wondering, is there any other way to do a redirect in PHP? > > Thanks > T

Re: [PHP] How to fetch .DOC or .DOCX file in php

2008-12-05 Thread Andrew Ballard
On Thu, Dec 4, 2008 at 10:35 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > I was going to say that I haven't yet decided on what the final output format > is going to be. Probably either rtf or OpenXML. > > How about I ask for suggestions on what would be the best format to store the > final copy.

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-05 Thread Andrew Ballard
On Fri, Dec 5, 2008 at 1:28 PM, Terion Miller <[EMAIL PROTECTED]> wrote: > I have a huge form to validate and wonder which is better javascript > validation or php, the page is a php page, I actually put js validation on > it but then it stopped working (stopped inserting into the db) not sure if >

Re: [PHP] A MySQL Question

2008-12-08 Thread Andrew Ballard
On Sun, Dec 7, 2008 at 12:38 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Sun, 2008-12-07 at 11:01 -0500, Eric Butera wrote: >> Sounds like someone thinks they're pretty clever. I'll never >> understand why interviewers want to ask really odd edge case questions >> instead of ones that real

Re: [PHP] MSSQL_CONNECT problem

2008-12-09 Thread Andrew Ballard
On Tue, Dec 9, 2008 at 3:41 PM, David Stoltz <[EMAIL PROTECTED]> wrote: > Yes, I'm using a valid SQL account. I've tried putting both versions of > "ntwdblib.dll" in the php directory, and the system32 directory (not at once > of course), and I get the same error. > > I've pretty much tried every

Re: [PHP] Need help on MySQL query

2008-12-10 Thread Andrew Ballard
On Wed, Dec 10, 2008 at 10:52 PM, Rahat Bashir <[EMAIL PROTECTED]> wrote: > Hi Experts, > > EID Mubarak to all. > > I need your help on writing a MySQL query. > > Scenario: > > CREATE TABLE transaction > ( > `id` int NOT NULL ATUTO INCREMENT, > `date` datetime NOT NULL, > `withdrawn` double (12,2)

Re: [PHP] Foreign Keys Question

2008-12-11 Thread Andrew Ballard
On Thu, Dec 11, 2008 at 2:32 PM, tedd wrote: > At 1:55 PM -0500 12/11/08, Robert Cummings wrote: >> >> Student attendance should be a table with rows for each student in >> attendance. If you want to limit the number make a check before adding >> another student. Don't hard code the number via fie

Re: [PHP] search for person by comparing his data with data in mysql

2008-12-20 Thread Andrew Ballard
On Sat, Dec 20, 2008 at 7:01 AM, Jochem Maas wrote: > c...@l-i-e.com schreef: >> select >> first_name like '%$first_name%' >> + 3 * last_name like '%$last_name%' >> + 7 * email = '$email' >> as score, > > that works?? I guess the expressions (e.g. email = '$email') > evaluate to bools and are au

Re: [PHP] IE Problem Detecting Post Variables

2009-01-02 Thread Andrew Ballard
On Fri, Jan 2, 2009 at 1:15 PM, Micah Gersten wrote: > You might want to consider the button element which allows you to > display images, but doesn't send back coordinates. Instead it sends a > preset value. > http://www.w3.org/TR/html401/interact/forms.html#h-17.5 > > Thank you, > Micah Gersten

Re: [PHP] Searching in a long text

2009-01-03 Thread Andrew Ballard
On Sat, Jan 3, 2009 at 4:28 AM, Yeti wrote: > What if the whole text has only 1 line? > I would worry more (though probably not much) about the fringe cases where a match spans across lines (or pages) such that it would either prevent a qualifying match from being returned at all, or a highly rel

Re: [PHP] A beginner´s question

2009-01-05 Thread Andrew Ballard
On Mon, Jan 5, 2009 at 10:50 AM, Eduardo wrote: > Thanks, you all! > I tried near all suggestions, and Vicente's worked with >IE6 >Windows98SE >EasyPHP > > Eduardo > > > On 5 Jan 2009 at 4:36, Vicente wrote: > >> > > > Unless you have taken steps to ensure that the val

Re: [PHP] a weired query issue

2009-01-08 Thread Andrew Ballard
On Thu, Jan 8, 2009 at 12:18 PM, tedd wrote: > At 9:17 AM -0500 1/8/09, Daniel Brown wrote: >> >> On Thu, Jan 8, 2009 at 09:10, tedd wrote: >>> >>> $sql = "SELECT id FROM modules_permissions WHERE id = '$permissionId' "; >> >>I was going to ask something about sanity, but then I remembered >

Re: [PHP] header("Location: ") wont show up in logs of either server

2009-01-08 Thread Andrew Ballard
On Thu, Jan 8, 2009 at 7:17 PM, Rene Veerman wrote: > Hi, i'm doing a forward to another server (somehost.com/2.php) by using > > header("Location: http://someserver.com/script/1.php";); > > But on neither servers do i get hits in the apache access log for either > script being called. > > Any ide

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Andrew Ballard
On Wed, Jan 7, 2009 at 3:10 PM, Merlin Morgenstern wrote: > Hi there, > > I am justing walking my first steps on XML and PHP. As I learned from a > tutorial adressing is very simple: > > echo $xml->anbieter->immobilie->preise->kaufpreis; > > I simply just can't figure out how to adress this struct

Re: [PHP] Re: redoing website after 7 years

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 2:09 AM, Robert Cummings wrote: > On Fri, 2009-01-09 at 15:17 +1100, Chris wrote: >> > I know many people will grin at me for this solution but may be faster way >> > to overcome this problem to do a find for $ and replace with $_REQUEST. >> > even >> > this will help you i

Re: [PHP] Re: hello

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 9:54 AM, tedd wrote: > At 7:18 PM + 1/8/09, Nathan Rixham wrote: >> >> if it's a computer thats on, with an os, a keyboard and a network card >> connected to the internet it's insecure. > > It doesn't even have to be connected to the Internet to be insecure. > > Cheers,

Re: [PHP] Re: hello

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 12:08 PM, Nathan Rixham wrote: > Daniel Brown wrote: >> >> On Fri, Jan 9, 2009 at 11:56, Nathan Rixham wrote: >> >>> >>> a few years ago when I first met my rach (we met online), we'd have >>> random >>> conversations stretching several pages on various forums and social si

Re: [PHP] Re: hello

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 12:35 PM, Daniel Brown wrote: > On Fri, Jan 9, 2009 at 12:34, Andrew Ballard wrote: >> >> Now... you'd have really freaked out if that had actually worked! LOL > >Hey, good point, Andrew. > >Nate, you do know that was only pseudo-c

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 12:18 PM, Gary wrote: > I've done a number of sites in html and am now venturing into php. > > Can I create a page in html and insert php code that will work? (for > example, take an existing page and insert a date command) Not unless you configure your web server to parse

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Andrew Ballard
On Fri, Jan 9, 2009 at 12:47 PM, Jason Pruim wrote: > > On Jan 9, 2009, at 12:18 PM, Gary wrote: > >> Can I create a page with the php extension that contains only contains >> html >> and no php? If so are there advantages/disadvantages? > > Yes, Look at heredoc syntax on the php.net site. Works

Re: [PHP] Re: redoing website after 7 years

2009-01-12 Thread Andrew Ballard
On Sun, Jan 11, 2009 at 5:09 PM, Robert Cummings wrote: > On Mon, 2009-01-12 at 09:00 +1100, Chris wrote: >> Robert Cummings wrote: >> > On Fri, 2009-01-09 at 08:56 -0500, Andrew Ballard wrote: >> >> On Fri, Jan 9, 2009 at 2:09 AM, Robert Cummings >> >>

Re: [PHP] Re: Re: Php and CSS where to put it

2009-01-13 Thread Andrew Ballard
On Tue, Jan 13, 2009 at 5:14 PM, Ashley Sheridan wrote: > Yeah. Now my development goes like this: > > 1. Design for Firefox > 2. Fix for Opera, Safari et al > 3. Fix for IE > But generally speaking, if it works in Firefox, it'll most likely behave > itself in everything except IE ;) >

Re: [PHP] Re: php session GC error

2009-01-13 Thread Andrew Ballard
On Tue, Jan 13, 2009 at 5:08 PM, Nathan Rixham wrote: > Frank Stanovcak wrote: >> >> So from everything I've read there is no real way to assure a session >> timeout with out timestamping it myself and dealing with it in code by doing >> a time compare. >> >> bummer. > > you're probably storing th

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 12:36 PM, Stuart wrote: > 2009/1/14 tedd : >> Let's say that I don't want to use the htpasswd command from the UNIX shell >> to generate an encoded password -- how else can I create an encoded password >> string that would work in a .htaccess file using basic authentication

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 2:34 PM, tedd wrote: >> What it is depends on what encryption routines you have installed. >> >> The algorithm to authenticate detects the algorithm based on the hash. >> >> 32-char : MD5 >> $1$ : SHA-1 >> $2$ : SHA-2 >> etc. >> (Apologies if I got my tokens/algorit

Re: [PHP] Basic Authentication

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 6:17 PM, tedd wrote: > At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote: >> >> >> As others have said, use crypt(). >> http://php.net/manual/function.crypt.php has Example #2 Using crypt() >> with htpasswd. > > > Thanks, but that doesn't really solve my problem. > > You see,

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Andrew Ballard
On Wed, Jan 14, 2009 at 7:26 PM, Eric Butera wrote: > On Wed, Jan 14, 2009 at 6:47 PM, Daevid Vincent wrote: >> On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: >> >>> On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote: >>> >>> > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings >>> > wrote:

Re: [PHP] Dirty Button

2009-01-26 Thread Andrew Ballard
On Mon, Jan 26, 2009 at 2:05 PM, Michael Kubler wrote: > I like the idea of not updating the content straight away (as the user might > not want to see it updated), but depending on the situation I would > personally make the submit button look grey and inactive unless they've > changed something

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Andrew Ballard
On Mon, Jan 26, 2009 at 2:14 PM, Thiago H. Pojda wrote: > On Mon, Jan 26, 2009 at 4:13 PM, Robert Cummings wrote: > >> On Mon, 2009-01-26 at 13:04 -0600, R B wrote: >> > Hello, >> > >> > Is there a way to be sure that a website is going to be accessed only by >> > traditional browsers and not from

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 11:53 AM, revDAVE wrote: > Hi Folks, > > Newbie question > > I have a mysql table with 100 fields, currently all do not allow nulls. > Rather than hand typing in phpMyAdmin, I would like a way to loop through > all fields and update them to allow nulls > > My Beginn

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 12:58 PM, Boyd, Todd M. wrote: >> -Original Message- >> From: Andrew Ballard [mailto:aball...@gmail.com] >> Sent: Tuesday, January 27, 2009 11:39 AM >> To: revDAVE >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] Global C

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-28 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 5:24 PM, Boyd, Todd M. wrote: >> -Original Message- >> From: Chris [mailto:dmag...@gmail.com] >> Sent: Tuesday, January 27, 2009 4:04 PM >> To: Boyd, Todd M. >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A >> Table

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Andrew Ballard
On Wed, Jan 28, 2009 at 3:18 PM, Terion Miller wrote: > Not sure if I'm wording this right, what I am trying to do is look in two > tables, match the ID to use to pull information > > Here's my code but it's not right, although it is picking up the user from > the session, I will also post wha

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Andrew Ballard
On Wed, Jan 28, 2009 at 4:22 PM, Christoph Boget wrote: >> Well I'm stuck I have the AdminID but now I can't seem to use it to pull >> workorders with that AdminID . I couldn't get your block to work Andrew :( >> I think I'm just not using it right now that I have it...lol > > Because there is amb

Re: [PHP] Making a Variable from different tables with Matching Db fields?

2009-01-28 Thread Andrew Ballard
On Wed, Jan 28, 2009 at 4:31 PM, Terion Miller wrote: > On Wed, Jan 28, 2009 at 3:22 PM, Christoph Boget > wrote: >> >> > Well I'm stuck I have the AdminID but now I can't seem to use it to pull >> > workorders with that AdminID . I couldn't get your block to work Andrew >> > :( >> > I think I'm

Re: [PHP] Database Tables Relation Issue

2009-01-30 Thread Andrew Ballard
On Fri, Jan 30, 2009 at 3:38 AM, Nitsan Bin-Nun wrote: > Hi there, > > I'm working on something similar to mailing list in which every registered > user has the ability to create a mailing list and join others mailing lists. > > My users table is something like that (in short): > > CREATE TABLE IF

[PHP] Zend Framework and IIS

2009-01-30 Thread Andrew Ballard
Is anyone running Zend Framework under IIS? If so, how do you have it configured? (ISAPI versus FastCGI, etc.) Do you use any code optimizers? The reason I ask is because we set it up on a couple servers where I work and it is dreadfully slow. Just to render a basic page with no data connection (t

Re: [PHP] Include PHP library file in the .htaccess

2009-01-30 Thread Andrew Ballard
On Fri, Jan 30, 2009 at 12:41 PM, R B wrote: > Hello. > > Supose that i have this script: > > > require_once("lib.php"); > > > lib_function(); > ?> > > I want to know if there is a way to call the lib.php library from the > .htaccess instead of the PHP script? > Thanks. > .htaccess won't call it

[PHP] Re: Zend Framework and IIS

2009-01-30 Thread Andrew Ballard
On Fri, Jan 30, 2009 at 12:46 PM, Andrew Ballard wrote: > Is anyone running Zend Framework under IIS? If so, how do you have it > configured? (ISAPI versus FastCGI, etc.) Do you use any code > optimizers? > > The reason I ask is because we set it up on a couple servers where I &

Re: [PHP] Bad words [SQL, database, txt, whatever]

2009-02-04 Thread Andrew Ballard
On Wed, Feb 4, 2009 at 2:48 PM, Jônatas Zechim wrote: > Hi there I don't know how to say 'palavrões'(i mean bad words, like f*** > you, your bi***, as*) in English, but I need that. > > Anyone has or know where I can get a database, txt, whatever of 'bad words > or 'palavrões'' > > zechim > http:

Re: [PHP] Re: DB Comparisons

2009-02-06 Thread Andrew Ballard
On Fri, Feb 6, 2009 at 7:27 PM, Ashley Sheridan wrote: > On Fri, 2009-02-06 at 21:56 +1000, Murray wrote: >> In fact, ASP.NET happily connects with other DBMSes. I have several C# >> ASP.NET web apps happily working with MySQL. >> >> M is for Murray >> >> >> On Fri, Feb 6, 2009 at 7:39 AM, Ashley

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 9:25 AM, tedd wrote: > At 9:00 AM +1100 2/9/09, Chris wrote: >> >> Person a signs up with em...@example.com >> >> Before you are able to fetch the result (which is possible in a high >> traffic site), person b also signs up with em...@example.com >> >> Going back to person a

Re: [PHP] PHP usage stats

2009-02-09 Thread Andrew Ballard
On Sun, Feb 8, 2009 at 3:37 PM, Paul M Foster wrote: > On Sun, Feb 08, 2009 at 03:20:48PM -0500, tedd wrote: > >> At 3:54 PM + 2/8/09, Stuart wrote: >>> 2009/2/8 tedd : >>> >>> > I wasn't able to find a lot of information, but here's a useful link: >>> > http://www.tiobe.com/index.php/c

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 10:27 AM, tedd wrote: > At 9:54 AM -0500 2/9/09, Andrew Ballard wrote: >> >> You are right, but the point is that if you intend something to be >> unique then you should declare it as such in the database. > > We didn't discuss that. > &g

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 11:05 AM, tedd wrote: > At 10:55 AM -0500 2/9/09, Andrew Ballard wrote: >> >> -snip- >> >> Andrew > > As I said many times before. > > I've learned something new every day of my life -- and I'm getting damned > tried of

Re: [PHP] PHP usage stats

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 11:10 AM, tedd wrote: > At 10:02 AM -0500 2/9/09, Andrew Ballard wrote: >> >> On Sun, Feb 8, 2009 at 3:37 PM, Paul M Foster >> wrote: >> >> > Perhaps a better question then might be how many IIS servers are there >>> >

Re: [PHP] Using DLL with PHP

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 11:10 AM, Dan Shirah wrote: >> >> Check out the com [www.php.net/com] functionality >> >> Bastien >> > Alrighty, I'm trying to use the COM function, but not getting much of > anywhere. > > This is what I have: > > // The VB function for reference > /*function DTM_CONVDMSToM

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 11:32 AM, tedd wrote: > At 11:15 AM -0500 2/9/09, Andrew Ballard wrote: >> >> On Mon, Feb 9, 2009 at 11:05 AM, tedd wrote: >> >> > I've learned something new every day of my life -- and I'm getting >> damned >> > t

Re: [PHP] Using DLL with PHP

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 12:10 PM, Dan Shirah wrote: >> I can't help much, but this might get you started. >> >> 1) Does the DLL you are trying to use actually supports COM. I know some >> don't. >> >> 2) I'm pretty sure that the string you pass to new COM('...') should >> be the name the class as r

Re: [PHP] sqlsrv vs Mssql

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 1:11 PM, Andrew Williams wrote: > Hi, > > Can somebody help me with why I have communication problem using MSSQL with > SQLserver 2005. Instead I am now using SQLSRV > > -- > Best Wishes > Andrew Williams Care to be more specific? Andrew -- PHP General Mailing List (http

Re: [PHP] PHP usage stats

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 2:03 PM, Daniel Brown wrote: > On Sun, Feb 8, 2009 at 09:35, Richard Heyes wrote: >> Hi, >> >> Can anyone point out some general statistics on PHP usage compared to >> other server languages? I've tried Netcraft, but they only appear (or >> I've only found) to have statisti

Re: [PHP] Using DLL with PHP

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 3:21 PM, Dan Shirah wrote: > H, maybe it's not a problem with the DLL I'm trying to access because > just doing a simple: > $my_com = new COM("Excel.Application"); > > Gives me the same error: > *Fatal error*: Uncaught exception 'com_exception' with message 'Failed to >

Re: [PHP] PHP usage stats

2009-02-09 Thread Andrew Ballard
On Mon, Feb 9, 2009 at 3:28 PM, Daniel Brown wrote: > On Mon, Feb 9, 2009 at 15:21, Stuart wrote: >> >> I would advise you against wasting your time because there is no >> reliable way to tell what systems a server is actually using to serve >> pages. Nearly all sites I work on these days use tec

Re: [PHP] PHP OOP

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina wrote: > Marcus Gnaß schrieb: >> >> Paul M Foster wrote: >>> >>> On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote: >>> As a side note, I think students should learn a language like C before >>> learning something like Perl, Python or PHP. Having

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 11:59 AM, Dan Shirah wrote: > Alrighty, so I went a different route... > > I created my own ActiveX DLL...one that I know I can register. > > Starting out really simple: > > //My VB code > Public Function hello() As String > > hello = "Hello World!" > End Function > > /

Re: [PHP] Creating A Unique List With Table Query

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 2:41 PM, revDAVE wrote: > Newbie question > > Hi Folks, > > I would like to be able to query a table, and return only the unique values > from a particular field. For example: to get all contents from the category > field from the contacts table: > > Query = > > SELECT

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 3:09 PM, Kyle Terry wrote: > On Tue, Feb 10, 2009 at 12:07 PM, Kyle Terry wrote: >> On Tue, Feb 10, 2009 at 9:46 AM, Tony Marston >> wrote: >>> Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html >>> >>> -- >>> Tony Marston >>> http://www.tonymarston.

Re: [PHP] Using DLL with PHP

2009-02-11 Thread Andrew Ballard
On Wed, Feb 11, 2009 at 1:18 PM, Dan Shirah wrote: > MAYBE a little closer to a solution! > > //VB for Reference > Private Declare Function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _ >(ByVal FullPathFrom As String, ByVal FullPathTo As String) As > Integer > > Public Function hello(By

Re: [PHP] [PHP 5.2.8] Retrieve cookies from remote host and pass them back to client.

2009-02-13 Thread Andrew Ballard
On Fri, Feb 13, 2009 at 12:42 PM, Jason Cipriani wrote: > I have a PHP 5.2.8 web application that needs to retrieve a resource > from a remote URL. However, the remote host also sends a cookie back > (in a Set-Cookie header), and I need to grab that cookie and pass it > on to the client (so that i

Re: [PHP] Reverse IP lookup

2009-02-15 Thread Andrew Ballard
On Sun, Feb 15, 2009 at 1:22 PM, דניאל דנון wrote: > Hello, > > Is there anyway to get a list of sitess that are on a specific IP? > > I looked, But I couldn't find anything. > > I tried to make some with dns_get_record and gethostbyaddr, but couldn't > make anything > > Thank > > Daniel > You m

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Andrew Ballard
On Mon, Feb 16, 2009 at 10:51 AM, Lewis Wright wrote: > This may be a little more accurate: > http://www.domaintools.com/reverse-ip/ > > But I think you have to pay if you want to use it a lot. > > I was going to post that one, but you have to pay to subscribe if you want more than the first few r

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 3:11 AM, Per Jessen wrote: > Colin Guthrie wrote: > >> I appreciate that https doesn't provide "trust" by default, but >> ultimately that's how Joe Bloggs public has been told to deal with it >> "look for the padlock" etc. etc. to be sure that your session is >> secure blah

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings wrote: > On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: >> > Virgilio Quilario wrote: >> > >> >>> Recently we had some serious discussion on local boards. >> >>> >> >>> I prefer calling PHP as Web Framework of C and C++ >> >>> >> >>> if you had

Re: [PHP] function array problem

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan wrote: > I've had a bit of a problem with a function I'm using for a form. > Essentially, the function looks like this: > > function addEvent($values = Array('name' => '', 'venue' => '', > 'description' => '', 'errors' => Array())) > { >// code

Re: [PHP] function array problem

2009-02-17 Thread Andrew Ballard
On Tue, Feb 17, 2009 at 3:29 PM, Ashley Sheridan wrote: > On Tue, 2009-02-17 at 15:13 -0500, Bastien Koert wrote: >> On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan >> wrote: >> >> > I've had a bit of a problem with a function I'm using for a form. >> > Essentially, the function looks like this:

Re: [PHP] Re: Unique User Hashes

2009-02-18 Thread Andrew Ballard
On Wed, Feb 18, 2009 at 4:12 AM, Ian wrote: > Forgot to send to list. > > -- Forwarded message -- > From: Ian > Date: Wed, Feb 18, 2009 at 11:12 AM > Subject: Re: [PHP] Re: Unique User Hashes > To: Colin Guthrie > > > > 'Twas brillig, and Ian at 18/02/09 07:09 did gyre and gimble

Re: [PHP] Unique User Hashes

2009-02-18 Thread Andrew Ballard
On Wed, Feb 18, 2009 at 1:41 PM, tedd wrote: > At 5:47 AM +0200 2/18/09, Ian wrote: >> >> Anyone had to deal with this in the past and does anyone have any >> suggestions/ideas as to how I could better this setup? >> >> Many thanks in advance, >> Ian > > Ian: > > As other people have said, using I

Re: [PHP] Unique User Hashes

2009-02-18 Thread Andrew Ballard
On Wed, Feb 18, 2009 at 3:43 PM, tedd wrote: > At 1:54 PM -0500 2/18/09, Andrew Ballard wrote: >> >> On Wed, Feb 18, 2009 at 1:41 PM, tedd wrote: >> >> > Granted this is an involved method, but email addresses are unique and >> thus >>> >>

Re: [PHP] Unique User Hashes

2009-02-18 Thread Andrew Ballard
On Wed, Feb 18, 2009 at 4:07 PM, tedd wrote: > At 3:54 PM -0500 2/18/09, Andrew Ballard wrote: >> >> You're missing my point. Yes, e-mail addresses are unique delivery >> points. They can not, however, uniquely identify one and only one >> person -- which is

Re: [PHP] adding whitespace to a timestamp

2009-02-23 Thread Andrew Ballard
On Sat, Feb 21, 2009 at 1:28 PM, Eric Sherman wrote: > I hoping to add a space between the date and the time in this: > > $thedate = date('M jS g:i A', $postTIME); > > i.e, between* jS* and *g:i* > > I've looked around but can't find anything. > > Thanks > > Eric Sherman > Multi Media Information

Re: [PHP] multiple choice dropdown box puzzle

2009-02-23 Thread Andrew Ballard
On Mon, Feb 23, 2009 at 10:25 AM, PJ wrote: > I think this is a tough one... and way above my head: > PLEASE READ ALL OF THE ABOVE TO UNDERSTAND WHAT I AM TRYING TO DO. > Having a bit of a rough time figuring out how to formulate php-mysql to > insert data into fields using a multiple dropdown bo

Re: [PHP] optimizing space for array of booleans

2009-02-24 Thread Andrew Ballard
On Tue, Feb 24, 2009 at 3:24 AM, leledumbo wrote: > > Just tried serializing array of 256 booleans and printing the length, it > really shocked me: 2458. This project will be used by about 500 students, so > in the worst case (all students enroll all courses) it will eat 500 * 2458 > (assuming one

Re: [PHP] XML and :

2009-02-24 Thread Andrew Ballard
On Tue, Feb 24, 2009 at 9:51 AM, Merlin Morgenstern wrote: > Hi there, > > I am trying to pars an XML file with php. This works if the xml tag looks > like this: 88 > In that case I retrieve the info: $xml->anbieternr > > But now the tag looks different like this: > 88 > > The command $xml->imo:an

Re: [PHP] optimizing space for array of booleans

2009-02-24 Thread Andrew Ballard
On Wed, Feb 25, 2009 at 12:12 AM, leledumbo wrote: > >> Generally relationships like the one you describe are stored in three >> separate and related tables: Students, Courses, and Enrollment. The >> latter is a n:m association between the first two. The advantage this >> approach has with regard

Re: [PHP] Re: catch the error

2009-02-26 Thread Andrew Ballard
What does this output? $db_connect is not a valid resource: ' . mysql_error() . ''; exit(); } if (!mysql_select_db($db_name, $db_connect)) { echo "Unable to select $db_name: " . mysql_error() . ''; exit(); } $sql1 = "INSERT INTO test (name, age) VALUES ('Arnie Shwartz', '75')"; $res

Re: [PHP] Re: How important is your Express or Web Edition database? Please weigh in--

2009-02-27 Thread Andrew Ballard
On Fri, Feb 27, 2009 at 4:21 PM, Bastien Koert wrote: > On Fri, Feb 27, 2009 at 4:01 PM, Shawn McKenzie wrote: > >> Stan Stadelman wrote: >> > Hello All: >> > >> > I'm trying to see how Web Edition databases are being used in your >> company >> > for PHP-driven web-apps.  Our strategy team thought

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-27 Thread Andrew Ballard
On Fri, Feb 27, 2009 at 4:58 PM, Bastien Koert wrote: > On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: > >> Newbie question: >> >> I would like to get a list of column field names from a MS Access table and >> hopefully get them returned in the ORIGINAL order (as they appear in >> access) >> >>

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-27 Thread Andrew Ballard
On Fri, Feb 27, 2009 at 7:41 PM, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: >> On Thu, Feb 26, 2009 at 4:01 PM, revDAVE wrote: >> >> > Newbie question: >> > >> > I would like to get a list of column field names from a MS Access table and >> > hopefully get th

Re: [PHP] Re: How important is your Express or Web Edition database? Please weigh in--

2009-02-27 Thread Andrew Ballard
On Fri, Feb 27, 2009 at 7:32 PM, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 16:41 -0600, Boyd, Todd M. wrote: >> > -Original Message- >> > From: Andrew Ballard [mailto:aball...@gmail.com] >> > Sent: Friday, February 27, 2009 3:26 PM >> > To: Bas

Re: [PHP] Re: How important is your Express or Web Edition database? Please weigh in--

2009-02-28 Thread Andrew Ballard
On Sat, Feb 28, 2009 at 5:13 AM, Ashley Sheridan wrote: > On Sat, 2009-02-28 at 01:04 -0500, Andrew Ballard wrote: >> On Fri, Feb 27, 2009 at 7:32 PM, Ashley Sheridan >> wrote: > I absolutely love enum datatypes; they allow you to use string values > but internally stores

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Andrew Ballard
On Sat, Feb 28, 2009 at 6:08 PM, Paul M Foster wrote: > On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote: > >> On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: > > > >> That'll just return an empty result set, as in empty and with no fields >> output! In MySQL you can do thi

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Andrew Ballard
On Sat, Feb 28, 2009 at 5:08 AM, Ashley Sheridan wrote: > On Sat, 2009-02-28 at 00:40 -0500, Andrew Ballard wrote: >> On Fri, Feb 27, 2009 at 7:41 PM, Ashley Sheridan >> wrote: >> > On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: >> >> On Thu, Feb

Re: [PHP] Get a list of column field names from a MS Access table

2009-03-02 Thread Andrew Ballard
On Sun, Mar 1, 2009 at 12:39 AM, Paul M Foster wrote: > On Sat, Feb 28, 2009 at 06:54:25PM -0500, Andrew Ballard wrote: > >> On Sat, Feb 28, 2009 at 6:08 PM, Paul M Foster >> wrote: >> > On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote: >> > >

Re: [PHP] Re: How important is your Express or Web Edition database? Please weigh in--

2009-03-02 Thread Andrew Ballard
On Mon, Mar 2, 2009 at 10:30 AM, Boyd, Todd M. wrote: >> -Original Message- >> From: Andrew Ballard [mailto:aball...@gmail.com] >> Sent: Saturday, February 28, 2009 12:05 AM >> To: a...@ashleysheridan.co.uk >> Cc: Boyd, Todd M.; PHP General list >> Sub

Re: [PHP] multiple categories

2009-03-02 Thread Andrew Ballard
On Mon, Mar 2, 2009 at 11:50 AM, PJ wrote: > I have a list of some 60 categories for a book database and am wondering > what would be the best approach for inserting and selecting the data. > My choices are to > (1.)simply use one field in a books table and enter the categories for > each book sep

Re: [PHP] Re: How important is your Express or Web Edition database? Please weigh in--

2009-03-02 Thread Andrew Ballard
On Mon, Mar 2, 2009 at 6:36 PM, Ashley Sheridan wrote: > On Mon, 2009-03-02 at 09:30 -0600, Boyd, Todd M. wrote: >> > -Original Message- >> > From: Andrew Ballard [mailto:aball...@gmail.com] >> > Sent: Saturday, February 28, 2009 12:05 AM >> > To:

  1   2   3   4   5   6   7   >