Re: [PHP] private $foo

2006-03-28 Thread Jasper Bryant-Greene
Anthony Ettinger wrote: private $foo; cannot be accessed directly outside the script. print $f->foo; #fails Fatal error: Cannot access private property Foo::$foo in /x/home/username/docs/misc/php/client.php on line 11 Did you define the __get and __set functions in your class as in the prev

Re: [PHP] Script to sanitize variables

2006-03-28 Thread Chris
Matt Arnilo S. Baluyos (Mailing Lists) wrote: On 3/29/06, Ray Hauge <[EMAIL PROTECTED]> wrote: Chris Shiflett has written a number of good articles on the matter. You can find them at: http://shiflett.org/articles The articles in particular would be: Security Corner: Cross-Site Request Forge

Re: [PHP] Not sure if this is a php problem or a mysql problem

2006-03-28 Thread Chris
Paul Goepfert wrote: Hi all, I have developed a php functilon that is to return the date +1 from a Mysql database. My sql statement is as follows SELECT dayNum FROM Days Where dayNum >= day(curdate())+1; The function works great on the intended webserver but when placed on a different mysql s

Re: [PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 3/29/06, Ray Hauge <[EMAIL PROTECTED]> wrote: > Chris Shiflett has written a number of good articles on the matter. You can > find them at: > > http://shiflett.org/articles > > The articles in particular would be: > > Security Corner: Cross-Site Request Forgeries > Security Corner: Data Filterin

Re: [PHP] Script to sanitize variables

2006-03-28 Thread Ray Hauge
On Tuesday 28 March 2006 18:05, Matt Arnilo S. Baluyos (Mailing Lists) wrote: > Hello everyone, > > Would anyone know a PHP script that can sanitize variables to prevent > XSS and SQL injection? > > Thanks and best regards, > Matt > > -- > Stand before it and there is no beginning. > Follow it and

Re: [PHP] About "wrapping" a forum into your own design.

2006-03-28 Thread Anthony Ettinger
you should be able to edit the forum template instead... On 3/28/06, twistednetadmin <[EMAIL PROTECTED]> wrote: > I am making a page with css for styling and php for browsing and dynamic > content. > I use a simple switch statement to get the main content of each page into > the same tag like th

[PHP] About "wrapping" a forum into your own design.

2006-03-28 Thread twistednetadmin
I am making a page with css for styling and php for browsing and dynamic content. I use a simple switch statement to get the main content of each page into the same tag like this: However. I am not that competent in PHP to make my own forum, so I use a premade forum. Invision Power Board actua

[PHP] Script to sanitize variables

2006-03-28 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, Would anyone know a PHP script that can sanitize variables to prevent XSS and SQL injection? Thanks and best regards, Matt -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the ancient Tao, Move with the present. -- PHP General Mailing List (

[PHP] Re: imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Al
You didn't say, but, I assume that ordinary users will not be uploading to your web hotel. Thus To cope with the file size you must preprocess your images in an image editor, [e.g., PhotoShop, PaintShop Pro, etc.]. Enhance and compress as necessary. In general, it is best to use an image ed

Re: [PHP] word matrix

2006-03-28 Thread Mike Dunlop
Thanks much for your time on this - I'm going to give this code a try - much appreciated :) Best, Mike D On Mar 28, 2006, at 12:53 PM, Shaunak Kashyap wrote: Here is my first cut at the problem. It is probably not the most optimal solution in terms of algorithmic complexity and it could

[PHP] Not sure if this is a php problem or a mysql problem

2006-03-28 Thread Paul Goepfert
Hi all, I have developed a php functilon that is to return the date +1 from a Mysql database. My sql statement is as follows SELECT dayNum FROM Days Where dayNum >= day(curdate())+1; The function works great on the intended webserver but when placed on a different mysql server (The one I have u

RE: [PHP] Strange math results

2006-03-28 Thread Jeff
> -Original Message- > From: Satyam [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 28, 2006 17:23 > To: [EMAIL PROTECTED]; Jay Blanchard > Cc: Jeff; php-general@lists.php.net > Subject: Re: [PHP] Strange math results > > > Indeed, when doing floating point math, you cannot check the

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > Anthony Ettinger wrote: > > On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote: > > > >>On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: > >> > >>> >>> > >>>class Foo > >>>{ > >>> private $foo = 'foo'; > >>> > >>> function __get($k)

RE: [PHP] private $foo

2006-03-28 Thread Jay Blanchard
[snip] That's interesting -- not meaning any disrespect, and this is just an opinion -- but in the newly published "PHP Phrasebook" by Christian Wenz (an excellent book btw), he says: "Another phrase I promise you will not find in this book is anything that looks like foo, bar, baz, or any othe

Re: [PHP] Strange math results

2006-03-28 Thread Satyam
Indeed, when doing floating point math, you cannot check the values for equality, they will rarely be, you have to check whether the difference in between them is less than the error you are willing to accept. Floating point numbers are usually an approximation to the actual value and interme

RE: [PHP] private $foo

2006-03-28 Thread tedd
I am always using 'foo' in conversation and finally said it enough that the CEO used it in a meeting the other day. Setter functions are cool. That's interesting -- not meaning any disrespect, and this is just an opinion -- but in the newly published "PHP Phrasebook" by Christian Wenz (an exce

Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg
- Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Tuesday, March 28, 2006 11:52 PM Subject: RE: [PHP] Div-element at same vert. position? [snip] A. The is a CSS question 2. You didn't provide a way to see it.

Re: [PHP] private $foo

2006-03-28 Thread M. Sokolewicz
Anthony Ettinger wrote: On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote: On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: {$k})) { return $this->{$k}; } throw new Exception("non existing property!"); } function __set($k, $v)

RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread tedd
At 2:21 PM -0600 3/28/06, Jay Blanchard wrote: [snip] what's wrong with absolute positioning? [/snip] Because there is only one absolute; that there are no absolutes. IE, FF, Opera and others all treat the box model differently. That's if you use margins and padding. The way I understand it,

RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip] A. The is a CSS question 2. You didn't provide a way to see it. III. Using absolute positioning is a bad thing and the left div should be floated to the left. Ok, I got your message you all! But I really wanted to do the postitioning in PHP with absolute positioning (just for the sakes cau

RE: [PHP] Strange math results

2006-03-28 Thread Ezra Nugroho
It is not always possible to precisely represent decimal values as a float type in binary. In these cases, the value that you have is either slightly bigger or slightly smaller than the actual. In your specific problem, you have two values that are not equal, but very similar. Therefore you get

Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg
- Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Tuesday, March 28, 2006 10:00 PM Subject: RE: [PHP] Div-element at same vert. position? [snip] I have a code-snippet here: while ($dbArray = mysql_fetch_array

RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip] [snip] what's wrong with absolute positioning? [/snip] Because there is only one absolute; that there are no absolutes. IE, FF, Opera and others all treat the box model differently. [/snip] My bad.I should have said that it is a bad idea to use fixed positioning. -- PHP General Mail

RE: [PHP] Strange math results

2006-03-28 Thread Jay Blanchard
[snip] I've got a strange problem here. I'm subtacting one variable from another, both of type "double" and if they are the same, instead of getting a result of 0, I get something like -9.99200722163E-016 Is this a bug or am I doing something wrong here? [/snip] >From all of the information that

[PHP] Strange math results

2006-03-28 Thread Jeff
I've got a strange problem here. I'm subtacting one variable from another, both of type "double" and if they are the same, instead of getting a result of 0, I get something like -9.99200722163E-016 Is this a bug or am I doing something wrong here? Thanks, Jeff -- PHP General Mailing List (htt

RE: [PHP] word matrix

2006-03-28 Thread Shaunak Kashyap
Here is my first cut at the problem. It is probably not the most optimal solution in terms of algorithmic complexity and it could also do without the use of global vars and such, but it should give you some ideas. [code] $arr = array('word1', 'word2', 'word3'); $lowerBound = 1; $upperBound = pow

RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Chrome
Try drag-drop without absolute ;-) Dan --- http://chrome.me.uk -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 28 March 2006 21:21 To: Jochem Maas Cc: PHP General Subject: RE: [PHP] Div-element at same vert. position? [snip] what's wrong with

RE: [PHP] Random value from ini file

2006-03-28 Thread Jim Moseby
> I have an ini file that has: > 1 = "words"; > 2 = "words1"; > 3 = "words3"; > > I want to pull a rand value and print it out > I'm trying to use parse_ini_file but its not working any help would > be great. > Thanks You could read them all into an array then use array_rand() to pick one. ht

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, Joe Henry <[EMAIL PROTECTED]> wrote: > On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: > > > > > class Foo > > { > > private $foo = 'foo'; > > > > function __get($k) > > { > > if (isset($this->{$k})) { > > return $this->{$k}; >

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, Jochem Maas <[EMAIL PROTECTED]> wrote: > Anthony Ettinger wrote: > > On 3/28/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > > >>[snip] > >>I see this all over the place, but I don't think it stores the variable > >>in = > >>$foo: > >> > >>class Foo { > >>private $foo; > >> > >>public

Re: [PHP] private $foo

2006-03-28 Thread Joe Henry
On Tuesday 28 March 2006 1:12 pm, Jochem Maas wrote: > > class Foo > { > private $foo = 'foo'; > > function __get($k) > { > if (isset($this->{$k})) { > return $this->{$k}; > } > > throw new Exception("non existing pr

[PHP] Random value from ini file

2006-03-28 Thread Benjamin Adams
I have an ini file that has: 1 = "words"; 2 = "words1"; 3 = "words3"; I want to pull a rand value and print it out I'm trying to use parse_ini_file but its not working any help would be great. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip] what's wrong with absolute positioning? [/snip] Because there is only one absolute; that there are no absolutes. IE, FF, Opera and others all treat the box model differently. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jochem Maas
Jay Blanchard wrote: A. The is a CSS question true :-) 2. You didn't provide a way to see it. III. Using absolute positioning is a bad thing and the left div should be floated to the left. what's wrong with absolute positioning? -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] private $foo

2006-03-28 Thread Jochem Maas
Anthony Ettinger wrote: On 3/28/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I see this all over the place, but I don't think it stores the variable in = $foo: class Foo { private $foo; public function __setFoo($arg) { $this->foo = $arg; } [/snip] I am always using 'foo' in conversat

Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread John Nichel
Gustav Wiberg wrote: The CSS list is down the road a-ways. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip] I have a code-snippet here: while ($dbArray = mysql_fetch_array($querys)) { $dbIDLevel1 = $dbArray["IDLevel1"]; $dbLevel1Name = $dbArray["level1Name"]; $dbFactsLevel1Name = $dbArray["factsLevel1Name"]; $dbFactsPictureLevel1Name = $dbArray["factsPictureLevel1Name"]; ?>

Re: [PHP] private $foo

2006-03-28 Thread Anthony Ettinger
On 3/28/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I see this all over the place, but I don't think it stores the variable > in = > $foo: > > class Foo { > private $foo; > > public function __setFoo($arg) > { > $this->foo = $arg; > } > [/snip] > > I am always using 'foo' in conversat

Re: [PHP] word matrix

2006-03-28 Thread Mike Dunlop
no, just all the unique combinations. Thanks! ... Mike Dunlop Director of Technology Development [ e ] [EMAIL PROTECTED] [ p ] 323.644.7808 On Mar 28, 2006, at 11:42 AM, Shaunak Kashyap wrote: Would you also want the following co

[PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg
Hi guys! I have a code-snippet here: while ($dbArray = mysql_fetch_array($querys)) { $dbIDLevel1 = $dbArray["IDLevel1"]; $dbLevel1Name = $dbArray["level1Name"]; $dbFactsLevel1Name = $dbArray["factsLevel1Name"]; $dbFactsPictureLevel1Name = $dbArray["factsPictureLevel1Name"]; ?> align="top" wid

Re: [PHP] $i vs. $r --> coding style ....

2006-03-28 Thread Jochem Maas
Philip Hallstrom wrote: I simplified the code a bit, and I am guessing that it was too much. Below is the complete code that works fine. The weird part is, the part that I have the question on, is if I change $r to $i, it doesn't work anymore. $i doesn't count up as it should and instead give

RE: [PHP] word matrix

2006-03-28 Thread Shaunak Kashyap
Would you also want the following combinations? "word1 word3 word2" "word2 word1 word3" "word2 word3 word1" "word3 word1 word2" "word3 word2 word1" Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 323.330.9870 Main: 323.33

Re: [PHP] word matrix

2006-03-28 Thread Mike Dunlop
Sure Chris. $words = array("word1","word2","word3"); I want this: $result = array( "word1", "word2", "word3", "word1 word2", "word1 word3", "word2 word1", "word2 word3", "word3 word1", "word3 word2", "word1,word2,wo

RE: [PHP] private $foo

2006-03-28 Thread Jay Blanchard
[snip] I see this all over the place, but I don't think it stores the variable in = $foo: class Foo { private $foo; public function __setFoo($arg) { $this->foo = $arg; } [/snip] I am always using 'foo' in conversation and finally said it enough that the CEO used it in a meeting the other day.

[PHP] private $foo

2006-03-28 Thread Anthony Ettinger
I see this all over the place, but I don't think it stores the variable in = $foo: class Foo { private $foo; public function __setFoo($arg) { $this->foo = $arg; } -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] php error reporting problem

2006-03-28 Thread Paul Novitski
At 10:57 AM 3/28/2006, ngwarai zed wrote: hi, I omitted a semicolon ; at the end of a php statement on purpose to see what the error looks like. I ran the script and a blank page just came out.No error message. I then edited php.ini and set Display_errors = On and errror_reporting = E_ALL then

Re: [PHP] php error reporting problem

2006-03-28 Thread John Nichel
ngwarai zed wrote: hi, I omitted a semicolon ; at the end of a php statement on purpose to see what the error looks like. I ran the script and a blank page just came out.No error message. I then edited php.ini and set Display_errors = On and errror_reporting = E_ALL then restarted httpd. Ran t

[PHP] php error reporting problem

2006-03-28 Thread ngwarai zed
hi, I omitted a semicolon ; at the end of a php statement on purpose to see what the error looks like. I ran the script and a blank page just came out.No error message. I then edited php.ini and set Display_errors = On and errror_reporting = E_ALL then restarted httpd. Ran the script again and

[PHP] Re: PHP installation determination

2006-03-28 Thread Mike Milano
Bronislav Klucka wrote: Hi, I'm using 2 copies of PHP 1/ on local computer for developing 2/ on web server regular running webs Is there any way to determine what PHP i'm using? "Where am I?". Can I somehow define my own constant in php.ini? Brona Is the server IP good enough for this? $_SE

RE: [PHP] PHP installation determination

2006-03-28 Thread Shaunak Kashyap
Try using phpinfo(). http://us2.php.net/manual/en/function.phpinfo.php In particular you want to pay attention to the $_SERVER variables (search for "PHP Variables" in the phpinfo() output). Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles,

Re: [PHP] PHP installation determination

2006-03-28 Thread Bronislav Klucka
Hi, I didn't mean to able to determine this myself. I was thinking somethink like else function is_debug() { here I need to determine where am I } Brona Dave Goodchild wrote: Two easy ways - type 'php -v' on the command line or run phpinfo() and view the output. On 28/03/06, *Broni

[PHP] PHP installation determination

2006-03-28 Thread Bronislav Klucka
Hi, I'm using 2 copies of PHP 1/ on local computer for developing 2/ on web server regular running webs Is there any way to determine what PHP i'm using? "Where am I?". Can I somehow define my own constant in php.ini? Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

RE: [PHP] where php at?

2006-03-28 Thread tedd
Jay said: I know that you have searched Google for cPanel cron jobs and that lot's of folks here have tried to help. Where are you on this and can we help? You guys have been Great! At the moment, I sent a trouble ticket to my host -- I'll see what he says, if anything. Please don't think

Re: [PHP] PDO, Persistent Connections

2006-03-28 Thread Rasmus Lerdorf
Philip Thompson wrote: On Mar 28, 2006, at 10:23 AM, Jochem Maas wrote: Jarratt Ingram wrote: Hi, I have a little unusual question, we are currently looking into the new PDO extension with PHP5.1. We are currently use Mysql, InnoDB and transactions. What we would like to know if we use the

Re: [PHP] --enable-radius, not found

2006-03-28 Thread Mike Milano
Chris wrote: Mike Milano wrote: I'm trying to compile PHP with radius enabled. I have the pecl source and I can use other pecl extensions just fine. When I type: cscript /nologo configure.js --help, I do not see any option for radius. I've also tried to compile the dll by itself, but it is

Re: [PHP] PDO, Persistent Connections

2006-03-28 Thread Philip Thompson
On Mar 28, 2006, at 10:23 AM, Jochem Maas wrote: Jarratt Ingram wrote: Hi, I have a little unusual question, we are currently looking into the new PDO extension with PHP5.1. We are currently use Mysql, InnoDB and transactions. What we would like to know if we use the PDO extension and pers

Re: [PHP] protecting passwords when SSL is not available

2006-03-28 Thread Evan Priestley
This looks good, as far as I can tell. Good luck with implementation. Evan On Mar 28, 2006, at 2:51 AM, Satyam wrote: You are absolutely right! I love this list! I didn't realize that I was sending the session_id. Let's see if this works. On first serving the login page I create a sessio

Re: [PHP] PDO, Persistent Connections

2006-03-28 Thread Jochem Maas
Jarratt Ingram wrote: Hi, I have a little unusual question, we are currently looking into the new PDO extension with PHP5.1. We are currently use Mysql, InnoDB and transactions. What we would like to know if we use the PDO extension and persistent connections, can we start a Transaction on one

RE: [PHP] PHP|FLASH hit counter

2006-03-28 Thread Tom Haschenburger
Sorry chris meant that for the list. Thanks chris, got it to work. I think it was caching a previous swf. After trying it later. It worked. T > > Tom Haschenburger wrote: > > Got this from a tutorial and I am not able to get this to work. > > > > Even when I download the finished files from th

[PHP] PDO, Persistent Connections

2006-03-28 Thread Jarratt Ingram
Hi, I have a little unusual question, we are currently looking into the new PDO extension with PHP5.1. We are currently use Mysql, InnoDB and transactions. What we would like to know if we use the PDO extension and persistent connections, can we start a Transaction on one page and then commit it

Re: [PHP] Dependent selections

2006-03-28 Thread Justin Cook
Look into AJAX. I just implemented a project on our intranet doing the exact same thing. Go to w3chools for a quick run down and then check out Prototype. Sitepoint has a good article on AJAX with Prototype. _ From: Raúl Castro Marín [mailto:[EMAIL PROTECTED] To: php-general@lists.php.ne

RE: [PHP] where php at?

2006-03-28 Thread Jay Blanchard
[snip] Sorry to hear that, you might ask them to install CURL on your system along with PEAR if you dont already have them, both are very very useful even if you dont need them right now. Not to be a jackass and repeat what others have said but you might also want to look into other hosts who are a

RE: [PHP] where php at?

2006-03-28 Thread Ryan A
> >Ooops, and lets not forget this one: > > > >curl http://www.yoursite.com/path/to/script/yourscript.php > Thanks Ryan, but that failed to work as well. > > tedd > -- Sorry to hear that, you might ask them to install CURL on your system along with PEAR if you dont already have them, both are ve

[PHP] Dependent selections

2006-03-28 Thread Raúl Castro Marín
Hello, I'm trying to find the best way to implement Dependent selections -for instance, like countries and states tables-. I found this nice example http://www.ashleyit.com/rs/jsrs/select/php/select.php. But this method require to go to other page to refresh vars php. I would like have a method

[PHP] Re: Strip Tags and Content

2006-03-28 Thread Sunstorm
Hi, You can use fgetss() or strip_tags() to take the tags off and html_entity_decode() to transform the HTML entities. I don't understand what you mean by putting it into paragraphs. Are you talking about rewriting the HTML, or something else? - Alex "Sunstorm" On Tue, 28 Mar 2006 15:08:

Re: [PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Fredrik Enestad
The image I'm trying is 2848x2144 @ 2,13MB so its pretty big.. An other user in this mail-group asked me if ImageMagick existed on the server, but I'm pretty new to all this, and I don't actually know how to check if it does? Thanks for taking the time Fredrik 2006/3/28, Richard Davey <[EMAIL P

Re: [PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Richard Davey
On 28 Mar 2006, at 14:21, Fredrik Enestad wrote: I'm making a function for uploading and resizing images to my web hotel. Problem is, memory_limit is set to 16M so when uploading larger images the script crashes. So, I tried to override the memory_limit setting, but as it turns out, my w

[PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Fredrik Enestad
Hi! I'm making a function for uploading and resizing images to my web hotel. Problem is, memory_limit is set to 16M so when uploading larger images the script crashes. So, I tried to override the memory_limit setting, but as it turns out, my web host has set some safe mode setting, so that no set

[PHP] Templates and partial rendering?

2006-03-28 Thread Sunstorm
Hello, I'm trying to find a graceful solution for a problem I ran into while trying to set up a templating system. The problem is as such: Every traditional templating solution implies that the template is assembled in a string with all the required data before being sent to the browser.

Re: [PHP] How to create RSS feeds with PHP?

2006-03-28 Thread chris smith
On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: > chris smith schrieb: > > On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: > >> Hi there, > >> > >> I am wondering if there are already tools out there which do > >> create RSS feeds on the fly with the help of PHP. > >> > >> My goal would be to create RS

Re: [PHP] Problem wih mail() and attachment

2006-03-28 Thread chris smith
On 3/27/06, Dennis N. <[EMAIL PROTECTED]> wrote: > Hello, > > I have some trouble with sending emails with an MS word attachment. I let > fill a word document from my php website. When it is finished with filling > the information, the document is saved on the webserver and the word > application w

Re: [PHP] object oriented syntax in php

2006-03-28 Thread Robin Vickery
On 28/03/06, Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > I do have problems with object oriented syntax as this is not familar to me. > There is following output: > > > Now I would like to retrieve my needed info out of it. How do I do this? > (sounds > a bit silly this question, sorry :-)

Re: [PHP] object oriented syntax in php

2006-03-28 Thread Sameer N Ingole
Merlin wrote: Hi there, I do have problems with object oriented syntax as this is not familar to me. There is following output: [snip] Now I would like to retrieve my needed info out of it. How do I do this? (sounds a bit silly this question, sorry :-) I tried: $ping_result = $ping->ping('p

Re: [PHP] call a php script in a php script

2006-03-28 Thread Thomas Munz
I personaly use proc_open() to run PHP Scripts. on Tuesday 28 March 2006 12:14, nicolas figaro wrote: > Hi, > > I'd like to run a php script in another php script. (the first is > lauched from the command line). > > Is there a way to do it better than > system ("/path/to/php script_included.php op

[PHP] Re: call a php script in a php script

2006-03-28 Thread Merlin
nicolas figaro schrieb: Hi, I'd like to run a php script in another php script. (the first is lauched from the command line). Is there a way to do it better than system ("/path/to/php script_included.php options"). ? the goal is to run several scripts with several options. the result of the

[PHP] call a php script in a php script

2006-03-28 Thread nicolas figaro
Hi, I'd like to run a php script in another php script. (the first is lauched from the command line). Is there a way to do it better than system ("/path/to/php script_included.php options"). ? the goal is to run several scripts with several options. the result of the included script should b

Re: [PHP] object oriented syntax in php

2006-03-28 Thread Stut
Merlin wrote: Now I would like to retrieve my needed info out of it. How do I do this? (sounds a bit silly this question, sorry :-) I tried: $ping_result = $ping->ping('php.net'); echo $ping_result["net_ping_result"]["_raw_data"][5]; But this and other tries did not work. My goal is to find

Re: [PHP] Re: object oriented syntax in php

2006-03-28 Thread Barry
Petar Nedyalkov wrote: This is a result of print_r(); It would be better to have the class definition... No it's var_dump() and without linebreaks and so >_> -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Re: object oriented syntax in php

2006-03-28 Thread Petar Nedyalkov
On Tuesday 28 March 2006 12:54, Barry wrote: > Merlin wrote: > > Hi there, > > > > I do have problems with object oriented syntax as this is not familar to > > me. > > There is following output: > > > > > > object(net_ping_result)(11) { ["_icmp_sequence"]=> array(1) { > > ["61.117):"]=> string(1)

Re: [PHP] object oriented syntax in php

2006-03-28 Thread Thomas Munz
echo $ping_result["_raw_data"][5]; > Hi there, > > I do have problems with object oriented syntax as this is not familar to > me. There is following output: > > > object(net_ping_result)(11) { ["_icmp_sequence"]=> array(1) { > ["61.117):"]=> string(1) "7" } ["_target_ip"]=> string(9) "y2.php.ne"

[PHP] Re: object oriented syntax in php

2006-03-28 Thread Barry
Merlin wrote: Hi there, I do have problems with object oriented syntax as this is not familar to me. There is following output: object(net_ping_result)(11) { ["_icmp_sequence"]=> array(1) { ["61.117):"]=> string(1) "7" } ["_target_ip"]=> string(9) "y2.php.ne" ["_bytes_per_request"]=> st

[PHP] object oriented syntax in php

2006-03-28 Thread Merlin
Hi there, I do have problems with object oriented syntax as this is not familar to me. There is following output: object(net_ping_result)(11) { ["_icmp_sequence"]=> array(1) { ["61.117):"]=> string(1) "7" } ["_target_ip"]=> string(9) "y2.php.ne" ["_bytes_per_request"]=> string(2) "64" ["_b

[PHP] Re: why is this newsroup server so slow?

2006-03-28 Thread Barry
Merlin wrote: Hi there, I used to be more often on news.php.net in former times. But now the server is so incredibly slow?! I do get very often time outs and it takes ages to load the threads. Is there a possible misconfiguration of my newsreader, or is the server that slow? Thank you for y

[PHP] Re: How to ping a webserver with php?

2006-03-28 Thread Barry
Merlin wrote: Hi, that looks exactly like what I am looking for. Now there is just on problem: I can't get pear running :-( phpinfo tells me that I have compiled with pear: Version 4.3.11 '--with-PEAR' But there is no further entry inside teh output of phpinfo on pear. What do you recommend?

Re: [PHP] How to create RSS feeds with PHP?

2006-03-28 Thread Merlin
chris smith schrieb: On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: Hi there, I am wondering if there are already tools out there which do create RSS feeds on the fly with the help of PHP. My goal would be to create RSS dynamicly out of a LAMP App. to syndicate the results. Are there any tools

[PHP] why is this newsroup server so slow?

2006-03-28 Thread Merlin
Hi there, I used to be more often on news.php.net in former times. But now the server is so incredibly slow?! I do get very often time outs and it takes ages to load the threads. Is there a possible misconfiguration of my newsreader, or is the server that slow? Thank you for your help, Merli

[PHP] Re: How to ping a webserver with php?

2006-03-28 Thread Merlin
Barry schrieb: Merlin wrote: Hi there, I do have a webserver (that also runns php 4.x) running which I would like to ping from an intranet server. In case that the webserver is down and therefore my webapp the php script which does the ping should send an e-mail which results in a message on

[PHP] Problem wih mail() and attachment

2006-03-28 Thread Dennis N.
Hello, I have some trouble with sending emails with an MS word attachment. I let fill a word document from my php website. When it is finished with filling the information, the document is saved on the webserver and the word application will be closed by the website. So far so good. Now I want to

Re: [PHP] How to create RSS feeds with PHP?

2006-03-28 Thread chris smith
On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > I am wondering if there are already tools out there which do > create RSS feeds on the fly with the help of PHP. > > My goal would be to create RSS dynamicly out of a LAMP App. to > syndicate the results. > > Are there any tools you know

[PHP] How to create RSS feeds with PHP?

2006-03-28 Thread Merlin
Hi there, I am wondering if there are already tools out there which do create RSS feeds on the fly with the help of PHP. My goal would be to create RSS dynamicly out of a LAMP App. to syndicate the results. Are there any tools you know about? Thank you in advance, Merlin -- PHP General Mailin