[PHP] ��Ң�¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office

2006-06-28 Thread paisarn
àÃÒ¢Ò¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office XP Professional, Office Pro 2003 ¶Ù¡ÁÒ¡ ¢Í§á·éá¹è¹Í¹ 100 % µÔ´µèÍ Paisarn 06-5881135 - Windows 95 ẺÁÕ CD ¤ÃºªØ´ 200 bath - Windows 98 book+COA only 800 bath - Windows 98 book+COA+CD 1,000 bath - Windows 98 SE book +

Re: [PHP] Array to String

2006-06-28 Thread Jochem Maas
Richard Lynch wrote: On Mon, June 26, 2006 2:06 am, Jochem Maas wrote: if (!get_magic_quotes_gpc()) { if (isset($_POST)) { foreach ($_POST as $key = $value) { $_POST[$key] = trim(addslashes($value)); } } if (isset($_GET)) { foreach ($_GET

Re: [PHP] Calculations

2006-06-28 Thread Robin Vickery
On 28/06/06, tedd [EMAIL PROTECTED] wrote: At 2:30 PM -0400 6/27/06, Kristen G. Thorson wrote: http://www.php.net/manual/en/language.operators.bitwise.php I wonder why that's true for php when it's common to use ^ in many other languages for powers? Perl: ^ is the bitwise xor operator

RE: [PHP] Controlling a scanner with PHP

2006-06-28 Thread George Pitcher
Hi guys, Back onto the original topic. I spoke to my potential client this m orning and they were just looking for the scanning steps to be recordable in the CMS - which my CMA already does. Thanks for all the positive suggestions and nice to see me starting a useful conversation for once.

Re: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Adrian Bruce
thanks for the response, i can see how this works (i think) for basic authentication with user input,but what i really need is to actually retrieve the logged on user name after a user has logged into windows. i.e. the user name that the http client passes to the apache mod has been captured

[PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
Hi, I have searched for this answer on google and even written on a few forums asking for an answer, am just trying my luck here as I am sure quite a few list users use DreamWeaver. By default dreamweaver outputs tags like this: img src=foo.gif class=blah As you can see from the above the

[PHP] Fatal error: Call to a member function query() on a non-object in C:\Xampp\xa...

2006-06-28 Thread j . kuehne
Hello Following code shows within I have some difficulties. Is only an example from Web Databasse Applications with PHP and MysQL book. global $dsn; global $connection; $template-setCurrentBlock(); $template-setVariable(SUCH-KRITERIUM,Such-Kriterium:

[PHP] Re: modify xml before parse

2006-06-28 Thread weetat
Hi Adam, Thank for your input. However search and replace the value such as ![CDATA[ù?¸€ü÷Œúù?àù?؀Z4À„Ï]] to empty string ? Try the code below , no successful. $xmlfile = /home/gvintranet/datacraft/htdocs/properties/test_cdata.xml; $xml = file_get_contents($xmlfile); $xml =

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
--- Prathaban Mookiah [EMAIL PROTECTED] wrote: Are you trying to use PHP to write the HTML onto a database. If this is the case you can simply use addslashes(). This way you can still preserve the double quotes, but write into the database without any problems. Either way some

[PHP] ��Ң�¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office

2006-06-28 Thread k. paisarn
àÃÒ¢Ò¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office XP Professional, Office Pro 2003 ¶Ù¡ÁÒ¡ ¢Í§á·éá¹è¹Í¹ 100 % µÔ´µèÍ Paisarn 06-5881135 - Windows 95 ẺÁÕ CD ¤ÃºªØ´ 200 bath - Windows 98 book+COA only 800 bath - Windows 98 book+COA+CD 1,000 bath - Windows 98 SE book +

[PHP] page redirecting

2006-06-28 Thread kristianto adi widiatmoko
HI folks, i need to redirecting page, it could be done by using header function like this header(Location : page2.php?var1=foo); but i need to hide variable from being displayed by browser since the content of variable is secret. I guess i need POST method instead of GET for redirecting that

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Prathaban Mookiah
Yes, I got into trouble with magic quotes recently too. Well I know that you can do the same thing with mysql_escape_string if you are using MySQL. But if you are very peculiar about doing it in DW and so not want the script to handle it, then I guess you have wait till some DW guru in this

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Prathaban Mookiah
Are you trying to use PHP to write the HTML onto a database. If this is the case you can simply use addslashes(). This way you can still preserve the double quotes, but write into the database without any problems. Either way some processing will be involved at some point. So I guess there is

Re: [PHP] page redirecting

2006-06-28 Thread Prathaban Mookiah
Did you try using a Cookie? You could set the cookie first and then use meta http-equiv=refresh content=0;url=page2.php Just one idea. I am sure there are better ways to do this. Prathap -- Original Message --- From: kristianto adi widiatmoko [EMAIL PROTECTED] To:

Re: [PHP] page redirecting

2006-06-28 Thread cajbecu
If the content of that variable is secret please don`t use GET or POST method to send it in CLEAR. beacuse somebody who know a little bit PHP or can break your code. You can hide that by hashing it, or crypt it with password. or something... using POST method.. of course. kristianto adi

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
--- Prathaban Mookiah [EMAIL PROTECTED] wrote: Yes, I got into trouble with magic quotes recently too. Well I know that you can do the same thing with mysql_escape_string if you are using MySQL. But if you are very peculiar about doing it in DW and so not want the script to handle

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Jochem Maas
Ryan A wrote: ... mysql_escape_string does look interesting but thats again putting the strain in the script which I am wtf? that is just plain silly. btw if you read the following manual page: http://php.net/mysql_escape_string it will tell you that that func is depreciated -

[PHP] Re: page redirecting

2006-06-28 Thread Jo�o C�ndido de Souza Neto
When i need that a use a hidden form. kristianto adi widiatmoko [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] HI folks, i need to redirecting page, it could be done by using header function like this header(Location : page2.php?var1=foo); but i need to hide variable from

Re: [PHP] page redirecting

2006-06-28 Thread Stut
kristianto adi widiatmoko wrote: HI folks, i need to redirecting page, it could be done by using header function like this header(Location : page2.php?var1=foo); but i need to hide variable from being displayed by browser since the content of variable is secret. I guess i need POST method

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
Hey, Am really starting to like your emails on this list, its different to say the least! mysql_escape_string does look interesting but thats again putting the strain in the script which I am wtf? that is just plain silly. Why is it plain silly? if the text to be entered is a large html

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Jochem Maas
Ryan A wrote: Hey, Am really starting to like your emails on this list, its different to say the least! seeing as you didn't threat to DoS my server I guess I'm not trying hard enough to be different ;-) mysql_escape_string does look interesting but thats again putting the strain in the

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Marques
On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. Or just use PHP... Because it's a mess. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18

RE: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Jay Blanchard
[snip] thanks for the response, i can see how this works (i think) for basic authentication with user input,but what i really need is to actually retrieve the logged on user name after a user has logged into windows. i.e. the user name that the http client passes to the apache mod has been

RE: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Jay Blanchard
[snip] By default dreamweaver outputs tags like this: img src=foo.gif class=blah [/snip] This is the proper format for an HTML tag, all attributes should be double quoted. [snip] Or if I am barking up the wrong tree and this is not possible (changing DWs default behavior, just tell me and will

[PHP] Re: Fatal error: Call to a member function query() on a non-object in C:\Xampp\xa...

2006-06-28 Thread David Robley
[EMAIL PROTECTED] wrote: Hello Following code shows within I have some difficulties. Is only an example from Web Databasse Applications with PHP and MysQL book. global $dsn; global $connection; $template-setCurrentBlock(); $template-setVariable(SUCH-KRITERIUM,Such-Kriterium:

Re: [PHP] page redirecting

2006-06-28 Thread Andrei
Anyway if the content should be *secret* you should think about storing them on server-side. Andy Stut wrote: kristianto adi widiatmoko wrote: HI folks, i need to redirecting page, it could be done by using header function like this header(Location : page2.php?var1=foo);

RE: [PHP] Fatal error: Call to a member function query() on a non-object in C:\Xampp\xa...

2006-06-28 Thread Ford, Mike
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 June 2006 10:10 Fatal error: Call to a member function query() on a non-object in C:\Xampp\xampp\htdocs\www2\knowledge_db\searchnew.php on line 81 Even though the $connection has already been

[PHP] serve long duration pages

2006-06-28 Thread John Gunther
This may be more appropriate for an Apache or browser forum. Perhaps you can suggest an appropriate one. I have a PHP script that takes a long time to complete (due to very heavy database activity) although it echoes unbuffered output every few seconds. I've set max_execution_time to 0 with

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread John Nichel
Ryan A wrote: --- Prathaban Mookiah [EMAIL PROTECTED] wrote: Are you trying to use PHP to write the HTML onto a database. If this is the case you can simply use addslashes(). This way you can still preserve the double quotes, but write into the database without any problems. Either way

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 07:32, Martin Marques wrote: On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. Or just use PHP... Because it's a mess. Agreed. Mr. nail,

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
Hey, Am really starting to like your emails on this list, its different to say the least! seeing as you didn't threat to DoS my server I guess I'm not trying hard enough to be different ;-) Oops, sorry about that, let me try again: You insert bad word here, how dare you say that, I am

RE: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
Thanks Jay, will stop searching and use the advise from Prathaban and Jochem. Thread closed as far as I'm concerned. Cheers! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-)

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
Change the default in Dream Weaver? Can you be sure that all people now and in the future who will be entering data into your db will be using your 'modified' version of Dream Weaver? Forget Dream Weaver, and worry about the input datanever trust user input. Makes sense,

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread John Nichel
Ryan A wrote: Hey, Am really starting to like your emails on this list, its different to say the least! seeing as you didn't threat to DoS my server I guess I'm not trying hard enough to be different ;-) Oops, sorry about that, let me try again: You insert bad word here, how dare you say

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
Just how does one launch a DOS attack? c:\ fdisk c:\ format Repeat as needed ? -- Damn John, now anybody who wants to start DDOSing knows the secret. -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! -

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread John Nichel
Ryan A wrote: Just how does one launch a DOS attack? c:\ fdisk c:\ format Repeat as needed ? -- Damn John, now anybody who wants to start DDOSing knows the secret. Well then, they still have some research to do for launching a DoS attack. -- John C. Nichel IV Programmer/System

RE: [PHP] Single quotes verses double quotes default behavior wit h DW -------- (Pretty much 0T )

2006-06-28 Thread Jim Moseby
Just how does one launch a DOS attack? c:\ fdisk c:\ format Repeat as needed echo Y | format c: /q/u -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Jay Blanchard
[snip] Just how does one launch a DOS attack? [/snip] Insult Bill Gates. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: modify xml before parse

2006-06-28 Thread Adam Zey
weetat wrote: Hi Adam, Thank for your input. However search and replace the value such as ![CDATA[ù?¸€ü÷Œúù?àù?؀Z4À„Ï]] to empty string ? Try the code below , no successful. $xmlfile = /home/gvintranet/datacraft/htdocs/properties/test_cdata.xml; $xml =

Re: [PHP] Calculations and exponents in languages

2006-06-28 Thread tg-php
Huh.. thanks for the illustration Robin. Can't say that I did much with exponents when I've played around with perl or python or C.. and never worked with Java. You've expanded my view. Ok, now what languages DO use ^ for exponents? -TG = = = Original message = = = On 28/06/06, tedd [EMAIL

Re: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Joe Wollard
well, I'm sure that if you really wanted to try to write your own auth module in PHP you could theoretically do so - but in lieu of that there is an open source apache module that you might want to look into called mod_ntlm http://modntlm.sourceforge.net/ keep in mind that all this does is

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread tedd
At 2:29 AM -0700 6/28/06, Ryan A wrote: -snip- Or if I am barking up the wrong tree and this is not possible (changing DWs default behavior, just tell me and will stop searching. Thanks! Ryan Ryan: I don't see a problem with using: 1. Turn magic_quotes OFF -- it's just a PITA anyway. 2. Then

Re: [PHP] Calculations

2006-06-28 Thread tedd
At 11:27 AM +0300 6/28/06, Robin Vickery wrote: On 28/06/06, tedd [EMAIL PROTECTED] wrote: At 2:30 PM -0400 6/27/06, Kristen G. Thorson wrote: http://www.php.net/manual/en/language.operators.bitwise.php I wonder why that's true for php when it's common to use ^ in many other languages for

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Ryan A
Ryan: I don't see a problem with using: 1. Turn magic_quotes OFF -- it's just a PITA anyway. True 2. Then use mysql_real_escape_string() to store your html in the dB. 3. Then use htmlentities() to retrieve the pages. Thanks! Ryan -- - The faulty interface lies between

RE: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread tedd
At 9:16 AM -0500 6/28/06, Jay Blanchard wrote: [snip] Just how does one launch a DOS attack? [/snip] Insult Bill Gates. Hey, give Bill a break -- after all, if it weren't for him, our lives would be a lot simpler. Maybe he'll do the same thing for medical research with his charity donations

Re: [PHP] working on a template system...

2006-06-28 Thread tedd
At 8:32 AM -0300 6/28/06, Martin Marques wrote: On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. Or just use PHP... Because it's a mess. That's because it got out of hand.

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Jochem Maas
tedd wrote: At 2:29 AM -0700 6/28/06, Ryan A wrote: -snip- Or if I am barking up the wrong tree and this is not possible (changing DWs default behavior, just tell me and will stop searching. Thanks! Ryan Ryan: I don't see a problem with using: 1. Turn magic_quotes OFF -- it's

RE: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Jay Blanchard
[snip] 1. Turn magic_quotes OFF -- it's just a PITA anyway. if magic_quotes_gpc is on in the php.ini and you don;t have the access to change this then you have a problem if your code doesn't do something to counter it. [/snip] http://www.php.net/ini_set

Re: [PHP] serve long duration pages

2006-06-28 Thread Jochem Maas
John Gunther wrote: This may be more appropriate for an Apache or browser forum. Perhaps you can suggest an appropriate one. I have a PHP script that takes a long time to complete (due to very heavy database activity) although it echoes unbuffered output every few seconds. I've set

Re: [PHP] page redirecting

2006-06-28 Thread Jochem Maas
kristianto adi widiatmoko wrote: HI folks, i need to redirecting page, it could be done by using header function like this header(Location : page2.php?var1=foo); but i need to hide variable from being displayed by browser since the content of variable is secret. I guess i need

Re: [PHP] Calculations and exponents in languages

2006-06-28 Thread Robin Vickery
On 28/06/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Huh.. thanks for the illustration Robin. Can't say that I did much with exponents when I've played around with perl or python or C.. and never worked with Java. You've expanded my view. Ok, now what languages DO use ^ for exponents?

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Jochem Maas
Jay Blanchard wrote: [snip] 1. Turn magic_quotes OFF -- it's just a PITA anyway. if magic_quotes_gpc is on in the php.ini and you don;t have the access to change this then you have a problem if your code doesn't do something to counter it. [/snip] by the time your script can call an

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 12:28, tedd wrote: At 8:32 AM -0300 6/28/06, Martin Marques wrote: On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. Or just use PHP... Because

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Alterisio
2006/6/28, Robert Cummings [EMAIL PROTECTED]: On Wed, 2006-06-28 at 07:32, Martin Marques wrote: On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. Or just use PHP...

Re: [PHP] working on a template system...

2006-06-28 Thread Jon Anderson
I really don't understand why people have such disregard for PHP as a template system... I'm not saying one way is better or worse (it's really a matter of preference), just that the PHP way isn't implicitly bad or messy... /* The Smarty way */

[PHP] Problem with resources and php 5 objects

2006-06-28 Thread Mathieu Dumoulin
I created a php class in charge of doing mysql queries and when this query is called it returns an object of the type myddl_result, this second object is passed the resource of type mysql_result and if i debug the whole thing i seems allright until the __construct is complete, after that, the

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread tedd
At 6:40 PM +0200 6/28/06, Jochem Maas wrote: 3. Then use htmlentities() to retrieve the pages. grand. so then he'll have stuff like 'gt;bodylt;' probably not what he wants - granted you can use regular expressions to change all the content *between* the tags he actually wants to output which

Re: [PHP] working on a template system...

2006-06-28 Thread tedd
At 1:30 PM -0400 6/28/06, Robert Cummings wrote: On Wed, 2006-06-28 at 12:28, tedd wrote: At 8:32 AM -0300 6/28/06, Martin Marques wrote: On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT,

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 13:55, Jon Anderson wrote: I really don't understand why people have such disregard for PHP as a template system... I'm not saying one way is better or worse (it's really a matter of preference), just that the PHP way isn't implicitly bad or messy... /* The Smarty

Re: [PHP] serve long duration pages

2006-06-28 Thread Adam Zey
Jochem Maas wrote: John Gunther wrote: This may be more appropriate for an Apache or browser forum. Perhaps you can suggest an appropriate one. I have a PHP script that takes a long time to complete (due to very heavy database activity) although it echoes unbuffered output every few seconds.

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 13:59, tedd wrote: At 1:30 PM -0400 6/28/06, Robert Cummings wrote: On Wed, 2006-06-28 at 12:28, tedd wrote: At 8:32 AM -0300 6/28/06, Martin Marques wrote: On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template

Re: [PHP] working on a template system...

2006-06-28 Thread tedd
At 1:55 PM -0400 6/28/06, Jon Anderson wrote: I really don't understand why people have such disregard for PHP as a template system... I'm not saying one way is better or worse (it's really a matter of preference), just that the PHP way isn't implicitly bad or messy... /* The Smarty way */

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Marques
On Wed, 28 Jun 2006 12:28:43 -0400, tedd [EMAIL PROTECTED] wrote: At 8:32 AM -0300 6/28/06, Martin Marques wrote: Because it's a mess. That's because it got out of hand. Now, practice the 3R's, regroup, rethink, and redo. Already did. That's when I started to use a template system.

Re: [PHP] working on a template system...

2006-06-28 Thread tedd
At 2:02 PM -0400 6/28/06, Robert Cummings wrote: On Wed, 2006-06-28 at 13:55, Jon Anderson wrote: I really don't understand why people have such disregard for PHP as a template system... I'm not saying one way is better or worse (it's really a matter of preference), just that the PHP way isn't

Re: [PHP] working on a template system...

2006-06-28 Thread Jon Anderson
Robert Cummings wrote: Simplistic examples don't properly illustrate the mess that occurs in complex situations. However, a simplistic example does properly illustrate my point nicely. I could even take one of my complex multi-page smarty templates, run and perl script to convert it, and end

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 14:19, Jon Anderson wrote: Robert Cummings wrote: Simplistic examples don't properly illustrate the mess that occurs in complex situations. However, a simplistic example does properly illustrate my point nicely. I could even take one of my complex multi-page smarty

Re: [PHP] serve long duration pages

2006-06-28 Thread John Gunther
You're right sads (self-administered dope slap), my task is really not a web function except for the need to trigger it from an admin page. I'm going to use the PHP command line interface to run it without web interaction. However, there are still situations where a web script may sometimes

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 14:10, tedd wrote: At 2:02 PM -0400 6/28/06, Robert Cummings wrote: On Wed, 2006-06-28 at 13:55, Jon Anderson wrote: I really don't understand why people have such disregard for PHP as a template system... I'm not saying one way is better or worse (it's really a

Re: [PHP] serve long duration pages

2006-06-28 Thread Adam Zey
John Gunther wrote: You're right sads (self-administered dope slap), my task is really not a web function except for the need to trigger it from an admin page. I'm going to use the PHP command line interface to run it without web interaction. However, there are still situations where a web

Re: [PHP] working on a template system...

2006-06-28 Thread tedd
At 2:35 PM -0400 6/28/06, Robert Cummings wrote: Not meaning to be contrary, but complex situations are supposed to be reduced to simplistic solutions. That's right, and a template engine simplifies the complexity. Cheers, Rob. Okay, whatever tools work for you. Like we used to say in my

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 15:10, tedd wrote: At 2:35 PM -0400 6/28/06, Robert Cummings wrote: Not meaning to be contrary, but complex situations are supposed to be reduced to simplistic solutions. That's right, and a template engine simplifies the complexity. Cheers, Rob. Okay,

[PHP] Question about constructors and destructors

2006-06-28 Thread Mathieu Dumoulin
I posted a bit earlier and did some other tests and now i have a VERY simple question... check the following code : === class test { public function __construct(){ echo 'Buildingbr'; } public function __destruct(){

Re: [PHP] Question about constructors and destructors

2006-06-28 Thread Brad Bonkoski
I get: (on Linux, PHP 5.1.4) php cls_t.php Will buildbrBuildingbrFinished buildingbrUnsetingbrDestroyingbrUnset completebr Mathieu Dumoulin wrote: I posted a bit earlier and did some other tests and now i have a VERY simple question... check the following code :

Re: [PHP] working on a template system...

2006-06-28 Thread John Nichel
Robert Cummings wrote: On Wed, 2006-06-28 at 15:10, tedd wrote: At 2:35 PM -0400 6/28/06, Robert Cummings wrote: Not meaning to be contrary, but complex situations are supposed to be reduced to simplistic solutions. That's right, and a template engine simplifies the complexity. Cheers, Rob.

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 15:28, John Nichel wrote: Robert Cummings wrote: On Wed, 2006-06-28 at 15:10, tedd wrote: At 2:35 PM -0400 6/28/06, Robert Cummings wrote: Not meaning to be contrary, but complex situations are supposed to be reduced to simplistic solutions. That's right, and a

Re: [PHP] working on a template system...

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 15:39, Robert Cummings wrote: On Wed, 2006-06-28 at 15:28, John Nichel wrote: Robert Cummings wrote: On Wed, 2006-06-28 at 15:10, tedd wrote: At 2:35 PM -0400 6/28/06, Robert Cummings wrote: Not meaning to be contrary, but complex situations are supposed to be

Re: [PHP] CLI - php shell script worked under php4, breaks under php5

2006-06-28 Thread weston
On Mon, Jun 26, 2006 at 01:53:31PM +1000, David Tulloh wrote: [EMAIL PROTECTED] wrote: A while back I wrote a little read-eval-print loop that essentially constituted a very basic php shell: http://weston.canncentral.org/misc/phpsh.txt However, I just recently tried to use this

[PHP] Re: Question about constructors and destructors

2006-06-28 Thread Mathieu Dumoulin
For all to know This bug is linux AND windows, the problem is caused when you have the zend.ze1_compatibility_mode = On in the php.ini file. This is a bug that was reported before several times without having been resolved. I commented and reactiveated the bug on the php bug submission

Re: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 4:29 am, Ryan A wrote: I am doing this as I am putting the entire content of a html page into the DB and the double quotes are screwing things up for me. ... Or if I am barking up the wrong tree Fix your DB insert to handle the double quotes. I don't really know, or

[PHP] mhash() without mhash library?

2006-06-28 Thread Nick Wilson
hi all, can anyone tell me if it might be possible to do an mhash() without actually having the mhash library installed? for various reasons it's very impracticle to have a compiled version of php running on our production servers and i'd really like to be able to use the alexa web services.

[PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Paul Novitski
Hey kids, I thought I was joining a PHP list, not a snarky ego-fest. I assume most of us are trying to get work done around here and are interested in programming QA. Please take your squabbles off-list or re-title them. They're off-topic and a waste of everyone's else's time. Yeah I've

RE: [PHP] Re: Question about constructors and destructors

2006-06-28 Thread KermodeBear
For all to know This bug is linux AND windows, the problem is caused when you have the zend.ze1_compatibility_mode = On in the php.ini file. This is a bug that was reported before several times without having been resolved. I commented and reactiveated the bug on the php bug submission

Re: [PHP] serve long duration pages

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 8:10 am, John Gunther wrote: This may be more appropriate for an Apache or browser forum. Perhaps you can suggest an appropriate one. I have a PHP script that takes a long time to complete (due to very heavy database activity) although it echoes unbuffered output every

Re: [PHP] serve long duration pages

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 8:10 am, John Gunther wrote: This may be more appropriate for an Apache or browser forum. Perhaps you can suggest an appropriate one. I have a PHP script that takes a long time to complete (due to very heavy database activity) although it echoes unbuffered output every

RE: [PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Jay Blanchard
[snip] Can anyone recommend another PHP list where there's a much higher signal-to-noise ratio? [/snip] /dev/null comes to mind. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Alterisio
2006/6/28, Jon Anderson [EMAIL PROTECTED]: I really don't understand why people have such disregard for PHP as a template system... I'm not saying one way is better or worse (it's really a matter of preference), just that the PHP way isn't implicitly bad or messy... /* The Smarty way */

[PHP] XSLT WYSIWYG?

2006-06-28 Thread Richard Lynch
So... I have this XML feed. And I have this page that already implements this XML feed. And I'm supposed to duplicate that functionality. I'm sitting here with this mess of loops and arrays and whatnot trying to transform the XML into the HTML. Now, I know that XSLT is supposed to be able to

Re: [PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Stut
Jay Blanchard wrote: /dev/null comes to mind. /dev/null came to my mind once. Not really sure what happened after that. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread phpninja
The only one with an ego around here is you. Frankly, no one cares that your pressed for time. Your lucky someone even responds to your questions. Get the hell off the list and stop bitching. -Original Message- From: Paul Novitski [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006

RE: [PHP] XSLT WYSIWYG?

2006-06-28 Thread Chris Boget
Perhaps, though, there is some magical PHP WYSIWYG tool out there to compare the HTML and the XML and make an XSLT for me?... It's not PHP based, but XMLSpy will do exactly what you need. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Single quotes verses double quotes default behavior with DW -------- (Pretty much 0T )

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 11:52 am, Jay Blanchard wrote: [snip] 1. Turn magic_quotes OFF -- it's just a PITA anyway. if magic_quotes_gpc is on in the php.ini and you don;t have the access to change this then you have a problem if your code doesn't do something to counter it. [/snip]

Re: [PHP] page redirecting

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 5:17 am, kristianto adi widiatmoko wrote: i need to redirecting page, it could be done by using header function like this header(Location : page2.php?var1=foo); For starters, it Location : should be Location: (no space) Then, the URL should be a full, complete URL, and

Re: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 3:37 am, Adrian Bruce wrote: thanks for the response, i can see how this works (i think) for basic authentication with user input,but what i really need is to actually retrieve the logged on user name after a user has logged into windows. So, basically, you think Windows

Re: [PHP] Re: Question about constructors and destructors

2006-06-28 Thread Jochem Maas
I tested on linux also and found no problem ... Mathieu Dumoulin wrote: For all to know This bug is linux AND windows, the problem is caused when you have the zend.ze1_compatibility_mode = On now it makes sense ... someone else offered a pretty good explanation as to why you see the

Re: [PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Jochem Maas
Paul Novitski wrote: Hey kids, hi mom. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mhash() without mhash library?

2006-06-28 Thread Jochem Maas
Nick Wilson wrote: hi all, can anyone tell me if it might be possible to do an mhash() without actually having the mhash library installed? for various reasons it's very impracticle to have a compiled version of php running on our production servers and i'd really like to be able to use

Re: [PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 18:11, Jochem Maas wrote: Paul Novitski wrote: Hey kids, hi mom. Dad had an operation? -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] mhash() without mhash library?

2006-06-28 Thread Nick Wilson
* and then Jochem Maas declared Nick Wilson wrote: hi all, can anyone tell me if it might be possible to do an mhash() without actually having the mhash library installed? for various reasons it's very impracticle to have a compiled version of php running on our production

Re: [PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2006-06-28 at 18:11, Jochem Maas wrote: Paul Novitski wrote: Hey kids, hi mom. Dad had an operation? an invalid type conversion? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Question about constructors and destructors

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 5:07 pm, Jochem Maas wrote: zend.ze1_compatibility_mode is next to useless in practice for anything but the most simple php4 OO code. certainly if you are wanting to use php5 specific OO functionality like __destruct() you should not be using ze1_compatibility_mode. My

  1   2   >