Re: [PHP] class/object design

2003-10-14 Thread Robert Cummings
On Tue, 2003-10-14 at 19:51, Chris W. Parker wrote: > Hey peeps. > > Let me try to make this simple. Right now I have a base db class that is > moved solely for interacting with the db. It opens the connection, runs > queries, and returns the results of those queries. Along with this class > I've

Re: [PHP] Anyone know a way of converting a timestamp value into something readable?

2003-10-14 Thread Robert Cummings
See the documentation on the date() function. Cheers, Rob. On Tue, 2003-10-14 at 23:29, richard cook wrote: > Thank you > > R > -- .. | InterJinn Application Framework - http://www.interjinn.com | :

Re: [PHP] Is this possible?

2003-10-16 Thread Robert Cummings
Write a small script and see. Rob. On Thu, 2003-10-16 at 11:36, Joseph Bannon wrote: > Is it possible to set two variables at once like this... > > $test = $variable = 5; > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- .--

Re: [PHP] php site

2003-10-16 Thread Robert Cummings
On Thu, 2003-10-16 at 12:42, Lai, Kenny wrote: > hey, does anyone have any good links they use for their php references? > > i'd also like to know how most people approach coding php from an OOP > standpoint Not that I'm plugging for you to use InterJinn (though you can feel free) you can see how

Re: [PHP] Alternative to die()????

2003-10-16 Thread Robert Cummings
On Thu, 2003-10-16 at 14:44, Scott Fletcher wrote: > I am wondering if there is an better alternative to the die() because it > prevent the HTML codes from being send to the browser, including some php > echo codes with HTML in it. You can use exit() Cheers, Rob. -- .

Re: [PHP] Use of Objects in PHP

2003-10-16 Thread Robert Cummings
On Fri, 2003-10-17 at 01:43, Nagib Abi Fadel wrote: > Hi, > i have been using php for 1 year till now, and i never > felt the need to use an object. > > Can some one tell me where and why should i use the > object oriented coding in PHP ? > I meen i have been able to do all the things i want > wit

Re: [PHP] (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-17 Thread Robert Cummings
You announced this already on Wednesday. So re-announcing the same version seems kinda redundant. Cheers, Rob. On Fri, 2003-10-17 at 12:19, John Black wrote: > Greetings everyone, > We have just launched a new product called codeSECURE and would like you to > check it out. > > [--CLIPITTY CLIP C

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 12:57, Bas wrote: > I want a login system with sessions and without mysql. > > I have tried to make one but that one is without sessions(i don't know > anything about sessions) and with mysql... InterJinn supports file based sessions, but you'll hafta write your own login si

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
on't use such things like your interjin... > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > On Fri, 2003-10-17 at 12:57, Bas wrote: > > > I want a login system with sessions and without mysql. > > > > >

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 13:31, Bas wrote: > > I want to try that InterJinn out but... is it free? It is free for non-revenue generating purposes. http://www.interjinn.com/licenses/public.phtml Otherwise there's an inexpensive license. Cheers, Rob. > "Robert Cummings

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 13:39, Bas wrote: > Do you mean non-commercial? i plan to use it at home to test some websites > and showing them to my friends The term "non-commercial" was purposefully not used in the license because it is too narrow of a definition. The license should be quite clear on wh

RE: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 14:02, Jay Blanchard wrote: > [snip] > Which one does not use mysql and is free? > > > Forget about what you want. Here's what you need: > > http://www.php.net/manual/en/ref.session.php > > http://www.phpclasses.org/goto/browse.html/class/21.html > > http://www.devarticles.c

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 14:10, Bas wrote: > And also... the interjinn website wont open... Whaddaya mean it won't open? Are you smoking crack :l Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :--

Re: [PHP] Filemanager v1.0

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 15:49, CPT John W. Holmes wrote: > From: "Ryan A" <[EMAIL PROTECTED]> > > > and another thing, don't ask John H for help (or sarcastic comments)... > > that too is reserved just for me. > > You have been warned > > This John H guy sounds like a dick. Someone should boot

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 16:29, Frank Tudor wrote: > I have found some great code that handles errors through > PHP_SELF > > However I have radio buttons and drop down selections that I > cannot do a $_POST (the POST only works on my text fields). > > Does someone have some sample code that can chec

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 18:49, John W. Holmes wrote: > Robert Cummings wrote: > > > "Error Handling"?? Do you mean form validation? InterJinn does form > > validation and allows custom validators for any kind of form field. I > > believe PEAR's Quickform can a

Re: [PHP] Question on references and writing a PHP extension..

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 22:04, Philip Hallstrom wrote: > Hi - > I'm just getting into writing my own PHP extension and have a > question I can't find the answer to. > Not to be picky, but this group is developing with PHP, not generally developing for PHP :) Try the PECL group at: [EMAIL PROT

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 23:14, John Nichel wrote: > > I had InterJinn Simonize my car this morning. :) Hmm, that's an odd word to use... I hope your car enjoyed its simonizing. But don't let it get carried away :) Cheers, Rob -- .. | Int

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Sat, 2003-10-18 at 00:07, Frank Tudor wrote: > Interjinn looks great but my development box is a windows me > machine with easyphp (globals turned off) How am I supposes to > get this stuff to work. I actually just unzipped it to my www > dir and it has been sitting there the whole day. > > a

Re: [PHP] Loop Question

2003-10-18 Thread Robert Cummings
See changes below. Cheers, Rob. On Sat, 2003-10-18 at 14:57, Jed R. Brubaker wrote: > Hi! I am trying to loop through two different database calls with two for > statements, one embedded in the other. > >for ($i; $i < $codeset_rows; $i++) for ($i = 0; $i < $codeset_rows; $i++)

Re: [PHP] Calling object variables is untidy and lengthy - any other ideas?

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 11:46, [EMAIL PROTECTED] wrote: > Here's the problem. I have a php script which generates a Year-on-Year > change graph, works fine, does the job. I want to turn it into an object. > Unfortunately I have to rename all references to variables in the object to > $this->width for

Re: [PHP] Re: php|cruise - do unto others...

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 15:35, Didier McGillis wrote: > I cant attach my loose change to my email :( There's a money making idea -- teleporter email attachments. Now to just figure out the teleporter part... Rob. > > > >From: "Ryan A" <[EMAIL PROTECTED]> > >Reply-To: "Ryan A" <[EMAIL PROTECTED]

Re: [PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 16:05, Didier McGillis wrote: > > > > > > I cant attach my loose change to my email :( > > > >Sadly, that feature won't be implemented till PHP5. ;) > > Yeah I tried that and it took my underwear and left a welt, I submitted it > as a bug. I heard it might be delayed til

Re: [PHP] PHP error logs?

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 16:34, Joseph Bannon wrote: > Where are the PHP error logs kept? In the PHP error log file. Cheers, Rob. Ps. See your php.ini for the appropriate setting: error_log ;) -- .. | InterJinn Application Framework - ht

Re: [PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 17:05, myphp wrote: > Quoting John Nichel <[EMAIL PROTECTED]>: > > > Jay Blanchard wrote: > > > [snip] > > > > Sigh, how many times do we have to answer this > question. RTFM > > > > :) > > > > SADLY, the manual only mentions silver - unfortunately I > only have copp

Re: [PHP] data type conversion in mysql using php

2003-10-20 Thread Robert Cummings
On Tue, 2003-10-21 at 02:15, Uma Shankari T. wrote: > > > Hello, > >Is it possible to update the float value of mysql to varchar field by > using php ?? You can issue an ALTER TABLE query via mysql_query(). Cheers, Rob. -- .. |

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Robert Cummings
I think this is great but have one bit of hopefully constructive criticism... the horizontal real estate is too small, or the font is too large, I find the content wraps terribly :/ Cheers, Rob. On Tue, 2003-10-21 at 10:07, Marco Tabini wrote: > Hello Everyone-- > > I wanted to let you know abou

RE: [PHP] Session hijacking

2003-10-21 Thread Robert Cummings
On Tue, 2003-10-21 at 15:36, Joseph Bannon wrote: > > i setup my sessions to be transparent, can it still be hacked ? > > > What is a transparent session? I don't know if it's the same for the original poster (whoever that is, since they were cropped :) For me it's when I bind a session variable

Re: [PHP] php|cruise - do unto others...

2003-10-20 Thread Robert Cummings
On Mon, 2003-10-20 at 15:54, Larry E.Ullman wrote: > >> To make a donation, simply login to PayPal and click the "Send Money" > >> tab at the top of your screen. Once there, put > >> [EMAIL PROTECTED] in the "Recipient's Email" field and fill > >> out the remaining fields to your liking. :) >

Re: [PHP] bad quality with imagecopyresampled [PHP4]

2003-10-21 Thread Robert Cummings
On Tue, 2003-10-21 at 19:15, Torst wrote: > imagecopyresampled makes bad quality jpeg images when scaling them down, > especially on areas of the same colour (i.e. large font). > I am using antialiasing. > > I thought I'd try converting the images to png - imagecopyresampling them - > and then sav

Re: [PHP] Whats more efficient? (Conclusion)

2003-10-21 Thread Robert Cummings
On Tue, 2003-10-21 at 23:12, Ryan A wrote: > Hey all, > > Thanks for clearing up my little doubt, I wanted to know if there was a > major differience. > > John, thanks for the reply and I know it makes sense (like all your replies) > but I just kind of got my feet wet with php > and getting to th

Re: [PHP] command line arguments

2003-10-22 Thread Robert Cummings
Use $argv, that failing it definately works with $_SERVER['argv'] Cheers, Rob. On Wed, 2003-10-22 at 13:59, Dan Joseph wrote: > Hi, > > I'm having trouble remember something > > I have a php script that I want to run from a command line: > > % /usr/local/bin/php script.ph

Re: [PHP] problem with intval and !=

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 11:41, Cesar Cordovez wrote: > Because is_integer("12thisisnotanumber") retuns true. > Not for me it doesn't. Returns false. Prolly because it's a string. Even the following returns false for me: is_integer("12") Cheers, Rob. -- .--

Re: [PHP] problem with intval and !=

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 11:21, Cesar Cordovez wrote: > > At this point, I think I have to change the procedure. This is not > good. Any sugestions on how to now if the user types an integer number > in a field? > Here's a really simple way: if( ereg( '^[[:space:]]*[[:digit:]]+[[:space:]]*', $

Re: [PHP] problem with intval and !=

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 11:51, Robert Cummings wrote: > On Thu, 2003-10-23 at 11:21, Cesar Cordovez wrote: > > > > At this point, I think I have to change the procedure. This is not > > good. Any sugestions on how to now if the user types an integer number > > in

Re: [PHP] problem with intval and !=

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 12:28, Greg Beaver wrote: > Hello all, > > http://www.php.net/is_numeric > > is the function you are looking for. No need for fancy regexps. Sorry, that doesn't cut it. He want's integers not floats, and I'm also sure he doesn't want exponential notation to pass either. C

Re: [PHP] problem with intval and !=

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 12:43, Marek Kilimajer wrote: > These are all workarounds around the real problem. If php gets it wrong > fix php. Could you explain how PHP has it "wrong"? Rob. -- .. | InterJinn Application Framework - http://ww

Re: [PHP] problem with intval and !=

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 12:41, John W. Holmes wrote: > Greg Beaver wrote: > > > http://www.php.net/is_numeric > > > > is the function you are looking for. No need for fancy regexps. > > The OP is looking for an integer, but is_numeric() will return true for > float values and also for numbers in

Re: [PHP] problem with intval and !=

2003-10-23 Thread Robert Cummings
version, in which case it may already be fixed. Cheers, Rob. > > $value = "12.3"; > $number = intval($value); > > echo "Number: $number, Value: $value"; > // echoes: Number: 12, Value: 12.3 > > if ($number != $value) { > echo "Bad"; &g

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-23 Thread Robert Cummings
On Thu, 2003-10-23 at 20:43, Shawn McKenzie wrote: > I came across this post and was hoping to get a gurus opinion on the > validity. TIA > > -Shawn > > I remember reading somewhere re: PHP coding that it is a better coding > practice to use single quotes as much as possible vs. using double quo

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 03:57, Justin French wrote: > On Friday, October 24, 2003, at 10:43 AM, Shawn McKenzie wrote: > > [--CLIPPETY CLIP CLIP--] > > Whereas this is clear and easy to work with: > echo " "; > Unless your $bgcolor2 variable has double quotes in it, then the above is poor HTML st

Re: [PHP] limit to elements in an array?

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 04:48, Ian Truelsen wrote: > Is there an upper limit to the number of elements that can be in an > array? If so, what is that limit? I think it is only limitted by your computer's memory or the size of a long integer (2.4 billion or so). I did a test one day to see just how m

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Robert Cummings
On Fri, 2003-10-24 at 12:03, Marek Kilimajer wrote: > Robert Cummings wrote: > >>echo " "; > > > > Unless your $bgcolor2 variable has double quotes in it, then the above > > is poor HTML style. I don't think omission of double quotes has been > >

Re: [PHP] Multi-dimensional array help

2003-10-27 Thread Robert Cummings
On Mon, 2003-10-27 at 12:44, Aaron Gould wrote: > This array problem has been stumping my brain for a little while now... > here's a sample of my data: > > $purchases[001][200304] = array('regular'=>3, 'booked'=>4); > $purchases[002][200303] = array('regular'=>5, 'booked'=>1); > $pu

Re: [PHP] How to deal with XML?

2003-10-27 Thread Robert Cummings
On Mon, 2003-10-27 at 20:40, Simon Fredriksson wrote: > I think I've missed something somewhere, but how do I use XML? > Everywhere, there are big hypes about XML. I could proably google quite > a bit on this, but could someone give me a hint on how to use it in, say > datahandling? Or to parse

Re: [PHP] How to deal with XML?

2003-10-27 Thread Robert Cummings
et > of SGML but created to be used instead of. It was created from the ground up > to replace SGML(not the easiest language to work with). > > On Monday 27 October 2003 23:21, Robert Cummings wrote: > > On Mon, 2003-10-27 at 20:40, Simon Fredriksson wrote: > > > I think I

Re: [PHP] show_source

2003-10-28 Thread Robert Cummings
On Tue, 2003-10-28 at 16:33, Evan Nemerson wrote: > On Tuesday 28 October 2003 12:55 pm, nathan -- wrote: > > Is there a way to stop the function show_source() from putting extra code > > at the begginning and end of the code it grabs? > > Beginning: > > Middle: > > End: > > Not unless you modi

Re: [PHP] Color / Colour on the command line

2003-10-29 Thread Robert Cummings
Should be able to just output ANSI colour codes and the terminal window will generally interpret them properly and voila!, colour in your terminal. Cheers, Rob. On Wed, 2003-10-29 at 07:39, Steve Vernon wrote: > Hiya, > > I have quite a few maitenence php scripts I run on the command line in > w

Re: [PHP] Php processor and return window

2003-10-31 Thread Robert Cummings
On Fri, 2003-10-31 at 14:53, Robb Kerr wrote: > I am just learning PhP. When I was teaching myself Lingo (Macromedia > Director's programming language) I found an object called the MESSAGE > window quite helpful. This window allowed you to execute little snippets of > code and get the results witho

Re: [PHP] Templates/Separate content from presentation

2003-10-31 Thread Robert Cummings
On Fri, 2003-10-31 at 22:23, Pedro Pais wrote: > Hi! > > I've coded in PHP for a while, but I had to leave it for some time. Now > I'm back, and I'd like to know what's currently being used to separate > content from presentation, besides Smarty (that seems to be Google's top > choice)? Templa

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-04 Thread Robert Cummings
eads: 830 (Up 2%) > > > Top 20 Contributors by Number of Posts > -- > Marek Kilimajer181 > Curt Zirzow 164 > C

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Robert Cummings
On Wed, 2003-11-05 at 19:02, Chris W. Parker wrote: > Hi list. > > Ok I know it's not possible to "return" more than one value. But I'm > going to explain what I'd like to do so maybe there's an easy way to do > it. > > I've got some functions that query a database and turn the result into > an a

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Robert Cummings
On Wed, 2003-11-05 at 21:22, Andre Volmensky wrote: > [snip] > > .. if you spend some time moving closer to the object oriented approach > (php classes in this case) you may find that the development could be > much more clear and easy ... and then will never come back to > the functional/procedu

Re: [PHP] php|cruise - do unto others...

2003-11-05 Thread Robert Cummings
On Wed, 2003-11-05 at 22:16, John Nichel wrote: > CPT John W. Holmes wrote: > > From: "Becoming Digital" <[EMAIL PROTECTED]> > > > >>php|cruise is coming this March. > > > > > > Final word on this, I promise! :) > > > > I'll be on the cruise, so I'm looking forward to meeting anyone else that'l

Re: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Robert Cummings
I disagree. I usually trim replies regardless of whether I top or bottom post. And while I didn't have to scroll to read this email, I often have to scroll for longer emails when it is bottom posted. Which seems kinda silly to me since I've already read the thread. While I'm at it someone did some

RE: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Robert Cummings
Actually researhc seems to be showing that our brains process visual information in parallel versus serial. Thus your assertion seems somewhat flawed. And I'm sure you understood my intentional typo of "researhc" since your brain more than likely read it in all at once rather than as a series of ch

Re: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Robert Cummings
On Fri, 2003-11-07 at 14:54, Jason Wong wrote: > On Saturday 08 November 2003 03:35, Robert Cummings wrote: > > I disagree. > > Yes, I think you disagreed with me last time as well :-) Great to be consistent. > And if you keep doing that I might to forced to start using Inter

RE: [PHP]{so far OT it boggles} BTML 2.0 released!!!

2003-11-07 Thread Robert Cummings
On Fri, 2003-11-07 at 15:16, Jay Blanchard wrote: > [snip] > ...evolving systems... > [/snip] > > There is evolution and then there is etiquette. Top-posting is not on > par with proving a theory (flat-earth v spherical-earth) or evolution of > systems. In as much as it is proper etiquette to trim

RE: [PHP]{so far OT it boggles} BTML 2.0 released!!!

2003-11-07 Thread Robert Cummings
OK, I've decided to be sucked back in for one more response... On Fri, 2003-11-07 at 15:50, Mike Migurski wrote: > > Here's an argument: the correlation between intelligent, active members of Subjective evaluation based on no empirical data and probaby not even on any kind of professional experie

RE: [PHP]{so far OT it boggles} BTML 2.0 released!!!

2003-11-07 Thread Robert Cummings
On Fri, 2003-11-07 at 17:33, Craig Lonsbury wrote: > > > > Personally, these emails don't help me at all in my search > > for help, or > > helping people with php problems. Could I suggest that you guys maybe > > put a forum up for anybody who wants to bitch about this > > topic? OR maybe > > someo

Re: [PHP] BTML 2.0 released!!!

2003-11-08 Thread Robert Cummings
This was a private "REPLY" to you. So you're just an asshole now. Cheers, Rob. On Sat, 2003-11-08 at 23:16, John Nichel wrote: > Robert Cummings wrote: > > On Sat, 2003-11-08 at 21:07, John Nichel wrote: > > > >>I suggested the same thing...albeit not as

Re: [PHP] Executing shell commands

2003-11-09 Thread Robert Cummings
On Sun, 2003-11-09 at 03:41, Teren wrote: > > Hi, I'm trying to write a front end for something and I want to be able > to execute shell commands. I tried all of the pre-written functions > and non of them would work. I setup a user that can sudo and then i > set apache to run as that user. So, wha

RE: [PHP] Executing shell commands

2003-11-09 Thread Robert Cummings
is being read from /tmp then it should be treated the > same way user-inputted data is, and never trusted. > > -Javier > > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 09, 2003 12:47 AM > To: Teren > Cc: PH

RE: [PHP] Executing shell commands

2003-11-09 Thread Robert Cummings
On Mon, 2003-11-10 at 00:34, Chris Shiflett wrote: > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > I did mention database as one of the solutions. The question wasn't > > about security so I didn't elaborate. > > I have done this same thing in t

Re: [PHP] \n and

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 20:30, John Nichel wrote: > > This could be why HBO hasn't been knocking on my door and offering me a > few million to do my stand-up routine. > This appears to be off-topic, and so to drive the point home in your own self-righteous drivel: John Nichel spewed one day:

Re: [PHP] \n and

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 21:44, Chris Shiflett wrote: > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > This appears to be off-topic, and so to drive the point home in > > your own self-righteous drivel: > > Robert, that is enough of this. Please take your pesonal diff

Re: [PHP] Personal Conflicts

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 22:02, Chris Shiflett wrote: > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > I was merely trying to keep the list on-topic. > > It did not seem that way to me. Your reply appeared to be a deliberate > attempt to rekindle an argument from a day or

Re: [PHP] displaying numbers up to 2 places of decimal.

2003-11-10 Thread Robert Cummings
http://www.php.net/manual/en/function.number-format.php Cheers, Rob. On Tue, 2003-11-11 at 00:42, Binay wrote: > Hi all ! > > I want to display numbers(integer,float,double) up to 2 places of decimal i.e if > number is interger say 10, then i want to display it like 10.00. > > if the number is

Re: [PHP] can button onclick executed a bash script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:25, tirumal b wrote: > Hello All, > > A button tag's onclick event can execute a function > of javascript but can it do the same with bash script > function. I have two buttons. Each button will call > its own function.could anyone tell how to write Directly it cannot do

Re: [PHP] ssh command in php script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:34, tirumal b wrote: > Hello All > > I have written the following command in PHP script > echo `ssh `. I have the remote ip > addr as trusted, dont ask for the password at all. > when the execute the php file from the browser it does > not go to the remote ip at all thoug

Re: [PHP] ssh command in php script

2003-11-10 Thread Robert Cummings
On Tue, 2003-11-11 at 01:37, Robert Cummings wrote: > On Tue, 2003-11-11 at 01:34, tirumal b wrote: > > Hello All > > > > I have written the following command in PHP script > > echo `ssh `. I have the remote ip > > addr as trusted, dont ask for the password at

Re: [PHP] OOP clarification: Messages between objects

2003-11-12 Thread Robert Cummings
On Wed, 2003-11-12 at 04:31, Robert Ian Smit wrote: > I am trying to implement a generic form handler that is capable of > printing the form and checking the user input. > > I want this application to be useful in the end, but I also use it > to explore OOP in PHP. > > The working code at the mom

Re: [PHP] Explanation for php.net front page???

2003-11-12 Thread Robert Cummings
It's not active on the main page. It's on the search page. Go there instead. http://www.php.net/search.php And it doesn't seem to work with Opera 6 :) Cheers, Rob. On Wed, 2003-11-12 at 17:33, Scott Fletcher wrote: > Hi! > > Would anyone care to explain to me about the article on the front

RE: [PHP] can I license a php script?

2003-11-14 Thread Robert Cummings
On Fri, 2003-11-14 at 16:33, Dan Joseph wrote: > Hi, > > Its like any program written in any language. You are licensing the > product you created with the language, the functionality, the int property, > etc.. Stick a price on it, and sell it. There are some tools for > protecting your s

RE: [PHP] can I license a php script?

2003-11-14 Thread Robert Cummings
On Fri, 2003-11-14 at 18:54, Chris W. Parker wrote: > Robert Cummings <mailto:[EMAIL PROTECTED]> > on Friday, November 14, 2003 1:34 PM said: > > > Be careful though, if your code incorporates other peoples code, for > > instance Smarty, or PEAR::DB then it may fa

Re: [PHP] can I license a php script?

2003-11-14 Thread Robert Cummings
ris > > "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Robert Cummings <mailto:[EMAIL PROTECTED]> > on Friday, November 14, 2003 1:34 PM said: > > > Be careful though, if your code incorporates other peoples code, for

Re: [PHP] What is "white space"

2003-11-15 Thread Robert Cummings
On Sat, 2003-11-15 at 12:12, Chris Shiflett wrote: > --- Gerard Samuel <[EMAIL PROTECTED]> wrote: > > Most of the time, I edit files via the command line, (FBSD). When > > the files are saved, it adds a \n (newline) character (at least I > > believe that is what it is) after the closing ?> When vie

Re: [PHP] What is "white space"

2003-11-15 Thread Robert Cummings
On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote: > Robert Cummings wrote: > > >FYI, if you're woprried about the "header cannot be sent due to > >output..." error, then if your file only has code and no HTML, then you > >can omit the ?> tag at the

[PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-16 Thread Robert Cummings
The word from internals is that this is a feature. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework

Re: [PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-17 Thread Robert Cummings
On Mon, 2003-11-17 at 03:32, Becoming Digital wrote: > I'm guessing we don't have to include a '?>' anymore? Not sure I like that idea... It's optional, so you can feel free to include it if it makes you happy. But from a library standpoint, it's generally just a hassle to include it and then pra

Re: [PHP] [Q] Development Best Practices

2003-11-17 Thread Robert Cummings
On Mon, 2003-11-17 at 20:47, Jason Godesky wrote: > > There's certainly nothing wrong with putting bits of PHP into a primarily > HTML document, but for very large, complicated sites (and you mention that > yours is), you'll probably want to use templates to separate out > presentation and logi

Re: [PHP] E-mail Gateway

2003-11-18 Thread Robert Cummings
On Tue, 2003-11-18 at 02:19, Henrik Hudson wrote: > On Tuesday 18 November 2003 01:21, > "Jason Williard" <[EMAIL PROTECTED]> sent a missive stating: > > > 1) Use a cron job to execute a php script every x minutes. > > 2) Create a script where mail can be piped to. This is a method that I > > hav

Re: [PHP] ereg_replace help

2003-11-18 Thread Robert Cummings
On Tue, 2003-11-18 at 02:30, Jason Wong wrote: > On Tuesday 18 November 2003 13:37, Martin Towell wrote: > > > I have an array of strings in the following format: > > "abcd - rst" > > "abcd - uvw" > > "abcd - xyz" > > "foobar - rst" > > "blah - rst" > > "googol - uvw" > > >

[PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Robert Cummings
This could end up a heated debate, so jump on in and get your feet wet. Originating from a response to: [Q] Development Best Practices On Tue, 2003-11-18 at 09:09, Luis Lebron wrote: > Before considering using templates you may want to take a look at > > http://www.phppatterns.com/index.php/art

RE: [PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Robert Cummings
On Tue, 2003-11-18 at 16:14, Dan Joseph wrote: > Hi, > > > First off I'd like to agree that PHP "can" be used as a templating > > system, but providing some of the functionality available in many of the > > As can any programming language if you think about it. I don't want to > debate thi

Re: [PHP] Similar functions?

2003-11-19 Thread Robert Cummings
On Thu, 2003-11-20 at 01:24, Jake McHenry wrote: > Can anyone tell me if there are similar functions in php as javascript > isNaN, or do I just have to do a http://www.php.net/manual/en/function.is-numeric.php Cheers, Rob. -- .. | Inter

Re: [PHP] creating a module for php 4.2.2 with Apache 2.0. php 4.3.3

2003-11-21 Thread Robert Cummings
On Fri, 2003-11-21 at 07:33, Bernd wrote: > Hello, > my probelm is, if i create a module with apache 2.0 php 4.3.3 it doesn`t > work on the server were > apache 1.3.7 with php 4.2.2. is installed. > how can i create a modul with apache 2.0. with php 4.3.3 that works fine > with apache 1.3.7 and php

Re: [PHP] echo or print

2003-11-21 Thread Robert Cummings
On Sat, 2003-11-22 at 00:13, Curt Zirzow wrote: > * Thus wrote Wouter van Vliet ([EMAIL PROTECTED]): > > > > Point is, which of the inline printing style is preferred by you guyes. I > > tend to use a lot, since it reads easier but get into struggles > > with myself when I do that multiple times

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread Robert Cummings
On Sat, 2003-11-22 at 23:35, John Nichel wrote: > Joffrey Leevy wrote: > > Hi all: > > > > The money_format function does not do it for me. Is > > there a simple php function which appends the '$' > > symbol to a string value. Example > > > > $money = 30 > > $money = some_php_function($money) >

Re: [PHP] Advice: GET vs. POST vs. SESSION

2003-11-23 Thread Robert Cummings
On Sun, 2003-11-23 at 14:27, Jed R. Brubaker wrote: > I was hoping that some of you would be able to give me some advice. > > I have started creating a web application that makes heavy use of URL GET > variables in order to solve a problem that I have had with POST in the > past - namely, having

Re: [PHP] Re: String Manip. - Chop Equivalent

2003-11-23 Thread Robert Cummings
On Sun, 2003-11-23 at 20:02, Al wrote: > >From the PHP Manual notes (http://us2.php.net/manual/en/function.chop.php): > > $string = substr("$string", 0, -1); You'd be better off with: $string = substr( $string, 0, -1 ); to avoid unnecessary interpolation overhead. Cheers, Rob. -- .---

Re: [PHP] Converting to ASCII HEX

2003-11-27 Thread Robert Cummings
On Thu, 2003-11-27 at 20:51, Ashley M. Kirchner wrote: > > How can I convert a string like this: "test & test" into > "test%20%26%20test" so I can then pass it to a script? Essentially > convert the spaces and & symbol to their ASCII HEX equivalent. urlencode() Cheers, Rob. -- .

Re: [PHP] DAMN

2003-11-28 Thread Robert Cummings
On Fri, 2003-11-28 at 23:55, Bronislav Klucka wrote: > I've just realized I'm replaying to JeRRy only Could anybody fixt this > problem by setting the Reply To header correctly? to be able to reply PHP > conf. directly using Reply button?!!! Look before you leap! Rob. -- .---

Re: [PHP] File upload issue

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 02:36, Binay wrote: > Hi all, > > In my php.ini file, file_uploads value is set to OFF. Hence stopping HTTP_UPLOAD > functionlaity. > > But in my script i am turning it On using ini_set("file_uploads","1") but still it > doesn't upload the file. > > I don have access to

Re: [PHP] Problem in the output of an array

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 19:29, [EMAIL PROTECTED] wrote: > I'm soory but your code doesn't make me understand what you want to do... > Be more precise, it will help you to get some help > > > I have this code, I would like, if this could be done > > > > > $array['dim1']['dim2']['dim3'][3] = "value";

Re: [PHP] Problem in the output of an array

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 19:47, Robert Cummings wrote: > On Sat, 2003-11-29 at 19:29, [EMAIL PROTECTED] wrote: > > I'm soory but your code doesn't make me understand what you want to do... > > Be more precise, it will help you to get some help > > > > > I hav

Re: [PHP] Re: Problem in the output of an array

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 21:25, john wrote: > > $result = eval( 'return $array'.$test.';' ); > > Um... > > echo $array[$dim1][$dim2][$dim3][$dim4]; > > eval == evil. I can't think of a single legimiate reason why you'd want/need Eval is not evil, but it is often insecurely used. It has it's pur

Re: [PHP] Stumped

2003-11-30 Thread Robert Cummings
On Sun, 2003-11-30 at 18:45, Brian V Bonini wrote: > Warning: Invalid argument supplied for foreach() in > /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on > line 42 > > Warning: Invalid argument supplied for foreach() in > /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs

Re: [PHP] Script help about array dimension

2003-11-30 Thread Robert Cummings
On Mon, 2003-12-01 at 00:33, Curt Zirzow wrote: > * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > > $array['ojpp'][1][][] = 'ferrer'; > > $array['test'][0] = 'ojpp'; > > $array['test'][1] = 'ferrer'; > > > > How could I do a script that give me this output: > > > > Array > > ( > > [0] =

Re: [PHP] my next web project

2003-12-01 Thread Robert Cummings
On Mon, 2003-12-01 at 02:00, Xiao Fang wrote: > > Thank God I'm able to post now! > > Hi, All, > I just got my first web application up and running. It feels so > exciting even though I'm still so junior. > Now, next project since I'm already so addicted: > I wonder if it's possible to wri

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