[PHP] Strip PHP tags

2002-08-12 Thread Remy Dufour
Hi all, Is there an easy way to remove tag from a string ? Ive got this script and i want it to output only html... I know i can do this with regular expression but i wonder if there are some native function to do the job. Test Hello !!! Regards ! Rémy Dufour -- PHP General Mailing

[PHP] Rainingdata DB with PHP

2002-08-09 Thread Remy Dufour
Hi all, Is there an easy way to connect php to rainingdata db ? Where can i find documentation on this ? regards. Rémy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best template class

2002-07-24 Thread Remy Dufour
Hi, Im currently working with phplib template and im wondering if PEAR template class can give me more... Anyone got an idea ? Rémy

Re: [PHP] Using fsockopen

2002-07-04 Thread Remy Dufour
Take a look at this class. I think thats what you want ! > Help > > I'm a newbie to indepth PHP. > > I want to issue an fsockopen command to pass a POST data set to a remote server script. > > I understand the pricipals behind fsockopen, but I cannot figure out the string I need to pass to POST t

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread Remy Dufour
I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719 seconds Here is the code. Test it by yourself took ". (getmicrotime() - $time_start) ." seconds"; class count {function icount($vs) {$var=0; while($count < $vs) {

Re: [PHP] using extract inside an object

2002-06-21 Thread Remy Dufour
Try this $a = array('one'=>1, 'two'=>2 ); $b = (object)$a; > I have the following array: > Array > ( > [one] => 1 > [two] => 2 > ) > that I would like to transform into the following object > stdClass Object > ( > [one] => 1 > [two] => 2 > ) > > any idea ? -- PHP General Maili

Re: [PHP] Crontabs

2002-06-18 Thread Remy Dufour
You can use lynx as a command, just like that : "lynx http://username:password@localhost/secure/script.php"; Rémy Dufour > I want to set up a crontab using my hosts control panel, and when i go to > set one up there are boxes for how frequently you want the task to run, and > one labelled "Comma

Re: [PHP] Newbie problem with POST vars

2002-06-13 Thread Remy Dufour
If you do this, it should work function foo() { global $_POST; reset($_POST); foreach($_POST as $item => $value){ echo "$item, $value"; } } Thats work for me. > I've tried this, but it's still doing the same thing. Is there something > special about this particular var

Re: [PHP] Newbie problem with POST vars

2002-06-13 Thread Remy Dufour
Put reset($_POST) before foreach loop > I'm trying to loop through $_POST vars in a function, which I understand to > be an autoglobal associative array. Here's the code I'm using: > > foreach($_POST as $item => $value){ > echo "$item, $value"; > } > > However, I only get the first element of th