Re: [PHP] Re: Generating PDF files (XSLT, ps, XSL-FO, FOP, etc)

2007-10-11 Thread Per Jessen
Colin Guthrie wrote: > If found a really good quote the other day about XSL but I now can't > find the link and it's gone from my history but it was something like: > "You could write a parser/lexer in > XSLT but I'm not going to." It's a very powerful language but the > hardest part most extreme

RE: [PHP] preg_match_all Help

2007-10-11 Thread admin
Okay use this as an example I want put parse the html document and toss everything between the two Div class channels into an array. The problem I am having is that I cannot grab everything in between the Pattern of the preg_match_all. If I preg_match_all('/]*>/i',$document,$elements); it works pe

Re: [PHP] Classes - Dumb question

2007-10-11 Thread Nathan Nobbe
On 10/12/07, Larry Garfield <[EMAIL PROTECTED]> wrote: > > On Thursday 11 October 2007, Jay Blanchard wrote: > > [snip] > > okay, this is really (!) embarassing, but I have to ask: > > > > Why would I want to use classes in PHP? > > > > I have been using PHP for years now and writing the "normal" f

Re: [PHP] Classes - Dumb question

2007-10-11 Thread Larry Garfield
On Thursday 11 October 2007, Jay Blanchard wrote: > [snip] > okay, this is really (!) embarassing, but I have to ask: > > Why would I want to use classes in PHP? > > I have been using PHP for years now and writing the "normal" functions all > the time. I have never even bothered working with classe

[PHP] Compose MP3 from a php enabled flash page.

2007-10-11 Thread John Taylor-Johnston
I have an educational web site. I want to create an interface where my students can record their voices client side and then save messages server side. I thought Odeo would solve my problems. (The have their own problems now.) Then I tried: MyChingo and Mobasoft. COme on $6,000 for a site lic

Re: [PHP] preg_match_all Help

2007-10-11 Thread Jim Lucas
[EMAIL PROTECTED] wrote: I have tried this many way and for some reason I cannot pull content between the 2 pattern options. function pullchannel($document) { preg_match_all('/]*>(.*)]*>/i',$document,$elements); $match = implode("\r\n",$elements[0]); $match = str_rep

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-11 Thread Matthew Powell
Dan wrote: > I need to retrieve a huge amount of data form a database and do so many > times. To eliminate the overhead of connecting to the database and > pulling down all that info over and over, I'm trying to pull it down > only once and stick it into a session. The problem is I get the first

RE: [PHP] RE: round()

2007-10-11 Thread Instruct ICC
> well, > seems to be OS dependent: > > PHP_OS:Linux (Suse 9.x 32bit) | PHP_VERSION:5.0.3 > $t=1.255; > round($t,2):1.26 > $t += .0001; > round($t,2):1.26 > > > PHP_OS:WINNT (2000) | PHP_VERSION:5.2.4 > $t=1.255; > round($t,2):1.25 > > $t += .0001; > round($t,2):1.26 > > -- > Vie

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On 10/11/07, Jon Westcot <[EMAIL PROTECTED]> wrote: > > > > Hi again: > > > > Thanks for the info. From what I can see, GoDaddy does NOT provide > > access to ssh. Any other thoughts? Or is there some way to tell me, in > > general ter

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot <[EMAIL PROTECTED]> wrote: > > Hi again: > > Thanks for the info. From what I can see, GoDaddy does NOT provide > access to ssh. Any other thoughts? Or is there some way to tell me, in > general terms, how to configure PHP to allow the dbase functions to be used?

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi again: Thanks for the info. From what I can see, GoDaddy does NOT provide access to ssh. Any other thoughts? Or is there some way to tell me, in general terms, how to configure PHP to allow the dbase functions to be used? Jon - Original Message - From: Nathan Nobbe To:

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot <[EMAIL PROTECTED]> wrote: > > Hi again, Nathan: > > I'm not certain how to get to a command line. The server is a shared > server provided by GoDaddy, if that's any help. They told me that I needed > to change something in the .htaccess file, but that didn't sound ri

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi again, Nathan: I'm not certain how to get to a command line. The server is a shared server provided by GoDaddy, if that's any help. They told me that I needed to change something in the .htaccess file, but that didn't sound right at all. Thanks again for your help. Jon --

[PHP] preg_match_all Help

2007-10-11 Thread admin
I have tried this many way and for some reason I cannot pull content between the 2 pattern options. function pullchannel($document) { preg_match_all('/]*>(.*)]*>/i',$document,$elements); $match = implode("\r\n",$elements[0]); $match = str_replace('"',"","$match"); retu

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot <[EMAIL PROTECTED]> wrote: > > Hi Nathan: > > I have no idea. Where would I look to find this out? Will phpinfo() > give me this? And, if so, where would I find it? you might try uname -a from the command line; but theres no guarantee it will show the distributio

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi Nathan: I have no idea. Where would I look to find this out? Will phpinfo() give me this? And, if so, where would I find it? Jon - Original Message - From: Nathan Nobbe To: Jon Westcot Cc: PHP General Sent: Thursday, October 11, 2007 5:00 PM Subject: Re: [PHP] Need hel

Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot <[EMAIL PROTECTED]> wrote: > > Hi all: > > I'm not versed at all with Linux, and I need some help in configuring > PHP to allow me to use the dBase-related functions. From what I read in the > help files, it seems that I need to recompile PHP with the "--enable-dbase"

[PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi all: I'm not versed at all with Linux, and I need some help in configuring PHP to allow me to use the dBase-related functions. From what I read in the help files, it seems that I need to recompile PHP with the "--enable-dbase" command, but I don't know how to do this. Can someone o

[PHP] RE: round()

2007-10-11 Thread Jürgen Wind
well, seems to be OS dependent: PHP_OS:Linux (Suse 9.x 32bit) | PHP_VERSION:5.0.3 $t=1.255; round($t,2):1.26 $t += .0001; round($t,2):1.26 PHP_OS:WINNT (2000) | PHP_VERSION:5.2.4 $t=1.255; round($t,2):1.25 $t += .0001; round($t,2):1.26 -- View this message in context: http://www

Re: [PHP] Detect local or remote call?

2007-10-11 Thread Anders Norrbring
Nathan Nobbe skrev: On 10/11/07, *Marcus Mueller* <[EMAIL PROTECTED] > wrote: Anders Norrbring wrote: > Is there a good way to detect in a script if it's called locally from > command line, or via a remote browser? Check out < http://www.php.net/manu

Re: [PHP] Detect local or remote call?

2007-10-11 Thread Robert Cummings
On Thu, 2007-10-11 at 19:58 +0200, Anders Norrbring wrote: > Is there a good way to detect in a script if it's called locally from > command line, or via a remote browser? I've always used if( isset( $_SERVER['SERVER_PORT'] ) ) { return 'web'; } Cheers, Rob. --

Re: [PHP] Detect local or remote call?

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Marcus Mueller <[EMAIL PROTECTED]> wrote: > > Anders Norrbring wrote: > > Is there a good way to detect in a script if it's called locally from > > command line, or via a remote browser? > > Check out . much better:) php > ec

Re: [PHP] Detect local or remote call?

2007-10-11 Thread Marcus Mueller
Anders Norrbring wrote: > Is there a good way to detect in a script if it's called locally from > command line, or via a remote browser? Check out . Greetings m. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] RE: round()

2007-10-11 Thread Jürgen Wind
I get correct results: 5.2.4 PHP_VERSION round(5.555,2):5.56 toFixed(5.555,2):5.56 admin-214 wrote: > >> While we're entertaining algorithms, has anyone else noticed that > >> php's round() isn't the most accurate algorithm to round? > > > > If you will refer to chafy's reply on 28-Feb-

Re: [PHP] Detect local or remote call?

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Anders Norrbring <[EMAIL PROTECTED]> wrote: > > Is there a good way to detect in a script if it's called locally from > command line, or via a remote browser? > > Anders maybe not the best, but works for linux: -nathan

[PHP] Detect local or remote call?

2007-10-11 Thread Anders Norrbring
Is there a good way to detect in a script if it's called locally from command line, or via a remote browser? Anders. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IIS vs Apache

2007-10-11 Thread Philip Thompson
>From this article < http://blogs.iis.net/bills/archive/2007/05/07/iis-vs-apache.aspx> written in May of this year, the author makes this comment about IIS and PHP: [snippet] "If you're worried about IIS performance and reliability when running PHP vs. running on Apache, you're concerns are defini

Re: [PHP] FileZilla Password Decoder --- $i think therefore $i am

2007-10-11 Thread Amos Vryhof
Thanks! That Helped Immensely. the final function is below (with a little documentation)... I'll post my final converter somewhere soon... it's done, and works. // Decodes a FileZilla 2 password function DecodePassword($strPass) { // The Encryption Salt for FileZilla 2 Passwords $str

RE: [PHP] Classes - Dumb question

2007-10-11 Thread Jay Blanchard
[snip] Not trying to hijack the thread... Hopefully this is related enough, if not I apologize. Would a good use of a class be to write a generic database connection script? and then feed in the different variables, such as customer login, database, stuff like that? something like class DBCo

Re: [PHP] Filter input

2007-10-11 Thread Manuel Vacelet
On 10/11/07, Jim Lucas <[EMAIL PROTECTED]> wrote: > What are you wanting to validate? > > Do you want a package/class/function set that when called will validate > different types of input? > Email, string, int, etc... Basically yes. I want to validate: - type: (string, int, float, ..) - characte

Re: [PHP] Re: Something you can do with AJAX + PHP as well

2007-10-11 Thread Per Jessen
tedd wrote: > For example: If you have a process that is taking time server-side and > want to let the user know in real time what the progress is, this is > one way to do it. That's not something (by definition) you can do with > javascript alone, right? Correct, but it doesn't require any ajax

Re: [PHP] Filter input

2007-10-11 Thread Jim Lucas
Manuel Vacelet wrote: Hi all, I repeat the mantra 'filter input, escape output' every day before writing any line of code. About "filter input" I use to develop my own filter but I don't like this solution as it's error prone (my regexp may be wrong, I don't like to re-invent the wheel that much

Re: [PHP] round()

2007-10-11 Thread Nathan Nobbe
On 10/11/07, tedd <[EMAIL PROTECTED]> wrote: > > At 4:18 PM -0600 10/10/07, <[EMAIL PROTECTED]> wrote: > >I disagree. I will need to see an example where the round() is > inaccurate. > > > You may disagree if you wish, but the php function round() is > inaccurate by definition -- all *rounding* alg

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-10-11 at 07:19 -0500, Jay Blanchard wrote: > > [snip] > > What I was really illustrating is how interfaces are syntactic > > sugar only. In my above example what I've really shown is an > > implicit interface :) Since OOP is l

Re: [PHP] How to decode the PHP Source Code

2007-10-11 Thread Daniel Brown
On 10/11/07, Javed Khan <[EMAIL PROTECTED]> wrote: > > Hello Everyone, > I have the source code of a php application I got from someone but it is > encoded with IonCude. > I would really appreciate if someone can send me any solution for that. > > Thank you, > Javed > > > > From: [EMAIL PROTECTED]

RE: [PHP] round()

2007-10-11 Thread tedd
At 4:18 PM -0600 10/10/07, <[EMAIL PROTECTED]> wrote: I disagree. I will need to see an example where the round() is inaccurate. You may disagree if you wish, but the php function round() is inaccurate by definition -- all *rounding* algorithms are inaccurate. My claim is the there are more

RE: [PHP] Classes - Dumb question

2007-10-11 Thread Robert Cummings
On Thu, 2007-10-11 at 07:36 -0500, Jay Blanchard wrote: > [snip] > okay, this is really (!) embarassing, but I have to ask: > > Why would I want to use classes in PHP? > > I have been using PHP for years now and writing the "normal" functions all > the time. I have never even bothered working wi

Re: [PHP] How to decode the PHP Source Code

2007-10-11 Thread Robert Cummings
On Thu, 2007-10-11 at 12:06 +, Javed Khan wrote: > Hello Everyone, > I have the source code of a php application I got from someone but it is > encoded with IonCude. > I would really appreciate if someone can send me any solution for that. There's a reason it's encoded with IonCube. Someone d

Re: [PHP] Re: Something you can do with AJAX + PHP as well

2007-10-11 Thread tedd
At 8:40 AM +0200 10/11/07, Per Jessen wrote: tedd wrote: At 3:27 PM +0200 10/10/07, Per Jessen wrote: Colin Guthrie wrote: What do you think of this? http://webbytedd.com/b/timed-php/ It's a combination of using both ajax and php together. I'd say overkill for the end result (co

RE: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-11 Thread Robert Cummings
On Thu, 2007-10-11 at 07:19 -0500, Jay Blanchard wrote: > [snip] > What I was really illustrating is how interfaces are syntactic > sugar only. In my above example what I've really shown is an > implicit interface :) Since OOP is largely meant to model real > world things, ask yourself this... when

Re: [PHP] Best way to automatically get mySQL database.

2007-10-11 Thread Angelo Zanetti
thanks thought there was something simpler Jay Blanchard wrote: [snip] We've got a local system (PHP intranet) and we need to connect to a live mySQL server get some of the tables (contents) and overwrite the same tables in the local mySQL database. This needs to be done with PHP. Im wond

Re: [PHP] FileZilla Password Decoder --- $i think therefore $i am

2007-10-11 Thread Jochem Maas
Amos Vryhof wrote: > Good Morning everyone, > > > def DecodePassword( strPass): > """Decode a filezilla password""" > strKey = "FILEZILLA1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ" > > nPassLen = len(strPass) / 3 > nOffset = nPassLen % len(strKey) > > strDecodedPass = "" >

[PHP] FileZilla Password Decoder

2007-10-11 Thread Amos Vryhof
Good Morning everyone, This week, I switched from FileZilla 2 to FileZilla 3, and much to my dismay the import function doesn't import the local and remote folders properly. Looking at the FZ2 and FZ3 XML files, it appears that it would be a simple task to write a converter that does. I hav

Re: [PHP] Classes - Dumb question

2007-10-11 Thread Jason Pruim
On Oct 11, 2007, at 8:36 AM, Jay Blanchard wrote: [snip] okay, this is really (!) embarassing, but I have to ask: Why would I want to use classes in PHP? I have been using PHP for years now and writing the "normal" functions all the time. I have never even bothered working with classes, but

RE: [PHP] Best way to automatically get mySQL database.

2007-10-11 Thread Jay Blanchard
[snip] We've got a local system (PHP intranet) and we need to connect to a live mySQL server get some of the tables (contents) and overwrite the same tables in the local mySQL database. This needs to be done with PHP. Im wondering the best to do this. Is it to get all the information into resu

RE: [PHP] Classes - Dumb question

2007-10-11 Thread Jay Blanchard
[snip] okay, this is really (!) embarassing, but I have to ask: Why would I want to use classes in PHP? I have been using PHP for years now and writing the "normal" functions all the time. I have never even bothered working with classes, but now I would love to know what makes the classes so sp

[PHP] Best way to automatically get mySQL database.

2007-10-11 Thread Angelo Zanetti
hi guys. We've got a local system (PHP intranet) and we need to connect to a live mySQL server get some of the tables (contents) and overwrite the same tables in the local mySQL database. This needs to be done with PHP. Im wondering the best to do this. Is it to get all the information into

RE: [PHP] How to decode the PHP Source Code

2007-10-11 Thread Jay Blanchard
[snip] I have the source code of a php application I got from someone but it is encoded with IonCude. I would really appreciate if someone can send me any solution for that. [/snip] Please do not hijack threads. If you have a new subject create a new e-mail with said subject. This helps to maintai

RE: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-11 Thread Jay Blanchard
[snip] What I was really illustrating is how interfaces are syntactic sugar only. In my above example what I've really shown is an implicit interface :) Since OOP is largely meant to model real world things, ask yourself this... when a doctor sews a pig's heart into a human, do you think there's an

[PHP] Classes - Dumb question

2007-10-11 Thread Christian Hänsel
Howdy fellas, okay, this is really (!) embarassing, but I have to ask: Why would I want to use classes in PHP? I have been using PHP for years now and writing the "normal" functions all the time. I have never even bothered working with classes, but now I would love to know what makes the clas

[PHP] Filter input

2007-10-11 Thread Manuel Vacelet
Hi all, I repeat the mantra 'filter input, escape output' every day before writing any line of code. About "filter input" I use to develop my own filter but I don't like this solution as it's error prone (my regexp may be wrong, I don't like to re-invent the wheel that much, ...). I'd like to kno

[PHP] How to decode the PHP Source Code

2007-10-11 Thread Javed Khan
Hello Everyone, I have the source code of a php application I got from someone but it is encoded with IonCude. I would really appreciate if someone can send me any solution for that. Thank you, Javed > From: [EMAIL PROTECTED] > Date: Thu, 11 Oct 2007 08:40:22 +0200 > To: php-general@lists.php.