Re: [PHP] PHP and Ajax?

2005-04-28 Thread Hidayet Dogan
Try SAJAX at http://www.modernmethod.com/sajax Hidayet Dogan [EMAIL PROTECTED] Pleksus Bilisim Teknolojileri D.T.O. A.S. -- caldiran sok. 14/6 06420 kolej ankara * ww

Re: [PHP] User Logout system advice needed...

2005-04-28 Thread William Stokes
OK. How about preventing access by hitting the browsers back button after the user has logged out? -Will "Petar Nedyalkov" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] temp table : solution

2005-04-28 Thread Cima
hi, thanx for your input. i noticed that the last part of the create table query was the part that was causing the 'problem'. the on commit delete rows was deleting the values i inserted after executing the query therefore i couldnt select anything from it. i did try Richard Lynch's code and it

Re: [PHP] Templating engines

2005-04-28 Thread Mattias Thorslund
(On the subject of templating engines, again.) I wonder what you folks think of the following: http://www.massassi.com/php/articles/template_engines/ I've been using the template class in the example of the article. I think it's easy to use and very flexible, since it uses PHP as the actual templ

[PHP] __autoLoad php5 callback is being triggered for every class ?

2005-04-28 Thread php
I'm experiencing some issues with autoLoad with pear packages. DB_Error is contained within the DB.php, but my autoload method is trying to split the underscores with forward slashes and then load. Supressing errors with @ still doesnt work, its triggering a php error. Any ideas ? -- PHP General

[PHP] help wanted for project

2005-04-28 Thread Mr R H
We have a web site and we need added functionality. We need a form developed which based on answers to three questions tells the patient which test he needs to buy. The purchast takes place via paypal code (already in place) and then another form is available for the patient to fill in a more detai

[PHP] passing a variable through 2 required files embedded in Javascript

2005-04-28 Thread Mark Cain
What a mess this has turned out to be -- But perhaps you can help me. I have a dynamic site that pulls headers, navigation, and footers from text files. The content for the pages is pulled from mySQL. On each page I have a JavaScript rotating banner that displays "Upcoming Events." The banner

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Jason Barnett wrote: Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do w

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Jason Barnett wrote: Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do w

Re: [PHP] anchr tag replace

2005-04-28 Thread Philip Hallstrom
I'm just lazy... and this is easier than changing them all by hand :) http://www.oreilly.com/catalog/regex/ I've skimmed parts of it... makes my head hurt :) On Thu, 28 Apr 2005, php wrote: Thanks SOO much. It works flawlessly. I find it scary that there are people out there who do regular express

Re: [PHP] php/pear question

2005-04-28 Thread Matthew Weier O'Phinney
* Richard Lynch <[EMAIL PROTECTED]>: > On Thu, April 28, 2005 1:23 pm, Kelly Meeks said: > > I can run pear from the shell, install new modules (pager, > > html_quickform,...) but when ever I try using any pear code in a php > > script with the appropriate includes/require (require_once > > 'DB.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Hi Ryan, The XML basics are really simple and can be learned in 15 minutes, so I suppose you already know this. I personally think www.xml.com has some good resources, and they don't just keep it with theory and translate the stuff to practical situations. Also google for stuff like namespaces

Re: [PHP] Retrieving query from MSSQL Table

2005-04-28 Thread Mike Smith
Thanks Richard, That did the trick. That and one query was in another database, that my users didn't have rights to...Doh! Works well. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-04-28 Thread Richard Lynch
On Thu, April 28, 2005 4:14 am, Jon M. said: > No matter what I do to the strings to encode them in whatever format > before > using "fwrite", it ALWAYS seems to end up writing the actual file in > "iso-8859-1". How do you know? What are you using to determine the format of the file? We are cont

Re: [PHP] php/pear question

2005-04-28 Thread Richard Lynch
On Thu, April 28, 2005 1:23 pm, Kelly Meeks said: > I can run pear from the shell, install new modules (pager, > html_quickform,...) but when ever I try using any pear code in a php > script > with the appropriate includes/require (require_once 'DB.php';) nothing in > the php block of the script ge

Re: [PHP] Retrieving query from MSSQL Table

2005-04-28 Thread Richard Lynch
On Thu, April 28, 2005 5:51 am, Mike Smith said: > On 4/28/05, Richard Lynch <[EMAIL PROTECTED]> wrote: >> I'm betting dollars to doughnuts that you've got a newline at the end of >> $sql1 which is messing you up. > > You're right! Give that man a doughnut! When I tested the query in > Query Analyz

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Lynch
On Thu, April 28, 2005 6:43 am, Vedanta Barooah said: > resource ldap_search ( resource link_identifier, string base_dn, > string filter [, array attributes [, int attrsonly [, int sizelimit [, > int timelimit [, int deref]) > > if you look at the 4th and the 6th arguments to the function > att

Re: [PHP] mini CMS

2005-04-28 Thread Richard Lynch
On Thu, April 28, 2005 2:45 pm, Sebastian said: > im looking for a small tutorial/cms script without all the fluff. > something to create pages (static preferably) doesn't even need an > admin/user interface. > > i could write my own, but don't have the time at the moment. > if anyone knows of such

Re: [PHP] Search Agents...

2005-04-28 Thread Richard Lynch
On Thu, April 28, 2005 3:17 pm, Nick Zukin said: > I have a request from a client that has me a little confounded. He wants > to > have a system where when someone posts a public request with certain > criteria, that criteria is then used to find established profiles/agents > that fit the criteria

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jared Williams
> > Evert | Rooftop Solutions wrote: > > Yes, and that's how I read this reply =) > > > > About the subject, > > > > I'm working on a xml-based templating system, which caches all the > > steps it does, so it overcomes the slowness =) And ofcource > because I > > like xml and all the neith th

Re: [PHP] anchr tag replace

2005-04-28 Thread php
Thanks SOO much. It works flawlessly. I find it scary that there are people out there who do regular expressions off the top of their heads. Anyway, thanks alot, -Ethan Nelson, Modulus, LLC "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Thu, 28 Apr 2005

RE: [PHP] Re: What's changed between version 4.2.2 and 4.3.4 regarding POSTing?

2005-04-28 Thread mwestern
>Yes. It's using the global arrays HTTP_POST_VARS and HTTP_SESSION_VARS >arrays, and 4.3.x has the directive register_globals set to off by default. It's safer to leave it off. You can easily update the script by replacing these with $_POST and $_SESSION, respectively. Again I appreciate the poi

[PHP] Search Agents...

2005-04-28 Thread Nick Zukin
I have a request from a client that has me a little confounded. He wants to have a system where when someone posts a public request with certain criteria, that criteria is then used to find established profiles/agents that fit the criteria. Then emails are sent out to the people corresponding to

Re: [PHP] Re: Templating engines

2005-04-28 Thread Robert Cummings
On Thu, 2005-04-28 at 13:53, Ryan A wrote: > > > > I would go for a xml-style template engine (start flaming right below > > > > this thread) > > > > > Flaming??? who has time to start flaming after reading what you wrote? > > > am busying banging my head against the wall. > > > > To state the

[PHP] mini CMS

2005-04-28 Thread Sebastian
im looking for a small tutorial/cms script without all the fluff. something to create pages (static preferably) doesn't even need an admin/user interface. i could write my own, but don't have the time at the moment. if anyone knows of such a small script let me know. cheers. -- PHP General Mail

RE: [PHP] Round to the nearest X

2005-04-28 Thread Jared Williams
> I realize this is a dumb question but I just can't come up > with an equation that will do this and I don't see an > internal PHP function (for version 4.3) that will do this... > Basically I need to come up with an equation/algorithm that > will round any number up/down to the nearest X. >

Re: [PHP] Round to the nearest X

2005-04-28 Thread Greg Donald
On 4/28/05, Greg Donald <[EMAIL PROTECTED]> wrote: > do { > $num++; > } while( $num % 500 ); Actually that fails for the base number 500. This works for everything: #!/usr/bin/php > ./round.php 0 > ./round.php 499 500 > ./round.php 500 500 > ./round.php 501 1000 -- Greg Donald Zend C

Re: [PHP] anchr tag replace

2005-04-28 Thread Philip Hallstrom
On Thu, 28 Apr 2005, php wrote: Its a long story, but basically, theres some code we cannot get around that is taking anchor tags such as and turning them into http://host.com/folder/file.html?var=var&var2=var2#sat>. I need to undo this action with a pattern match on a large body of content with "

Re: [PHP] Round to the nearest X

2005-04-28 Thread Brent Baisley
I think the formula you are looking for is something like this: round( y/x, 0) * x With y being your number and x being the nearest increment number to round to. On Apr 28, 2005, at 4:10 PM, Chris Boget wrote: I realize this is a dumb question but I just can't come up with an equation that will d

[PHP] anchr tag replace

2005-04-28 Thread php
Its a long story, but basically, theres some code we cannot get around that is taking anchor tags such as and turning them into http://host.com/folder/file.html?var=var&var2=var2#sat>. I need to undo this action with a pattern match on a large body of content with "". Can this be done. Here a

Re: [PHP] Round to the nearest X

2005-04-28 Thread Greg Donald
On 4/28/05, Chris Boget <[EMAIL PROTECTED]> wrote: > I realize this is a dumb question but I just can't come > up with an equation that will do this and I don't see an > internal PHP function (for version 4.3) that will do this... > Basically I need to come up with an equation/algorithm > that will

[PHP] Round to the nearest X

2005-04-28 Thread Chris Boget
I realize this is a dumb question but I just can't come up with an equation that will do this and I don't see an internal PHP function (for version 4.3) that will do this... Basically I need to come up with an equation/algorithm that will round any number up/down to the nearest X. I tried using y

Re: [PHP] Re: Templating engines

2005-04-28 Thread John Nichel
Jay Blanchard wrote: Note the coding style of the open snip tag, I believe that would be Jason's Gestooberhanken! Btt. Awww, sorry, but you do not win the grand prize. However, we do have some nice parting gifts for you. Tell him what he's won Chuck. Well John, for Jay we have a

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jay Blanchard
[snip] and box of bending straws. [/snip] Nice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Philip Hallstrom
/* I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do with it. */ Sounds like you are pretty good with xml... i know very little of XML, do you have a link I can read u

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jay Blanchard
[snip] > [snip] > > Jason Barnett wrote: > > > > > Humor is on my "TODO" list. > > > > Making a TODO list is on my TODO list. > > [/snip] > > > > Now, I know that we all love to discuss small dogs from Kansas, but I've > too much to do right now. > > TYVM! Hey Jay, Just wanted to tell

Re: [PHP] PHP and Ajax?

2005-04-28 Thread Jason Sweeney
There is a good intro to the whole XMLHttpRequest ("Ajax") process on Webmonkey right now: http://webmonkey.wired.com/webmonkey/05/16/index4a.html Good for those of us slower on the uptake... jason sweeney jason.designshift.com Chris W. Parker wrote: Jeremiah Johnson

Re: [PHP] Re: Templating engines

2005-04-28 Thread Andre Dubuc
On Thursday 28 April 2005 03:21 pm, Ryan A wrote: > On 4/28/2005 8:18:28 PM, Andre Dubuc ([EMAIL PROTECTED]) wrote: > > On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > > > Jason Barnett wrote: > > > > > > > > > > > > > Humor is on my "TODO" list. > > > > > > Making a TODO list is on my TO

RE: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
> [snip] > > Jason Barnett wrote: > > > > > Humor is on my "TODO" list. > > > > Making a TODO list is on my TODO list. > > [/snip] > > > > Now, I know that we all love to discuss small dogs from Kansas, but I've > too much to do right now. > > TYVM! Hey Jay, Just wanted to tell you..

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
/* I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do with it. */ Sounds like you are pretty good with xml... i know very little of XML, do you have a link I can read u

Re: [PHP] Notice: Undefined index

2005-04-28 Thread John Nichel
Rob Kapfer wrote: Hello, This is a new install of PHP 5.0.4 on XP, I'm testing if it's installed correctly with the usual test.htm: Your name: Your age: Action.php: echo $_POST['name']; echo $_POST['age']; ?> Results: C:\NCC>action.php Notice: Undefined index: name in C:\NCC\action.php on lin

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
On 4/28/2005 8:18:28 PM, Andre Dubuc ([EMAIL PROTECTED]) wrote: > On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > > > Jason Barnett wrote: > > > > > > > > > > Humor is on my "TODO" list. > > > > > > Making a TODO list is on my TODO list. > > > > > > -- > > > John C. Nichel > > > ÜberGeek

Re: [PHP] Notice: Undefined index

2005-04-28 Thread Jason Barnett
Also see: http://php.net/manual/en/function.array-key-exists.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Evert | Rooftop Solutions wrote: Yes, and that's how I read this reply =) About the subject, I'm working on a xml-based templating system, which caches all the steps it does, so it overcomes the slowness =) And ofcource because I like xml and all the neith things you can do with it. grt, Evert O

RE: [PHP] Notice: Undefined index

2005-04-28 Thread Mike Johnson
From: Rob Kapfer [mailto:[EMAIL PROTECTED] > Hello, This is a new install of PHP 5.0.4 on XP, I'm testing if it's > installed correctly with the usual test.htm: > > > Your name: > > Your age: > > > > > > Action.php: > > > echo $_POST['name']; > > echo $_POST['age']; > > ?> > > Res

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Ryan A wrote: I would go for a xml-style template engine (start flaming right below this thread) Hey Rob, I sorry for the mix up but the above (however "obvious") was *not* meant to be a flame, I was *only* joking with the guy. Is it just me or is joking becoming outlawed on the list? M

[PHP] Notice: Undefined index

2005-04-28 Thread Rob Kapfer
Hello, This is a new install of PHP 5.0.4 on XP, I'm testing if it's installed correctly with the usual test.htm: Your name: Your age: Action.php: Results: C:\NCC>action.php Notice: Undefined index: name in C:\NCC\action.php on line 2 Notice: Undefined index: age in C:\NCC\action.ph

RE: [PHP] PHP and Ajax?

2005-04-28 Thread Chris W. Parker
Jeremiah Johnson on Thursday, April 28, 2005 11:28 AM said: > Does anyone have any references on using PHP and Ajax? I caught the > news on PHP Architect about the webcast they are doing in May and it > sounds like an interesting technology, but I can't wait, of cour

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Andre Dubuc wrote: On Thursday 28 April 2005 02:05 pm, John Nichel wrote: Jason Barnett wrote: Humor is on my "TODO" list. Making a TODO list is on my TODO list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] Just out of curiosity, are there any templati

[PHP] PHP and Ajax?

2005-04-28 Thread Jeremiah Johnson
Does anyone have any references on using PHP and Ajax? I caught the news on PHP Architect about the webcast they are doing in May and it sounds like an interesting technology, but I can't wait, of course :)... and I wanted to learn as much as I could before their presentation. Any pointers? Than

Re: [PHP] Re: Templating engines

2005-04-28 Thread Andre Dubuc
On Thursday 28 April 2005 02:05 pm, John Nichel wrote: > Jason Barnett wrote: > > > > Humor is on my "TODO" list. > > Making a TODO list is on my TODO list. > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] Just out of curiosity, are there any templating engines

RE: [PHP] Re: Templating engines

2005-04-28 Thread Jay Blanchard
[snip] Jason Barnett wrote: > Humor is on my "TODO" list. Making a TODO list is on my TODO list. [/snip] Now, I know that we all love to discuss small dogs from Kansas, but I've too much to do right now. TYVM! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
On 4/28/2005 8:05:31 PM, John Nichel ([EMAIL PROTECTED]) wrote: > Jason Barnett wrote: > > > > > Humor is on my "TODO" list. > > > > Making a TODO list is on my TODO list. hehe used to be on mine too, then I finally made a TODO list and now I have a TODO reminder to do the things on my

Re: [PHP] Re: Templating engines

2005-04-28 Thread John Nichel
Jason Barnett wrote: Humor is on my "TODO" list. Making a TODO list is on my TODO list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Is it just me or is joking becoming outlawed on the list? Most of us are geeks or classified as geeks on the lista little geek humour please? programming is a serious business and i find myself getting quite stressed sometimesusing a little humour or reading others humourous replies helps I

Re: [PHP] Templating engines

2005-04-28 Thread Alnisa Allgood
At 5:43 PM -0800 4/28/05, Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) I've used include(), and smarty, but now use Expression Engine http://www.pmachine.com. EE which is more of a CMS than just a templating system,

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
/* Mind you I don't post much at all anymore since I became a father a year and a half ago... priorities you know :) */ Almost forgot, congrats on your kid. Cheers, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.4 - Release

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
> > > I would go for a xml-style template engine (start flaming right below > > > this thread) > > Flaming??? who has time to start flaming after reading what you wrote? > > am busying banging my head against the wall. > To state the obvious... the above is in actuality a flame disguised as >

Re: [PHP] Re: editor that typesets the php code

2005-04-28 Thread Philip Hallstrom
well, i'm not sure what to do after your code is done, but as far as editors go, theres a free one out there that does syntax highlighting for a ton of languages (php included) called Vim... it comes with a graphical version called gvim that i do all of my coding on. no debugging features for php (

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Marek Kilimajer
Vedanta Barooah wrote: Well that was simple, but this is what i am trying to solve: if you refer to the php documentation for ldap_open() function it says: resource ldap_search ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int tim

Re: [PHP] Re: Templating engines

2005-04-28 Thread Philip Hallstrom
Ive been using smarty (http://smarty.php.net) Just FYI, you've opened the door for a holy war, as temlating and template engines are a fairly volatile topic, with many people holding very extreme opinions on the subject. (me? I use Smarty.) So just because you use smarty you think you are smart and

Re: [PHP] Re: Templating engines

2005-04-28 Thread Robert Cummings
On Thu, 2005-04-28 at 13:20, Ryan A wrote: > On 4/28/2005 7:08:00 PM, Evert | Rooftop Solutions > ([EMAIL PROTECTED]) wrote: > > Ryan A wrote: > > >So just because you use smarty you think you are smart and have the right > > to be smart..who the hell do you think you are?? > > > > >Sorry, just giv

Re: [PHP] Re: editor that typesets the php code

2005-04-28 Thread Drewcore
well, i'm not sure what to do after your code is done, but as far as editors go, theres a free one out there that does syntax highlighting for a ton of languages (php included) called Vim... it comes with a graphical version called gvim that i do all of my coding on. no debugging features for php (

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
On 4/28/2005 7:08:00 PM, Evert | Rooftop Solutions ([EMAIL PROTECTED]) wrote: > Ryan A wrote: > >So just because you use smarty you think you are smart and have the right > to be smart..who the hell do you think you are?? > > >Sorry, just giving an example of how a jackass with extreme opinions >

Re: [PHP] Re: Templating engines

2005-04-28 Thread Evert | Rooftop Solutions
Ryan A wrote: So just because you use smarty you think you are smart and have the right to be smart..who the hell do you think you are?? Sorry, just giving an example of how a jackass with extreme opinions would write on this holy war's volatile topic. no offense meant :-) Cheers, Ryan I wo

Re: [PHP] Re: Templating engines

2005-04-28 Thread Ryan A
> > Ive been using smarty (http://smarty.php.net) > > > > Just FYI, > you've opened the door for a holy war, as temlating and > template engines are a fairly volatile topic, with many people holding > very extreme opinions on the subject. > > (me? I use Smarty.) > > -- > Matthew Weier O'Phinney

Re: [PHP] Templating engines

2005-04-28 Thread Ryan A
> I'm a big fan of include(). ;) Ditto! -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 4/27/2005 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-28 Thread Clive Zagno
Hi, I dont mind seeing php and html together, but designer generally hate it, so I would want to seperate php code from html as much as possible. clive Jason Barnett wrote: Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net

Re[2]: [PHP] Restricting browser's a password manager pop-up

2005-04-28 Thread Richard Davey
Hello -k., Thursday, April 28, 2005, 5:11:26 PM, you wrote: k> You may also try adding autocomplete="Off" into your password input k> tag. Yes.. providing you have no intention of making your markup validate (as transitional or strict) - but I guess lots of people don't, so it's a valid method.

Re: [PHP] Templating engines

2005-04-28 Thread John Nichel
Greg Donald wrote: On 4/28/05, Clive Zagno <[EMAIL PROTECTED]> wrote: What templating engines do you use with php and why? I use eval(). Because it works. Myself, I'm partial to include(). ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Restricting browser's a password manager pop-up

2005-04-28 Thread -k.
> The yes part is that it only appears based on the > browsers "intelligence" in scanning the name of your > form fields. Change "username" and "password" to > something, well.. more obtuse, and it often gets rid of > the problem. Give it a shot and see which combination > works for you.

[PHP] Re: Templating engines

2005-04-28 Thread Matthew Weier O'Phinney
* Clive Zagno <[EMAIL PROTECTED]>: > What templating engines do you use with php and why? > > Ive been using smarty (http://smarty.php.net) Just FYI, you've opened the door for a holy war, as temlating and template engines are a fairly volatile topic, with many people holding very extreme opinions

Re: [PHP] Templating engines

2005-04-28 Thread John Nichel
Greg Donald wrote: On 4/28/05, Clive Zagno <[EMAIL PROTECTED]> wrote: What templating engines do you use with php and why? I use eval(). Because it works. I'm a big fan of include(). ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://ww

[PHP] Re: Templating engines

2005-04-28 Thread Jason Barnett
Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. PHP itself is a templating engine, i.e. it can be used to filter input and format it into output. But Smarty is nice if you want your people to be able to create a

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Richard Davey wrote: Hello Jason, Thursday, April 28, 2005, 4:23:43 PM, you wrote: JB> Indeed... and replace ?a=22 with ?first=22 in my message as well. JB> :-/ Heh.. ok :) No worries, demonstrated to me that RegGlobs aren't quite as destructive as popular myth would lead you to believe (not that i

Re: [PHP] Templating engines

2005-04-28 Thread Greg Donald
On 4/28/05, Clive Zagno <[EMAIL PROTECTED]> wrote: > What templating engines do you use with php and why? I use eval(). Because it works. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Templating engines

2005-04-28 Thread Clive Zagno
Hi all, What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
Hello Jason, Thursday, April 28, 2005, 4:23:43 PM, you wrote: JB> Indeed... and replace ?a=22 with ?first=22 in my message as well. JB> :-/ Heh.. ok :) No worries, demonstrated to me that RegGlobs aren't quite as destructive as popular myth would lead you to believe (not that it'll make me star

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Richard Davey wrote: RD> As that code stands, even with register globals on, it will not echo RD> 22. At least on PHP 4.3.11 on my server this is the case. I guess RG RD> makes all variables global, but not super-global, which leaves the RD> above safe as the null of $total overrides whatever may h

[PHP] Re: Global Variables

2005-04-28 Thread Matthew Weier O'Phinney
* Dan <[EMAIL PROTECTED]>: > I taught myself PHP before the frenzy over register_globals. > After a reasonable break from the language, I'm back for more. > > I'm building a site where I'll be holding a lot of variables in memory > for each session. How do I do that? Apparently I can't use > sess

Re[3]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
RD> As that code stands, even with register globals on, it will not echo RD> 22. At least on PHP 4.3.11 on my server this is the case. I guess RG RD> makes all variables global, but not super-global, which leaves the RD> above safe as the null of $total overrides whatever may have been set. Err, r

Re[2]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
Hello Jason, Thursday, April 28, 2005, 3:25:10 PM, you wrote: JB> /** Page called with ?a=22 appended to URL */ JB> function add($a,$b,$c) { JB>return $a+$b+$c; JB> } JB> $total = add($first, $second, $third); JB> /** You think this will be 0, but with register_globals this is actually JB>

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Please do not reply to me personally. I will usually read your responses in the newsgroup. Vedanta Barooah wrote: the code below was talking of function declarations ... reffer to the thread. will code injection in case of function declarations work? I am not sure!! OK. But even so add($a,$b,$c

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Vedanta Barooah
the code below was talking of function declarations ... reffer to the thread. will code injection in case of function declarations work? I am not sure!! ;) thanks, vedanta On 4/28/05, Jason Barnett <[EMAIL PROTECTED]> wrote: > Vedanta Barooah wrote: > > btw! saying: > > > > add($a=null,$b=nu

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Jason Barnett
Vedanta Barooah wrote: btw! saying: add($a=null,$b=null,$c=null) is as good as saying: add($a,$b,$c) No, it's not. Because in this case $a, $b and $c are all uninitialized variables and (if this is a function definition) then you *have* to supply $a $b and $c parameters. Even if you were just

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Vedanta Barooah
btw! saying: add($a=null,$b=null,$c=null) is as good as saying: add($a,$b,$c) thanks, vedanta On 4/28/05, Vedanta Barooah <[EMAIL PROTECTED]> wrote: > Well that was simple, but this is what i am trying to solve: > > if you refer to the php documentation for ldap_open() function it says: > >

Re: [PHP] Skipping function arguments!

2005-04-28 Thread Vedanta Barooah
Well that was simple, but this is what i am trying to solve: if you refer to the php documentation for ldap_open() function it says: resource ldap_search ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int timelimit [, int deref]]

Re: [PHP] please help me send html email from php scripts instead of simple text

2005-04-28 Thread John Nichel
Carraccia, Giuseppe wrote: Hello, can you please help me send an html email using php instead of just simple text output. I'm trying to have the user fill out a form ( https://www.smilerochester.com/medical_form.html ) and have the exact same form emailed to me with the same pretty format of a for

Re: [PHP] please help me send html email from php scripts instead of simple text

2005-04-28 Thread Richard Davey
Hello Giuseppe, Thursday, April 28, 2005, 2:22:20 PM, you wrote: CG> Hello, can you please help me send an html email using php instead of CG> just simple text output. I'm trying to have the user fill out a form ( CG> https://www.smilerochester.com/medical_form.html ) and have the exact CG> same

Re: [PHP] Global Variables

2005-04-28 Thread John Nichel
Dan wrote: Hi all. I taught myself PHP before the frenzy over register_globals. After a reasonable break from the language, I'm back for more. I'm building a site where I'll be holding a lot of variables in memory for each session. How do I do that? Apparently I can't use session_register() if re

[PHP] please help me send html email from php scripts instead of simple text

2005-04-28 Thread Carraccia, Giuseppe
Hello, can you please help me send an html email using php instead of just simple text output. I'm trying to have the user fill out a form ( https://www.smilerochester.com/medical_form.html ) and have the exact same form emailed to me with the same pretty format of a form instead of just a variabl

Re: [PHP] Product details not being displayed, based on passed id

2005-04-28 Thread John Nichel
Mark Sargent wrote: Hi All, ok, so let me understand this. To be able to use GET/POST and some others, I need this turned on, yes..? Do you all have it set to on..? If no, how do you get around this..? Cheers. No. With globals off, php just doesn't _magically_ transform mydomain.com/script.php

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-04-28 Thread Jon Hill
> 1. First I want to know how to make the actual binary file that is written, > to be encoded as UTF-8. This is my PRIMARY question. I think this part is the key. If the string originated from your text editor, then your text editor needs to be in UTF-8 mode. If you are importing the data from a

Re: [PHP] problems using chr() in an Object

2005-04-28 Thread Jochem Maas
Martín Marqués wrote: El Jue 28 Abr 2005 09:42, Jochem Maas escribió: Martín Marqués wrote: I have an object class in which I'm doing chr() calls, especifically in the definition of some variables, and when loading the class I get this error: Parse error: parse error, unexpected '(', expecting '

Re: [PHP] Retrieving query from MSSQL Table

2005-04-28 Thread Mike Smith
On 4/28/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > I'm betting dollars to doughnuts that you've got a newline at the end of > $sql1 which is messing you up. You're right! Give that man a doughnut! When I tested the query in Query Analyzer. I hit [Enter] to format the query and make it readable

Re: [PHP] problems using chr() in an Object

2005-04-28 Thread Martín Marqués
El Jue 28 Abr 2005 09:42, Jochem Maas escribió: > Martín Marqués wrote: > > I have an object class in which I'm doing chr() calls, especifically in the > > definition of some variables, and when loading the class I get this error: > > > > Parse error: parse error, unexpected '(', expecting ',' o

Re: [PHP] Global Variables

2005-04-28 Thread Jochem Maas
Giulio wrote: As far as I know, it's not true you can't use session variables if register_globals is off, the difference is that you must acces session variables using ALWAYS CALL session_start() BEFORE TRYING TO USE THE $_SESSION SUPERGLOBAL! also I don't quite see the connection with register_gl

Re: [PHP] problems using chr() in an Object

2005-04-28 Thread Jochem Maas
Martín Marqués wrote: I have an object class in which I'm doing chr() calls, especifically in the definition of some variables, and when loading the class I get this error: Parse error: parse error, unexpected '(', expecting ',' or ';' in Ticket.inc on line 51 Line 51 has: var $textoInicio =

Re: [PHP] php/pear question

2005-04-28 Thread Martín Marqués
El Jue 28 Abr 2005 17:23, Kelly Meeks escribió: > I'm trying to get pear up and running, and I can't get it to work. > > I've tried it on a couple of different systems: > > fedora c2 and c3 with php 4.3.10 > > I can run pear from the shell, install new modules (pager, > html_quickform,...) but w

[PHP] php/pear question

2005-04-28 Thread Kelly Meeks
I'm trying to get pear up and running, and I can't get it to work. I've tried it on a couple of different systems: fedora c2 and c3 with php 4.3.10 I can run pear from the shell, install new modules (pager, html_quickform,...) but when ever I try using any pear code in a php script with the appr

  1   2   >