Re: [PHP] safely using input for mail

2004-09-12 Thread David T-G
John, et al -- [Been a while! How ya been?] ...and then John Holmes said... % % David T-G wrote: % % >I'd like some sanity checks on safely using input for sending mail. I'm ... % >At the moment, I am running escapeshellcmd() on the From:, To:, Subject:, ... % >his o

[PHP] safely using input for mail

2004-09-12 Thread David T-G
l have to go away. I'm also ready to believe that I've overlooked half a dozen other things. How would you guys tackle this? TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp952nCnHrGX.pgp Description: PGP signature

Re: [PHP] Re: web page output "as we go"

2004-07-04 Thread David T-G
't do this for me and that's no big deal since few of our customers use it. % % Jason Thanks for the pointing :-) :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgpsz8lKlPcZV.pgp Description: PGP signature

[PHP] web page output "as we go"

2004-07-03 Thread David T-G
the web browser to start trickling the data onto the page? TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp1j5balw2OU.pgp Description: PGP signature

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > bash-2.05a$ /usr/local/bin/php -v % > PHP 4.3.4 (cli) (built: Jan 6 2004 15:27:52) % % that cli should be cgi. % % I'm assuming you compiled php with something like:

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
Peter -- ...and then Peter Risdon said... % % David T-G wrote: % % > bash-2.05a$ /usr/local/bin/php -v % > PHP 4.3.4 (cli) (built: Jan 6 2004 15:27:52) % % You probably need the cgi version - not the command line one you % actually have. Ooohhh... Ouch. So there are

Re: [PHP] script location

2004-06-04 Thread David T-G
Gabe -- ...and then Gabe said... % % Does anyone know of a simple/efficient way to determine the path to a % script on the URL? Gee, it sounds like you want the dirname() of the SCRIPT_URL. You're on the right track :-) HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpi

Re: [PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > My code is as simple as % > % > #!/usr/local/bin/php % % What does '/usr/local/bin/php -v' show? Doesn't seem to scary to me: bash-2.05a$ /usr/local/bin/php

[PHP] php as CGI and $_POST

2004-06-04 Thread David T-G
print "\n" ; print "\n\n" ; print "\n" ; exit ; ?> but I only get _POST IS .Array ( ) . _GET IS .Array ( ) . Enter your password: ENTER even after submitting. Switching to doesn't help anything. So how on

[PHP] changing http to https

2004-05-12 Thread David T-G
7;,$_SERVER['SCRIPT_URI']) which both seem kinda kludgey. Any better ideas? TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

[PHP] SOLVED Re: [PHP] using cookies

2004-05-10 Thread David T-G
Hi, all -- ...and then David T-G said... % % I guess I need a primer on cookie usage. I've read the manual regarding [snip] All has become clear, or at least only murky :-) I was having trouble wrapping my head around how to start cookies (a la sessions) and then check to see if I

Re: [PHP] Re: using cookies

2004-05-09 Thread David T-G
, then I'm stepping on the old value and so I can't automatically log him in (or at least as I understand it, and I certainly haven't seen anything in $_COOKIE to make me think otherwise). Perhaps now I've given everyone better info on which to base a response :-) TIA again &

[PHP] using cookies

2004-05-08 Thread David T-G
Once I set it, how do I read it? Does anyone have any pointers to a basic tutorial? TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] Graphical calendar

2004-05-07 Thread David T-G
p the calendar code out of any of those mainstream apps. I use Craig Knudsen's WebCalendar (http://www.k5n.us/webcalendar.php) and it has preview calendars for last month and next month that would probably do a great job for you. % % Todd HTH & HAND :-D -- David T-G [EMAIL P

Re: [PHP] please remove this user

2004-05-07 Thread David T-G
courage them to help these clients fix their broken configurations (be they on an ipower virtual server or within a corporate network). Then, again, astral is due to expire late next month; perhaps it really will! Hey, I guess I'll have two more messages to fire off in about a minute :-) HT

Re: [PHP] PHP Website Architecture

2004-05-07 Thread David T-G
e) script for our gallery engine, amongst other projects, and as an added bonus I don't have to remember in which file to search, months later, when I'm tracking a bug (er, "reconsidered feature", since there are no bugs in my code! ;-) % % HTH. % % Cheers, % -Ryan HTH &am

Re: [PHP] setting php_admin_value

2004-05-06 Thread David T-G
ource and see how it gets its settings; surely the httpd.conf file structure, after parsing, is just a data structure that is read as needed, and you could thus probably intercept that call. % % Thanks, % % Tim. HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/

Re: [PHP] I need to hire someone to secure script

2004-05-06 Thread David T-G
feel free to drop me a line to discuss it if you wish. % % Sorry if this not an appropriate request in a forum like this. That's an age-old problem, and I think it's as good here as anywhere :-) % % Doug HTH & HAND & Good luck! :-D -- David T-G [EMAIL PROTECTED] http

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread David T-G
Michael, et al -- ...and then Michael Sims said... % % David T-G wrote: % > % > Am I missing something painfully obvious? % % www.perldoc.com appears to be unavailable at the moment, but if you have "perldoc" % installed, here's an excerpt from the "perlre" man p

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread David T-G
Petr, et al -- ...and then Petr U. said... % % On Thu, 6 May 2004 11:57:45 -0400 % David T-G <[EMAIL PROTECTED]> wrote: % % > Am I missing something painfully obvious? % % >From http://www.php.net/manual/en/pcre.pattern.syntax.php % % However, if a quantifier is followed by a q

Re: [PHP] gifs, icons etc

2004-05-06 Thread David T-G
ted to her, and receive no compensation for telling anyone about her work. Nyah nyah :-) HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread David T-G
p with a /U modifier (otherwise not greedy) back into a greedy portion. Am I missing something painfully obvious? % % - rob TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgpR4LqMxbiLk.pgp Description: PGP signature

Re: [PHP] converting movies

2004-05-06 Thread David T-G
r Radulescu said... % % Hello! Hi! % % Does anyone know how I can convert movies from a format to another or how I % could get a screenshot of the movie (the first scene) using PHP or at least % something running on a linux system. I would use ImageMagick. % % % Thanks, % Arthur HTH &a

Re: [PHP] strip comments from HTML?

2004-05-06 Thread David T-G
it might not ;-) % % This line of code, if you are parsing HTML file row by % row, strips only "one line" comments. Comments spanned % on multiple lines are unaffected. Agreed. Let's leave that to the student to work out, shall we? :-) % % HTH % % Marius HTH & HAND :-D

Re: [PHP] strip comments from HTML?

2004-05-06 Thread David T-G
Note that since you're just replacing the entire comment with '' you needn't bother with the () around whatever may be in the middle, too. % % TIA % % --- % Justin French % http://indent.com.au HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/d

[PHP] dollar sign ASCII code

2004-04-30 Thread David T-G
e ' for an apostrophe or & for an ampersand. Does anyone have the code for a dollar sign? TIA & HANN :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

[PHP] substr == SOLVED (was "Re: [PHP] substrings")

2004-04-25 Thread David T-G
ll of the PCRE doc when I gave up and asked for help :-) Thanks & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

[PHP] substrings

2004-04-25 Thread David T-G
color) ; or so. TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] Whats faster? text files or mysql?

2004-04-22 Thread David T-G
on an ATA disk, will be faster because of the overhead of talking to the database; DBs shine when they have tons of data, not ounces. HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] PHP Web Hosting

2004-04-22 Thread David T-G
Stanley, et al -- ...and then Stanley X. Martin said... % % Why don't you two just email each other instead of including us all in % your little pissing contest? Aw, where's your sense of adventure? Oops; that one's been used already ;-) % % Stanley G. Martin HAND :-

Re: [PHP] PHP Web Hosting

2004-04-22 Thread David T-G
ge % lines ... What "text-mode readers" bother with "window borders"? :-) But I agree with the CR/NL/CR-NL bit, and I can't imagine and RFC casually calling a newline a carriage return. Odd. HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] PHP Web Hosting

2004-04-22 Thread David T-G
Arthur -- ...and then Arthur Pelkey said... % % I am all for adventure when money goes into my wallet, the same cannot % be said for the opposite ;) Being all for money when adventure goes into your wallet? Heck, I'd be all for that ;-) HAND :-D -- David T-G [EMAIL PROTECTED]

Re: [PHP] Why NNTP is not default protocol for php groups

2004-04-22 Thread David T-G
I need to. Don't get me started on the whole spam problem, either. All of the newsgroups I've loved over the years have gone downhill due to being flooded with spam. I could be wrong, but I don't know of any news spam cleaners; they're all meant for email. Mail is good. New

Re: [PHP] Freelance PHP Bids

2004-04-22 Thread David T-G
moonlighter, has never come to fruition for me, so I'm quite interested in any results you get. Please let us know. % % Navid HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] Unwanted e-mails

2004-04-16 Thread David T-G
I miss anything? :-) Just some whining, apparently. Perhaps it's time for me to break out the "unsubscribe fee" emails again. % % cheers, % % Travis HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0

Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike -- ...and then Ford, Mike [LSS] said... % % On 15 April 2004 17:26, David T-G wrote: % % > ...and then Ford, Mike [LSS] said... % > % % > % I'm not sure, however, that this is a totally foolproof way % > of doing it, as % > % it would fail

Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike, et al -- Responding to your second one first... ...and then Ford, Mike [LSS] said... % % On 15 April 2004 16:26, David T-G wrote: % % > When I move_uploaded_file() a file into place, I want to give it the ... % > but chmod() needs a permissions setting rather than a

Re: [PHP] file upload

2004-04-15 Thread David T-G
--- Even though you're still creating $data you're now trying to send $_FILES[form_data][data] as a value and I don't know what that is at all :-) Change that back to $data and you should be fine. % % The file does not get uploaded. % % Any assiatnce will be greatly

Re: [PHP] umask() and chmod()

2004-04-15 Thread David T-G
Mike, et al -- ...and then Ford, Mike [LSS] said... % % On 15 April 2004 16:26, David T-G wrote: % % > but chmod() needs a permissions setting rather than a umask. % > % > The challenge is in representing this as octal. With some ... % > to feed to chmod() -- and

[PHP] umask() and chmod()

2004-04-15 Thread David T-G
e anyway. How can I set a file's permissions based on whatever umask() returns? TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] storing an array in an ini file

2004-04-14 Thread David T-G
! % % Anyway i switched to using an XML-File now :-) One of these days... Baby steps :-) Thanks & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] storing an array in an ini file

2004-04-13 Thread David T-G
John, et al -- ...and then John Holmes said... % % David T-G wrote: % % >to store array values in there since that is the logical place to keep % >config data. If I can't, I could probably use a string with @@ or | in ... % % If you really need to define arrays, just put them in

Re: [PHP] storing an array in an ini file

2004-04-13 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > I have an ini file for my application and I use parse_ini_file to load it % > and some custom code to save modifications. I'd like to figure out how % > to store array valu

[PHP] storing an array in an ini file

2004-04-13 Thread David T-G
with @@ or | in it as the token but an array is so much more elegant because that's what it's meant to do :-) Any suggestions? TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] I need some help And the people at the Bug section pointed me to you

2004-04-13 Thread David T-G
bphp5.so': No such % file or directory % apxs:Error: Command failed with rc=65536 % . % make: *** [install-sapi] Error 1 Please forgive the perhaps silly question. Are you root? More properly, do you have permission to write under /www? HTH & HAND :-D -- David T-G [EMAIL P

Re: [PHP] SsH

2004-04-13 Thread David T-G
ented that connection for you. % % Kind Regards % Brent Clark HTH & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] Wanted: login and CMS system with a twist

2004-04-12 Thread David T-G
Justin, et al -- ...and then Justin French said... % % On 13/04/2004, at 1:10 AM, David T-G wrote: % % >A client of mine wishes to create a web site which does more than just % >the typical CMS functions in that what you can see not only depends on % >whether or not you have an account

Re: [PHP] Re: commercial autoresponses

2004-04-12 Thread David T-G
Jason, et al -- ...and then Jason Barnett said... % % David T-G wrote: % > % >and wondered for a moment if I'd really sent it to the right place! Have % >I really missed so much in a month of being too busy to post on the list? % % No David, I receive those messages also when

[PHP] Re: commercial autoresponses (was "Re: [PHP] Wanted: ...")

2004-04-12 Thread David T-G
Hi again, all -- ...and then David T-G said... % ... % Any recommendations? I was amazed to receive from this - an entirely-in-German post apparently wishing me a happy Easter - a note from Credit Suisse letting me know they'd process my request - a promise from Astral Securit

[PHP] Wanted: login and CMS system with a twist

2004-04-12 Thread David T-G
tions? TIA & HAND :-D -- David T-G [EMAIL PROTECTED] http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature

Re: [PHP] .doc file

2004-03-30 Thread David T-G
parse the results - clean up, of course to get your last line. The wv* utils do a quite acceptable job of converting DOC files into other formats, and definitely don't need a Windows server laying around. % % Thank you. % TR HTH & HAND :-D -- David T-G * There

Re: [PHP] Image Storage

2004-03-23 Thread David T-G
that camp :-) % % Thanks, % % Matt % http://sweetphp.com/ HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health"

Re: [PHP] Re: replacing chars in input

2004-03-23 Thread David T-G
Justin, et al -- ...and then Justin Patrin said... % % David T-G wrote: % % >I would like to make things easier for my users and replace all of the % >garbage characters % > % > `'";:[EMAIL PROTECTED]&*()[]{}<>/?\|+= % > % >plus white space (\s) with un

[PHP] replacing chars in input

2004-03-23 Thread David T-G
$i = preg_replace("/[\s]/","_",$i) ; but trying to add other chars doesn't do a thing. I want to end up with A-Za-z0-9_- (letters, numbers, underscore and dash). If there isn't a handy character class waiting for me, what must I do to get tho

[PHP] how does array_multisort work?(!??)

2004-03-18 Thread David T-G
rray is constructed in the proper order or make an index of titles => keys so that I could sort that and then pull the key out to display the list. Bleah. Once again it would probably be easier to just lay out a DB schema! TIA & HAND :-D -- David T-G * There is too

Re: [PHP] catching URL#target params

2004-03-15 Thread David T-G
Chris, et al -- ...and then David T-G said... % % ...and then Chris Hayes said... % % ... % % maybe via a javascript detour? % % Can't do that since I'm trying to write code that can handle the old % style call from some page that hasn't been updated, which means that I % d

Re: [PHP] help with storing multiple values in session variables.

2004-03-15 Thread David T-G
ecode what you get in the script. I use it frequently. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health"

Re: [PHP] catching URL#target params

2004-03-15 Thread David T-G
site.com/index.php&anchor=target That sounds good, I think. % % I did it and it works. Great! Now tell me more :-) % % % Sebastiano Thanks & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral

Re: [PHP] Printing landscape

2004-03-15 Thread David T-G
printer to use landscape, but I not only wouldn't sully myself by going there :-) but don't have the slightest idea where to look anyway. There's always educating/training the user, but that can be the hardest task of all! ;-) % % Any help is appreciated. Good luck! HTH

[PHP] categorizing and array mapping

2004-03-15 Thread David T-G
s method will be just as painful as jumping to that then perhaps I should bite the bullet and do it now. Or maybe this ver doesn't get categories, just like the current sprawl of HTML doesn't have that blessing, either :-) Recommendations? Ideas? Caveats? TIA & HAND :-D -- Dav

Re: [PHP] catching URL#target params

2004-03-15 Thread David T-G
3325 Hully gee; it sure looks like you're right. Well, anyone with old calls will just be screwed, then. On with work... Thanks again & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage.

Re: [PHP] catching URL#target params

2004-03-15 Thread David T-G
ixed already :-/ Thanks & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ S

Re: [PHP] catching URL#target params

2004-03-15 Thread David T-G
p -i 'foo|query' QUERY_STRING no value QUERY_STRING no value _SERVER["QUERY_STRING"] no value _ENV["QUERY_STRING"] no value Any other ideas? TIA & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROT

[PHP] catching URL#target params

2004-03-15 Thread David T-G
that includes that target. Is there a var that will work for me? TIA & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science an

Re: [PHP] * populate menu from directory *

2004-02-16 Thread David T-G
e. 3) If the file paths are stored in a database, just connect to the DB and pull the list and then loop through it just as in #2. % % % d HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient

Re: [PHP] A dumb question

2004-02-12 Thread David T-G
ge the left var you change the value for the right var, too. $a = 1 ; $b = $a ; $c = &$a ; $b++ ; $c-- ; print "a = $a ; b = $b ; c = $c ;\n" ; // a = 0 ; b = 2 ; c = 0 3) You can't, as far as I know, assign-by-reference a function, so your code should

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread David T-G
x27;foreign keys' in your relational database. This ensures that, should you change the country ID in the country table, all of the clubs for that country will be updated. You'll still have to enter the country ID, though, whether manually, through a pulldown, or by matching te

Re: [PHP] writing a manual

2004-02-10 Thread David T-G
ct only to not get paid for any of it. % % Thanks % -Tim HTH & HAND & please let us know what you find and how you go :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED]

Re: [PHP] thumbnail script

2004-02-06 Thread David T-G
for jpg stuff, will try that out. That's why we're all here :-) % % > HTH & HAND & Good luck! % % Sure did, and the same to you dude. Thanks :-) % % Cheers, % -Ryan % HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED

Re: [PHP] FreeBSD to Linux -- PHP Issues

2004-02-06 Thread David T-G
to and I don't get anything else in any case :-) % % Thanks, % % % Daryl Meese HTH & HAND & Happy hunting :-) :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL

Re: [PHP] recursive direcotry listing

2004-02-06 Thread David T-G
gt; ./f2 [2] => ./d1/f3 ) ) and $mixed looks like Array ( [0] => f1 [1] => f2 [d1] => Array ( [0] => f3 ) ) % % Thanks % % Binay HTH & HAND :-D -- David T-G * There is too much animal courage in (pla

Re: [PHP] thumbnail script

2004-02-06 Thread David T-G
heir image tags to output in the page. HTH & HAND & Good luck! :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health&quo

Re: [PHP] boolean search class

2004-02-06 Thread David T-G
Ray, et al -- ...and then Ray Hunter said... % % On Fri, 2004-02-06 at 06:47, David T-G wrote: % > Very, very simple stuff. The list of directories and files is held in an %... % That is simple enough, however, I dont see much flexibility in it with Just between you and me, I tend to ag

Re: [PHP] boolean search class

2004-02-06 Thread David T-G
Ray, et al -- ...and then Ray Hunter said... % % On Thu, 2004-02-05 at 20:46, David T-G wrote: % > % > I'm implementing a search and would like to move beyond accepting ... % > are not in a database, so I won't be passing SQL code off to a real % > searcher.] % % How ar

Re: [PHP] boolean search class

2004-02-05 Thread David T-G
Daniel, et al -- ...and then [EMAIL PROTECTED] said... % % Mysql 4 MATCH AGAINST Thanks for the reply, but how will this help me when a database is not involved? HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not

[PHP] boolean search class

2004-02-05 Thread David T-G
g SQL code off to a real searcher.] TIA & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.or

Re: [PHP] Size of Arrays

2004-01-29 Thread David T-G
Stuart, et al -- ...and then Stuart said... % % David T-G wrote: % >2) Five minutes with a test script would tell you, and I bet google could ... % >all) it breaks. My bet is that you'l exhaust RAM and swap before you % >break php, especially if you actually store something --

Re: [PHP] Create a zip archive from a folder

2004-01-29 Thread David T-G
http://phpconcepts.net/ but that seems a little sicko at the moment, so you might try sourceforge instead. If you google for pclzip you'll get lots of links. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not su

Re: [PHP] Size of Arrays

2004-01-29 Thread David T-G
reaks. My bet is that you'l exhaust RAM and swap before you break php, especially if you actually store something -- like, say, 32 bytes of useless string output -- in each entry. % % Thanks a lot, % % Sandro HTH & HAND & Good luck :-D -- David T-G * There

php-general@lists.php.net

2004-01-28 Thread David T-G
because I completely fail to see how this will satisfy her requirement. Does this somehow do something other than what it obviously appears to do? % % -- % Stuart HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and n

php-general@lists.php.net

2004-01-28 Thread David T-G
consult the Great Programmer. Something is coming to me ... I see a function ... It's ... It's ... It's in the manual! [HINT: look for 'special character' since you clearly didn't look for '&', which would do about as well.] HTH & HAND :-D -- David T

Re: [PHP] naming a directory after a user-submitted string

2004-01-28 Thread David T-G
er in order to get rid of bad chars or to make something unique in the event of a collision. Thus, a simple if ( preg_match('/[EMAIL PROTECTED]/',$string) || file_exists($string) ) { puke() ; } could work nicely. HTH & HAND :-D -- David T-G * There is

Re: [PHP] Upload file size limits

2004-01-25 Thread David T-G
'. Good. % % Am I going in the right direction? You sure are! This has, by the way, been covered in great detail; you should check the archives for more info. % % Thanks. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTEC

Re: [PHP] Return-Path header and sending email with php

2004-01-25 Thread David T-G
;s either the second gunman on the grassy knoll or the fifth parameter ;-) HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, &q

Re: [PHP] porting perl scripts to php

2004-01-24 Thread David T-G
ec the perl script and get the result if that setup works for you. I would be happy to be of service if you would like. Feel free to drop me a reply. % % Thanks, % Al HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * societ

Re: [PHP] Securing php from rogue php scripts

2004-01-23 Thread David T-G
r) but was wondering % if someone could give some advice 1) I'm no expert, though I'd like to be somewhat closer 2) If you're not speaking of safe mode, then look at safe mode 3) Please share what you find to help others, including me. % % % Thanks % % Ade TIA &

Re: [PHP] PHP and email attachments

2004-01-22 Thread David T-G
*blush* Thanks! HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx

Re: [PHP] PHP and email attachments

2004-01-22 Thread David T-G
we have to be more diplomatic). If they're sending huge MS-Offends files around, strongly encourage them to re-think the presentation method and at least to strip to RTF and then zip to compress. If it's, say, a PGP signature, then congratulate them and get to work :-) % % Thanks HTH &

Re: [PHP] thumbnail

2004-01-21 Thread David T-G
No need to copy+mogrify; just use convert [options] /path/to/old /path/to/new instead :-) % % Ed HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] --

Re: [PHP] a clean way to upload

2004-01-16 Thread David T-G
ng is returning the page saying "hey, you blew it; try again". Where is the 'ease of uploading'? TIA & HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (

Re: [PHP] a clean way to upload

2004-01-16 Thread David T-G
Matt -- ...and then Matt Hedges said... % % ? He's telling you to search the list archives. This is not new ground you're breaking here. Just call getimagesize() on the temp file and see what type it reports back. HTH & HAND :-D -- David T-G * There is t

Re: [PHP] R: [PHP][PEAR] PEAR::DB_Common::nextId()

2004-01-15 Thread David T-G
-) % % cheers % % alessandro HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/da

Re: [PHP] nested tags

2004-01-15 Thread David T-G
second table table or the like? Can you give us any more detail at all? HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Bak

Re: [PHP] nested tags

2004-01-14 Thread David T-G
Gregor -- ...and then Gregor Jaksa said... % % Can anyone provide me with some link or code on how to deal with nested % tags. What kind of tags? HTML? PHP? Mattress? What do you want to accomplish? % % thx! HAND :-D -- David T-G * There is too much animal

Re: Re[2]: [PHP] Can php select which ini file to use?

2004-01-13 Thread David T-G
least you can have two apaches listening on two different ports and have one run php4 and the other run php5; I strongly suspect that you could even have the "primary" recognize php5 files and hand them off to the "other" apache just like when you run sites on their

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread David T-G
lidating on the server anyway -- empty fields and all -- and so there's no need to do it twice especially when it eliminates surfers who don't use JS. HTH & HAND & Happy New Year :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTEC

Re: [PHP] picturing webpage

2004-01-09 Thread David T-G
and dunno, but let's find out :-) % % -thanks, Eli HTH & HAND & Happy New Year :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Scie

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread David T-G
w language, you might pick some of the uglier perl scripts they have and rewrite them in php to show how straightforward and pretty it is. % % thanks in advance, Good luck! % % Warren Vail % [EMAIL PROTECTED] HTH & HAND & Happy New Year :-D -- David T-G * T

Re: [PHP] [Fwd: failure notice] Why??

2004-01-06 Thread David T-G
://www.emailfeeds.com HTH & HAND & HNY :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davi

Re: [PHP] Piping email

2004-01-04 Thread David T-G
mail to anything. I don't know exim from anything else, but I'd use the .forward file no matter what MTA is installed. % % Thanks % % Ade HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not suffic

  1   2   3   4   5   >