[PHP] Re: More include issues

2007-06-06 Thread Jared Farrish
things. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

Re: [PHP] Re: More include issues

2007-06-06 Thread Jared Farrish
On 6/6/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-06 at 17:21 -0500, Jared Farrish wrote: I feel ya brotha! I think Stut might be having a bad day... Bad day?? Did you read the same posts I read? Cheers, Rob. Sure I did. Let's not take this too seriously, ok? -- Jared

Re: [PHP] Re: More include issues

2007-06-06 Thread Jared Farrish
On 6/6/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-06 at 20:26 -0500, Jared Farrish wrote: On 6/6/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-06 at 17:21 -0500, Jared Farrish wrote: I feel ya brotha! I think Stut might be having a bad day... Bad day

[PHP] Re: local v remote

2007-05-31 Thread Jared Farrish
it: - http://us2.php.net/manual/en/features.persistent-connections.php - http://us2.php.net/manual/en/function.mysql-connect.php - http://us2.php.net/manual/en/function.mysql-query.php - http://us2.php.net/manual/en/function.is-resource.php -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: Re: Re: Re: preg_match() returns false but no documentation why

2007-05-31 Thread Jared Farrish
to a Brit or someone who understands Commonwealth English would know (I was aware of what it meant in CE, I just woudn't have imagined to apply it here, since it looks to be descriptive). Kind've like an elephant trainer calling her elephant's trunk a boot. -- Jared Farrish Intermediate Web Developer

[PHP] RE: Return or not to return, that is the question

2007-05-30 Thread Jared Farrish
== '' == ??). This makes a whole lot more sense in C++ or something other strong-typed language. Thus, code to what you need, but have high standards (by knowing what you need)! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see

[PHP] Re: scheduling a script to check a directory for files

2007-05-30 Thread Jared Farrish
the call, though. http://en.wikipedia.org/wiki/Lynx_(web_browser) -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: RE: Return or not to return, that is the question

2007-05-30 Thread Jared Farrish
personal preference, which is usually influenced by someone else's overarching dogmatic philosophy being impressed on them. Good thing there aren't folks like that in programming! Right?!? -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you

[PHP] Re: RE: Return or not to return, that is the question

2007-05-30 Thread Jared Farrish
. Depends on coding style, preference, and the situational need. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
-php). Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

Re: [PHP] Re: a question on session ID and security

2007-05-30 Thread Jared Farrish
On 5/30/07, Richard Lynch [EMAIL PROTECTED] wrote: If they can get the first cookie, they can get the second just as easily. I thought this said just as weasily at first, and I thought, Ain't that the truth... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only

Re: [PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
On 5/30/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, May 30, 2007 12:33 pm, Jared Farrish wrote: preg_match(^ldap(s)?://[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$,$this-server) You are missing the start/end delimiters is your first problem... Which ones? I've got the starter ^ and the closer

Re: [PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
not printing a zero, shouldn't that mean it's returning false? preg_match(/^ldap(s)?:\/\/([a-zA-Z0-9-])+\.[a-zA-Z.]{2,5}$/,$this-server) Now when I add the slashes, I get zero, even though I give it a real value that should return 1. *sigh* -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: find (matching) person in other table

2007-05-30 Thread Jared Farrish
on a way to LIMIT the matches effectively. If that doesn't work, hey, this is a PHP list... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: find (matching) person in other table

2007-05-30 Thread Jared Farrish
On 5/30/07, Jared Farrish [EMAIL PROTECTED] wrote: $lastname = strpos('Rogers',0,2); $firstname = strpos('Timothy',0,2); $select = SELECT `uid`,`LastName`,`FirstName` FROM `users` WHERE LastName='$lastname%' AND FirstName='$firstname%'; Strike

Re: [PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
interesting. I'll have to check it out. Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

Re: [PHP] Re: find (matching) person in other table

2007-05-30 Thread Jared Farrish
the email address existed (although it doesn't mean it isn't someone in the database that isn't already in there). -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
allow them? I hadn't gotten far enough to strtolower(), but that's a good point, I hadn't actually considered it yet. Just my thoughts Hey, I appreciate it! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem

Re: [PHP] Re: find (matching) person in other table

2007-05-30 Thread Jared Farrish
the first a couple hundred or thousand times, I would bet your page would drag to a halt while it loads... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Re: preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
if my regex is going to be that great in practice. This would be in addition to the program Richard alluded to in the code checker. Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Re: Re: preg_match() returns false but no documentation why

2007-05-30 Thread Jared Farrish
, ie, practical usage. Does it mean match anything that, say, *starts* with a pattern but ends with whatever (.)??? Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$ -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
out there would have done it, including PHP? I certainly don't think you're implying I thought I had given some new, better way of doing sessions that nobody had given before? Curious statement. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have

Fwd: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
with security, there's some known benefit to discussing it! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$ -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
That's not what I'm saying. My basic question is why send the secondary hash key to the client when it doesn't need it? Use the authentication key to identify the users data, then get the secondary hash key from that data. The browser never needs to see the hash, and from a purist security point

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
On 5/29/07, Jared Farrish [EMAIL PROTECTED] wrote: I do think the stated best practice of SESSIONS, at this point, probably does need to be described to be further useful as a topic of discussion. I've been a little unclear in some things, so I get the feeling we've got the same point of view

Re: [PHP] Re: a question on session ID and security

2007-05-29 Thread Jared Farrish
when that history occurred... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: PHP5 oop question...

2007-05-28 Thread Jared Farrish
to an instantiated object should work), and/or make it work entirely on it's own without $this. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Tracking exit links with php?

2007-05-28 Thread Jared Farrish
). What you want is access to their redirect page log. You also might look into Urchin and the ISP's that support it. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Upload a ppt file

2007-05-28 Thread Jared Farrish
Does any have any references or an example to show me? Well, I think we need a description of the error or the invalid response you're having. It could be a file-size issue (your php.ini configuration won't allow file sizes 8mb's, for instance). Have you googled it? -- Jared Farrish

[PHP] Re: Unknown number of check boxes?

2007-05-28 Thread Jared Farrish
(consumeFormChecks($_POST['form']['checks'])); }else { echo('h4Please select some random checkboxes above' . ' and submit the form/h4'); } ? /pre /code -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Unknown number of check boxes?

2007-05-28 Thread Jared Farrish
On 5/28/07, Jared Farrish [EMAIL PROTECTED] wrote: $tr = $i % 5 === 0 ? Array('','') : Array('tr','/tr'); Ignore this line, it was from an earlier iteration of that function. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have

[PHP] Re: Web Application Design Literature

2007-05-28 Thread Jared Farrish
, keep in mind PHP is quite a bit different from other languages (such as C#) in the way it implements some details of objects, and that PHP4 and PHP5 are quite significantly different versions, vis-a-vis objects and classes. Good luck! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham

[PHP] Re: a question on session ID and security

2007-05-28 Thread Jared Farrish
is destroyed and the temp file where it is stored is deleted from the harddrive. Do not store sensitive information or use a SESSION id to authenticate a user. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem

[PHP] Re: $_GET strings seperation

2007-05-27 Thread Jared Farrish
, eg, 'item','item2' -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: PHP debugger

2007-05-26 Thread Jared Farrish
/lem.json.js -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: installing error

2007-05-26 Thread Jared Farrish
be the best for me WAMPP makes apache and php installation stupid easy (MySQL too, but you don't seem to need it). Maybe, you might install WAMPP, uninstall MySQL, and install PostgreSQL... Never done it, but with some fiddling, it should work. -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: $_GET strings seperation

2007-05-26 Thread Jared Farrish
to do what is done above (such as replacing the last foreach loop with an implode() call). There are some strictly unnecessary things done above, in other words, but I left them in to show what really is happening (and needs to be done). -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: Too many records to display in one web page

2007-05-26 Thread Jared Farrish
this ? This is called pagination, and is well-discussed and documented on the web: http://www.google.com/search?q=php+pagination -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Re: help with multi dimensional arrays

2007-05-25 Thread Jared Farrish
with a more appropriate title. Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Jared Farrish
multiple people at one time :) But I'm still learning about that. I sure hope you're testing on test data, and not live data... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

Re: [PHP] Re: Check if Record was Entered Today.

2007-05-25 Thread Jared Farrish
. This way, the data is rebuilt each go around, but the overhead is pushed to another machine, similar to a SOAP service (which is another...). Pass a variable id to the CLI script... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend

[PHP] Re: Using PHP to retrieve and display file from MySQL database

2007-05-25 Thread Jared Farrish
a href=download.php?id=?=$id;??=$name;?/a br Is there a valid $id being passed through a query ($_GET) variable, like so?: http://www.filecircus.com/somewhere/outthere/gimme.php?id=badphoto103 What happens when you click on that? -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
speaks Italian. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
version of a resource name alias. If, after determing that Apache is running with the right permissions for the owned processes to connect to and use a network shared resource, then it's probably an Apache UID conflict (is PHP in safe mode?). -- Jared Farrish Intermediate Web Developer Denton, Tx

Re: [PHP] Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
on the list, is it accurate to characterize PHP as relying on Apache for file manipulation? Is it accurately described as: Process Request-PHP-Apache-[File System Poof!]-Apache-PHP-Process ??? Just making sure I have this characterization correct. -- Jared Farrish Intermediate Web Developer Denton, Tx

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-24 Thread Jared Farrish
implement your sanitization once and use it for all database interactions. Google: http://www.google.com/search?q=php+sanitize+sql+statement PHP.net: http://www.php.net/manual/en/security.database.sql-injection.php -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-24 Thread Jared Farrish
, maybe you manage that... On 5/24/07, Jared Farrish [EMAIL PROTECTED] wrote: I'm not sure exactly what kind of sanitization you think you're doing, but if all you do is check to see if it's empty (empty() implements isset(), empty() checks to see if it's set, then if it evaluates to an empty

[PHP] Re: php hosting-mediatemple/dreamhost

2007-05-24 Thread Jared Farrish
Inman is a modestly-famous web designer/developer who uses MediaTemple for his website: http://www.shauninman.com/ -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Check if Record was Entered Today.

2007-05-24 Thread Jared Farrish
://news.php.net/php.general/255542 -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Developer / Client Documents

2007-05-24 Thread Jared Farrish
/ This will give you most of what you're looking for. Think XAMPP for a localhost install to run tests, and MySQL for a database backend (part of XAMPP): http://www.apachefriends.org/en/xampp.html It will take time. Good luck! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow

[PHP] Re: Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-24 Thread Jared Farrish
processes (such as Apache using an executable)... The whole apache GUID mess seems like cryptic middle ages eye gouging... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Include???

2007-05-24 Thread Jared Farrish
.: Could you use descriptive subjects; include doesn't really say much... -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Scalable Site Architecture

2007-05-24 Thread Jared Farrish
superficially can help later. What I suspect you need is a book on LAMP (www.oreilly.com). -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Uploading Files into MySQL

2007-05-24 Thread Jared Farrish
script upload file mysql database You can thank me later. *snap* -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: help with multi dimensional arrays

2007-05-24 Thread Jared Farrish
got a chuckle. :D -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
()) { echo(pMay we suggest $suggest?/p); } else { echo(pState not found./p); } ? /code -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Form Validation Issues

2007-05-23 Thread Jared Farrish
Also, Indiana and Connecticut were misspelled. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: problems in WHERE statment

2007-05-23 Thread Jared Farrish
; /code $e is equivalent to $d, where c would print literally $a$b, since you told the parser using the single quotes to leave the string alone. Likewise, var $f = $a.-$b$c-.'$e'; would print test-test2$a$b-$e; -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool

[PHP] RE: Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jared Farrish
probably a permissions thing, though. FWIW -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jared Farrish
Oh yeah, and tijnema has a good point: \\compname-x\\offsite\\db\\test.dbf Btw, what does top post mean? On 5/23/07, Jared Farrish [EMAIL PROTECTED] wrote: Other than permissions, you might be referencing the folder by the local network mapping drive initial, instead of the actual path: X

Re: [PHP] RE: Cannot access file on Network Drive (Windows 2003)

2007-05-23 Thread Jared Farrish
it is a permissions issue. I have Full Control given to the system all this is on. -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$

[PHP] Re: [PEAR] PHP5 Static functions called through __call() that don't exist... yet

2007-05-22 Thread Jared Farrish
style=color: #0a0;true/b': 'b style=color: #a00;false/b'). /div\n ); } echo(/pre\n); ? /code Thanks! On 5/22/07, Jared Farrish [EMAIL PROTECTED] wrote: Thank everyone for their suggestion. I would like to see a __static() version of __call

[PHP] PHP5 Static functions called through __call() that don't exist... yet

2007-05-18 Thread Jared Farrish
://marc.info/?l=php-generalm=114558851102060w=2 ). But I would LIKE for it to work (currently, the above code doesn't). Anybody have any insight on how I might get this to work? Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend

[PHP] Re: PHP5 Static functions called through __call() that don't exist... yet

2007-05-18 Thread Jared Farrish
insight on how I might get this to work? Thanks! -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool you have is a hammer, you tend to see every problem as a nail. $$ -- Jared Farrish Intermediate Web Developer Denton, Tx Abraham Maslow: If the only tool