RE: [PHP] php editor

2003-09-11 Thread Robert Cummings
*ROFL* Rob. On Thu, 2003-09-11 at 12:54, Chris Hubbard wrote: > I think the BEST php editor "out there" is Microsoft's Visual Studio. > Here's some of the reasons I think Visual Studio is the BEST > 1. None of that annoying syntax highlighting that you find in many other > editors > 2. Unlimite

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Robert Cummings
Proper HTML attribute values are surrounded by double quotes. Otherwise in sloppy mode, the HTML parser sees the pace between Hello and 1 and things a new attribute by the name of 1 has been encountered. Cheers, Rob. On Thu, 2003-09-11 at 13:05, Golawala, Moiz M (IndSys, GE Interlogix) wrote: > I

RE: [PHP] Escaping the " ' " character

2003-09-11 Thread Robert Cummings
*chuckle* this explains your responses to me. In this new light I apologize for my condescending responses. Cheers, Rob. On Thu, 2003-09-11 at 20:17, Dan Anderson wrote: > > You've completely misread and misinterpreted Robert's comments. He > > didn't say he didn't want to read posts he wasn't i

Re: [PHP] Cookie advice

2003-09-12 Thread Robert Cummings
I don't think there's any kind of consensus :) But to perhaps lead you in the right direction... how long do you think should pass before someone who logged in once before will log in again? if you expect a longer than 30 day time period, then 30 days is too short. If you expect within a week or 2

Re: [PHP] Calling functions from Button actions

2003-09-12 Thread Robert Cummings
Any form system (I'm guessing, but I only use my own so I could be mistaken) that allows custom validation should enable trivial function calling based on a button click. Cheers, Rob. On Fri, 2003-09-12 at 18:29, Dan J. Rychlik wrote: > Is their an easy way to call a function based upon a button

Re: [PHP] square brackets in form names violate HTML specs?

2003-09-13 Thread Robert Cummings
On Sat, 2003-09-13 at 17:21, Eugene Lee wrote: > On Sat, Sep 13, 2003 at 06:15:29PM +, Curt Zirzow wrote: > : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): > : > Something I've noticed in PHP is a proliferation of code like this: > : > > : > > [...] > : The way to properly do it would be to

Re: [PHP] What is wrong with this code ?

2003-09-15 Thread Robert Cummings
On Mon, 2003-09-15 at 15:29, Daniel Szasz wrote: > Hello > > What is wrong with this code ? > > $doWork = $_GET[doWork]; This is sloppy, put the quotes around the key string "doWork". > echo $doWork; > echo ( ""); > if ( $doWork = 0) { You just assigned 0 to $doWork, try using 0 == $doWork >

Re: [PHP] How to comment out chunk of html/php mixed code?

2003-09-15 Thread Robert Cummings
You might try the following: This is untested, I've never had to face the issue. Cheers, Rob. On Mon, 2003-09-15 at 15:59, Wei Wang wrote: > hi, > > This may sound very newbie. But since html comment uses which doesn't > comment out the > php code. And the php comment /**/ // apparently do

Re: [PHP] Re: PHP|Con insane pricing

2003-09-15 Thread Robert Cummings
I've been hearing a lot lately about online donations. People setting up paypal or whatnot accounts to have people donate for new boobies, new clothes, new whatever. Maybe you could set up a paypal donation fund for people to help pay your way there. Now admittedly it's not going to be all the rave

RE: [PHP] PHP|Con insane pricing

2003-09-16 Thread Robert Cummings
I don't know, the Ottawa Linux Symposium runs in Ottawa Canada each year. They usually run about 5 days and rent multiple rooms. The cost to non-students (this year): $325 CAD ($217 USD). That's less than half the price of PHP|Con. Cheers, Rob. On Tue, 2003-09-16 at 09:31, Dan Joseph wrote: > Hi

Re: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Robert Cummings
This isn't tested, but should work :) // $to = ''; $subject = ''; $message = ''; $matches = array(); $data = file( $file ); foreach( $data as $id => $line ) { if( ereg( '^(.*)$', $line, $matches ) ) { $to = trim( $matches[1] );

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Robert Cummings
he same thing over and over if > there is a way to avoid it. :) > > sa > > > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 16, 2003 12:05 PM > To: Susan At

RE: [PHP] Using system

2003-09-17 Thread Robert Cummings
Backtick style gets you the output... $passwords = `cat /etc/passwd`; Cheers, Rob. On Wed, 2003-09-17 at 09:55, esctoday.com | Wouter van Vliet wrote: > Don't think there's one function for it .. Though, you may want to try the > output buffers. > > ob_start(); > ( .. Exec here ..) > $Var = o

Re: Re[2]: [PHP] Using system

2003-09-17 Thread Robert Cummings
Uros, Run the command from the shell prompt and check your grep against the output. Cheers, Rob. On Wed, 2003-09-17 at 10:49, Uros wrote: > Hello Robert, > > I think not > > here is my code > > #!/usr/local/bin/php -q > $ret = `nslookup -timeout=3 www.myhost.com

[PHP] [ANNOUNCEMENT] InterJinn Application Framework for PHP

2003-09-18 Thread Robert Cummings
I am pleased to announce the premier release of the InterJinn Application Framework for PHP. http://www.interjinn.com. This has been a lengthy endeavour I undertook some time ago to provide a useful framework for quickly creating powerful Web (and shell) applications. InterJinn makes its debu

Re: [PHP] PHP vs CGI ???

2003-09-19 Thread Robert Cummings
PHP comes in three major compilations: module, CGI, and CLI. The module only works for web server (that I know of) and is the fastest way to serve PHP based content from a web server. CGI can be run for either the shell, or from the web server. There is a performance hit when run from the web serve

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Robert Cummings
Here's an idea... echo each of the values and see what they actually contain. While you grab $pagename from $_GET, where are you getting $HTTPS? Is it a superglobal too? Maybe it's $_SERVER['HTTPS'] Cheers, Rob. On Fri, 2003-09-19 at 10:57, PHP wrote: > Jay, good guess, but wrong! While register

[PHP] Problem with getting non-blocking data from stdin

2003-09-19 Thread Robert Cummings
I wanted t play around with the CGI (not CLI) version of PHP and get a feel for the I/O stuff, specifically STDIN. So I whipped up the following script: /// #!/usr/bin/php -qC http://www.interjinn.com | :-

Re: [PHP] Problem with getting non-blocking data from stdin

2003-09-19 Thread Robert Cummings
On Sat, 2003-09-20 at 00:59, Dan Anderson wrote: > Why are you using php:// below? If stdin is a file './stdin' will Because it is the correct way to retrieve input from standard input. http://www.php.net/wrappers.php > suffice (or the path instead of ./). If you want to run the PHP script

Re: [PHP] Problem with getting non-blocking data from stdin

2003-09-19 Thread Robert Cummings
On Sat, 2003-09-20 at 01:01, Dan Anderson wrote: > One more thing: > > gdb doesn't do a damned thing for debugging PHP scripts. Look for the > errors and warnings output to the browser. (or tty if you're using > /usr/bin/php). Oh you had to tie another on on. I guess I look really stupid. Hmm

Re: [PHP] Problem with getting non-blocking data from stdin

2003-09-19 Thread Robert Cummings
On Sat, 2003-09-20 at 01:52, Curt Zirzow wrote: > * Thus wrote Robert Cummings ([EMAIL PROTECTED]): > > I wanted t play around with the CGI (not CLI) version of PHP and get a > > feel for the I/O stuff, specifically STDIN. So I whipped up the >

Re: [PHP] Problem with getting non-blocking data from stdin

2003-09-19 Thread Robert Cummings
On Sat, 2003-09-20 at 02:02, Curt Zirzow wrote: > hmm.. on second thought... > > * Thus wrote Robert Cummings ([EMAIL PROTECTED]): > > [...] > > if( ($char = fread( $stdin, 1 )) !== false ) > > How are you calling this script? I'm not sure how cgi

Re: [PHP] Problem with getting non-blocking data from stdin

2003-09-19 Thread Robert Cummings
On Sat, 2003-09-20 at 01:53, Dan Anderson wrote: > I find your responses to my e-mails quite humorous. Upon review -- > aside from a single WTF -- I don't think I was condescending in any way > shape or form. I was just trying to offer help. The particular shape of your help was non newbie frien

Re: [PHP] session_start() || shell access problem......

2003-09-20 Thread Robert Cummings
On Sat, 2003-09-20 at 15:46, CF High wrote: > Hey all. > > I'm running a script from the command-line php interpreter as follows: > (thanks to D. Souza for lead) > > $text = `usr/local/bin/php /path/to/my/php/page.php`; > > within the read file I want to enable sessions, so I session_start() at

Re: [PHP] Class inheritance behaviour

2003-09-21 Thread Robert Cummings
Method overriding is one of the core principles of any Object Oriented (OO) language. By having second_class extend first_class you get all the functionality of first_class, but generally you extend a class because you want to inherit all of the functionality with a few differences. For this reason

Re: [PHP] Class inheritance behaviour

2003-09-21 Thread Robert Cummings
Are you looking to create a single point of access to any libraries your application may wish to use and to subsequently base this on a singleton pattern (only one instance of the object may exist?)? Rob. On Sun, 2003-09-21 at 13:18, Gerard Samuel wrote: > Robert Cummings wrote: > >

Re: [PHP] Class inheritance behaviour

2003-09-21 Thread Robert Cummings
On Sun, 2003-09-21 at 14:10, Gerard Samuel wrote: > Robert Cummings wrote: > > >Are you looking to create a single point of access to any libraries your > >application may wish to use > > > Yes. Instead of juggling 5-6 objects, just move around one object. > > &

Re: [PHP] php|cruise

2003-09-21 Thread Robert Cummings
On Sun, 2003-09-21 at 15:25, Becoming Digital wrote: > > I think this is the ONLY PHP conference she'd ever > > agree to going to. > > I think this is also the ONLY cruise on which single guys won't > find a fling. I smell a sausage party! ;) While I'm not gay myself, I think you've overlooked

Re: [PHP] non-php issue

2003-09-21 Thread Robert Cummings
On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote: > relax guys, > > I have been dying to say "You can fix all of your problems by > formatting your computer and installing a linux distribution." On this > list for ages :-) > > but the fact remains that an out of the box installation of

Re: [PHP] non-php issue

2003-09-21 Thread Robert Cummings
On Mon, 2003-09-22 at 01:08, Robert Cummings wrote: > On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote: > > relax guys, > > > > I have been dying to say "You can fix all of your problems by > > formatting your computer and installing a linux distributi

Re: [PHP] non-php issue

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 03:10, Curt Zirzow wrote: > > hm.. is this a bad time to mention vi? > What would you mention about it? Everyone knows joe is the best editor in the world -- *cough* back on topic -- the best editor for PHP source and everything else *GRIN*. Rob. -- .-

Re: [PHP] non-php issue

2003-09-22 Thread Robert Cummings
> wishes | www.amazon.com/o/registry/EGDXEBBWTYUU > > > - Original Message - > From: "Robert Cummings" <[EMAIL PROTECTED]> > To: "Raditha Dissanayake" <[EMAIL PROTECTED]> > Cc: "Peter James" <[EMAIL PROTECTED]>; "PHP-General

Re: [PHP] non-php issue

2003-09-22 Thread Robert Cummings
, tops). Besides, this > particular comparison is fundamentally flawed anyway... you don't have > to restart windows to install PHP, Apache, or MySQL. > > But now I'm just splitting hairs, so I'll stop. :-) > > Cheers, > Pete. > > Robert Cummings wrote:

Re: [PHP] Re: PHP Editor - which to use?

2003-09-22 Thread Robert Cummings
I find having a virtual host for development to be best when viewing your handiwork as you develop it. It provides the convenience of actually running the PHP code, and makes it simple to preview the content in the most popular browsers to check for incompatibility issues. Then you can use any text

Re: [PHP] problem with external command.

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 13:14, Jeremy Russell wrote: > Hello list... Im fighting a losing battle here.. > > I'm needing help! > > Everything seems to work fine with this function except that when the > command runs and is to populate the "$scan_result" field. It doesn't Im > not sure why either.

Re: [PHP] Q on class failure...

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 13:25, jsWalter wrote: > > "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > hi, > > > > It's generaly considered that constructors are supposed return an > > instance of that class. Use a factory instead if you want to return nulls; > >

Re: [PHP] Calling PHP shell scripts with exec from within PHP goes awry?

2003-09-22 Thread Robert Cummings
On Sun, 2003-09-21 at 22:00, Ray Hunter wrote: > On Mon, 2003-09-22 at 19:50, uvm wrote: > > I'm beggining to develop the theory that things go awry when > > using exec from within a webserver-executed PHP script to call > > a shell script itself written in PHP. > > > > Why are you trying to c

Re: [PHP] PHP Editor - which to use?

2003-09-22 Thread Robert Cummings
On Mon, 2003-09-22 at 22:08, [EMAIL PROTECTED] wrote: > Best PHP Editor on the market: called "Notepad". Written by a tiny little > software dev company called Microsoft. Very nicely written, compared to the rest > of their software. Nh, a slightly larger company named Microsoft Inc. created

RE: [PHP] Calling PHP shell scripts with exec from within PHP goes awry?

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 07:47, Jay Blanchard wrote: > [snip] > The example that I'm really trying to do might be too complicated for > presentation here, but here's a simplified version. > > Take the shell script "helloWorld.php": > > #!/usr/local/bin/php -q > > [/snip] > > I could n

Re: [PHP] php and checkboxes

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 08:17, Angelo Zanetti wrote: > Hi all, > > I have a table that gets populated from records of a DB. every row in the > table has a checkbox and the items desc. I want the user to select the items > they want and then they click on a link which registers the items they've > se

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 14:01, Javier Muniz wrote: > What I meant was not the implementation, what I meant was that there was no > way for the compiler/parser to know whether I was implementing position() > from the Employee interface or the BoardMember interface, the declaration > was ambiguous. I

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
It doesn't get much simpler :) foreach( $data as $key => $value ) { if( $value == '' ) { $data[$key] = ' ' } } Cheers, Rob. On Tue, 2003-09-23 at 16:38, Chris W. Parker wrote: > Hey people. > > I've got an array like this: > > > [0] => Array > ( > [

Re: [PHP] Running system commands

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 16:34, Mike Migurski wrote: > >I was wondering, if anyone can help me with running system commands from > >within php. Actually I have a script which deletes users from my database > >(which is of course MySQL), now I want to delete those users from system > >level also, as th

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:06, Pete James wrote: > Of course, you could do it in a much more cryptic way... just for fun. > AKA Perl style ;) -- .. | InterJinn Application Framework - http://www.interjinn.com | :-

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Robert Cummings
On Wed, 2003-09-24 at 16:22, Martin Raychev wrote: > Hi! > > I am kind of newbie coming from ASP and I came upon some hindrances, which > could be because of not knowing enough of PHP > > The problem is: > I am trying to make a form with good and user-friendly validation. After > failure to valid

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: > On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: > : > : Robert Cummings <mailto:[EMAIL PROTECTED]> said: > : > > : > foreach( $data as $key => $value ) > : > : I don't use that syntax

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Robert Cummings
On Wed, 2003-09-24 at 20:46, Martin Raychev wrote: > Hi Jason, > > it's not the code snip that is important but the fact that I DO have to have > header(Location...) statement BEFORE anything else on the second php page. This is incorrect. You MUST have the header( ... ) BEFORE any statement that

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Robert Cummings
On Wed, 2003-09-24 at 08:12, Marek Kilimajer wrote: > I bet you don't indent your code either. And all white characters are > useless too, they only slow interpreter down. Good coder will understand > this at a glimpse: > if($pos_params!=false){$back_url=substr($HTTP_GET_VARS['origin'],0,$pos_par

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Robert Cummings
On Wed, 2003-09-24 at 09:43, Curt Zirzow wrote: > * Thus wrote Didier McGillis ([EMAIL PROTECTED]): > > alot easier for me with the returns and tabs. What I do is I have a script > > that strips out any space, tabs, carriage returns and then moves the code > > into the production environment. B

Re: [PHP] [AWF-TOPIC] PHP Editor - which to use?

2003-09-24 Thread Robert Cummings
On Wed, 2003-09-24 at 09:51, Curt Zirzow wrote: > > cat | realprogrammer > Dear sir, I am a complete newbie to PHP and have never seen the cat or realprogrammer programs. Could you please send me detailed documentation on how each works and where I can find a free copy. Also what does the | do i

Re: [PHP] Casting nulls

2003-09-24 Thread Robert Cummings
In the time you've waited for an answer so far, you could have made yourself a 3 line script to find out. Rob. On Wed, 2003-09-24 at 11:30, Carl Furst wrote: > IF $int is null and I have a test > > If($int < 1) { > //do some foobar > } > > will $int be evaluated as a zero? IF I cast (int) $int

Re: [PHP] Re: date problem

2003-09-24 Thread Robert Cummings
>From the documentation: http://ca2.php.net/manual/en/function.mktime.php "Date with year, month and day equal to zero is considered illegal (otherwise it what be regarded as 30.11.1999, which would be strange behavior)." I think the point here to think about is that the date()

Re: [PHP] Netcraft

2003-09-25 Thread Robert Cummings
You can see what they see using telnet (which incidentally suggests you can use a PHP script that opens a socket connection on port 80 to get the information). The commands in telnet are as follows: telnet www.interjinn.com 80 HEAD / HTTP/1.0 That will give you the OS, web server, and any PHP in

Re: [PHP] Q on Class, inhertance, ec... (a bit long)

2003-09-25 Thread Robert Cummings
class FOO { function Fred() { echo "Fred in FOO"; } } class BAR { function Fred() { echo "Fred in BAR"; } } class BAZFactory {

Re: [PHP] Netcraft

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 11:25, Christophe Chisogne wrote: > > That method is not reliable, as you can see. Other methods exist > to check OS (fingerprinting) etc. But it remain quite complex. > (round-robin DNS, load balancing, caching servers, firewalls...) Maybe not, but it's the method that Netcr

Re: [PHP] for loop break and continue

2003-09-25 Thread Robert Cummings
Take the sample code below, paste it to a PHP file, add a real conditional, execute script. Voila, you've taken the first step towards helping yourself. Cheers, Rob. On Thu, 2003-09-25 at 11:42, Rich Fox wrote: > Hi, > Is there an equivalent to the C++ 'break' command to stop execution of a for

Re: [PHP] for loop break and continue

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 12:04, Rich Fox wrote: > DOH! > > This is a new addition to PHP because it wasn't there before! > > Thanks for the slap. PHP has supported break for as long as I can remember which goes back to about 1999 and PHP 3.something. Cheers, Rob. -- .

Re: [PHP] Help understanding code...

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 12:47, Jeff McKeon wrote: > I've just picked up a more advanced book on PHP and it has a lot of > example code in it. I understand most of it but some things I'm seeing I > don't understand. Like the following... > > code: > -

Re: [PHP] One variable not equal to 2 values.

2003-09-25 Thread Robert Cummings
Another version that is logically correct unlike some of the others I saw :) if( !($thisvar == "this value" or $thisvar == "that value") ) { // stuff to do. } Cheers, Rob. On Thu, 2003-09-25 at 14:59, Cesar Cordovez wrote: > But then... you have to use "and" not "or" > like: > > if (($this

RE: [PHP] Help understanding code...

2003-09-25 Thread Robert Cummings
This isn't quite true. The strcmp() functions return 0, or false, when the strings are equal. Thus the ! ensures that the expression evaluates to true when the strings are equal. Cheers, Rob. On Thu, 2003-09-25 at 15:03, Giz wrote: > ! (not) reverses the value of the Boolean expression which fol

Re: [PHP] Pause Timer ()

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 15:11, Dan J. Rychlik wrote: > Is their a pause timer or timer function in PHP to pause a script for a certain > amount of seconds? Same as for almost every programming language under the sun: http://www.php.net/manual/en/function.sleep.php Cheers, Rob. -- .--

Re: [PHP] Reading Form Buttons

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 15:39, Dan J. Rychlik wrote: > Oh, so its the same as reading post data from form fields. Cool. That > makes it easy. For the most part, but only the button submitted will be posted to your web server which is why you need to check for isset() Cheers, Rob. -- .---

RE: [PHP] What to use?

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 16:28, Jeff McKeon wrote: > Correct me if I'm wrong please, but I think number_format() has the > adverse effect of changing the value type from numeric to char and > therefore baring you from using it in mathematical equation later in the > script. > > Anyway that's what it

Re: [PHP] What to use?

2003-09-25 Thread Robert Cummings
*slaps self* Yep, forgot about that part of number format :) Rob. On Thu, 2003-09-25 at 16:51, CPT John W. Holmes wrote: > From: "Robert Cummings" <[EMAIL PROTECTED]> > > > On Thu, 2003-09-25 at 16:28, Jeff McKeon wrote: > > > Correct me if I'm wrong p

Re: [PHP] One variable not equal to 2 values.

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 19:49, Curt Zirzow wrote: > * Thus wrote Ed Curtis ([EMAIL PROTECTED]): > > > > How would I write this statement: > > > > if $thisvar is not equal to this value or that value. { do stuff } > > > > Ok. I have to throw this in for historical purposes :) > > switch ($thisv

Re: [PHP] Form Passed Multidimension Array

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 22:33, Keith Spiller wrote: > Hello, > > I am trying to find out how to pass a multidimensional array within a hidden input > of a form. > Would it be something like this? > > > > Any advice would be forever appreciated... The following might work: echo ''; Cheers, R

RE: [PHP] str_pad

2003-09-26 Thread Robert Cummings
On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote: > Just learning PHP and figuring out all the syntax and stuff. Anyway I > had a question about the code example in this post... > > What does the "->" do in: > > $dbranch = str_pad($line->dbranch_no, 6, '', STR_PAD_LEFT); > > Is dbranch_no a "clas

RE: [PHP] str_pad

2003-09-26 Thread Robert Cummings
On Fri, 2003-09-26 at 11:18, Robert Cummings wrote: > On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote: > > Just learning PHP and figuring out all the syntax and stuff. Anyway I > > had a question about the code example in this post... > > > > What does the "->&

Re: [PHP] What is the proper way to use mysql db on a multipage site?

2003-09-26 Thread Robert Cummings
Mostly a matter of preference I would say. Cheers, Rob. On Fri, 2003-09-26 at 16:10, Daevid Vincent wrote: > I sent this to php-db with no reply, so I'll try it here then... > > > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 24, 2003

Re: [PHP] Array question

2003-09-27 Thread Robert Cummings
On Sat, 2003-09-27 at 12:18, Robin Kopetzky wrote: > Good morning all!! > > Can you nest an array within an array?? > > Example: $paArgs['aCheckBoxes[$iIndex]['sName']'] You mean can you retrieve an array entry by giving a key defined by a value in another array? To do so remove the outer quotes

Re: [PHP] IIS Ports

2003-09-27 Thread Robert Cummings
The short answer (and a good way to start a flamewar ;) install linux :) Cheers, Rob. On Sat, 2003-09-27 at 16:31, Stephen Craton wrote: > This is kind of off topic but kind of not, it's your call. My brother came > home this weekend from college this weekend acting all cool since he has > been

Re: [PHP] apache logs reset at midnight

2003-09-27 Thread Robert Cummings
You sure you don't have a cron that run every night and rotates the log files such that the previous day's is archived? Rob. On Sat, 2003-09-27 at 16:49, John Ryan wrote: > for some reason, my apache log files reset every night at 12, whihc i dont > want. how do i change this in the apache httpd.

RE: [PHP] IIS Ports

2003-09-27 Thread Robert Cummings
r doesn't know linux then he would suddenly be at a disadvantage since he wouldn't know all the exploits, or even much of the way things work. But mostly, I was trolling. Cheers, Rob. > > -M > > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED]

Re: [PHP] register_globals won't turn off!

2003-09-27 Thread Robert Cummings
Are you using third party code that might be doing the export to global space itself? Rob. On Sat, 2003-09-27 at 22:21, Damon Kohler wrote: > No, it's not cached. I can type in anything to the input and it'll show up. > As in, if I type "test" into the form, it prints test. Then if I type "hello

Re: [PHP] where are the good examples of using OOP?

2003-09-28 Thread Robert Cummings
On Sun, 2003-09-28 at 07:09, Burhan Khalid wrote: > anders thoresson wrote: > > > I'm just about to take the first step into OOP with PHP. I've searched > > the web for tutorials, and even if there are alot, most of them use > > metaphores with houses or cars or other real life things to explai

Re: [PHP] General .htaccess question

2003-09-28 Thread Robert Cummings
In your 404.php script, add a line like error_log( '404.php invoked' ), then check your log. Cheers, Rob. On Sun, 2003-09-28 at 20:53, Mike Brum wrote: > I think I know the answer to this, but want some confirmation from someone a > bit more knowledgable about Apache and .htaccess files. > > My

Re: [PHP] General .htaccess question

2003-09-28 Thread Robert Cummings
On Sun, 2003-09-28 at 21:09, Robert Cummings wrote: > In your 404.php script, add a line like error_log( '404.php invoked' ), > then check your log. Must be getting sleepy, I read the question below as "does 404.php get read on every request". Whoops. Cheers, Rob. >

Re: [PHP] PHP coders spare time [OT}

2003-09-28 Thread Robert Cummings
On Sun, 2003-09-28 at 21:50, Curt Zirzow wrote: > And what they do with it... > > http://zirzow.dyndns.org/html/mlists/php_general/ *heheh* Most popular threads is funny, in the #3 slot is "non-php issue". LMAO Rob. -- .. | InterJinn A

Re: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 15:22, Chris wrote: > I am working on a fairly large scale (for myself anyway) project using PHP > and MySQL. I am victim of teaching myself to program, not separating > presentation from my code-- all the things that lead to masses of spaghetti > code so atrocious even I c

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 17:12, Vail, Warren wrote: > > IMHO, the first test of any code, is does it do what is should accurately, > and speedily (in that order), after that what you have left is a > programmer's best effort at producing something that others can read. > Adding cpu cycles so that it

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 17:49, Chris wrote: > > Certainly. This is not a theoretical exercise but frustration with > dealing with my own code, trying to implement revisions, and basically > feeling like I need a map of some kind to know where I am. > > That's why I'm interested in what other peop

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 19:10, Chris L wrote: > [EMAIL PROTECTED] (Robert Cummings) wrote in > news:[EMAIL PROTECTED]: > > > Regardless of the framework or library or whatever you choose, you > > WILL have to adapt to it to some degree. Whether that be style-wise or > >

RE: [PHP] Cleaning up my messy code

2003-09-29 Thread Robert Cummings
On Mon, 2003-09-29 at 20:27, Chris L wrote: > [EMAIL PROTECTED] (Robert Cummings) wrote in > news:[EMAIL PROTECTED]: > > > > *heh* I like being able to look at project 2 and say to myself, hmm > > needs an authentication just like project 1, but with a different > &

[PHP] dba_open cannot write

2003-09-30 Thread Robert Covell
I am trying to write data to a db3 alias file that sendmail uses (made a copy for testing). When I read the file using: $id = dba_open ("aliaseswww.db", "r", "db3"); It works. But when I try to change it to: $id = dba_open ("aliaseswww.db", "w", "db3"); I get: dba_open(aliaseswww.db,w): Driv

Re: [PHP] your method for validating forms

2003-10-01 Thread Robert Cummings
InterJinn works something like this for it's FormJinn engine. So I'd say it sounds quite good :) Cheers, Rob. On Wed, 2003-10-01 at 19:43, Chris W. Parker wrote: > Hey people. > > I'm trying to come up with an easy way to validate forms. I've got an > idea and I'd like your feedback as well as s

Re: [PHP] Re: your method for validating forms

2003-10-01 Thread Robert Cummings
On Thu, 2003-10-02 at 01:57, Manuel Lemos wrote: > > I suppose that you missed the point that the class provides you to do > both client side and server side validation in cases that it is possible. > [--CROPPED--] > I don't think that hardware speed will make the Internet connections any > f

Re: [PHP] Create from PHP on the Fly???

2003-10-02 Thread Robert Cummings
On Thu, 2003-10-02 at 10:36, Jeffrey Fitzgerald wrote: > > Can this be done? How much $$$? Quality of PDF?? Thanks very much... Yes it can. Depends on the chosen solution. Depends on the chosen solution. An easy to use system is htmldoc which can convert HTML content to a PDF. This does

RE: [PHP] Re: your method for validating forms

2003-10-02 Thread Robert Cummings
Heeey, a great little response like this to see an alternative to a popup and no link for us to check it out *pffft* Where'd you learn your posting manners? Were you brought up in a web barn? *grin*. Wouldn't happen to know the URL still would ya? Cheers, Rob. On Thu, 2003-10-02 a

Re: [PHP] [AWF-TOPIC] Create from PHP on the Fly???

2003-10-02 Thread Robert Cummings
On Thu, 2003-10-02 at 14:48, Evan Nemerson wrote: > > I think Jay probably understands, but for those who don't, > http://www.gnu.org/philosophy/free-sw.html > The problem with this kind of freedom (puts fiery backdraft gear on) is that it enables an entity with more resources than the original

Re: [PHP] Re: your method for validating forms

2003-10-02 Thread Robert Cummings
On Thu, 2003-10-02 at 16:19, Curt Zirzow wrote: > > The only draw back is the javascript becomes bloated because of all > the different browser conditions. Is it IE, NS, Opera, other? and > what version are they? Which is the nice thing about handling > server side, no need to worry about browse

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 07:21, Terence wrote: > > The publication of the project itself was partially motivated by the > discussions that took place in this thread (A Complete List of PHP > Template Engines?) which basically sees me arguing for the usage of > standards (XSLT) rather than having t

RE: [PHP] [AWF-TOPIC] Create from PHP on the Fly???

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 07:58, Jay Blanchard wrote: > [snip] > >>I think Jay probably understands, but for those who don't, > >>http://www.gnu.org/philosophy/free-sw.html > > Quite frankly i don't mind people using anything that i open source in > commercial applications. When i do mind i don't re

Re: [PHP] Committing OO Sin

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 10:23, Gerard Samuel wrote: > Or is there such a thing. ;) > I have a small collection of utility classes, and it seems like the more > I add, > the more cumbersome things seem to get. > A brief synopsis of code execution. > 1. Start DB class > 2. Start Smarty class, passi

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Robert Cummings
as had, for example. :-) > > > > Something like this: > http://zirzow.dyndns.org/html/mlists/php_general/ > > I had to build some cache tables, grouping 141852 records on the > fly just wasn't fast enough, excpecially for my 233. Woohoo, I go thte top 3 ^robert p

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Robert Cummings
lating system which I prefer much more. Mind you, in all honesty, XSLT support can be plugged into my templating engine if I wanted without any adaptation to the engine itself. Cheers, Rob. > > > Robert Cummings wrote: > > >On Fri, 2003-10-03 at 07:21, Terence wrote: > >

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 11:31, [EMAIL PROTECTED] wrote: > Age old question...? > Please don't flame if it is > > I currently remember my visitors on my site by setting a cookie thusly: > > setcookie("logged", "yes"); > > On each protected page, put an IF ($logged == "yes") { //show page etc }

Re: [PHP] set the PHP to look at library files.

2003-10-03 Thread Robert Cummings
See the "include_path" setting in your php.ini file. Cheers, Rob. On Fri, 2003-10-03 at 11:35, Golawala, Moiz M (IndSys, GE Interlogix) wrote: > Hi, > > I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of > my scripts use a bunch of open source libraries. Until

Re: [PHP] Committing OO Sin

2003-10-03 Thread Robert Cummings
r and uglier in my case. > I have to stop and rethink about how to make classes work together better. > Robert Cummings made a suggestion to me in an earlier topic about > singleton patterns, > and again, in this topic about frameworks (basically a design pattern > from what I'

RE: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > [snip] > is it possible to count a size of a dir and all sub dirs in php ? and > if, > how? > [/snip] > > $foo = exec("du -h"); > Hmmm this solution would appear to include the file sizes :D Rob -- .-

Re: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 15:02, Gabriel Guzman wrote: > On Friday 03 October 2003 11:48 am, Robert Cummings wrote: > > On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > > > [snip] > > > is it possible to count a size of a dir and all sub dirs in php ? and > &

<    1   2   3   4   5   6   7   8   9   10   >