Re: [PHP] Preg_match question

2004-05-29 Thread Jeroen Serpieters
On Sat, 29 May 2004, Dave Carrera wrote: > > Link returned = Of to some page > > The bit I want to play with is ./somepage.php. > $str = 'Of to some page'; if( preg_match("//Ui", $str, $matches) ) echo $matches[1]; else echo "string didn't match"; -- Jeroen Always code as if t

Re: [PHP] nested URLs

2004-05-26 Thread Jeroen Serpieters
On Wed, 26 May 2004, Marco Bleeker wrote: > > > > > > > Please note the double definition of the ln variable (language, it sends > "NL" for Dutch language; the first one to mview.php and the second one to > mail1.php). How to put this directly in parameters to mail1.php? > > Thanks, Marco (pl

Re[2]: [PHP] sessions

2004-05-23 Thread Jeroen Serpieters
On Sun, 23 May 2004, Richard Davey wrote: > > It cares enough to raise a script Warning ;) > That's true, but it should be giving an error instead of a warning imho ;-) -- Jeroen Anybody who thinks a little 9,000-line program [Java] that's distributed free and can be cloned by anyone is going

Re: [PHP] sessions

2004-05-23 Thread Jeroen Serpieters
On Sun, 23 May 2004, Daniel Clark wrote: > > Should username have quote around it? Wouldn't it try to make it a constant > otherwise? > > echo $_SESSION['username'] > Unfortunately, imho, php doesn't seem to care that much in such cases ;-) $_SESSION[username] will have the same result as $_SE

Re: [PHP] empty connection string

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, AMC wrote: > > Yes > It's the first time I hear response.write() and php together ... confused :S -- Jeroen Describing the difference between computer hardware and software: "Those parts of the system that you can hit with a hammer (not advised) are called hardware; those

Re: [PHP] empty connection string

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Curt Zirzow wrote: > > Are we talking about PHP here? > It smells like asp ;-) -- Jeroen Like the creators of sitcoms or junk food or package tours, Java's designers were consciously designing a product for people not as smart as them. -- Paul Graham -- PHP Gene

Re: [PHP] what is the preferred method for outputting HTML?

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Bob Lockie wrote: > > Does PHP have something similar or do I have to write the raw HTML? > You have to write the raw HTML, altough you have several packages from the pear packages who deal with some specific html things, e.g. forms http://pear.php.net/packages.php?catpid=10&

RE: [PHP] array_push

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Edward Peloke wrote: > How do I then cycle through this array to build the select box? I > currently use this which works fine when I hard code the values..ie. > $yesno=array("Yes"=>"1","No"=>"0") but doesn't seem to work using your > first option. > > Here is the form selec

Re: [PHP] Re: php and java applets

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Tom Playford wrote: > > I suppose I could use https, but does that encrypt the url and post data? > Your data is encrypted when using ssl. -- Jeroen Describing the difference between computer hardware and software: "Those parts of the system that you can hit with a hammer

Re: [PHP] array_push

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Edward Peloke wrote: > > $clients[]=array(); > Here you should probably use $clients = array(); -- Jeroen Anybody who thinks a little 9,000-line program [Java] that's distributed free and can be cloned by anyone is going to affect anything we do at Microsoft has his head

Re: [PHP] array_push

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, Edward Peloke wrote: > > $sql=new Database(); > $sql->query("select fname,lname, id from clients"); > $clients[]=array(); > while($sql->nextRecord()){ >array_push($clients, $sql->getField('id')=>$sql->getField('fname')); > } // while > > Parse error: parse error, unexpect

Re: [PHP] Creating mail accounts

2004-05-21 Thread Jeroen Serpieters
On Fri, 21 May 2004, mustafa ocak wrote: > Hi, > > Is there a way to create new email accounts with PHP? > Server is RedHat Linux 8. > What mailserver are we talking about? -- Jeroen The only thing more frightening than a programmer with a screwdriver or a hardware engineer with a program is

Re: [PHP] How to make program execution go to another file?

2004-05-20 Thread Jeroen Serpieters
You could include those other php files, eg. switch( $i ) { case 'a': include('a.php'); break; case 'b': include('b.php'); break; } On Thu, 20 May 2004, michael young wrote: > Hi, >I want program execution to

RE: [PHP] Variables - showing onpage

2003-11-30 Thread Jeroen Serpieters
You have to put it between double quotes. Jeroen -- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer) Politics.be op imode! http://i.politics.be/ -Original Message- From: Biph [mailto:[EMAIL PROTECTED] Sent: Sunday, November 30, 2003

RE: [PHP] Accessing .bat file from PHP

2003-11-30 Thread Jeroen Serpieters
exec()? http://php.net/exec Jeroen -- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer) Politics.be op imode! http://i.politics.be/ -Original Message- From: Reidar Solberg [mailto:[EMAIL PROTECTED] Sent: Sunday, November 30, 2003 7:

Re: [PHP] Regular expression tutorial

2003-11-27 Thread Jeroen Serpieters
This should do it, also check the links on the left. http://php.net/manual/nl/pcre.pattern.syntax.php Citeren "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: > Hi, > > I see from the postings that I should learn Regular Expressions quite fast. > > Is there somewhere a decent online tutorial you could