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

2005-04-29 Thread Petar Nedyalkov
On Friday 29 April 2005 07:08, Mark Cain wrote: > 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 rota

[PHP] mail problem

2005-04-29 Thread Ross
I get the following mail problem when trying to send from localhost. Any ideas? Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in c:\Inetpub\wwwroot\ssn\adv_mail.php on line 179 R. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Templating engines

2005-04-29 Thread Clive Zagno
Wait - doesn't smarty 'compile' the php file and the tpl file into another php file. If you look into templates_c directory you find some 'compiled' templates. clive Robert Cummings wrote: On Thu, 2005-04-28 at 13:20, Ryan A wrote: On 4/28/2005 7:08:00 PM, Evert | Rooftop Solutions ([EMAIL PROT

[PHP] Regular expressions problem

2005-04-29 Thread Khorosh Irani
Hello I have a question: What is in the role of space in the regular expressions (POSIX)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php Full Page Calendar not date picker

2005-04-29 Thread Angelo Zanetti
Hi all. Im looking for a PHP/Javascript calender that is a full page calender. IE: for each day there is quite a big block. Therefore it will be a bigger form of a date picker. What I want to do is to be able to assign notes for each day. I've seen the smarty calender which is exactly what I need

Re: [PHP] PHP and Ajax?

2005-04-29 Thread Dan Rossi
its using the standard toolkit available in most browsers, what i find a pain in the ass is having to build the post data into a string before it can be sent, it should do it for u On 29/04/2005, at 4:40 PM, Hidayet Dogan wrote: Try SAJAX at http://www.modernmethod.com/sajax

RE: [PHP] PHP and Ajax?

2005-04-29 Thread Zac Barton
You should also look at JSON (JavaScript Object Notation - is a lightweight data-interchange format) http://pear.php.net/pepr/pepr-proposal-show.php?id=198 http://mike.teczno.com/json.html Zac -Original Message- From: Hidayet Dogan [mailto:[EMAIL PROTECTED] Sent: 29 April 2005 07:41 To

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Angelo Zanetti
Dont worry guys i solved it. Angelo Zanetti wrote: >Hi all. > >Im looking for a PHP/Javascript calender that is a full page calender. >IE: for each day there is quite a big block. Therefore it will be a >bigger form of a date picker. What I want to do is to be able to assign >notes for each day.

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Petar Nedyalkov
On Friday 29 April 2005 11:43, Angelo Zanetti wrote: > Dont worry guys i solved it. And if you name the solution, it'll be a perfect finish for this thread. Remember, this mailing-list is used as a knowledge base from a lot of people. > > Angelo Zanetti wrote: > >Hi all. > > > >Im looking for a P

[PHP] Your Opinion

2005-04-29 Thread Sudeep Sarath
Hi everybody, I'm planning to buy "PHP5 & MySQL Bible", the book written by Tim Converse, Joyce Park & Clark Morgan. Give me your opinion on this book, if anyone has gone thru it. Thanx. Yahoo! India Matrimony: Find you

[PHP] How to know if php CAN write files on server and WHERE it can?

2005-04-29 Thread Giulio
I know, uploading files and handling them is an issue covered again and again, but there are still some answers I can'tfind on archives. Having to read some uploaded files, perform operations on them ( basically attach them on a single file ), and then save the resulting file using ftp, and try

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Angelo Zanetti
I got a script from a friend of mine. Otherwise I would have definitely given the URL... Petar Nedyalkov wrote: >On Friday 29 April 2005 11:43, Angelo Zanetti wrote: > > >>Dont worry guys i solved it. >> >> > >And if you name the solution, it'll be a perfect finish for this thread. >Rememb

Re: [PHP] PHP and Ajax?

2005-04-29 Thread Dan Rossi
hmm isnt the intention of httprequest is that u can send post data without leaving the page ? It has worked for me, except u have to build the post data yourself to send. On other similar circumstances i've had to post certain data from a post to the current database but also executr a script a

[PHP] Re: Can this code go faster?

2005-04-29 Thread Rolf Østvik
Just a couple of comments about those 0x.. and 11 in my post. (By the way, i haven't looked to closely on speed even if the OP asked for that, i was unsure on how he was coding his numbers). [EMAIL PROTECTED] (Rolf Østvik) wrote in news:[EMAIL PROTECTED]: > [EMAIL PROTECTED] (René F

[PHP] Re: Templating engines

2005-04-29 Thread pete M
Hi clive I tried all of them and I must admit smarty comes out on top by a mile I use it on a very busy virtual host and have had NO problems with slow script etc, highly recommended http://smarty.php.net pete Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive bee

[PHP] Re: Regular expressions problem

2005-04-29 Thread Matthew Weier O'Phinney
* Khorosh Irani <[EMAIL PROTECTED]>: > Hello > I have a question: > What is in the role of space in the regular expressions (POSIX)? To match a space. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| ht

Re: [PHP] Re: Templating engines

2005-04-29 Thread Matthew Weier O'Phinney
* Clive Zagno <[EMAIL PROTECTED]>: > Wait - doesn't smarty 'compile' the php file and the tpl file into > another php file. If you look into templates_c directory you find some > 'compiled' templates. Yes, it does. And your question is...? If it's about performance, the compilation is not an i

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

2005-04-29 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > 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 trig

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

2005-04-29 Thread Jochem Maas
[EMAIL PROTECTED] wrote: 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

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

2005-04-29 Thread Dan Rossi
Its DB_Error which is the error callback for the PEAR DB. I dont know where its being references but its triggering my php error handler and i cant supress the errors for require. There is no such file DB/Error.php however i may have to create one just to make it go away :) On 29/04/2005, at 9

Re: [PHP] mail problem

2005-04-29 Thread Brent Baisley
It probably means your email server is not setup for open relaying (aka spam server). Mail servers should require a login in order to send email through them. The mail() function itself doesn't support names and passwords, but other php functions do. You might want to look into phpmailer to han

Re: [PHP] Round to the nearest X - SOLVED

2005-04-29 Thread Chris Boget
Thank you for everyone's suggestions. Using them (and a few other things I've found elsewhere), I've come up with the following function: function roundToNearest( $number, $toNearest = 5 ) { $retval = 0; $mod = $number % $toNearest; if( $mod >= 0 ) { $retval = ( $mod > ( $toNearest /

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

2005-04-29 Thread Jason Barnett
[EMAIL PROTECTED] wrote: 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

[PHP] POP access to gmail

2005-04-29 Thread Malcolm Mill
Does anyone know of a PHP script to access gmail's POP services? Thanks, Malcolm. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POP access to gmail

2005-04-29 Thread The Disguised Jedi
On 4/29/05, Malcolm Mill <[EMAIL PROTECTED]> wrote: > > Does anyone know of a PHP script to access gmail's POP services? Check PEAR. There is a POP communication script that you may like there. http://pear.php.net/package/Net_POP3 HTH, -- The Disguised Jedi [EMAIL PROTECTED] Now you have m

[PHP] Re: POP access to gmail

2005-04-29 Thread pete M
http://phpmailer.sourceforge.net/ excellent and easy to use class Malcolm Mill wrote: Does anyone know of a PHP script to access gmail's POP services? Thanks, Malcolm. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help formatting a mysql datetime variable

2005-04-29 Thread Bosky, Dave
I'm trying to get a mysql datetime variable called $cdate formatted so it will print: Thursday, April 28, 2005 at 8:00:00 PM Eastern Time I tried the following but it's not perfect. -- $newDate = date('I, F d, Y at g:i:s A T', $cdate); echo $newDate; --

[PHP] check for alphanumeric characters

2005-04-29 Thread Diana Castillo
what kind of a function can I use that will tell me whether a variable is alphanumeric (that is has only characters A-Z or 1-9 )? -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web

RE: [PHP] check for alphanumeric characters

2005-04-29 Thread Jay Blanchard
[snip] what kind of a function can I use that will tell me whether a variable is alphanumeric (that is has only characters A-Z or 1-9 )? [/snip] You can use a regular expression, start here http://us3.php.net/regex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] check for alphanumeric characters

2005-04-29 Thread John Nichel
Diana Castillo wrote: what kind of a function can I use that will tell me whether a variable is alphanumeric (that is has only characters A-Z or 1-9 )? Something like this should work. (untested) preg_match ( "/^([a-z]||[A-Z]||[0-9])+$/", $string ) -- John C. Nichel ÜberGeek KegWorks.com 716.85

[PHP] only allowing php_flag register_globals off

2005-04-29 Thread Karin van den Berg
Hi, I am on a quest for a new good webhost and I am currently using a trail account at a host that seems pretty good, but has one problem. I cannot turn register_globals off. They don't allow php_flag/php_value in .htaccess for security reasons but in this case it's causing insecurity It's not that

RE: [PHP] only allowing php_flag register_globals off

2005-04-29 Thread Jay Blanchard
[snip] I am on a quest for a new good webhost [/snip] How about http://www.phpwebhosting.com? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-29 Thread Robert Cummings
On Fri, 2005-04-29 at 13:27, Clive Zagno wrote: > Wait - doesn't smarty 'compile' the php file and the tpl file into > another php file. If you look into templates_c directory you find some > 'compiled' templates. I didn't say smarty wasn't compiled, only that InterJinn avoids the cache overhea

[PHP] authentication problem

2005-04-29 Thread Yavuz S. Atmaca
Hi all I'm trying to do authentication with database. I created the database and I inserted some usernames and passwords into my database. By using the below file, I'm trying to give access to the main page for the accounts that matches the username and password. The problem is that "it do not reco

Re: [PHP] check for alphanumeric characters

2005-04-29 Thread Philip Hallstrom
what kind of a function can I use that will tell me whether a variable is alphanumeric (that is has only characters A-Z or 1-9 )? http://us3.php.net/manual/en/function.ctype-alnum.php bool ctype_alnum ( string text ) Checks if all of the characters in the provided string, text, are alphanumeric. I

Re: [PHP] check for alphanumeric characters

2005-04-29 Thread John Nichel
Philip Hallstrom wrote: what kind of a function can I use that will tell me whether a variable is alphanumeric (that is has only characters A-Z or 1-9 )? http://us3.php.net/manual/en/function.ctype-alnum.php bool ctype_alnum ( string text ) Checks if all of the characters in the provided string, t

Re: [PHP] check for alphanumeric characters

2005-04-29 Thread Matthew Weier O'Phinney
* John Nichel <[EMAIL PROTECTED]>: > Diana Castillo wrote: > > what kind of a function can I use that will tell me whether a variable is > > alphanumeric (that is has only characters A-Z or 1-9 )? > > Something like this should work. (untested) > > preg_match ( "/^([a-z]||[A-Z]||[0-9])+$/", $stri

Re: [PHP] Re: Templating engines

2005-04-29 Thread rush
"Clive Zagno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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. if this is your objective than it could be worthwile for you to look at Templa

[PHP] Session Expiring

2005-04-29 Thread John Martinez
Hi list, I want to have the page expire after ten minutes of inactivity. For example, if you goto Travelocity.com and do a search then sit idle for awhile it refreshes the page with a notice that you've been idle etc. I want to dupe this but I only know the cheeseball way of using the meta tag http

Re: [PHP] Session Expiring

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 10:28 am, John Martinez said: > I want to have the page expire after ten minutes of inactivity. For > example, if you goto Travelocity.com and do a search then sit idle for > awhile it refreshes the page with a notice that you've been idle etc. > I want to dupe this but I onl

Re: [PHP] Templating engines

2005-04-29 Thread rush
"Mattias Thorslund" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > (On the subject of templating engines, again.) > > I wonder what you folks think of the following: > http://www.massassi.com/php/articles/template_engines/ hi! It is nicely written, but actually, I think completely

Re: [PHP] authentication problem

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 8:50 am, Yavuz S. Atmaca said: > $sql = "SELECT user_id > FROM tbl_auth_user > WHERE user_id = '$userId' AND > user_password = PASSWORD('$password')"; Did you use the PASSWORD function when you inserted your passwords, or are they just plain-text?

Re: [PHP] only allowing php_flag register_globals off

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 7:51 am, Karin van den Berg said: > I am on a quest for a new good webhost and I am currently using a trail > account at a host that seems pretty good, but has one problem. I cannot > turn register_globals off. They don't allow php_flag/php_value in > .htaccess for security r

[PHP] Is there any way to show the error file without showing the dir information?

2005-04-29 Thread cchereTieShou
In many case, if there is an error happen in a php script, it may return an error message something like " Parse error: parse error, unexpected T_FUNCTION in /home/content/usr/html/test.php on line 6" Is there any way to not show the dir information, but only as "test.php on line 6" instead? -- P

Re: [PHP] help formatting a mysql datetime variable

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 7:38 am, Bosky, Dave said: > I'm trying to get a mysql datetime variable called $cdate formatted so > it will print: > > Thursday, April 28, 2005 at 8:00:00 PM Eastern Time > > I tried the following but it's not perfect. > > -- > $newDate = date('I, F d, Y

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Wil Hitchman
Well you could have shared that script with us. I am actually looking for the same thing. Thanks, Wil - Original Message - From: "Angelo Zanetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "PHP List" Sent: Friday, April 29, 2005 5:25 AM Subject: Re: [PHP] SOLVEDphp Full Page Calen

Re: [PHP] Templating engines

2005-04-29 Thread Mattias Thorslund
rush wrote: "Mattias Thorslund" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] (On the subject of templating engines, again.) I wonder what you folks think of the following: http://www.massassi.com/php/articles/template_engines/ hi! It is nicely written, but actually, I think

[PHP] Having problems connecting to MS SQL2000 server on PHP5

2005-04-29 Thread Vernon Jenewein
Hi, Follwoing is a problem I'm having following some advice in a book called "PHP5 in easy steps" written by Mike McGrath: This is a connection that seems not to work according to the writer of "PHP 5 in easy steps" : MS SQL2000 Connection Test He originally wrote (for line 6) $conne

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Richard Lynch
Here's source code to one I wrote ages and ages ago... http://chatmusic.com/calendar.phps http://chatmusic.com/calendar.php Here's a similar one with PDF output: http://uncommonground.com/events.phps http://uncommonground.com/events.pdf Help yourself to whatever bits and pieces you want. YMMV

Re: [PHP] Having problems connecting to MS SQL2000 server on PHP5

2005-04-29 Thread Mike Smith
Check your php.ini. It seems you are running this on Windows w/Apache. Make sure php_mssql.dll (or php_mssql.so if you are on Linux) is NOT commented out. Also, I think you'll need a SQL account. Is the SQL Server in mixed mode or Windows authentication? Look in Enterprise MAnager or the registry (

Re: [PHP] How to know if php CAN write files on server and WHERE it can?

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 1:51 am, Giulio said: > Having to read some uploaded files, perform operations on them ( > basically attach them on a single file ), and then save the resulting > file using ftp, and trying to have the php page as general as possible > ( I mean have it work on the larger numb

Re: [PHP] SOLVEDphp Full Page Calendar not date picker

2005-04-29 Thread Jason Motes
Here is cal from a scheduling app i have working on. http://www.imotes.com/cal2.php http://www.imotes.com/cal2.phps Richard Lynch wrote: Here's source code to one I wrote ages and ages ago... http://chatmusic.com/calendar.phps http://chatmusic.com/calendar.php Here's a similar one with PDF output:

Re: [PHP] Your Opinion

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 1:51 am, Sudeep Sarath said: > I'm planning to buy "PHP5 & MySQL Bible", the book > written by Tim Converse, Joyce Park & Clark Morgan. > Give me your opinion on this book, if anyone has gone > thru it. I tech-edited the first two editions, before a change in personnel at

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

2005-04-29 Thread Richard Lynch
On Thu, April 28, 2005 10:51 pm, William Stokes said: > How about preventing access by hitting the browsers back button after the > user has logged out? Try sending an md5 or uniqid out as TYPE=HIDDEN with your login, and marking it "used" after the first login. Also educate the users to CLOSE TH

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

2005-04-29 Thread Richard Lynch
On Thu, April 28, 2005 9:08 pm, Mark Cain said: > 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 rota

[PHP] Re: Templating engines

2005-04-29 Thread Skrol 29
What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates systems I totaly disagree to say that PHP is a T

[PHP] inserting an auto incemented column in table already created

2005-04-29 Thread Ross Hulford
Hi, I have a table with 15 columns or so that has been inherited from an older db and am trying to insert an auto increment column (in mysql) without having to number it manually. This is fine when I add new colums via a form but the old entries have a null value Alternatively It has been con

[PHP] Re: Is there any way to show the error file without showing the dir information?

2005-04-29 Thread Jason Barnett
cchereTieShou wrote: In many case, if there is an error happen in a php script, it may return an error message something like " Parse error: parse error, unexpected T_FUNCTION in /home/content/usr/html/test.php on line 6" Is there any way to not show the dir information, but only as "test.php on li

RE: [PHP] inserting an auto incemented column in table already created

2005-04-29 Thread Jay Blanchard
[snip] I have a table with 15 columns or so that has been inherited from an older db and am trying to insert an auto increment column (in mysql) without having to number it manually. This is fine when I add new colums via a form but the old entries have a null value Alternatively It has been c

Re: [PHP] Re: Templating engines

2005-04-29 Thread Greg Donald
On 4/29/05, Skrol 29 <[EMAIL PROTECTED]> wrote: > It would be like calling Notepad / VI / TextEdit "Html Editors". HTML is text.. so any text editor is an HTML editor by default, including vi. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.p

Re: [PHP] inserting an auto incemented column in table already created

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 2:14 pm, Ross Hulford said: > I have a table with 15 columns or so that has been inherited from an older > db and am trying to insert an auto increment column (in mysql) without > having to number it manually. This is fine when I add new colums via a > form > but the old ent

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Skrol 29 wrote: What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates systems I totaly disagree to

Re: [PHP] Re: Templating engines

2005-04-29 Thread Richard Lynch
> Who says PHP itself is a template engine? I do. More importantly, Rasmus does. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Splitting Vars from MySQL in PHP

2005-04-29 Thread jlfx mailgroups
I remember in Perl I used to extract vars from a single fetchrow by adding each var name to the beginning (like this). Only this ain'ta workin :)... Anyone know the right syntax to do this? ($var1, $var2, $var3)= mysql_fetch_array($result, MYSQL_ASSOC) -- PHP General Mailing List (http://www.ph

Re: [PHP] Re: Templating engines

2005-04-29 Thread Jason Barnett
Mattias Thorslund wrote: ... Who says PHP itself is a template engine? I think nobody. What are the "basic template features"? Variables / placeholders Looping construct(s) Conditionals A way to apply styles to text / markup However, there is a school of thought regarding templates that advocate

Re: [PHP] Splitting Vars from MySQL in PHP

2005-04-29 Thread Christopher Fulton
On 4/29/05, jlfx mailgroups <[EMAIL PROTECTED]> wrote: > > I remember in Perl I used to extract vars from a single fetchrow by adding > each var name to the beginning (like this). Only this ain'ta workin :)... > Anyone know the right syntax to do this? > > ($var1, $var2, $var3)= mysql_fetch_array

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Richard Lynch wrote: Who says PHP itself is a template engine? I do. More importantly, Rasmus does. What? My li'l brother does PHP? Or you mean him Lerdorf? Sorry... /Mattias -- More views at http://www.thorslund.us

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Jason Barnett wrote: Mattias Thorslund wrote: ... Who says PHP itself is a template engine? I think nobody. What are the "basic template features"? Variables / placeholders Looping construct(s) Conditionals A way to apply styles to text / markup So I suppose I'm just confused over what constit

Re: [PHP] Re: Templating engines

2005-04-29 Thread Rasmus Lerdorf
Mattias Thorslund wrote: Skrol 29 wrote: What templating engines do you use with php and why? Ive been using smarty (http://smarty.php.net) Clive. I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates syste

Re: [PHP] Splitting Vars from MySQL in PHP

2005-04-29 Thread Philip Olson
> > I remember in Perl I used to extract vars from a single fetchrow by adding > > each var name to the beginning (like this). Only this ain'ta workin :)... > > Anyone know the right syntax to do this? > > > > ($var1, $var2, $var3)= mysql_fetch_array($result, MYSQL_ASSOC) > > > list($var1, $var2

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Rasmus Lerdorf wrote: Mattias Thorslund wrote: Who says PHP itself is a template engine? I think nobody. I do. It comes down to whether you want the delineation between the template and the business logic enforced by the system or not. PHP is a general-purpose templating system that does not

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

2005-04-29 Thread Rasmus Lerdorf
Jon M. wrote: 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". Isn't the encoding of the characters in PHP's strings, and the encoding of the actual binary file on your hard drive, two

Re: [PHP] Re: Templating engines

2005-04-29 Thread Matthew Weier O'Phinney
* Rasmus Lerdorf <[EMAIL PROTECTED]> : > My main issue with general-purpose templating systems is that they > always end up inventing a new language. It may start off as a subset of > some other language, but eventually it turns into a new language. In > Smarty, for example, you now have stuff

Re: [PHP] Re: Templating engines

2005-04-29 Thread Robert Cummings
On Fri, 2005-04-29 at 21:09, Mattias Thorslund wrote: > Rasmus Lerdorf wrote: > > > Mattias Thorslund wrote: > > > >> Who says PHP itself is a template engine? I think nobody. > > > > > > I do. > > > > It comes down to whether you want the delineation between the template > > and the business l

Re: [PHP] Re: Templating engines

2005-04-29 Thread Greg Donald
On 4/29/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > Personally I find having the output ALWAYS begin after all business > logic has completed to be a better choice I agree totally. Most PHP coders I've worked around put PHP in their HTML. I am the exact opposite. I use PHP to build up my H

[PHP] About the mail().

2005-04-29 Thread Penghui Wang
Hi lists: I am new here. And i know little about php. Sorry ask so stupid question. I want to use my local /usr/sbin/sendmail to send mail to a certain address. I have checked the function_list in http://www,php.net. And i found the mail(). It enough to my requirement. And i have written a php fi

Re: [PHP] Re: Templating engines

2005-04-29 Thread Rasmus Lerdorf
Robert Cummings wrote: I think a problem here is when you decide to blend two projects that started out separately. With a templating system (some anyways :) you can just redefine the main layout for each page being merged into the larger project in a single centralized location. The approach descr

Re: [PHP] Re: Templating engines

2005-04-29 Thread Robert Cummings
On Fri, 2005-04-29 at 23:55, Rasmus Lerdorf wrote: > Robert Cummings wrote: > > I don't think that templates have a dependency between the number of > > pages using the template and an increase in the number of functions. In > > fact depending on the template, and the template engine, you can have

[PHP] sessions problems

2005-04-29 Thread Anasta
Anyone know how to update a record on logout, heres what i am using for login, however there iare no variables for the logout page. ? session_start(); // Start Session include("connect.php"); $username = $_POST['username']; $password = $_POST['password']; // Register some session variables