Re: [PHP] pdf

2006-06-28 Thread Jyry Kuukkanen
Hello On Thu, 29 Jun 2006, weetat wrote: > Hi all , > > I am using PHP 4.3.2 and MYSQL database. > > I need to convert the sql query to Adobe PDF format. > Any one have any suggestion how to do this? I have used fpdf (http://www.fpdf.org/) in order to create PDF documents with PHP an

[PHP] pdf

2006-06-28 Thread weetat
Hi all , I am using PHP 4.3.2 and MYSQL database. I need to convert the sql query to Adobe PDF format. Any one have any suggestion how to do this? I have search phpclasses , found SQL2PdfReport classes , however it gave error message as shown below : "Error in opening pdf " Lookup

Re: [PHP] How should we use PHPunit2

2006-06-28 Thread Chris
suma parakala wrote: Hi Can anyone please tell me one simple tutorial to learn phpunit2. I have down loaded phpunit2 . There are many things in that. I am new to testing and oo. Do you know how to use a search engine? http://www.phpunit.de/wiki/Presentations -- Postgresql & php tutorials h

[PHP] How should we use PHPunit2

2006-06-28 Thread suma parakala
Hi Can anyone please tell me one simple tutorial to learn phpunit2. I have down loaded phpunit2 . There are many things in that. I am new to testing and oo. Kindly tell me one simple tutorial Thanks Suma _ Sexy, sultry, sensuou

RE: [PHP] RE: modify xml before parse

2006-06-28 Thread Yeo Wee Tat
Thanks found the problem. Yeo Wee Tat Tel: +65-62730049 Fax: +65-62734934 Cxrus Solutions Pte Ltd (Singapore . Thailand) 1003 Bukit Merah Central #05-20 Singapore 159836 System Integration . Business Solutions . Linux Simplified -Original Message- From: Chris [mailto:[EMAIL PROTECTED

Re: [PHP] RE: modify xml before parse

2006-06-28 Thread Chris
Yeo Wee Tat wrote: Hi Adam, I can modify the xml file without any error , however when I tried to unserializer the xml file using PEAR:XML , it gave the error message below. Ask the pear list. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://ww

[PHP] RE: modify xml before parse

2006-06-28 Thread Yeo Wee Tat
Hi Adam, I can modify the xml file without any error , however when I tried to unserializer the xml file using PEAR:XML , it gave the error message below. I have attached my code for your perusal. Any ideas ? thanks /", "", $xml); $filehandle = fopen($xmlfile, 'wb'); $ok = fwrite($filehandle

Re: [PHP] Calculations and exponents in languages

2006-06-28 Thread John Gunther
Algol used ^ More common, historically, is the use of ** as the exponentiation operator: Fortran, PL/I, perl, python Curiously, many modern languages -- inexplicably -- don't have an exponentiation operator: C, Java, Javascript, PHP John Gunther Robin Vickery wrote: On 28/06/06, [EMAIL P

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

2006-06-28 Thread Micky Hulse
Lol! Omg, you guys make reading my email so much more fun! Cheers! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] running system()

2006-06-28 Thread Chris
Mark Steudel wrote: So I'm trying to run some system commands on the windows box I am working on. And I am getting "Unable to fork" errors. So after some googling I see that its because the internet guest user needs access to cmd.exe, my question is how safe is it to enable this on a production/s

Re: [PHP] Programming question - New to PHP

2006-06-28 Thread Chris
Russbucket wrote: I took an example of a script from the PHP documentation and try to connect to my database. If I leave in the or die part of line 3, I get nothing, if I comment out that part I get the echo message on line 4. $conn = mysql_connect ('localhost', 'finemanruss', 'XXXl')

[PHP] Re: Multiple "if()" statements

2006-06-28 Thread Grae Wolfe - PHP
Thank you all SO incredibly much!!! Now I just have to figure out how to get it to put the results into two columns instead of one, and this phase of this nightmarish project is over!! I am eternally grateful, and I am sure I will be back with more questions!! ""Grae Wolfe - PHP"" <[EMAIL PR

Re: [PHP] Programming question - New to PHP

2006-06-28 Thread Ligaya Turmelle
Russbucket wrote: I took an example of a script from the PHP documentation and try to connect to my database. If I leave in the or die part of line 3, I get nothing, if I comment out that part I get the echo message on line 4. $conn = mysql_connect ('localhost', 'finemanruss', 'XXXl')

Re: [PHP] page redirecting

2006-06-28 Thread Ligaya Turmelle
Richard Lynch wrote: usually daft ... and slam the data into ... Don't ask me why - but I enjoyed your choice in words... -- life is a game... so have fun. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4.4.2 spec

2006-06-28 Thread Chris
Paul Aviles wrote: Chris thanks. Yes the file is there but only generates the srpm and not the actual end rpm file. Ask your linux user group how to use srpms or look it up on google. Took me 10 seconds to find this: http://www.grape-info.com/doc/linux/config/rpm-4.0.3-1.03.html Look for "Us

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

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 19:29, tedd wrote: > At 3:21 PM -0400 6/28/06, Robert Cummings wrote: > >Your kidding right? What you say above and what you say below are > >different. You must think I'm stupid. Oh well. > > > Robert ! > > Hey, don't get shorts in a knot -- I didn't mean anything of the s

[PHP] running system()

2006-06-28 Thread Mark Steudel
So I'm trying to run some system commands on the windows box I am working on. And I am getting "Unable to fork" errors. So after some googling I see that its because the internet guest user needs access to cmd.exe, my question is how safe is it to enable this on a production/shared environment? Any

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

2006-06-28 Thread David Tulloh
Martin Alterisio wrote: > 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 >> ba

Re: [PHP] Multiple "if()" statements

2006-06-28 Thread Paul Novitski
At 04:38 PM 6/28/2006, Grae Wolfe - PHP wrote: The first problem is men's names and unmarried women's names... they will have the same "hs_last_name" and "last_name" so I don't want the duplicate displaying on the page. The second problem is the entry of the word "none" by some of the visito

Re: [PHP] Multiple "if()" statements

2006-06-28 Thread Robert Cummings
On Wed, 2006-06-28 at 20:02, David Tulloh wrote: > Grae Wolfe - PHP wrote: > > ... > > want. Any help would be great! > > > > > > if($row[1]="none") { > > print(""); > > print("$row[0] $row[2]"); > > print(""); > > } else > > if($row[1]=$row[2]) { > > print(""); > > print("$row[0

[PHP] XUL and PHP - what's your opinion?

2006-06-28 Thread Ray Hauge
I keep hearing about XUL, and I was wondering what the opinion of the masses was on this subject for an internal application where the browser is pre-determined. From my point of view I, having only read about it and not used it, is that XUL would make your applications look more like a desktop

Re: [PHP] Multiple "if()" statements

2006-06-28 Thread David Tulloh
Grae Wolfe - PHP wrote: > ... > want. Any help would be great! > > > if($row[1]="none") { > print(""); > print("$row[0] $row[2]"); > print(""); > } else > if($row[1]=$row[2]) { > print(""); > print("$row[0] $row[2]"); > print(""); > } else > print(""); > print("$row[0]

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

2006-06-28 Thread tedd
At 5:34 PM -0300 6/28/06, Martin Alterisio wrote: >Have you (all of you questioning the use of templates) ever worked in a >project with more than one developer, where part of the team ARE NOT coders? >WE understand code, but that's not the case for everyone else. Graphic >designers don't like code

[PHP] Programming question - New to PHP

2006-06-28 Thread Russbucket
I took an example of a script from the PHP documentation and try to connect to my database. If I leave in the or die part of line 3, I get nothing, if I comment out that part I get the echo message on line 4. I know line three works without the or die part since I have a 2nd script that i

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

2006-06-28 Thread tedd
At 3:39 PM -0400 6/28/06, Robert Cummings wrote: >When did I ask you or anyone other than Tedd if they were living in a >cave? Yeah, that's right -- he didn't infer that anyone else lived in a cave, just me. If you want anyone else to tell you that you live in a cave, then you'll have to stand

[PHP] Multiple "if()" statements

2006-06-28 Thread Grae Wolfe - PHP
I have a table with lots of fun information in it. For one of the pages that I am working on, I want to display a list of names based on what is in the DB. My $SQL statement works great and has pulled in values for "first_name," "hs_last_name," and "last_name" in that order. Right now, I am

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

2006-06-28 Thread tedd
At 3:28 PM -0400 6/28/06, John Nichel wrote: > > > > >-- >John C. Nichel IV >Programmer/System Admin (ÜberGeek) >Dot Com Holdings of Buffalo >716.856.9675 >[EMAIL PROTECTED] /* please note the humor tags */ Does that mean because I agreed with you, I'm now off your killfile list? Or does my r

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

2006-06-28 Thread Ryan A
Hey Rich, > > http://www.php.net/ini_set > > http://www.php.net/manual/en/ini.php#ini.list > > If it's on, and you have no access to change it, get > a new webhost. > :-) Unfortunatly cant do that :-( Heres my environment, I am one of two developers, 3 designers, 2 graphic artists and a bunch

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

2006-06-28 Thread tedd
At 3:21 PM -0400 6/28/06, Robert Cummings wrote: >Your kidding right? What you say above and what you say below are >different. You must think I'm stupid. Oh well. Robert ! Hey, don't get shorts in a knot -- I didn't mean anything of the sort. I seldom deliberately go out of my way to insult an

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:35, Jochem Maas wrote: > 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? I dunno, did you try it? Did you catch anything? Maybe

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

2006-06-28 Thread tedd
At 12:11 AM +0200 6/29/06, Jochem Maas wrote: >Paul Novitski wrote: >> Hey kids, > >hi mom. Oh no, not another one of those talks? What did I do this time? I wasn't anywhere near it, and no one saw me anyway. Besides mom, you should take some time off -- you appear to be wrapped a bit tight. Li

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

2006-06-28 Thread Jochem Maas
Richard Lynch wrote: > 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 >> us

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

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] 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 > > pro

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 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 u

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] 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] 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 Windo

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

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] 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: http://www.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] 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

[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] 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 */ $smar

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] 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 e

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 e

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 submissio

[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 Q&A. 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

[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. her

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] 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 engine

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 t

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 sup

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. > >>> Tha

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] Question about constructors and destructors

2006-06-28 Thread Brad Bonkoski
I get: (on Linux, PHP 5.1.4) php cls_t.php Will buildBuildingFinished buildingUnsetingDestroyingUnset complete 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 :

[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 'Building'; } public function __destruct(){

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, >

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

Re: [PHP] serve long duration pages

2006-06-28 Thread Adam Zey
John Gunther wrote: You're right , 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 involve long run

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 > >> rea

Re: [PHP] serve long duration pages

2006-06-28 Thread John Gunther
You're right , 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 involve long run times depending on t

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 sma

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 up

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

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

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 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 u

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. I'

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 Sma

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? >>

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 '>body<' >probably not what he wants - granted you can use regular expressions >to change all the content *between* the tags he actually wants to >output whic

[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] 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 */ $smarty->assign('display_variable',$display_varia

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 jus

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

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 a

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] 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 gues

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 max

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 http://www.php.net/manual/en/ini.php#ini.

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_

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 g

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 dona

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 be

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 >

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.

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] 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

[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 to empty string ? Try the code below , no successful. $xmlfile = "/home/gvintranet/datacraft/htdocs/properties/test_cdata.xml"; $xml = file_get_contents($xmlfile); $xml = preg_replace('/[^(\\/Hard

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

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 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 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 fa

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 , how dare you say that, I am now going

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

  1   2   >