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

Re: [PHP] Database Tables Relation Issue

2009-01-30 Thread Andrew Ballard
this relations table is that you can later expand it to include other things, such as defining the relationship of a user to a list (moderator, administrator, subscriber, etc.) if that becomes necessary. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zend Framework and IIS

2009-01-30 Thread Andrew Ballard
t now.) Is ZF really just that slow under IIS? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-01-30 Thread Andrew Ballard
of the PHP script? > Thanks. > .htaccess won't call it since it isn't actually executed, but you can set up an auto_prepend_file in .htaccess that will be automatically prepended to all your PHP scripts in the folder (assuming the server config allows it). Andrew -- PHP Ge

[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
or 'palavrões'' > > zechim > http://www.google.com/search?hl=en&q=bad+word+dictionary&btnG=Google+Search http://www.google.com/search?hl=en&q=bad+word+list&btnG=Search&aq=f&oq= http://www.google.com/search?hl=en&q=bad+word+database&btn

Re: [PHP] Re: DB Comparisons

2009-02-06 Thread Andrew Ballard
ou sent to hell... I asked M$, and they > adamantly refused to answer... so draw your own conclusions... > > > Ash > www.ashleysheridan.co.uk I suspect either would be able to connect to MySQL as long as you had the MySQL ODBC driver installed. I don't know if there are ot

[PHP] [PHP]: php validate user password

2009-02-09 Thread Andrew Williams
Hi, Can some body help out on how to validate user password from the database? Thanks Andrew

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

2009-02-09 Thread Andrew Ballard
then it is without doubt the same record. > > If I was not using an unique identifier, then I would agree with you. But > unique is unique -- it makes no difference if it's a record ID or email > address -- both are unique. You are right, but the point is that if you intend someth

Re: [PHP] PHP usage stats

2009-02-09 Thread Andrew Ballard
yone just *knows* PHP is a significant player" -- that's not >> proof. > > Perhaps a better question then might be how many IIS servers are there > out there compared to Apache. Apache servers uniformly support PHP, but > I think only IIS servers support ASP (I could be wrong). We're running PHP under IIS where I currently work. For that matter, I'm pretty sure the headers spit out that both ASP.NET and PHP are supported on these machines, even though we're not currently using ASP.NET. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fwd: [PHP] Interface OOP

2009-02-09 Thread Andrew Williams
$this ->validate = connect to externalServerObject($pwd, $acc, $customerAcc); } *GetLoginSession()* { return $this ->validate; } } Andrew Williams http//www.willandy.co.uk -- Best Wishes Andrew Williams

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
OM('...') should be the name the class as registered with Windows, not the actual file name. They are usually something like 'Scripting.FileSystemObject', 'word.application', 'ADODB.Recordset', etc. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
o new COM('...') should >> be the name the class as registered with Windows, not the actual file >> name. They are usually something like 'Scripting.FileSystemObject', >> 'word.application', 'ADODB.Recordset', etc. >> >> >>

[PHP] sqlsrv vs Mssql

2009-02-09 Thread Andrew Williams
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 -- Best Wishes Andrew Williams

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

Re: [PHP] sqlsrv vs Mssql

2009-02-09 Thread Andrew Williams
MSsql unable to connect to the SQLserver2005 but not SQLserver2008 On Mon, Feb 9, 2009 at 6: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 Wis

Re: [PHP] PHP usage stats

2009-02-09 Thread Andrew Ballard
3A.com+filetype%3Aexe 7.6M Of course, with extensions like .dll or .exe it's hard to tell whether the indexed resource is a compiled web app or if it is a file available for downloading. Definitely still a slippery number to pin down. Nice use of Google though. :) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
e was ASP, but from time to time we'd get an app written in one of the other languages that someone wanted to host for their department and often we'd host it. For that matter, what about someone using Phalanger, Monologo, or the like to write PHP syntax inside .NET? :-) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP OOP

2009-02-10 Thread Andrew Ballard
ds > > Carlos > Yes, it is, but the original question was about OOP and not specifically about PHP. It seems fair enough to me for someone to ask the question on this list since PHP was one of the languages being considered, even if consensus among the list seems to be that PHP would not be the best choice for teaching a course on OOP. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Andrew Ballard
which is running PHP 5.2.0 under WinXP, and it worked as expected: FileExists($some_file)) { echo 'The file exists!'; } else { echo 'The file does not exist.'; } ?> Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-02-10 Thread Andrew Ballard
ry > > Any help would be appreciated - thanks Dave > > > > -- > Thanks - RevDave > Cool @ hosting4days . com > [db-lists 09] > SELECT DISTINCT Category FROM contacts Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
whether the double-slashes are getting passed into the object method rather than being treated as escape characters. You might try passing one of those values to your Hello() method to make sure they are going into your class correctly. This also doesn't begin to delve into whether the COM object uses the same security context as PHP. I would think so, but that's just a guess. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-02-13 Thread Andrew Ballard
uest for this type of stuff, but it only works with PHP 5.0/5.1 and greater. Otherwise, CURL is the next easiest, followed by direct socket connections. Keep in mind when passing the cookie to the client that if the client browser is set to reject 3rd party cookies and you pass a value for $domain to setcookie() that is different than the domain of your site, the browser will ignore the header. Andrew

Re: [PHP] Reverse IP lookup

2009-02-15 Thread Andrew Ballard
ything > > Thank > > Daniel > You mean like this one? http://www.yougetsignal.com/tools/web-sites-on-web-server/ I don't know how reliable or up-to-date it is. Andrew

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Andrew Ballard
than the first few results for an address. Andrew

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

2009-02-17 Thread Andrew Ballard
nes that get extra special treatment in the browser because the CA is supposed to go beyond merely verifying that the URL domain matches the certificate by making additionally validating that the certificate belongs to a real entity whose identity they have verified. They also cost the most. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-02-17 Thread Andrew Ballard
> > >> > I prefer calling C and C++ as Framework of Assembly language. >> > >> > >> >> Hahaha that was a good one Shawn. I almost fall of the chair :-) . > > What's so funny? Assembly is just a framework for microcode. > > Cheers, > Rob. I guess a computer would be a framework for data processing. :-) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function array problem

2009-02-17 Thread Andrew Ballard
ork? > > > Ash > www.ashleysheridan.co.uk > > It seems to work OK for me. I typically use your altered format or the form that Bastien posted (except I usually default the parameters to null rather than an empty string) though. '', 'venue' => '', &#

Re: [PHP] function array problem

2009-02-17 Thread Andrew Ballard
al Mailing List (http://www.php.net/) >> > To unsubscribe, visit: http://www.php.net/unsub.php >> > >> > >> >> i tend to do >> >> function addEvent($values='') >> { >> if (!is_array($values)) >> { >>$valu

Re: [PHP] Re: Unique User Hashes

2009-02-18 Thread Andrew Ballard
client, depending on proxies and gateways) and the request headers (including cookies). Each has its own vulnerablities, as already discussed. Variables such as HTTP_X_FORWARDED_FOR, HTTP_X_VIA, etc. may get closer, but ultimately these are just request headers that are easy to forge, munge and/or discard at multiple points between the client and your server. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
anks > > Eric Sherman > Multi Media Information You can put spaces anywhere in that string you want them. What problem are you having? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple choice dropdown box puzzle

2009-02-23 Thread Andrew Ballard
) $sql .= ', '; $sql .= "('" . mysql_real_escape_string($categoriesIN[$ii]) . "')"; } } $result = mysql_query($sql, $db); ?> Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] optimizing space for array of booleans

2009-02-24 Thread Andrew Ballard
ingle floppy high-density drive could hold that much data 18 years ago! Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML and :

2009-02-24 Thread Andrew Ballard
r? If you have to deal with namespaces in documents, it's probably time for the project to graduate from SimpleXML to something like DOM. Look at the user note on this page: http://us3.php.net/manual/en/intro.simplexml.php Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] optimizing space for array of booleans

2009-02-24 Thread Andrew Ballard
 $index  = $this->index($bit); >    $offset = $this->offset($bit); >    $this->bits[$index] &= ~(1 << $offset); >  } > >  public function test($bit) { >    $index  = $this->index($bit); >    $offset = $this->offset($bit); >    return $this->bits

Re: [PHP] Re: catch the error

2009-02-26 Thread Andrew Ballard
(name, age) VALUES ('Arnie Shwartz', '75')"; $result1 = mysql_query($sql1,$db); if (!is_resource($result1)) { echo "Error performing 1st query: " . mysql_error() . ""; exit(); } else { echo '' . mysql_affected_rows() . 'row(s) affected

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

2009-02-27 Thread Andrew Ballard
spidean.com >> >> > Just another marketing tool to sell a limited toolset db to punters who like > marketing hype > > > -- > > Bastien I thought they were free. Limited, but free. (reduced functionality or limited number of connections compared to the commercial versi

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

2009-02-27 Thread Andrew Ballard
t > I thought (and almost replied) the same, but the more I think about it, I'm not sure it would work. The query would return no results, so there wouldn't even be an array of empty values. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-02-27 Thread Andrew Ballard
; >> > >> A dirty way is to query the table where 1=2 to return no results >> >> select * from table where 1=2 >> > That'll just return an empty result set, as in empty and with no fields > output! In MySQL you can do this: > > SELECT column_name FRO

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
MySQL and PostgreSQL > support it. Don't know about MSSQL. > > Paul > -- > Paul M. Foster > Access is not MSSQL, and I'd hardly consider it standard SQL either. :-) To even connect to it from PHP, I think you'd need to either use a generic ODBC library or else the CO

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
voids logic errors that result in invalid results when differentiating between subjects like "Men's Health" and "Women's Health" within the list. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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:

Re: [PHP] PHP script lag (5 secs) when declaring mime type.

2009-03-05 Thread Andrew Ballard
e seen it make a difference is if I'm sending the file as an attachment (prompting the browser to save the file rather than displaying it). If removing the line eliminates the problem, I'd just remove the line and be done with it. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP script lag (5 secs) when declaring mime type.

2009-03-05 Thread Andrew Ballard
On Thu, Mar 5, 2009 at 1:26 PM, Jsbeginner wrote: > Thankyou Andrew Ballard and 9Tel , You're welcome. However, you forgot to reply to the list. > You both suggest that it's not necessory to set the Content-Length except > for images etc ... well the problem is that I al

[PHP] Backend autodatabase update

2009-03-07 Thread Andrew Williams
Dear All, I have written a back end php program that update live stream database and this data is streamed 24 hours a day. Please, what is the best way to make sure this program execute or runs 24 hours day. Best Wishes Andrew Williams www.willandy.co.uk

Re: [PHP] Backend autodatabase update

2009-03-08 Thread Andrew Williams
hours a day On Sat, Mar 7, 2009 at 11:02 PM, 9el wrote: > cronjob or deamon to execute the php file > > > On Sun, Mar 8, 2009 at 4:56 AM, Andrew Williams > wrote: > >> Dear All, >> >> I have written a back end php program that update live stream database and >

Re: [PHP] Backend autodatabase update

2009-03-08 Thread Andrew Williams
M, 9el wrote: > >> cronjob or deamon to execute the php file >> >> >> On Sun, Mar 8, 2009 at 4:56 AM, Andrew Williams >> wrote: >> >> > Dear All, >> > >> > I have written a back end php program that update live stream database >&g

[PHP] web refreshing problem

2009-03-08 Thread Andrew Williams
Hi, my php program does not display current result of submitted form instead the previous content is shown until you refresh manually (which means resubmitting the form). Can someone help me out because, I want to display the result of the latest form result and not the old one. I am using apach

Re: [PHP] web refreshing problem

2009-03-09 Thread Andrew Williams
difference. help please On Mon, Mar 9, 2009 at 3:09 PM, Virgilio Quilario < virgilio.quila...@gmail.com> wrote: > hi, > > that wouldn't be a problem. > it will just tell the browser not to cache the html output. > > Virgil > http://www.jampmark.com > > O

Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
tes (onload, onmouseover, etc.) - the value of the > attribute of the attribute I could care less about. > > There's probably an xpath way to get all the elements and then check them > for a specified attribute, but using the wildcard with the > getElementsByTagName also works. > > If your source is well-formed enough to use the DOM library, then you could probably write an XSLT template that would give you exactly what you want. You still need to understand xpath syntax, but I found a post here that talks about what you are doing: http://www.biglist.com/lists/xsl-list/archives/200404/msg00668.html Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-10 Thread Andrew Ballard
I thought so too. That was until I had to use xpath on a few documents that used namespaces. Try this with a strict xhtml document and all of a sudden your simple xpath query becomes something like this: //*[namespace-uri()='http://www.w3.org/1999/xhtml' and local-name() = 'p' and @class='red'] Although, for the original question, I believe something like this would still work (unless the attributes themselves are namespaced): //*...@someattribute!=''] Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] whoami explanation

2009-03-10 Thread Andrew Ballard
t; When  cheese melts take the potates from the oven, add salt or whatever >> > condiment you use, add a litle oil and you have your lunch! >> > >> >> My mom tried to serve us a meatless meal when I was a kid. After the >> outrage of the three boys and dad, that was the la

Re: [PHP] DOM - change a tag name ??

2009-03-11 Thread Andrew Ballard
new one? > > Is there any other way to alter the tagName without doing all that? > If this is related to your earlier post about attributes, is XSLT not an option? I hate to sound like a broken record, but PHP has support for XSL transformations and it sounds like that is exactly what y

Re: [PHP] DOM - change a tag name ??

2009-03-11 Thread Andrew Ballard
On Wed, Mar 11, 2009 at 3:06 PM, Michael A. Peters wrote: > Andrew Ballard wrote: >> >> On Wed, Mar 11, 2009 at 11:52 AM, Michael A. Peters >> wrote: >>> >>> If I'm manipulating a dom object, is there a way to change the tag name? >>> I kno

Re: [PHP] Re: Include File Errors with Comments

2009-03-12 Thread Andrew Ballard
ll page template so it is easier to determine where dynamic content needs to be inserted when you start slicing the template apart, but even then I usually remove those comments later in the design process before I put the code out for production. Then again, I haven't included files for any

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread Andrew Ballard
#x27;,$nowts-(86400*28))."/1/".date('y',$nowts-(86400*28)); > $m03 = date('m',$nowts-(86400*58))."/1/".date('y',$nowts-(86400*58)); > $m04 = date('m',$nowts-(86400*88))."/1/".date('y',$nowts-(86400*88)); > $m05 = date('m',$nowts-(86400*118))."/1/".date('y',$nowts-(86400*118)); > $m06 = date('m',$nowts-(86400*150))."/1/".date('y',$nowts-(86400*150)); > $m07 = date('m',$nowts-(86400*180))."/1/".date('y',$nowts-(86400*180)); > > Q: Any ideas how to fix this issue? (please try to keep it simple - 'cause I > ain't no math wiz either) > > > > -- > Thanks - RevDave > Cool @ hosting4days . com > [db-lists 09] > Unless you are in a timezone that does not observe DST, you can't use a constant 86400 as the number of seconds in a day. You could try something like this: Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5.2.9 - 5.2.9-1 and curl

2009-03-12 Thread Andrew Ballard
anifesto" that users must follow to send messages here I will > surely specify my true e-mail address. > > Thank you very much again! ;) > Not a "manifesto", but the standard advice given to people who post to this list is to use Reply-All when replying to the list.

Re: [PHP] password field validation

2009-03-12 Thread Andrew Ballard
e, there is an extra S in PASSWORD. Also, you should enclose the array key in quotes: if (empty($_POST['PASSWORD'])) { $GERROR='TRUE'; } Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] password field validation

2009-03-12 Thread Andrew Ballard
27; that you probably intended it to use. That, and it generates an E_NOTICE. On a production server, these are usually hidden from public view, but it is still good practice to avoid them. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to make for statement run faster

2009-03-20 Thread Andrew Williams
I have a program where I process more that 5000 list of 100 data at time but it very slow due to many *for statement*s. how you make it run faster -- best www.willandy.co.uk

[PHP] how to make multiple sql run faster

2009-03-21 Thread Andrew Williams
Hi all, I am inserting more than 5000 rows into sql database but its taking more than 30 mins to get it all the data inserted. I use union to insert multiple rows of 20 at a time. What is the best way to make insert sql statement run faster -- andrew www.willandy.co.uk

[PHP] WHILE LOOP PROBLEM

2009-03-27 Thread Andrew Williams
can some tell why the below loop stop running after some time. $start=10; const run=0; while($start >run){ //do somthing } -- Best Wishes Andrew Williams

[PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Andrew Williams
what does time(); $t1 = time(); { do something } $t2 = time(); $end_time = $t2 - $t1; echo $end_time; what does $end_time represent? how do you determine the next 5 mins? -- Best Wishes willandy.co.uk

[PHP] XML data extraction

2009-04-02 Thread Andrew Williams
Best All, How can you best and accurately extract XLM data to DB table. e.g.: - 20 FRA Frankfurt - 28 LSE London Stock Exchange - 226 GER Xetra www.willandy.co.uk

[PHP] [php] scheduled task in php

2009-04-02 Thread Andrew Williams
All, Please how can you run a timed php script file via window scheduled task. or how can u execute a php script on a a time interval for instance every 4minutes -- Best Wishes Andrew Williams

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Andrew Williams
. Solution please On Thu, Apr 2, 2009 at 4:58 PM, Andrew Williams wrote: > > > On Thu, Apr 2, 2009 at 2:06 PM, Virgilio Quilario < > virgilio.quila...@gmail.com> wrote: > >> > Please how can you run a timed php script file via window scheduled >> task. or >&g

Re: [PHP] [php] scheduled task in php

2009-04-03 Thread Andrew Williams
t; > how can u execute a php script on a a time interval for instance every > > 4minutes > > hi Andrew, > > first schedule a task, locate and select your php.exe, and schedule it > to run daily for the moment. > after creating it, you will see it listed on the window. >

[PHP]scheduled task in php IN FIREFOX

2009-04-03 Thread Andrew Williams
HOW DO YOU CONFIGURE scheduled task to use firefox instead of Internet Explorer

Re: [PHP]scheduled task in php IN FIREFOX

2009-04-03 Thread Andrew Williams
That is a better idea but the program needs about five minutes to complete. Would that not be a problem? On Fri, Apr 3, 2009 at 2:44 PM, Stuart wrote: > Please include the list when replying. > > 2009/4/3 Andrew Williams : > > interval update > > I'm sorry, a

Re: [PHP] problem with PHP simplexml and doxygen generated XML

2009-04-05 Thread Andrew Williams
> > What about first stripping out the @ characters with str_replace and > > then attempting to load the XML? Maybe run it thru a few to do the > > best possible clean up? > > > > Bastien > > > > Found out what I was doing wrong, the problem has nothing to do with the > XML code, tag attributes are put into the @attributes section, which must > be accsessed with the attributes() function. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Best Wishes Andrew Williams

[PHP] [php] while loop failure

2009-04-06 Thread Andrew Williams
Does any one knows why while loop below ends after few loops when it meant to keep in loop? File name: while_loop_script.php define('run', 0); define('START', 10); while(START >run){ $ch = curl_init("mydomain/update_script.php?action=run"); curl_exec($ch); curl_close($ch); } using php.exe to

Re: [PHP] [php] while loop failure

2009-04-06 Thread Andrew Williams
Rane | Software Engineer | Persistent Systems > chetan_r...@persistent.co.in | Cell: +91 94033 66714 | Tel: +91 (0832) 30 > 79014 > Innovation in software product design, development and delivery- > www.persistentsys.com > > > > > -Original Message- > From: Andr

Re: [PHP] kill php.exe window

2009-04-06 Thread Andrew Williams
g "& exit" to your command. For instance: > > php.exe [YOUR COMMAND ARGS] & exit > > Greetings from Germany > > Marc > > -- > Sync and share your files over the web for free > http://bithub.net/ > > My Twitter feed > http://twitter.com/MarcSteinert > > -- Best Wishes Andrew Williams

[PHP] kill php.exe window

2009-04-06 Thread Andrew Williams
I need to exit php.exe window after completing an assigned task. Does anyone knows how to close, exit, kill or stop the window -- willandy.co.uk

Re: [PHP] [php] while loop failure

2009-04-06 Thread Andrew Williams
memory a script may consume (128MB) the above setting should allowed script to execute indefinitely. is't it? On Mon, Apr 6, 2009 at 11:29 AM, Andrew Williams wrote: > The php.ini maximum time is set to -1 which is infinity > > > On Mon, Apr 6, 2009 at 11:27 AM, Chetan Rane >

Re: [PHP] Am I being hacked?

2009-04-08 Thread Andrew Ballard
ction. Effectively all it does is issue the command WAITFOR DELAY '00:00:10', telling the server to wait for 10 seconds before allowing the connection to continue. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Am I being hacked?

2009-04-08 Thread Andrew Ballard
e lies in the fact that if it causes the resulting page to take more than 10 seconds to load, the attacker knows that your page is wide open to SQL injection as well as knowing that he can execute anything he wants. If you're running MySQL, this won't work so you should be unaffected. Jus

Re: [PHP] Am I being hacked?

2009-04-08 Thread Andrew Ballard
On Wed, Apr 8, 2009 at 12:05 PM, Michael A. Peters wrote: > Andrew Ballard wrote: > >>> >> >> You don't need a disassembler; I already said what that string is >> intended to do. If it is allowed to run on Microsoft's SQL Server, the >> hex val

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Andrew Ballard
page really is displayed with the right encoding - in FF, > Ctrl-I. > > /Per > > > -- > Per Jessen, Zürich (16.6°C) A bit off topic, but Ctrl+I no longer brings up the Page Info in Firefox like it used to -- at least on my Windows computers. (It opens the bookmark list in the sidebar.) Does it do differently under Linux? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] difficult select problem

2009-04-09 Thread Andrew Ballard
reaches the first row that begins with $Auth and stops returning rows when it finds a value is greater than the pattern. To evaluate "WHERE LEFT('$Auth', LENGTH('$Auth')) = '$Auth' ", the server has to calculate a substring of last_name for every row in the ta

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-09 Thread Andrew Ballard
On Thu, Apr 9, 2009 at 1:53 PM, Shawn McKenzie wrote: > Per Jessen wrote: >> Andrew Ballard wrote: >> >>> A bit off topic, but Ctrl+I no longer brings up the Page Info in >>> Firefox like it used to -- at least on my Windows computers. (It opens >>> the

Re: [PHP] https and Credit Cards

2009-04-14 Thread Andrew Ballard
et hit on the other end with penalties, increased processing fees, or loss of privileges from his payment processor if they find out that the site is not securing cardholder information. You (and your client) should read up on PCI compiance. http://www.pcicomplianceguide.org/ Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-15 Thread Andrew Ballard
ve to do is clear cookies > and they will see it again but it should work for most people. Well, there is that ... and if the browser does not accept your cookie, it will be trapped in an infinte redirection cycle. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cURL - Error 400

2009-04-17 Thread Andrew Ballard
t;> // Todd >> > > Hi, > > Sorry, that didn't work. The website is still returning error 400 with > CURLOPT_COOKIESESSION and CURLOPT_COOKIE enabled. > > I did some experimentation in Firefox by blocking and deleting all cookies > from the site. When I then visited the site, I was able to reach the logon > page without returning error 400 so I doubt it's cookies that is the > problem. > > I also tried changing the HTTP headers to: > > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Connection: Keep-Alive > Content-Type: text/html; charset=UTF-8 > > Which didn't work either. > > > > > Thanks > Does the site require a valid HTTP_REFERER? I haven't seen CURLOPT_REFERER in any of your examples. (If I missed it somewhere, just ignore the noise.) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Andrew Ballard
ssword in open text as part of the query and letting MySQL calculate the hash. That way the sensitive data has already been hashed and you don't have to worry about whether the communication between PHP and MySQL travels over an unencrypted network connection -- now or in the future. Andrew --

Re: [PHP] Best way to deal with $_SERVER['REQUEST_URI'] on IIS?

2009-04-21 Thread Andrew Ballard
o I haven't > encountered this problem before...but now I have a user who does. I could > potentially have more users who encounter the same thing, so the easier the > instructions and the less tinkering, the better. Is there a php.ini setting, > for instance? What have you found th

<    3   4   5   6   7   8   9   10   11   12   >