Re: [PHP] Best Practice

2002-09-21 Thread Peter J. Schoenster
the > site and find out how they did it. Or, you can read articles like this: > > http://www.alistapart.com/stories/netscape/ > > And one for "easy printing": > > http://www.alistapart.com/stories/goingtoprint/ I gotta go back and refresh myself. Thanks fo

Re: [PHP] $_GLOBAL["var"] or $_GLOBAL['var'] or $_GLOBAL[var]; ???

2002-09-22 Thread Peter J. Schoenster
php someone put a link to another good explanation: http://www.zend.com/zend/tut/using-strings.php And of course take care of the magic (imho, black magic) that can go on with auto escaping, quoting etc. that I should fathom but haven't. the php.net site is wealth of info, good search, I

Re: [PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Peter J. Schoenster
work. This what I looked for in PHP and I've got one now that is equal or better to my Perl framework. I use the same pattern I do in Perl. Isolate data manipulation, functions are the sort of "programming by contract" where functions expect input and return output. It gets messy when I have to handle errors ... I'm trying to componentize my stuff to decouple it all ... Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Designing N-tier applications in PHP (long)

2002-09-22 Thread Peter J. Schoenster
On 22 Sep 2002 at 13:52, Michael Sims wrote: > Well, that is basically my question. I considered both SOAP and > XML-RPC (which you mention later) but I wasn't sure what the impact on > performance would be. I am basically looking for anecdotal evidence > from people who have implemented this s

[PHP] Re: [PHP-DB] advise needed for 'authorized only' site

2002-09-23 Thread Peter J. Schoenster
); if($cookie{$username}) { return 1; }else { return undef; } } ## 1; Now, if you reckon I should have only given a solution as above in PHP, well, I would have if I had known one. The solutions I've seen so far are not very elegant or evolutionary imho. Ca

Re: [PHP] Re: Mail problem with more than 1k users

2002-09-23 Thread Peter J. Schoenster
of a reason that would trump the personalization that I like so much. But I'm all ears. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a forum

2002-09-26 Thread Peter J. Schoenster
.phpbb.com/ I've never used any bb systems to say one way or another. Certainly easy to install. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for some help on web header coding.

2002-09-26 Thread Peter J. Schoenster
a variable is intialiazed and modified (can be anywhere)? Is there an easy way to handle this? Drives me nuts :) Maybe I've just not recognized the nutcracker. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] seeking data validation class

2002-09-27 Thread Peter J. Schoenster
> [ "trim" ], field_filters => { phone => ["phone"] }, }, The Perl module that does this is: HTML::FormValidator So far I'm find PHP stuff that does everything under the sun. Anyone know of something like this? Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: seeking data validation class

2002-09-27 Thread Peter J. Schoenster
e the function return the 3 arrays : good, invalid, missing. I've been very happy with this in Perl. The formgen is very powerful, too powerful and too intrusive into the other things I'm doing. I only need a small part of it. What I want has nothing really to do with html forms, just data validation. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Smarty template question

2002-09-28 Thread Peter J. Schoenster
) { > $rowdata[$i] = $row; > $i++; I don't think you need the $i. Are you sure you have data in $rowdata? Your use of section looks good to me. You've got those if statements. Sure they are all true. I'm using section in lots of stuff and it's working fine.

RE: [PHP] Smarty template question

2002-09-28 Thread Peter J. Schoenster
Was written > > > while( $row = $result->fetchRow( DB_FETCHMODE_ASSOC ) ) { > > > $rowdata[$i] = $row; > > > $i++; > > > > I don't think you need the $i. > > I need the $i because I'm assigning the every row from the result into > an array. http://www.php.net/manual/en/language.ty

Re: [PHP] Global variables

2002-10-02 Thread Peter J. Schoenster
means of tracing them. And it gets real interesting when one file inherits another which inherits another and in any one of them the value of your global variable can be changed. Does anyone know a good way for tracing such things? Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HYML Forms to Validate?

2002-10-03 Thread Peter J. Schoenster
uently in PHP but since I don't mind the pop up box that's not a big deal and since most of my apps go through just a few php handlers I do my own auth/access for every request and return my custom login page when needed. Peter -- PHP General Mailing List (http://www.php

Re: [PHP] CC Processing Merchants

2002-10-09 Thread Peter J. Schoenster
On 10 Oct 2002 at 0:48, Andrew Brampton wrote: > Sorry for this slightly off topic question, but I beleive many of you > will have delt with this kind of thing before. Yeah off-topic but I was wondering the same thing myself as I have not done many carts in awhile. > So can anyone recommend a

Re: [PHP] standardization across apps?

2002-10-28 Thread Peter J. Schoenster
much time to see how easy it is to extend. It doesn't use Smarty or any better template system and for that reason I'm leery. But I like it better than Nuke which a customer is using and I've had to work with. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing the variables ...

2002-10-29 Thread Peter J. Schoenster
Key][$SubKey] = $SubValue; } }else { $FormVariables[$Key] = $Value; } } # End of foreach return $FormVariables; } # End ProcessFormData ?> Hello hello %s!",$textbox); print ""; print_r($input); print ""; ?> __end Of course

Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Peter J. Schoenster
s an interesting company: http://www.mailerssoftware.com/zipcodesolutions/index.htm Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] why does eregi match for whitespace when there is none?

2002-10-31 Thread Peter J. Schoenster
Here is the example: Why does the above return true? There is no whitespace in the string. What am I missing? Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] seeking good Bug Tracker in PHP

2002-11-12 Thread Peter J. Schoenster
template class (strong preference for Smarty) and it uses as many Pear classes as possible. Anyone know of one? Thanks, Peter http://www.coremodules.com/ Web Development and Support at Affordable Prices 901-757-8322[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Peter J. Schoenster
.. If your designers use GUIs and think they know what they are doing ... well I don't know. Maybe M$ has a solution that works for that environment. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Keeping "Secrets" in PHP Files

2002-06-28 Thread Peter J. Schoenster
and Verio used much of their website but renamed it to viaverio.com (was iserver.com). It looks like they've done the same thing with Oracle. The above people have done it with Linux. I've only used iserver for 7 years now at 3 different companies but that freeVSD really looks good.

Re: [PHP] checking date is not greater than today

2002-06-30 Thread Peter J. Schoenster
he Disenchanted Developer > March 19, 2002 http://zope1.devshed.com/zope.devshed.com/Server_Side/PHP/DateTime/page1.html In Perl I happen to use this moduel for date manipulation: http://search.cpan.org/doc/STBEY/Date-Calc-5.0/Calc.pod There must be something similar in PHP but since I too am a

[PHP] is their a jobs mailing list?

2002-07-07 Thread Peter J. Schoenster
know they are accepted heartily on the mod_perl list. Anything simple but effective like this site for PHP? http://jobs.perl.org/ Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] seeking experienced PHP programmer in Houston, TX (no telecommuting)

2002-07-08 Thread Peter J. Schoenster
Hello, I'm posting this ad for the company looking for a PHP programmer. I have no clue if the company is good or not. Do your due dilligence. __BEGIN JOB POST We are a Houston, Texas based company in need of 1-2 VERY GOOD AND EXPERIENCED PHP programmers for 4-6 weeks to build a new web site.

Re: [PHP] Best Content Management METHOD...

2002-07-08 Thread Peter J. Schoenster
7;m with Justin on this. Here is a very good article that goes into depth on the subject by a guy who seems to have disappeared: http://philip.greenspun.com/internet-application-workbook/content-management Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Postal / Zip Code Proximity Search

2002-07-09 Thread Peter J. Schoenster
KEY idx_zip(zip), KEY idx_state(state), KEY idx_city(city), KEY idx_latitude(latitude), KEY idx_longitude(longitude), KEY idx_sure(sure) ) TYPE=MyISAM; More stuff about this here: http://mathforum.org/library/drmath/view/51711.html http://www.movable-type.co.uk/scripts/LatLong.html

Re: [PHP] hiding submitted variable values in location bar of browser !

2002-07-09 Thread Peter J. Schoenster
on and keep it on the server side. Oh heck, but now as I read your email closer I guess you are asking how it can be done from a form the first time. Perhaps with javascript but then use post instead of get and of course make it via a secure connection if security is a concern. Peter -- PH

Re: [PHP] Commit/Roll Back Transaction in PHP/mySQL

2002-07-09 Thread Peter J. Schoenster
ata store so I have no examples myself. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Development Tools

2002-07-10 Thread Peter J. Schoenster
ore advanced GUI and knowing that it is faster for you as opposed to starting with an IDE or GUI because you'll probably end up like most people and begin to think possiblities are what your tool allows you. Peter -- http://www.readbrazil.com/ Answering Your Questions About Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Peter J. Schoenster
p itself was in java I believe). We only had to provide coordinates from the web form to these apps and they'd return a slice of an image. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and geographic maps

2002-07-11 Thread Peter J. Schoenster
to serve up any images as they are dreadfully slow. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trying to build intelligent query from question

2002-07-14 Thread Peter J. Schoenster
#x27;=>1,'why'=>1,'are'=>1,'there'=> 1,'where'=>1,'find'=>1,); What do you think? Do I just build up $ignoreWords like I'm doing or this there another way I've missed? Also, does someone have a list of "common words to ignore"? Thanks, Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trying to build intelligent query from question

2002-07-14 Thread Peter J. Schoenster
s = explode(" ",$_string); $ignoreWords = array('brazil','like','the','this','that','why','are','there','where','find',); $FindTheseWords = array_diff($words, $ignoreWords); Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP, JAva history

2002-07-14 Thread Peter J. Schoenster
urpose, using the browser history, Can > someone show-me how can I do that. Sounds like you want the REFERER, misspelling on purpose. Take a look here: http://www.php.net/manual/en/reserved.variables.php http://www.php.net/manual/en/ref.url.php Peter -- PHP General Mailing List (http://

Re: [PHP] integrating usenet into http? how is this done???

2002-07-15 Thread Peter J. Schoenster
50) default NULL, visibility tinyint(4) default NULL, editor int(11) default NULL, PRIMARY KEY (Message_ID) ) TYPE=MyISAM; Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search Page question

2002-07-16 Thread Peter J. Schoenster
a few images. The guy who wanted that wanted to sort by last in first up. There are probably many more ways of doing this. Hope we see some more responses. I never thought to use the LIMT X,Y option. I will test that later. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pros and cons of ezpublish

2002-07-16 Thread Peter J. Schoenster
files ... but I wonder. I've even got access to imagemagick but I have to call it direct. Anyone with some experience or advice on ezpublish? It's about 14 meg uncompressed. Bloatware or is it worth the effort? Thanks, Peter -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Peter J. Schoenster
OO imho. I'm a die hard modular programmer who is trying to think in a more OO way. But of course when you just gotta get something done, do it. The value in spending a bit more time going the modular/OO route is that your application will be easier to evolve and debug. Peter-- http://www.re

[PHP] Tips for better PHP, wish I read yesterday

2002-07-17 Thread Peter J. Schoenster
> This is a short-hand in PHP for: > > I have come across some of this in the documentation but not in your face like it is here (and should be). Does anyone have any more links to articles like that? Thanks, Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Peter J. Schoenster
on about that in 15 minutes. It's just amazing what passes for competence in the IT world. I had a boss who I swear sincerely said he could "double click a mouse". The guy was serious. I did not last at that job :) Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sorting array based on key string

2002-07-18 Thread Peter J. Pieczora
Pardon my sloppy explanation but here it is: how can i sort an array based on key element ie. key values are: a1, a2 ,a3 ..., b1, b2 ,b3, ...c1, c1, c3... so doing this: while (list($k, $v) = each($data)) { for ($i=0; $i"; } will list all the $k $v . a = foo a = bar b = another foo ... and s

[PHP] Problems with ldap_modify() and very large entries

2003-12-01 Thread Peter J Hartman
do a print_r on the array passed to ldap_mod_replace and run ldap_modify from the commandline on it (after properly formatting it) and it works absolutely and quickly. I can't figure this out. Any help would be very very nice. If you need me to provide more information, let me know. Peter the

Re: [PHP] (More Information) was Problems with ldap_modify() and very large entries

2003-12-02 Thread Peter J Hartman
= $output; ldap_mod_replace($conn, $dn, $array); Setting the top of $i to 170 or above hangs (consistently) ldap_mod_replace. Technically, 161-180 (thus, 17000-18000 characters) hangs inconsistently, while 160 and belows never hangs (16000 characters) and 181+ (181000 chars) hangs everytime. Any he

Re: [PHP] (More Information) was Problems with ldap_modify() and very large entries

2003-12-02 Thread Peter J Hartman
Just to note: the problem holds true for: ldap_mod_add, ldap_modify, and ldap_mod_replace. Also, adding ldap_set_option($conn, LDAP_OPT_SIZELIMIT, 20) doesn't resolve the problem (or setting it to 0). Peter On Tue, 2 Dec 2003, Peter J Hartman wrote: > Here's a followup to my

[PHP] IN ANTICIPATION OF A MUTUAL BUSINESS RELATIONSHIP

2004-01-05 Thread PETER MBA & ASSOCIATES
I am PETER MBA, an attorney at law, personal attorney to this engineering contractor, a National of your country, who used to be a contractor with a Mining Company here in South Africa. Herein shall be referred to as my client. On the 21st of April 2001, my client, his wife and their only

[PHP] cached fasttemplates permissions prob

2001-02-22 Thread Peter Van Dijck
s at all? I've been stuck on this for the entire afternoon... thanks Peter ~ http://liga1.com ,a weblog on: - Localisation - Internationalisation - Globalisation - Accessibility -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] i18n

2001-02-22 Thread Peter Van Dijck
any resources on how mysql deals with i18n thanks Peter ~ http://liga1.com ,a weblog on: - Localisation - Internationalisation - Globalisation - Accessibility -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [PHP-I18N] International support

2001-02-22 Thread Peter Van Dijck
"Ok the next part of this message is an article I thought would be generally interesting so I'm not hesitating to post it entirely. It was forwarded to me so I'm not sure of the source." here: http://www.zend.com/zend/cs/newbold.php Peter ~ http://lig

[PHP] $result = $$function

2001-02-24 Thread Peter Van Dijck
just put it outside fo the generic function. Any hints? Thanks! Peter ~ http://liga1.com ,a weblog on: - Localisation - Internationalisation - Globalisation - Accessibility -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] PHP web based mailing list administrator

2001-03-03 Thread Peter Van Dijck
my own server (linux, php4, ...) thanks! Peter ~~ http://liga1.com: building multiple language/culture websites -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] bug tracking software

2001-03-06 Thread Peter Van Dijck
ys of debugging it right now). I need something stable to start working with straight away. And preferably something easy to use. Which one should I use? Peter ~~ http://liga1.com: building multiple language/culture websites -- PHP General Mailing List (htt

Re: [PHP-I18N] Re: Weekly Update

2001-03-10 Thread Peter Van Dijck
What's with all the spam on this list anyway? Is there no moderation at all? I'm working on some i18n issues, and I'll have some questions / answers soon, but this list is way too spammy for now. Also: since it's so low traffic, can we set it to reply to the list by d

[PHP] objects in functions?

2001-03-10 Thread Peter Van Dijck
($row = mysql_fetch_array($res)) { $node = "node" . $count; $$node = $tree->add_folder ($root, $row["name"] . " " . $row["id"] . "", ""); $count++; } } generate_nodes($id); T

[PHP] dbadmin improved

2001-03-16 Thread Peter Van Dijck
I just tried out http://sourceforge.net/projects/phpmyedit/ it's like Paul's dbadmin script for generating admin, but seems bettter (has paging, ...). Peter ~~ http://liga1.com: building multiple language/culture websites -- PHP General Ma

[PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
But when I enter a url that doesn't exist I get this error in the browser: Not found The requested URL /peter personal/applications development/generic/htdocs/subfolder/dfdfdf was not found on this server. Additionally, a 500 Internal Server Error error was encountered while trying to u

Re: [PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
Also, I am trying to find a way to get this to work: within the directory I'm in, 1/5/2/3 should be rewritten to index.php?a=1&b=5&c=2&d=3 I'm sure lots of people have done this before, but the Apache examples don't seem to include this. Where can I find a working e

[PHP] xml-rcp problem

2001-04-21 Thread Peter Van Dijck
ype: text/xml Content-length: 13805 id 80 title Data ... So it looks like getting the info of the server is working fine... Any ideas? Peter ~~ http://liga1.com building multiple language/culture websites http://poorbuthappy.editthispa

Re: [PHP] xml-rcp problem

2001-04-21 Thread Peter Van Dijck
Also, when I uncomment stuff, the line that seems to be giving the problems is: $response = $client->send($msg); When I comment that no more errors. (but nothing else either ofcourse) Peter ~~ http://liga1.com building multiple language/culture websi

[PHP] pumping database dump in mysql

2001-04-21 Thread Peter Van Dijck
hints! Peter ~~ http://liga1.com building multiple language/culture websites http://poorbuthappy.editthispage.com online ethnology, up&down -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: [PHP] php4 on RedHat 7.1

2001-04-27 Thread Peter H. Lemieux
gest you try uninstalling your version of PHP and installing the PHP4 rpm that comes with RedHat instead. Works fine for me. Peter "." wrote: > > Yes, it has that in there right out of the box like this: > > > LoadModule php4_modulemodules/libphp4.so

[PHP] 2 images, merge, make one transparent

2002-01-06 Thread Peter J. Schoenster
me. I have all the libraries, can do just about any image manipulation but this transparency thing has escaped me. Does anyone have a good tutorial on this that doesn't start with jpeg and images they shouldn't use. Peter --- "Reality is that which,

Re: [PHP] counting with dates (help!)

2002-01-09 Thread Peter J. Schoenster
ed your above code and on my FreeBSD box with PHP Version 4.0.6 it returned 7. Peter Good Perl5/mod_perl/Apache/RDBMS/Unix developer seeking work call 901-652-2002 or email [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

[PHP] anyone with a usenet editor

2002-01-13 Thread Peter J. Schoenster
above might say "hey .. this sounds like ..". You can see my beginning of this here: http://www.readbrazil.com/ Thanks, Peter --- "Reality is that which, when you stop believing in it, doesn't go away". -- Philip K. Dick --

Re: [PHP] Newbie database question

2002-01-13 Thread Peter J. Schoenster
ecall having this situation appear for me in the past ... I think it may be an error in design when one cannot be sure if it's an INSERT for a new record or an UPDATE to an existing record. Perhaps you could dissuage me otherwise with your example. Peter --- "Real

Re: [PHP] Invalid Email Characters

2002-01-13 Thread Peter J. Schoenster
tion. afaik, this is the book for regexes: > Mastering Regular Expressions > Powerful Techniques for Perl and Other Tools http://www.oreilly.com/catalog/regex/ I would reckon it and the RFC are the places to go for full understanding of the matter. Peter --- &

Re: [PHP] PHP to another language

2002-01-20 Thread Peter J. Schoenster
e PHP template systems I see in comparison. Thanks, Peter --- "Reality is that which, when you stop believing in it, doesn't go away". -- Philip K. Dick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] what's equivalent of DBI quote

2002-01-26 Thread Peter J. Schoenster
Hi, Seems mysql_escape_string will just escape, seems like addslashes and quotemeta. quote in DBI will escape and quote if passed value is not an integer (don't know about float). Peter --- "Reality is that which, when you stop believing in it, doesn

[PHP] improve turning urls into links routine

2002-01-28 Thread Peter J. Schoenster
// catch on the line break which I did not explode on $row = preg_replace ("/(http[^\s]+)/","\\1", $row); } $new_data .= "$row "; } return $new_data; } # End Get Peter --

[PHP] PHP and XML

2002-02-03 Thread Peter J. Schoenster
Hi, I'd appreciate any pointers you recommend to good sources of information on how to use PHP and XML. Thanks, Peter --- "Reality is that which, when you stop believing in it, doesn't go away". -- Philip K. Dick -- PHP Genera

[PHP] Why does heredoc fail in this instance?

2002-02-04 Thread Peter J. Schoenster
Hi If I use $snippet = ""; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? Thanks, Peter function GetAddCommentSnippet($args) { $topic_id = $args[id]; $return_pag

Re: [PHP] Phatt MySQL entry

2002-02-10 Thread Peter J. Schoenster
change that. I'd look at something like metabase were I you. http://phpclasses.upperdesign.com/browse.html/package/20/ Peter --- "Reality is that which, when you stop believing in it, doesn't go away". -- Philip K. Dick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Interest in Project

2002-02-10 Thread Peter J. Schoenster
at .. they just say download XYZ and there is no question or discussion of their "way". Now, perhaps I've missed these sites, if so please bombard me with the urls. Othewise, consider a site which does this. I have no end of bookmarks for sites with the tactical questions. Pete

Re: [PHP] Interest in Project

2002-02-10 Thread Peter J. Schoenster
ture of Perl/PHP. "code repositories" bring to mind cut and paste and I try and avoid that at all costs. Just my thoughts. I'd certainly like to know when your site goes live. I'm too busy to help with anything myself. Unemployed and spending all my time trying to find work :)

[PHP] can I sandwich html docs with PHP

2002-02-11 Thread Peter J. Schoenster
iscouraged from indexing my site plus I'm going to create pages and nav snippets with links to all those pages. Peter --- "Reality is that which, when you stop believing in it, doesn't go away". -- Philip K. Dick -- PHP General Ma

Re: [PHP] can I sandwich html docs with PHP

2002-02-11 Thread Peter J. Schoenster
templates (header,footer,navigation,boxes) that will be created on the fly depending upon variables when a client requests an html file and I want to know if I can do this in PHP without rewriting the url (which is not such a bad option perhaps). Peter --- "Real

[PHP] why AddType not working for me as expected?

2002-02-12 Thread Peter J. Schoenster
nd of course phtml is set as an option in my httpd.conf file. I want to control just one directory. I'm sure this is not a PHP question as much an Apache question. Anyone have some clues? Thanks Peter --- "Reality is that which, when you stop believing in it,

Re: [PHP] PHP Work in New York

2002-02-12 Thread Peter J. Schoenster
w years ago. Now ... nothing. Incredible. Hit the pavement. See if there is some local PHP group (like a Perl mongers group) or a linux users group if you're into that. Talk to people. Peter --- "Reality is that which, when you stop believing in i

Re: [PHP] good practice

2002-02-14 Thread Peter J. Schoenster
array($Value)) { foreach($Value as $SubKey=>$SubValue) { $FormVariables[$Key.$SubKey] = $SubValue; } }else { $FormVariables[$Key] = $Value; } } # End of foreach($input as $Key=>$Value) return $FormVariables; } # End of function DisplayArrayVariables Peter http://www.readbrazil.com/ Answering Your Questions About Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] good practice

2002-02-14 Thread Peter J. Schoenster
estriction. Guilty as charged. Not that CONFIG.inc has anything of value in it but nonetheless I've just made it off limits. Peter http://www.readbrazil.com/ Answering Your Questions About Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] good practice

2002-02-14 Thread Peter J. Schoenster
ttp://www.linuxdoc.org/HOWTO/PHP-HOWTO-12.html http://utvikler.start.no/code/php_coding_standard.html Any othes out there? I know I have my pet peeves about Perl but Perl, as hard as it may seem, appears more rigid than PHP :) Peter http://www.readbrazil.com/ Answering Your Questions About B

Re: [PHP] good practice

2002-02-15 Thread Peter J. Schoenster
ld have been a module) he just copied that script to the root directory. It worked. But gosh ... when we evolved that cgi script we did not know that there was another copy out there. It was a real fun bug to track down. The database was getting screwed up from that old script but no one recal

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Peter J. Schoenster
t using cookies? If not what? It must be using something? I bet it's using cookies. Sounds a lot like what you normally do with sessions. I don't follow the "send message from one session to another" ... is this not just normal course for sessions? I'd like more ex

Re: [PHP] Looking for optimal coding

2002-02-15 Thread Peter J. Schoenster
x27;,),'me'=>array(display =>'Maine',value=>'me',),'de'=>array(display=>'Delaware',value=>'de', ),'sd'=>array(display=>'South Dakota',value=>'sd',),'ok'=>array(display=>

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Peter J. Schoenster
e likes. Well it started from the above where some guy said this magic could track users. I assumed the cookies and if it's tracking users it uses a session id in the url or a cookie, I know of no other way and would really appreciate the education. > Tom Rogers wrote: > - it is dat

Re: [PHP] The ASP "application" object in PHP?

2002-02-16 Thread Peter J. Schoenster
along with a bit of code example in > PHP, is in a PDF at > > http://demo.logicreate.com/index.php/filemgt/main/event=view/pkey=6/ph > pfaq.pdf Yes, I responded to quickly as after reading someone else's response to one of your emails it became clear the original poster was m

[PHP] must I use var

2002-02-17 Thread Peter J. Schoenster
Y-m-d"); > $this->name = $GLOBALS['firstname']; > /* etc. . . */ > } I don't see the point in doing var $todays_date; and $this->todays_date = date("Y-m-d"); The latter works without the need for the "var". Why should i use

Re: [PHP] Re: must I use var

2002-02-17 Thread Peter J. Schoenster
see what your class variables where (but I can see this easily enough). I don't NEED to use var even in classes. I'm writing a class right now without it. But perhaps there is a SHOULD that I am not aware of (just helping me see .. well I don't need that). Peter http://www.readbr

Re: [PHP] zend studio 2.0

2002-02-17 Thread Peter J. Schoenster
necessarily for mod_perl (very good) but just to generate code for yourself. Perl is an excellent tool but you can't get it with a GUI. You use text editors for which there is keyboard command for 99% of the actions you do. If you already KNOW PHP then Perl will be simple. Peter http://www.

Re: [PHP] zend studio 2.0

2002-02-17 Thread Peter J. Schoenster
but it's a question of balance. Peter Despite considerable evidence that it doesn't work, many projects seem to rely on telepathy as the mechanism for communicating requirements from users to developers. --Karl E. Wiegers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] Updating Database at a specified time

2002-02-17 Thread Peter J. Schoenster
username=> '', password=> ''', ); my $sql = "SELECT Subject,body,article_id,Born FROM news WHERE visibility is NULL ORDER BY article_id LIMIT 500"; my $sth = $dbh->{dbh}->prepare($sql); $sth-&

[PHP] why doesn't $books[$val][display] show the value

2002-05-09 Thread Peter J. Schoenster
nd_keys = array_rand ($books, 2); while (list ($key, $val) = each ($rand_keys)) { $display = $books[$val][display]; Why do I have to do this: $display = $books[$val][display]; rather than $html.= " Yaddda yadda $books[$val][display]"; $books[$val][display] in th

Re: [PHP] Re: why doesn't $books[$val][display] show the value

2002-05-09 Thread Peter J. Schoenster
example. Note the single quote for the literal. I myself prefer{} and I'll single quote all literals contained therein. And then this is a nice page which kind of goes over the problem. I've got a dense head and don't fully understand it all. http://www.zend.com/ze

Re: [PHP] protecting downloads with php

2002-05-12 Thread Peter H. Lemieux
) or by HTTP upload, you'll find the file's MIME type in the session headers. Since most people's mail or web client runs on the same machine as their application, these headers are usually pretty accurate. Peter - Original Message - From: "Nick Wilson" <[EMAIL P

[PHP] Re: [PEAR] [HTML_Form] cant change values in array after getAll()

2002-05-31 Thread Peter TB Brett
ld output a blank page (no array members, therefore no iterations). However, script1.php output a list of numbers from 0 to when I terminated script execution by pressing Ctrl-C. Try checking your iteration conditions and try again. ;-) Sorry if I'm barking up the wrong tree

[PHP] Re: [PEAR] [HTML_Form] cant change values in array after getAll()

2002-05-31 Thread Peter TB Brett
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ooops, incorrect scripts. Let's try again: --script1.php-- // for loop as in Zachery's example --script2.php-- // modified for loop That's much better. ;-) Peter Brett - ---

[PHP] how to use PHP on command line in windows

2002-03-01 Thread Peter J. Schoenster
Hi, I use NT for development and I like to write snippets of code and test them on my local box. I can do this in Perl. How can I do that in PHP without installing a webserver etc. etc. I guess I can install a version of PHP and just make sure I've got the path in my env. Thanks, Peter

[PHP] how to sort by value in associative array

2002-04-06 Thread Peter J. Schoenster
f ($a[2] == $b[2]) return 0; //return strcmp ( $a[2], $b[2]); // thought this would work return ($a[1]>$b[1])?1:-1; } uksort ($ArrayOfNewsLinks, "cmp"); But then I do this: while (list ($key, $val) = each ($ArrayOfNewsLinks)) { $NewsLinks .= " $val[title] ";

Re: [PHP] Re: how to sort by value in associative array

2002-04-06 Thread Peter J. Schoenster
On 6 Apr 2002, at 14:38, Chris Adams wrote: > On Sat, 6 Apr 2002 10:36:18 -0600, Peter J. Schoenster > <[EMAIL PROTECTED]> wrote: > > $ArrayOfNewsLinks = array( > > "http://dailynews.yahoo.com/fc/World/Brazil/"; => array( > > title => &

Re: [PHP] mailing list using mail()

2002-04-10 Thread Peter H. Lemieux
sender and $name for each recipient $sendmail="/usr/sbin/sendmail -odq -t -i -f$sender '$name'"; # construct the header $headers= "Sender: $sender From: $from To: $to Subject: $subject "; # mail the message (write to sendmail socket; queue for delivery) $sm=pope

<    13   14   15   16   17   18   19   >