RE: [PHP] CLI in background on windows

2008-12-18 Thread Boyd, Todd M.
n a different account on the same machine other than the one logged in)... start /min /b php myscript.php The "/b" option MIGHT prevent pre-Vista machines from showing the user that a task is being executed. If it doesn't, then at least "/min" will keep the window minimiz

RE: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Boyd, Todd M.
its not working. > > My module page has to go live tomorrow morning, I am stuck, please > help. $_GET['var'] is used for GET-method data retrieval. You have specified POST-method data in your form. Try $_POST['myname'] and see if that doesn't grab the value you're looking for. HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Basic Authentication

2009-01-15 Thread Boyd, Todd M.
r your Standard DES and MD5 labels are actually both MD5. Also--there is more than just Standard DES. Once DES was determined to be relatively IN-secure, more algorithms like Triple DES, G-DES, DES-X, LOKI89, and ICE were created. You might be looking at a Triple DES hash. HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-01-15 Thread Boyd, Todd M.
h have to be opened > which drags down framework numbers the most. When I wrote C code, the > CPU would blaze through the actual code, but file opens and reads > consumed far more time than in-memory code execution. http://www.giveupandusetables.com 'nuff said. // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looking for an app...

2009-01-16 Thread Boyd, Todd M.
s without incident (although Base64 is adding quite a few bytes to be transferred beyond just the underlying data). Use at your own risk. Hopefully, this will spark someone else to take the algorithms a bit further. :) I may do so myself if I find time, but I've been very busy with other projects lately [3]. Links: 1. http://www.devx.com/java/Article/17679/0/page/3 2. http://iharder.sourceforge.net/current/java/base64/ 3. http://sites.google.com/site/rexcrawler HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Boyd, Todd M.
ute path for the purpose of this algorithm) if($anchorText[0] != '/' && preg_match('#^\w+://#', $anchorText) == 0) { # add current directory to the beginning of the relative path # (nothing is done to absolute paths or URLs with protocol spec) $anchorText = $curDir . '/' . $anchorText; } echo $anchorText; ?> ...UNTESTED. HTH, // Todd

RE: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Boyd, Todd M.
> -Original Message- > From: Shawn McKenzie [mailto:nos...@mckenzies.net] > Sent: Friday, January 16, 2009 1:08 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Parsing HTML href-Attribute > > Shawn McKenzie wrote: > > Boyd, Todd M. wrote:

RE: [PHP] preg_match_all question

2009-01-16 Thread Boyd, Todd M.
ast }} is included, > can > > anyone point out where I am going wrong? > > > > preg_match_all("/\{\{lang:(.*)\}\}/", $str, $tags); > > You need the ungreedy modifier: > > preg_match_all("/\{\{lang:(.*)\}\}/U", $str, $tags); FWIW, you can tell ju

RE: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Boyd, Todd M.
quot; (the index in the root directory of the server) as opposed to "somefolder/index.php" (the index in a subfolder of the current directory named 'somefolder'). * http://www.google.com/search?q=php ... absolute path (yes, it's a URL, but treat it as absolute) * https://www.example.com/index.php ... absolute path (yes, it's a URL, but to the local server) * /index.php ... absolute path (no protocol given, true absolute path) * index.php ... relative path (relative to current directory on current server) * somefolder/index.php ... relative path (same reason) That is indeed a nifty use of look-ahead, though. That will work for any anchor tag that doesn't reference the server (or any other server) with a protocol spec preceding it. However, if you want to run it through an entire list of anchor tags with any spec (http://, https://, udp://, ftp://, aim://, rss://, etc.)--or lack of spec--and only mess with those that don't have a spec and don't use absolute paths, it needs to get a bit more complex. You've convinced me, however, that it can be done entirely with one regex pattern. Ooh--one more thing I noticed: If the href attribute is not surrounded in quotes (as the OP said it might not be in certain cases), then the remainder of the URL should be discarded... but your regex will also discard the remainder if it HAS been enclosed in quotes. (http://www.google.com/search?q=php is cool"> is totally valid, and will work by converting the " " to "+" [or maybe %20] when it is requested.) I don't really have the time right now to further the regex, but you can bet your shirt I'm going to give it another look when I get home. :) // Todd

RE: [PHP] preg_match_all question

2009-01-16 Thread Boyd, Todd M.
> -Original Message- > From: Boyd, Todd M. [mailto:tmbo...@ccis.edu] > Sent: Friday, January 16, 2009 2:13 PM > To: php-general@lists.php.net > Subject: RE: [PHP] preg_match_all question > > > -Original Message- > > From: Robert Cummings [mailto:

RE: [PHP] Please explain: index.php/index/index

2009-01-21 Thread Boyd, Todd M.
ewrite rules. If you're going to use any sort of MVC-based URLs in IIS, this library is a must-have. 1. http://www.codeplex.com/IIRF 2. http://www.regular-expressions.info HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Java / PHP Bridge

2009-01-23 Thread Boyd, Todd M.
totype built in jQuery, call it using a PHP SOAP interface, reference it directly in other ASP.NET projects, and so on and so forth. You'll get a wealth of benefits aside from making your life easier with bridging the two languages. :) HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Java / PHP Bridge

2009-01-23 Thread Boyd, Todd M.
n get what you want. > > > > Note that this is all hearsay on my part. > > > > ymmv > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > Is that hear

RE: [PHP] Java / PHP Bridge

2009-01-23 Thread Boyd, Todd M.
> -Original Message- > From: Boyd, Todd M. > Sent: Friday, January 23, 2009 1:44 PM > To: 'Bastien Koert' > Cc: php-general@lists.php.net > Subject: RE: [PHP] Java / PHP Bridge > > > -Original Message- > > From: Bastien Koert [mailto:phps

RE: [PHP] profiler web server

2009-01-26 Thread Boyd, Todd M.
like he wants to know which process he should watch to determine the performance of Apache v2.2. I believe it's "httpd". HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-26 Thread Boyd, Todd M.
g them encoded, and then decoding them when that language is requested. There will be overhead involved in the codec operations, obviously, but you could help to curb that with client- or server-side caching. Just a thought. It might not be feasible for your situation at all... // Todd -- P

RE: [PHP] Coding for email response forms

2009-01-27 Thread Boyd, Todd M.
e > >> >> to method="post" in the form. > >> >> 3. If you want to keep the .html extension for the page, then > you'll > >> >> probably need to send the post to another script with a .php > >> >> extension. > >>

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

2009-01-27 Thread Boyd, Todd M.
27;t write a script that ran through my entire database and opened > every column in every table to accept. I just thought I'd throw this out there... A lot of people who post questions on this list are programming their algorithms and structuring their applications in a certain way because that's what the client wants, or that's what their boss told them to do. Yes, accepting NULL values in a database is frowned upon (unless the table is a transaction table)... but I doubt his boss or his client cares in the least. My 2 cents. ;) // Todd

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

2009-01-27 Thread Boyd, Todd M.
> -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... > > > >> The other

RE: [PHP] validating directory and file name with preg_match

2009-01-28 Thread Boyd, Todd M.
The (?=entry|edit) group is the look-ahead. If folder\\ isn't followed by entry or edit, the look-ahead fails. The (?:php|pdf) group uses the ?: syntax to tell the regex engine not to save this capture group. You could just as easily remove the ?: and ignore the extra capture in your code (as y

RE: [PHP] Re: validating directory and file name with preg_match

2009-01-28 Thread Boyd, Todd M.
nt only the two file types specified to > trigger a return. They are the only two valid php types on this > server. > > Your suggestion worked like a charm! Thank you very much! Upon reading this, I realize that I over-thought my suggestion. /^c:\\inetpub\\wwwroot\\folder\\(?:entry|edit)\\(\w+\.(?:php|pdf))$/i That's my final answer. :) // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] New to PHP question

2009-01-28 Thread Boyd, Todd M.
just want stuff to be in a grid and the structure has no bearing on the content, then it's time to weigh in. Finally, just because IE8 is (supposed to be) fully CSS standards compliant doesn't mean anything for IE7, IE6, IE5, etc. // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] New to PHP question

2009-01-28 Thread Boyd, Todd M.
> -Original Message- > From: Stephen [mailto:stephe...@rogers.com] > Sent: Wednesday, January 28, 2009 4:40 PM > Cc: php-general@lists.php.net > Subject: Re: [PHP] New to PHP question > > Boyd, Todd M. wrote: > > > > Finally, just because IE8 is (su

RE: [PHP] Switch statement Question

2009-01-29 Thread Boyd, Todd M.
but the switch block can be used like so: switch(true) { case (x < y): dosomething(); break; case (y == 0): dosomethingelse(); break; default: somethingelseentirely(); break; }

RE: [PHP] Re: Hidden costs of PHP arrays?

2009-01-30 Thread Boyd, Todd M.
end a couple extra cycles to relieve myself of an extra 20 lines of code, I think I'll sleep just fine. :) Now, if I was programming embedded systems or time-critical transaction processing software, that might be another story. (Then again, if that were the case, I might not be playing with an interpr

RE: [PHP] CURL vs stream_socket_client

2009-01-30 Thread Boyd, Todd M.
#x27;s not a server error message? If it's the results you were looking for (but in XHTML format instead of XML), I'll bet it's a User Agent thing. Just a thought... // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Garbage Collection

2009-02-05 Thread Boyd, Todd M.
leted). I suppose you could also do it yourself with PHP code when a failed link is turned up, but why bother separating DB logic from the DB itself? :) HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CLI not obeying php.ini

2009-02-05 Thread Boyd, Todd M.
uration File: /etc/php.ini > > Thoughts on what's happening would be awesome! Thanks in advance. In addition to what's already been said, you could try forcing a php.ini file in the current directory by trying the -c command line option. I've done it to try messi

RE: [PHP] function_exists question

2009-02-05 Thread Boyd, Todd M.
to call it > to check > >> parameter counts on a php3 server :( > >> > >> > > I am sure you have some good reasons for keeping php3 right? > > > > Why don't you consider updating to at least php4 ?? > > > > PHPv3 is not even maintained

RE: [PHP] How can I use a function's default arguments but change one of the end ones in the list?

2009-02-06 Thread Boyd, Todd M.
rameters are > needed to maintain backwards compatibility yet get new functionality > too. Just tell 'em that .NET already has it; that'll light a fire under them! :D C# can do function calls like: FunctionName(VariableName:=Value); I wholeheartedly prefer PHP to .NET fo

RE: [PHP] Using DLL with PHP

2009-02-09 Thread Boyd, Todd M.
ou 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 registered with Windows, not the actual file > name. They are usually something like 'Scripting.FileSystemObject', > 'word.application', 'ADODB.Recordset', etc. I believe you can also call it by its Public Key Token (a GUID), though that may be a new convention introduced with the .NET framework that is not backwards-compatible with "plain" COM objects... // Todd

RE: [PHP] php validate user password

2009-02-09 Thread Boyd, Todd M.
with it is a wonderful benefit to any application's security procedures. The salt itself could be considered security by obscurity, since it is being passed through the same algorithm as what you're hashing to begin with. This might be a stretch, though. :) I say, "Huzzah, tedd. Good idea." Hash + Obscurity > Hash + Nothing // Todd -- 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 Boyd, Todd M.
ullPathFrom As String, ByVal FullPathTo As > String) As > > Integer > > > > So, I was hoping to be able to call that DLL in PHP and pass it the > two > > values I specify in my application. > > > > In order to be used by COM is the DLL required to be placed in th

RE: [PHP] Online Part Time Job Available

2009-02-16 Thread Boyd, Todd M.
nd on this list... that's why so many of the discussions that would probably be passed over entirely on other lists are discussed in great detail and from a wide variety of perspectives. :p (And yes, I realize you were [probably] joking.) // Todd -- 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 Boyd, Todd M.
www.jampmark.com > >>>> > >>> 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. > > So, what is the level that actually polarizes the sectors on the hard > drive? > > Anything more abstract then that is then an API right? It's all just a neat wrapper for exchanging electron positions. // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] XML -> XSLT transformation using XSLTProcessor class

2009-02-20 Thread Boyd, Todd M.
#x27;ve worked with XPath query strings, but I believe ".[name()]" will get you the current element's tag name. Keep in mind: I'm not sure if this works with namespaced tags (like ), but I have not tested this to be sure. HTH, // Todd

RE: [PHP] Re: catch the error

2009-02-26 Thread Boyd, Todd M.
gt; > >>>>> Phil Jourdan --- p...@ptahhotep.com > >>>>> http://www.ptahhotep.com > >>>>> http://www.chiccantine.com > >>>>> > >>>>> > >>>>> -- > >>>>> MySQL General Mail

RE: [PHP] Re: catch the error

2009-02-26 Thread Boyd, Todd M.
> -Original Message- > From: Chris [mailto:dmag...@gmail.com] > Sent: Thursday, February 26, 2009 4:16 PM > To: Boyd, Todd M. > Cc: PJ; PHP General list > Subject: Re: [PHP] Re: catch the error > > > > In examples sent to you, people foolishly replaced you

RE: [PHP] Re: catch the error

2009-02-27 Thread Boyd, Todd M.
> -Original Message- > From: Chris [mailto:dmag...@gmail.com] > Sent: Thursday, February 26, 2009 6:38 PM > To: Boyd, Todd M. > Cc: PHP General list > Subject: Re: [PHP] Re: catch the error > > Boyd, Todd M. wrote: > >> -Original Message- > >

RE: [PHP] Re: How do I remove an array element from within a recursive function?

2009-02-27 Thread Boyd, Todd M.
> -Original Message- > From: Chris [mailto:dmag...@gmail.com] > Sent: Thursday, February 26, 2009 8:48 PM > To: Daevid Vincent > Cc: php-general@lists.php.net; Shawn McKenzie > Subject: Re: [PHP] Re: How do I remove an array element from within a > recursive function? > > Daevid Vincent wr

RE: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Boyd, Todd M.
e already using an MVC design pattern/framework or a template system. If you are just worried about displaying garbage and not about performing logic while the page is being output to the browser, then I'd say use an output buffer. If something bad happens, just clear the buffer out rather than send it to the user, and forward to your error page instead. http://www.php.net/ob_start HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Development methods (was: "use strict" or similar in PHP?)

2009-02-27 Thread Boyd, Todd M.
> -Original Message- > From: Bob McConnell [mailto:r...@cbord.com] > Sent: Friday, February 27, 2009 9:56 AM > To: PHP General list > Subject: [PHP] Development methods (was: "use strict" or similar in > PHP?) > > From: Boyd, Todd M. > > Well, t

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

2009-02-27 Thread Boyd, Todd M.
compared to the commercial versions of > the products) I've not heard of "Web Edition", but I have heard of > both SQL Server and Oracle Express. I haven't used them, but I guess > the idea I have in mind is of products that are supposed to be just > good enough to use in either embedded apps or else to entice > developers into wanting the full version for server apps. I use SQLExpress (SQL Server Express) all the time at work for prototyping and such... although, I have to say--if my company hadn't installed it on my machine to begin with, and they weren't running SQL Server 2005 on the production servers, I would rather just use a private MySQL installation for prototyping and then push to a MySQL production server. Alas... // Todd

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

2009-03-02 Thread Boyd, Todd M.
> -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 > Subject: Re: [PHP] Re: How important is your Express or Web Edition > data

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

2009-03-02 Thread Boyd, Todd M.
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Saturday, February 28, 2009 4:14 AM > To: Andrew Ballard > Cc: Boyd, Todd M.; PHP General list > Subject: Re: [PHP] Re: How important is your Express or Web > Editiondatabase? Pl

RE: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread Boyd, Todd M.
9 at 12:07 PM, German Geek > wrote: > >> >>> > >> >>>  Also check this one out: google uses it in gmail: > >> >> > >> >>  > > >> >> > >> >> http://code.google.com/p/jquery-multifile- > plugin/downloads/detail?name=multiple-file-upload.zip&can=2&q= > >> > > >> > Understood, but I don't think either of these do what the OP > wanted, > >> > whcih > >> > was a real time file upload progress bar. // Todd

RE: [PHP] upload progress (was www.soongy.com)

2009-03-02 Thread Boyd, Todd M.
> -Original Message- > From: mike [mailto:mike...@gmail.com] > Sent: Monday, March 02, 2009 12:59 PM > To: Boyd, Todd M. > Cc: PHP General list > Subject: Re: [PHP] upload progress (was www.soongy.com) > > On Mon, Mar 2, 2009 at 7:45 AM, Boyd, Todd M. wrote: >

RE: [PHP] retrieve multiple select

2009-03-02 Thread Boyd, Todd M.
If set, this boolean attribute allows multiple selections. If not > > set, the SELECT element only permits single selections. > > > > However, all the options should be closed. > > Instead of: History > > Use: History > > Also, you should move the Choose Catego

[PHP] Javascript question

2009-03-02 Thread Boyd, Todd M.
y--just curious as to whether or not anyone knew if this will invoke browser validation events or not. Comments and questions are more than welcome, though. :) Cheers! // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Javascript question

2009-03-02 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:rob...@interjinn.com] > Sent: Monday, March 02, 2009 4:18 PM > To: Boyd, Todd M. > Cc: PHP General list > Subject: Re: [PHP] Javascript question > > On Mon, 2009-03-02 at 16:11 -0600, Boyd, Todd M. wrote: > &

RE: [PHP] Javascript question

2009-03-02 Thread Boyd, Todd M.
> -Original Message- > From: Michael A. Peters [mailto:mpet...@mac.com] > Sent: Monday, March 02, 2009 4:42 PM > To: Boyd, Todd M. > Cc: PHP General list > Subject: Re: [PHP] Javascript question > > Boyd, Todd M. wrote: > > Before some of you newbies feel

RE: [PHP] 0.T Java IDE

2009-03-03 Thread Boyd, Todd M.
isual studio gui > editor) Having used Eclipse, Netbeans, JGrasp, Visual J#/J++, and Processing.org's notepad, I've got to say: Developing UIs is easiest in Netbeans. Sorry. :( // Todd

RE: [PHP] whoami explanation

2009-03-03 Thread Boyd, Todd M.
ey although I have occasionally needed the ~ key for > Windows > > stuff. > > > > -- > > > > Phil Jourdan --- p...@ptahhotep.com > >http://www.ptahhotep.com > >http://www.chiccantine.com > > > > > You tinker on Unix and you only e

RE: [PHP] whoami explanation

2009-03-04 Thread Boyd, Todd M.
> -Original Message- > From: PJ [mailto:af.gour...@videotron.ca] > Sent: Tuesday, March 03, 2009 5:56 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] whoami explanation > > Boyd, Todd M. wrote: > >> -Original Messag

RE: [PHP] whoami explanation

2009-03-04 Thread Boyd, Todd M.
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of > Daniel Brown > Sent: Wednesday, March 04, 2009 10:16 AM > To: Robert Cummings > Cc: PJ; Boyd, Todd M.; php-general@lists.php.net > Subject: Re: [PHP] whoami explanation > >

RE: [PHP] Tracking down the elusive "expecting T_PAAMAYIM_NEKUDOTAYIM"

2008-05-14 Thread Boyd, Todd M.
if (array_key_exists($key,$this->titles)) --- I hope that helps. Having another set of eyes take a look at it usually does. ;) Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] question about validation and sql injection

2008-05-16 Thread Boyd, Todd M.
_stmt_init($dbc); if(mysqli_stmt_prepare($stmt, $query)) { mysqli_stmt_bind_param($stmt, 's', $username); // the 's' means "string value" mysqli_stmt_execute($stmt); } [/code] Hope this helps! Here's a tutorial on prepared statements using PHP/MySQL: htt

RE: [PHP] JavaScript and PHP

2008-05-16 Thread Boyd, Todd M.
riting: document.myForm.myInput.value = "Hello!"; BUT... for CSS, it's also quite easy to reference something by name: [name="myElement"] { color: blue; font-size: 10pt; } Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php mysql live feed

2008-05-21 Thread Boyd, Todd M.
you need to (via "clearInterval(t);"). I suppose "innerText" can be used instead of "innerHTML", as well. I would recommend using innerHTML only if you will be populating the div with HTML code, however. Hope this helps, Todd Boyd Web Programmer > -Original M

RE: [PHP] looking a regular expresion

2008-05-28 Thread Boyd, Todd M.
s the word "SUN" with the word "FRIKI", but ``$st = preg_replace("(^SUN)", "FRIKI", $st);`` does the same thing (when it should be replacing everything BUT the word "SUN"). Annoying behavior. Is this particular to PHP's regular expression

RE: [PHP] looking a regular expresion

2008-05-28 Thread Boyd, Todd M.
t it works! Man, that's a load off my mind. It's not as simple as it would have seemed at first... but now that I have a look at the finished regex string, it makes sense. "If there's not a word boundary followed by either SIR or SUN followed by another word boundary, start over. Now, if there's a word boundary followed by 1 or more word characters followed by another word boundary, replace that with FRIKI." Hope this helps!! Todd Boyd Web Programmer

RE: [PHP] saving outside website content via php...

2008-06-02 Thread Boyd, Todd M.
;t know of any off-hand. Seriously, though: think like a programmer! You can get the text, and the links to the elements you want to save are in the text. Parse it! Parse it for all you're worth! Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Avoid object twice

2008-06-04 Thread Boyd, Todd M.
not making any sense... if you only want the Mail() function to run once, then ONLY CALL ->BUFF() ONE TIME. It's that simple. You are mailing twice because you call buff() in two separate places--and buff() in turn calls Mail(). I don't understand your problem. $objref = new My(&quo

RE: [PHP] Avoid object twice

2008-06-04 Thread Boyd, Todd M.
> I knew it . > > But "Hello" and "Good" is different file. > I would like to get "Good" from b.php. > > Please tell me goo advice. > Yui > > 2008/6/4 Boyd, Todd M. <[EMAIL PROTECTED]>: > >> Thank you for you

RE: [PHP] Avoid object twice

2008-06-04 Thread Boyd, Todd M.
CUTED. You can then EXECUTE the function at a time of your choosing. Not everything should run when it is loaded--you built a class ("My")... this is the same idea. Rather than a class, this is a function. Think about it--member functions of classes don't execute by themselves (save

RE: [PHP] Avoid object twice

2008-06-04 Thread Boyd, Todd M.
> -Original Message- > From: Yui Hiroaki [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2008 12:28 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Avoid object twice > > Thanks you for php developer. > > If php can not shar

RE: Re: [PHP] Are there free http mysql tunneling writed in php ?

2008-06-05 Thread Boyd, Todd M.
;m sure you get the idea. From a security standpoint, this is wde open for SQL injection. I would recommend against using something like this for performing SQL queries, as malicious SQL would be easy as pie to execute. Of course, you can place the script behind layers of security... but ad-hoc queries are a dangerous beast. Todd Boyd Web Programmer

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Boyd, Todd M.
ut()" method(s). I recommend setInterval(), as it repeats itself at the specified time interval. The function passed to setTimeout() would need to set a new timeout every time it was executed. Hope this helps. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Are there free http mysql tunneling writed in php ?

2008-06-05 Thread Boyd, Todd M.
> -Original Message- > From: Wolf [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 05, 2008 10:33 AM > To: Boyd, Todd M. > Cc: Per Jessen; php-general@lists.php.net > Subject: RE: Re: [PHP] Are there free http mysql tunneling writed in > php ? > > >

RE: Re: [PHP] Are there free http mysql tunneling writed in php ?

2008-06-05 Thread Boyd, Todd M.
> -Original Message- > From: Wolf [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 05, 2008 10:49 AM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: Re: [PHP] Are there free http mysql tunneling writed in > php ? > > > > I seem to have

RE: Re: [PHP] Are there free http mysql tunneling writed in php ?

2008-06-05 Thread Boyd, Todd M.
> -Original Message- > From: Wolf [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 05, 2008 11:51 AM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: Re: [PHP] Are there free http mysql tunneling writed in > php ? > ---8<--- snip > I

RE: [PHP] Method chaining off constructors

2008-06-06 Thread Boyd, Todd M.
; > > Why? I thought constructors returned the object? It's been a while since I've played with objects in PHP, but couldn't you just add the line: return $this; ...to the end of your __construct() function? Sorry if this is obtuse of me to say, I just thought maybe the

RE: [PHP] About HTML & CSS

2008-06-11 Thread Boyd, Todd M.
ereal Web > Design. > > Thanks STFW: http://www.w3.org/QA/2002/04/valid-dtd-list.html http://www.w3schools.com/html http://www.w3schools.com/css http://www.w3schools.com/js As far as mailing lists, asking on a PHP mailing list is probably not your best bet. Todd Boyd Web Program

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-12 Thread Boyd, Todd M.
talled, such as libapache2-mod-php5 (in Debian, I believe) in order to parse PHP files and tags properly. There are .deb (Debian pacakage), .rpm (RedHat package), and plain ol' .tgz (GZipped Tar-ball) distributions of the PHP5 Apache2 module. Without this, there will be no bridge between Apach

RE: [PHP] Command-line PHP memory limit

2008-06-12 Thread Boyd, Todd M.
arate php.inis for apache and cli. > > > > /etc/php5/cli/php.ini > > /etc/php5/apache2/php.ini > > > > > > /Per Jessen, Zürich > > > > K/Ubuntu, I would assume Debian as well. Correct. I am running Debian etch, and I have two separate php.ini files (automatically configured as such)--one for Apache, one for command line. Todd Boyd Web Programmer

RE: [PHP] Re: HTML 5

2008-06-13 Thread Boyd, Todd M.
ou said you didn't > care about standards[1] as far as redirects were concerned. :P > > [1] http://www.mail-archive.com/php- > [EMAIL PROTECTED]/msg228512.html Someone who does not adhere to them can nonetheless recommend them to someone else who is curious. No need to be cranky. ;) Todd Boyd Web Programmer

RE: [PHP] Forum coded in PHP with mail and news gateway

2008-06-13 Thread Boyd, Todd M.
phpBB due to the immediately-obvious features and missing features) that phpBB--and several other forum software packages--are modifiable with plug-ins. There may very well be a phpBB->Usenet and/or phpBB->Listserv Archive plugin to suit your needs. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHPMailer not working but Squirell mail works

2008-06-13 Thread Boyd, Todd M.
hy?" will not get you a helpful response. (At least, not very quickly.) Until my copy of Outlook's MindReader plug-in starts functioning properly, more information will be needed. :) Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Runs But Does NOT Connect to MSSQL Server

2008-06-13 Thread Boyd, Todd M.
mber can, in fact, be passed in the "hostname" parameter. For instance: $dbhandle = mssql_connect($myServer . "," . $myPort, $myUser, $myPass) or die("Uh-oh!"); The hostname and port are separated by a comma, as mentioned in the PHP reference page I have linked to. Give it a shot, and see if it helps at all. If not, sorry... but it was worth a try, eh? ;) Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Kindla 0T, but here goes...

2008-06-13 Thread Boyd, Todd M.
Check it out: > > http://www.playlist.com/ I agree with Daniel. Your most likely solution is to use a Flash player (or similar implementation) and populate a portion of your page with the object via AJAX (which you are already apparently comfortable with). Todd Boyd Web Progra

RE: [PHP] Another way to send variables

2008-06-13 Thread Boyd, Todd M.
n use POST instead of GET. If you're trying to hide it from laymen, this is fine. If you're trying to hide it altogether, it's still visible for people who know where to look. HTH, Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Boyd, Todd M.
US > armed forces, this OT subject itself is pretty inflammable. THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for people to start debating religion. Todd Boyd Web Programmer

RE: [PHP] Re: [MOREINFO] How to prevent DoS on PHP script?

2008-06-23 Thread Boyd, Todd M.
on a hash and the current time or something) and a server-side program to receive it (that ISN'T a webserver)? Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Another canvas example

2008-06-23 Thread Boyd, Todd M.
he pie chart in the page's Z-order. Just a thought. Looks great, though! Good work! Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Boyd, Todd M.
> -Original Message- > From: Dotan Cohen [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 10:59 AM > To: php-general@lists.php.net > Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of > variable > > 2008/6/23 Boyd, Todd M. <[EMAIL

RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Boyd, Todd M.
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 11:23 AM > To: Boyd, Todd M. > Cc: Per Jessen; php-general@lists.php.net > Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of > variable > > On

RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Boyd, Todd M.
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 11:42 AM > To: Boyd, Todd M. > Cc: Dotan Cohen; php-general@lists.php.net > Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of > variable > >

RE: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Boyd, Todd M.
lifted that from Wikipedia. But yeah, you're right. It was also a fantastic video game in the style of Warcraft/Command & Conquer, but before its time. Todd Boyd Web Programmer

RE: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable

2008-06-23 Thread Boyd, Todd M.
> -Original Message- > From: Dotan Cohen [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 1:49 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: Re: Re: Military Service WAS [PHP] > Capitalization of variable ---8<--- snip >

RE: [PHP] Uploading files without saving them

2008-06-23 Thread Boyd, Todd M.
d temporary storage sandbox, it will eventually be wiped. When files are uploaded via PHP, they must explicitly be moved into the active file system. HTH, Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Another canvas example

2008-06-24 Thread Boyd, Todd M.
to view the code. You are not alone, my friend! I spend a few hours every so often playing my brains out on Dr. Mario, Ducktales, and Dragon Warrior (and no, the alliteration is not on purpose). :) Todd Boyd Web Programmer

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
it would produce if you were to visit the script with a web browser. It appears you are trying to grab a PHP file from a remote server and execute it as code, which won't work--at least not under normal circumstances. HTH, Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:39 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > Hi, > > Thanks for the clarifcations. > I have

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
roxy. I'm not sure if he's trying to simply determine if a change has been made or if he is trying to notify people of the particular item that has been posted. Clarifications, Ryan? Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 1:48 PM > To: Wei, Alice J. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > > -Original Message- > > From: Wei, Alice J. [

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ryan S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 2:18 PM > To: Boyd, Todd M.; tedd > Cc: php-general@lists.php.net > Subject: Re: [PHP] Monitor a WP website > > > > > So, you want something to tell you if some

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
sites as well... however > marginal they might be. Sounds like that is going to involve a lot of messy tag parsing with cURL. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ryan S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 2:34 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Monitor a WP website > > > If it's RSS, I think it's going to be XML regardle

RE: [PHP] Monitor a WP website

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Ryan S [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 2:58 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Monitor a WP website > > > Ryan, > > That feed is indeed XML. > >

RE: [PHP] Include Problem

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 3:11 PM > To: Boyd, Todd M.; php-general@lists.php.net > Subject: RE: [PHP] Include Problem > > ____ > From: Boyd, Todd M.

<    1   2   3   4   5   6   7   8   >