Re: [PHP] PHP Programming Innovation Award

2004-04-14 Thread Manuel Lemos
Hello, On 04/15/2004 03:00 AM, Andy B wrote: so basically regardless of whether it already exists or not just keep trying to improve the stuff i have untill such time... and if it is somewhat the same as someone elses then it doesnt matter then...? Well it depends on what you reckon it is a benefi

Re: [PHP] PHP Programming Innovation Award

2004-04-14 Thread Andy B
so basically regardless of whether it already exists or not just keep trying to improve the stuff i have untill such time... and if it is somewhat the same as someone elses then it doesnt matter then...? - Original Message - From: "Manuel Lemos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Andy B
makes since... i think would i would probably do is define the error/errormsg stuff at the beginning of the class that way all functions can use it?? class DbConnection { var $ErrorNumber; var $ErrorMsg; function Connect(.){ $link=mysql_connect(...); if(!$link){ $ErrorNumber=mysql_errno(); //

Re: [PHP] PHP Programming Innovation Award

2004-04-14 Thread Manuel Lemos
Hello, On 04/15/2004 01:54 AM, Andy B wrote: one question though how can you tell if a class or package you are writting or want to attempt to write has ever been created before?? 99.9% of the time anything i ever thought of for classes/packages to write are either too simple or the idea h

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): > hi > i have this function inside a class that im writing that eventually i want > to put inside a package of my own... the function goes like this: (comment > block included): > > /** > *function Connect: open connection to database. > * > [EMAIL PROT

Re: Re[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): > >How many versions of the wheel exist in the world >today? ...not many > >hacked out of stone I bet :-) > > > >-- > >regards, > >Tom > > what does that mean?? is everybody saying i should give up on this idea > then?? yes and no. Writing a database laye

Re[4]: [PHP] mysql connect function in my class

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 2:57:48 PM, you wrote: >>How many versions of the wheel exist in the world >today? ...not many >>hacked out of stone I bet :-) >> >>-- >>regards, >>Tom AB> what does that mean?? is everybody saying i should give up on this idea AB> then?? What I am saying is that it

Re: [PHP] PHP version usage statistics?

2004-04-14 Thread Curt Zirzow
* Thus wrote Jeffrey Tavares ([EMAIL PROTECTED]): > netcraft shows how many servers have php, but nothing specific about > versions. Maybe I'm wrong, but I checked all over netcraft's site. Sorry if I put ya on a bad lead. I could have swore they had some stats like that there, I guess I was wron

[PHP] Re: Understanding sessions

2004-04-14 Thread K.Bogac Bokeer
You can use $sid = session_name().'='.session_id(); instead of SID or you can define o constant define('SID', session_name().'='.session_id()); at the start of script ( after session_start() ). Todd Cary wrote: I am trying to understand sessions are done with php. My "learning script" has th

Re: Re[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Andy B
>How many versions of the wheel exist in the world >today? ...not many >hacked out of stone I bet :-) > >-- >regards, >Tom what does that mean?? is everybody saying i should give up on this idea then?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] PHP Programming Innovation Award

2004-04-14 Thread Andy B
one question though how can you tell if a class or package you are writting or want to attempt to write has ever been created before?? 99.9% of the time anything i ever thought of for classes/packages to write are either too simple or the idea has already been created before... i.e. i want

Re: [PHP] PHP version usage statistics?

2004-04-14 Thread Travis Low
Can you point me to a link showing usage of PHP, Java, ASP, etc.? I've been looking at netcraft.com, but I'm not seeing it. Thanks! Travis Jeffrey Tavares wrote: netcraft shows how many servers have php, but nothing specific about versions. Maybe I'm wrong, but I checked all over netcraft's s

[PHP] PHP Programming Innovation Award

2004-04-14 Thread Manuel Lemos
PHP Programming Innovation Award is an initiative meant to honor PHP developers that make outstanding contributions in the form of innovative classes of objects. The initiative has three main goals: encourage regular contributors to focus efforts contributing innovative components instead of du

Re: [PHP] PHP version usage statistics?

2004-04-14 Thread Jeffrey Tavares
netcraft shows how many servers have php, but nothing specific about versions. Maybe I'm wrong, but I checked all over netcraft's site. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP version usage statistics?

2004-04-14 Thread Curt Zirzow
* Thus wrote Jeffrey Tavares ([EMAIL PROTECTED]): > Is there some way to know a general php usage statistics specific to how > many run 4.1, 4.2, and 4.3? I'm trying to get an average percentage to > figure out whether it would be a great loss to not support prior versions. I believe netcraft ho

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Curt Zirzow
* Thus wrote Greg Donald ([EMAIL PROTECTED]): > On Wednesday 14 April 2004 07:12 pm, Andy B wrote: > > function Connect($host, $mysqluser, $mysqlpwd){ > > $link=mysql_connect($host, $mysqluser, $mysqlpwd) > > if(!$link){ return false; } > > else { return $link; }} > > should i keep it like this or

Re: [PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread Curt Zirzow
* Thus wrote Tom Rogers ([EMAIL PROTECTED]): > Hi, > > Thursday, April 15, 2004, 8:56:05 AM, you wrote: > RB> At 15:02 14-04-2004, Tom Rogers wrote: >>... >> > RB> preg_replace() and ereg_replace(), so it's a bit hard to get a quick > RB> glimpse of how big the difference really is ... (or for the

[PHP] Re: Session confusion again :( - Thanks!

2004-04-14 Thread Ligaya Turmelle
Can you explode something while you are working on it?? Won't it overwrite itself? Respectfully, Ligaya Turmelle "Boot" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any help with this would be appreciated. the p and v lnames are posted from > a form. In the form, the user sepera

[PHP] Re: Junk characters in e-mail

2004-04-14 Thread Ligaya Turmelle
Are those supposed to be the swedish characters and you get junk instead? What does the header look like? Are you trying to have the email encoded in UTF - 8? Are you sending out the mail with mail or mb_send_mail? Need a few more details. Respectfully, Ligaya Turmelle "Anders Norrbring" <[EM

[PHP] PHP version usage statistics?

2004-04-14 Thread Jeffrey Tavares
Is there some way to know a general php usage statistics specific to how many run 4.1, 4.2, and 4.3? I'm trying to get an average percentage to figure out whether it would be a great loss to not support prior versions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 10:35:58 AM, you wrote: GD> On Wednesday 14 April 2004 07:12 pm, Andy B wrote: GD> Why reinvent the wheel? GD> http://pear.php.net/packages.php?catpid=7&catname=Database GD> -- GD> Greg Donald GD> [EMAIL PROTECTED] How many versions of the wheel exist in the wo

Re[2]: [PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread Tom Rogers
Hi, Thursday, April 15, 2004, 8:56:05 AM, you wrote: RB> At 15:02 14-04-2004, Tom Rogers wrote: >>Hi, >> >>Thursday, April 15, 2004, 12:51:20 AM, you wrote: >>RB> Never mind y'all ... me stupid ... >> >>RB> obviously the ( has meaning, and needs to be escaped ... was starting to >>RB> think it cou

Re: [PHP] mysql_fetch_array problem? O.o

2004-04-14 Thread Richard Davey
Hello Jeff, Thursday, April 15, 2004, 3:18:53 AM, you wrote: JO> Ok, I have no clue what version of PHP I have installed, 4.??.??, and I have Find out: (view it in a browser) JO> like the newest version of MySQL insatlled, and PHP and MySQL work fine JO> together, excpet when I use mysql_fet

[PHP] mysql_fetch_array problem? O.o

2004-04-14 Thread Jeff Ostapchuk
Ok, I have no clue what version of PHP I have installed, 4.??.??, and I have like the newest version of MySQL insatlled, and PHP and MySQL work fine together, excpet when I use mysql_fetch_row($query) then I have problems, mysql_fetch_array($query) works fine, but not mysql_fetch_row($query). Why

Re[2]: [PHP] Single HTML form post affecting multiple HTML frames/PHP scripts

2004-04-14 Thread Tom Rogers
Hi, Wednesday, April 14, 2004, 7:59:43 PM, you wrote: RL> Tom Rogers wrote: >> Hi, >> >> Wednesday, April 14, 2004, 6:57:53 PM, you wrote: >> RL> So is there a way of making a single form post affect two scripts in >> RL> different HTML frames? Or a way of posting values from the second >> frame

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Greg Donald
On Wednesday 14 April 2004 07:12 pm, Andy B wrote: > function Connect($host, $mysqluser, $mysqlpwd){ > $link=mysql_connect($host, $mysqluser, $mysqlpwd) > if(!$link){ return false; } > else { return $link; }} > should i keep it like this or is it better for the function itself to deal > with error

[PHP] mysql connect function in my class

2004-04-14 Thread Andy B
hi i have this function inside a class that im writing that eventually i want to put inside a package of my own... the function goes like this: (comment block included): /** *function Connect: open connection to database. * [EMAIL PROTECTED] string $host mysql hostname to connect to [EMAIL PRO

Re: [PHP] storing an array in an ini file

2004-04-14 Thread David T-G
Red, et al -- ...and then Red Wingate said... % % Hi, % % had the same problem before and got around this by writing my own tiny % parser that should work just nicely ( as serializing is a pain-in-the-ass when % editing the .ini file on foot ) Indeed :-) It looks quite interesting; thanks! %

Re: [PHP] patTemplate

2004-04-14 Thread Enrico Weigelt
* Adrian Madrid <[EMAIL PROTECTED]> [2004-04-14 15:40:51 -0600]: > I'm not currenlty using pattemplate but I would like to test it. What's > the status? Looking at the website it shows 2.5 as unstable and CVS > looks like is a full rewrite. Should I test 2.4, 2.5 or 3.0 (CVS)? Well, I'm workin

Re: [PHP] Partly matching a field (Slightly 0T)

2004-04-14 Thread Curt Zirzow
* Thus wrote Robert Cummings ([EMAIL PROTECTED]): > On Wed, 2004-04-14 at 19:45, Ryan A wrote: > > Hi, > > I have a field "client_id" in the database and I have a search from where > > the client can enter the client_id to match from the database and then > > return the accounts details. > > > > L

Re: [PHP] Partly matching a field (Slightly 0T)

2004-04-14 Thread Robert Cummings
On Wed, 2004-04-14 at 19:45, Ryan A wrote: > Hi, > I have a field "client_id" in the database and I have a search from where > the client can enter the client_id to match from the database and then > return the accounts details. > > Later on we had to tack a -- after the client id, > eg: if the or

[PHP] Partly matching a field (Slightly 0T)

2004-04-14 Thread Ryan A
Hi, I have a field "client_id" in the database and I have a search from where the client can enter the client_id to match from the database and then return the accounts details. Later on we had to tack a -- after the client id, eg: if the original client id was: sadf_234 after the "tack" it becom

Re: [PHP] Looking for good Mail List Manager

2004-04-14 Thread Enrico Weigelt
* James Marcinek <[EMAIL PROTECTED]> [2004-04-14 15:18:49 -0700]: > Can any of you guys recommend a good Mail List > Manager? I see several on sourceforge but would like > to hear from people that have some experience with > these... majordomo is quite good. has a good working mail interface and

Re: [PHP] PHP and Oracle RAC

2004-04-14 Thread William Lovaton
Hi Kevin, Well, I use Oracle 8.1.7 in the DB server (not a RAC) and Oracle 9.2.0 in the web server (Linux). It works fine. AFAICT, there is no need to do something else in order to be able to connect to a RAC. You just have to (optionally) define a load balancing option in the tnsnames.ora in t

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread Brian V Bonini
On Wed, 2004-04-14 at 16:47, Curt Zirzow wrote: > * Thus wrote Brian V Bonini ([EMAIL PROTECTED]): > > Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 > > You're missing a } somewhere. > > if (1 ) { > > ?> Yup, I sure was :-D -- s/:-[(/]/:-)/g BrianGnu

[PHP] PHP and Oracle RAC

2004-04-14 Thread Kevin O'Brien
Has anyone succesfully got PHP and Oracle Real Application Cluster (RAC) working together? -=Kevin=- - Do you Yahoo!? Yahoo! Tax Center - File online by April 15th

[PHP] Re: Looking for good Mail List Manager

2004-04-14 Thread Justin Patrin
James Marcinek wrote: Can any of you guys recommend a good Mail List Manager? I see several on sourceforge but would like to hear from people that have some experience with these... Thanks, James __ Do you Yahoo!? Yahoo! Tax Center - File onl

Re: [PHP] Looking for good Mail List Manager

2004-04-14 Thread Joshua D. Drake
Mailman James Marcinek wrote: Can any of you guys recommend a good Mail List Manager? I see several on sourceforge but would like to hear from people that have some experience with these... Thanks, James __ Do you Yahoo!? Yahoo! Tax Center -

[PHP] Looking for good Mail List Manager

2004-04-14 Thread James Marcinek
Can any of you guys recommend a good Mail List Manager? I see several on sourceforge but would like to hear from people that have some experience with these... Thanks, James __ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th

[PHP] Re: php and mysql help

2004-04-14 Thread Eric Bolikowski
"Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you. -- PHP

Re: [PHP] Never mind ... stupid me :-/ {was Re: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???}

2004-04-14 Thread -{ Rene Brehmer }-
At 15:02 14-04-2004, Tom Rogers wrote: Hi, Thursday, April 15, 2004, 12:51:20 AM, you wrote: RB> Never mind y'all ... me stupid ... RB> obviously the ( has meaning, and needs to be escaped ... was starting to RB> think it could only do 2 ereg's in 1 script *sigh* RB> Sorry for wasting time and ban

Re: [PHP] patTemplate

2004-04-14 Thread Adrian Madrid
Enrico Weigelt wrote: BTW: is there anyone (beside me) who uses patTemplate ? cu I'm not currenlty using pattemplate but I would like to test it. What's the status? Looking at the website it shows 2.5 as unstable and CVS looks like is a full rewrite. Should I test 2.4, 2.5 or 3.0 (CVS)? Tha

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread Curt Zirzow
* Thus wrote Brian V Bonini ([EMAIL PROTECTED]): > Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 You're missing a } somewhere. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread John W. Holmes
From: "Brian V Bonini" <[EMAIL PROTECTED]> > Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 > > 146: > 147: 148: } > 149: include "foobar.inc.php4"; > 150: ?> You missed a closing bracket or quote somewhere. ---John Holmes... -- PHP General Mailing List (http://www.

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread Daniel Clark
What about line 148 the "{" ... supposed to be there? > Brian V Bonini wrote: >> Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 >> >> 146: >> 147: > 148: } >> 149: include "foobar.inc.php4"; >> 150: ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: Command line include path?

2004-04-14 Thread Justin Patrin
Mike Zornek wrote: I'm getting started with PEAR's DB_DataObject and am trying to follow along with the tutorial: http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.p hp It tells me to create the ini file (which I did) and then run createTables.php from the command line to

Re: [PHP] unexpected $ in ... WTF?

2004-04-14 Thread John Nichel
Brian V Bonini wrote: Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 146: 147: Your error is going to be somewhere above that in the script. Forgot a semi-colon, closing bracket/brace/etc, etc. -- ***

[PHP] unexpected $ in ... WTF?

2004-04-14 Thread Brian V Bonini
Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150 146: 147: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] patTemplate

2004-04-14 Thread Enrico Weigelt
BTW: is there anyone (beside me) who uses patTemplate ? cu -- - Enrico Weigelt== metux IT services phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: [

RE: [PHP] setcookie statements are giving me error

2004-04-14 Thread Ryan Schefke
Curt, Thanks. That was the issue. Am I allowed to redirect directly below the setcookie functions using "header ('Location" Thanks, Ryan == -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Wednesda

RE: [PHP] WIERD list behavior

2004-04-14 Thread Chris W. Parker
Dennis Gearon on Wednesday, April 14, 2004 12:08 PM said: > When I make a posting to this list, I get an email like below: just ignore it. this list seems to be plagued with illegitimate auto-replys. but i guess that's sort of an oxymoron isn't it? chris. -- PH

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:37 PM said: > But if I want to use $username accross many pages then I will have to > make it a session variable and call it as such on each page like > "$_SESSION['username']" correct. c. -- PHP General Mailing List (http://

RE: [PHP] Junk characters in e-mail

2004-04-14 Thread Anders Norrbring
> [snip] > First of all, I have no idea if my problem is php or Postfix related, thus > the cross-post. > > Every e-mail sent out from my server by a php script ends with a string of > junk characters, they're not the same from different scripts and of course > not to be found anywhere in the code

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
But if I want to use $username accross many pages then I will have to make it a session variable and call it as such on each page like "$_SESSION['username']" Thanks again! "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] BOOT on Wedne

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:17 PM said: > So I went and turned them off. Now of course my pages don't work > properly. I guess I have to go through all my code and address the > variables properly ie. $_POST and $_SESSION? no. just assign them at the begin

RE: [PHP] Junk characters in e-mail

2004-04-14 Thread Jay Blanchard
[snip] First of all, I have no idea if my problem is php or Postfix related, thus the cross-post. Every e-mail sent out from my server by a php script ends with a string of junk characters, they're not the same from different scripts and of course not to be found anywhere in the code. Example:

Re: [PHP] setcookie statements are giving me error

2004-04-14 Thread Curt Zirzow
* Thus wrote Ryan Schefke ([EMAIL PROTECTED]): > > cannot modify header errors, which tells me there's nothing wrong with my > main script. Am I doing something wrong with cookies here? > > "Warning: Cannot modify header information - headers already sent by." You're missing the most import

[PHP] Junk characters in e-mail

2004-04-14 Thread Anders Norrbring
Hi! First of all, I have no idea if my problem is php or Postfix related, thus the cross-post. Every e-mail sent out from my server by a php script ends with a string of junk characters, they're not the same from different scripts and of course not to be found anywhere in the code. Example:

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
Yes in php.ini. I never bothered turning off as (a) I did not take the time to understand the implications and (b) my project is only for internal network use anyway. So I went and turned them off. Now of course my pages don't work properly. I guess I have to go through all my code and address the

[PHP] WIERD list behavior

2004-04-14 Thread Dennis Gearon
When I make a posting to this list, I get an email like below: --- Subject: Thank you From: "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> Date: Wed, 14 Apr 2004 12:03:35 -0700 To: Dennis Gearon <[EMAIL PROTECTED]> ADVANCE CREDIT SUISSE

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Dennis Gearon
"'Chris W. Parker'" <[EMAIL PROTECTED]> elucidated: Thanks guys but I have register globals ON so once the session variable is defined I should be able to address it without specifying $_SESSION ? WHERE do you have it on? Most sites now have it turned off for VERY valid security reasons. If you

[PHP] setcookie statements are giving me error

2004-04-14 Thread Ryan Schefke
I'm trying to set multiple cookies and getting the error below. I removed all of the white spaces and extra lines before and after my , so, that shouldn't be an issue. I get the error for each cookie and it echoes back as "...cookie not set" like I coded. This is the code chunk I'm trying to r

RE: [PHP] php and mysql help

2004-04-14 Thread Jay Blanchard
[snip] Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you. [/snip] http://www.php.net/mysql_create_db You're welcome. -- PHP General

Re: [PHP] php and mysql help

2004-04-14 Thread Curt Zirzow
* Thus wrote webmaster ([EMAIL PROTECTED]): > Hello i need help with mysql_create_db i found the solution once but cant remember > what it was if someone could tell me the proper way to create a database with php > and mysql i would be greatly thankfull. You just need to issue a create database

[PHP] php and mysql help

2004-04-14 Thread webmaster
Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you.

Re: [PHP] smarty

2004-04-14 Thread pete M
Curt Zirzow wrote: :0 * ^Subject: Re: smarty /dev/null Curt agreed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] smarty

2004-04-14 Thread Richard Davey
Hello John, Wednesday, April 14, 2004, 4:57:00 PM, you wrote: JWH> Only if you have error_reporting() set high. If you have a PHP templating JWH> solution, you'd turn error_reporting() down when you included the PHP JWH> templates so you didn't get a warning. John I'm shocked - of all people I w

Re: [PHP] smarty

2004-04-14 Thread Curt Zirzow
:0 * ^Subject: Re: smarty /dev/null Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail Functions on File

2004-04-14 Thread Daryl Meese
Hello all, Is it possible to use the imap functions on a file instead of opening a mail box via imap_open? I have create virtual users and am having a large amount of difficulty getting authentication to work. Since they will be checking their email through our software, and have already auth

Re: Re[2]: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* John W. Holmes <[EMAIL PROTECTED]> [2004-04-14 11:57:00 -0400]: > You're relying on web-server writable directories when you use Smarty. > It's all a trade-off. This gets problematic in multi-user environments. You cant use mod_php anylonger, instead you have to switch to slow cgi+suexec. Ok

[PHP] quickie survey

2004-04-14 Thread Dennis Gearon
I am doing a site where some of the pages will show various hours of some businesses. To make life easier for searching for open businesses PER DAY, I have pretty much decided to make an arbitrary dat-to-day boundary, instead of the usual midnight boundary. Some businesses that this applies to

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Paul Fine
Thanks guys but I have register globals ON so once the session variable is defined I should be able to address it without specifying $_SESSION ? -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: April 14, 2004 11:48 AM To: BOOT; [EMAIL PROTECTED] Subject: RE: [PHP]

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Ford, Mike [LSS]
On 14 April 2004 17:40, BOOT wrote: > Any help with this would be appreciated. the p and v lnames are > posted from a form. In the form, the user seperates last names with a > "/". What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! > > >

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 9:40 AM said: > What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! [snip] > $_SESSION['element_countp'] = count($p_lnames); > echo "TEST 1".$element_countp; > > $element_co

[PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
Any help with this would be appreciated. the p and v lnames are posted from a form. In the form, the user seperates last names with a "/". What I can't understand is why Test1 shows as nothing, while Test2 shows the value I wanted. Thanks a lot! $p_lnames= explode("/", $p_lnames); $_SESSION['el

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Enrico Weigelt said: > Well, I'm a little bit "unpolite" against smarty, since it seems > that people tend to see it as "the best" (tm) and ignore other, > probably better solutions. (its the same thing w/ mysql or mailman) I'm "unpolite" against Smarty because I used to think PHP couldn't *easily

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
>> + bound to the php-interpreter and cannot be used w/ other languages. this point is completely invalid... Haame me any other templating system that can be used across diffeerent languages ?? + content rendering process cannot be separated from the application > server. ITS NOT AN APPLICATION

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 12:11:31 -0400]: > Hey PHP/Smarty templates aren't for everyone. No one said they were. But > for my next project I believe I'll be using native PHP as a template > engine. Well, I'm a little bit "unpolite" against smarty, since it seems that p

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
Vicente Werner said: > mmm some points: > > 1st. Clarity. It's much more clear to me to take a look at a template and > identify a subsituing variable when it's marked as something different > like: > {$var} than the uglyness of -and if you follo the recommended > way: > Tomay-toe, toh-mah-toe.

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Tim Traver <[EMAIL PROTECTED]> [2004-04-14 09:00:24 -0700]: >Actually, you can use smarty in a way that solves those issues. Not without putting much code around smarty. > Simply not include the logic features of smarty in your templates. But how can I really prevent the one who writes t

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Peter Morgan said: >>>We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That >>>stuff then gets coded. >> >>I agree, and I'm saying you can also do that with native PHP. >>I plan on doing that with the next site I build. Then if I see that it >>makes sense to use Smarty I will, b

Re: [PHP] smarty

2004-04-14 Thread Vicente Werner
mmm some points: 1st. Clarity. It's much more clear to me to take a look at a template and identify a subsituing variable when it's marked as something different like: {$var} than the uglyness of -and if you follo the recommended way: 2nd. As other users pointed, error handling. 3th. Lac

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Enrico Weigelt said: > I really don't like smarty. The idea is simply not right. It's a good idea; in fact, PHP was originally supposed to be a templating engine. You can easily separate business and presentation logic in either PHP or Smarty. > + does not separate (imperative) code from layout.

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 11:33:56 -0400]: > Naww... I'd been using Smarty for several weeks now because I thought the > only alternative to spaghetti code was Smarty, but recently I realized > that it's not, and that simple example shows it. I didn't realize I had > anoth

Re: [PHP] Re: smarty

2004-04-14 Thread Tim Traver
Enrico, Actually, you can use smarty in a way that solves those issues. Simply do not include the logic features of smarty in your templates. That way, the only thing included in the templates is html, and {$variables}. Then your web designers don't need to learn anything. The problem that you

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* Justin French <[EMAIL PROTECTED]> [2004-04-15 00:37:41 +1000]: > You must remember, Smarty is just a layer over PHP. All the functions > that you've listed exist in pure PHP code somewhere. It would > relatively easy to code equivalent templates in PHP. Yes, you're right. But then it shoul

Re: [PHP] smarty

2004-04-14 Thread Enrico Weigelt
* Chris de Vidal <[EMAIL PROTECTED]> [2004-04-14 10:30:53 -0400]: > So there are alternatives to what Smarty offers, but I also said "I just > see them [template engines] as another tool." It's a tool; use it where I can't agree here. Template engines (in the sense we're talking here - for se

Re: Re[2]: [PHP] smarty

2004-04-14 Thread John W. Holmes
From: "Richard Davey" <[EMAIL PROTECTED]> > Because you're injecting variables directly into your HTML, which some > of the time might be ok - but what if the $row_array doesn't contain > "name" ? You'll raise an Error Warning without first passing it > through some kind of test (or function). On

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
pete M said: > We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That > stuff then gets coded. I agree, and I'm saying you can also do that with native PHP. I plan on doing that with the next site I build. Then if I see that it makes sense to use Smarty I will, but you can mock

Re: [PHP] Re: smarty

2004-04-14 Thread Enrico Weigelt
* pete M <[EMAIL PROTECTED]> [2004-04-14 13:50:19 +0100]: > Moving our sites to smarty is the best thing we've done at our company... > > > I do the php/database coding (logic) > the html designer does the templates/css > and the graphic designer does his bit. I really don't like smarty. The id

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
Richard Davey said: > CdV> I don't understand... how is this: > [snip] > CdV> Better than this? > CdV> = > CdV> $result = mysql_query ("SELECT * FROM users WHERE id = > '".$_GET["id"]."'); > CdV> $row_array = mysql_fetch_array ($result); > CdV> $name= $row_array["name"]; > CdV>

Re: [PHP] Re: smarty

2004-04-14 Thread John W. Holmes
From: "pete M" <[EMAIL PROTECTED]> > Think everyone is missing the point.. > the whole point of smarty is to take the presentation code away from the > logic Correct. The point your missing is that PHP can be on both sides of the equation. You can have PHP in your templates that only controls you

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Actually where it =really speeds thing up is the prototype/research/planning etc We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That stuff then gets coded. Doddle Pete Vicente Werner wrote: El Wednesday 14 April 2004 13:33, Chris de Vidal escribió: pete M said: Moving

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
well said kelly !!! > So if we're trying to say that you don't need Smarty to make a simplistic > template, I think even the most diehard Smarty fanatic will agree. It just > sounds a lot like people who don't really see the power of Smarty, saying > that it's got no power and no benefit. That is

Re: [PHP] Re: smarty

2004-04-14 Thread Chris de Vidal
Justin French said: > You must remember, Smarty is just a layer over PHP. All the functions > that you've listed exist in pure PHP code somewhere. It would > relatively easy to code equivalent templates in PHP. > > Taking some random examples from your list: I believe Smarty users would say "Ye

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
pete M said: > Think everyone is missing the point.. > the whole point of smarty is to take the presentation code away from the > logic No, I understood that point. It's why I started using Smarty. Take another look at what I said: http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=

Re: [PHP] smarty

2004-04-14 Thread Chris de Vidal
Kelly Hallman said: > I don't recall anyone ever advancing the notion that Smarty turned PHP > into something more than it was before. By definition it is merely a layer > that makes your life as a developer easier. A tool! Yeah but in my ignorance that's what I thought, and I realized I probably

Re: [PHP] Re: smarty

2004-04-14 Thread Kelly Hallman
Apr 14 at 9:33am, Chris de Vidal wrote: > pete M said: > > Moving our sites to smarty is the best thing we've done at our company. > > Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as > mostly (not always) redundant. see my post where I learned that PHP > makes a great temp

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Think everyone is missing the point.. the whole point of smarty is to take the presentation code away from the logic Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in

Re[2]: [PHP] smarty

2004-04-14 Thread Richard Davey
Hello Chris, Wednesday, April 14, 2004, 3:35:05 PM, you wrote: CdV> I don't understand... how is this: [snip] CdV> Better than this? CdV> = CdV> $result = mysql_query ("SELECT * FROM users WHERE id = '".$_GET["id"]."'); CdV> $row_array = mysql_fetch_array ($result); CdV> $name

  1   2   >