Re: [PHP] Search for an exact string inside of another string

2003-10-13 Thread Rory McKinley
Hi What you are looking for is a regular expression function, I would suggest the following: if(ereg($str1, $str2) == 1) { /*Found Bob in string*/ } else { /*didn't find Bob } Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world, those who

[PHP] unset() un-appropriate ?

2003-10-13 Thread Ciprian Trofin
I have a form with 3 checkboxes x1,x2,x3. I want to build an array of values from the checked boxes; I choosed the following approach: 1. build an array with all values 2. eliminate from array the "" values using unset CODE: $x = array($_POST['x1'],$_POST['x2'],$_POST['x3']); do { for ($i

RE: [PHP] newbie question

2003-10-13 Thread Ford, Mike [LSS]
On 12 October 2003 23:36, Eugene Lee wrote: > On Mon, Oct 13, 2003 at 03:23:53AM +1000, Wang Feng wrote: > > > > "1. An optional padding specifier that says what character will be > > used for padding the results to the right string size. This may be > > a space character or a 0 (zero character)

RE: [PHP] Sessions

2003-10-13 Thread Ford, Mike [LSS]
On 11 October 2003 02:23, Lowell Allen wrote: > > I'm trying to track down some issues with my site, and am trying to > > decide if it's a session variable issue. On a random basis, it > > appears that session vars are being dumped, deleted, or unset, as > > the site will break. Queries based on s

RE: [PHP] Major wierdness - ack!

2003-10-13 Thread Ford, Mike [LSS]
On 10 October 2003 21:28, James Johnson wrote: > Hi, > > I'm getting so frustrated with this. > > I have put some error trapping code in my site with the > following code (an > included file): > >ob_start(); > error_reporting(E_ALL); > set_error_handler('pc_error_handler

Re: [PHP] awful newbie question

2003-10-13 Thread Marek Kilimajer
It is called Paamayim Nekudotayim ;) and is explaned here: http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php Paul Freedman wrote: Marek - Thanks for your help. Unfortunately, my ignorance is more extensive than I had believed. In your reply, ... echo 'Q::qzml() ... what is the signifi

Re: [PHP] Object and properties

2003-10-13 Thread Pavel Jartsev
Cosmin wrote: Is there a way to find out all the properties from an object? ... > Try this: http://www.php.net/manual/en/function.get-object-vars.php -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] feedback form

2003-10-13 Thread Fernando Melo
mail($toaddress, $subject, $mailconten); should be mail($toaddress, $subject, $mailcontent); -Original Message- From: merryE [mailto:[EMAIL PROTECTED] Sent: 12 October 2003 22:52 To: [EMAIL PROTECTED] Subject: [PHP] feedback form I create a feedback form in html and the action si to

RE: [PHP] feedback form

2003-10-13 Thread Fernando Melo
mail($toaddress, $subject, $mailconten); should be mail($toaddress, $subject, $mailcontent); -Original Message- From: merryE [mailto:[EMAIL PROTECTED] Sent: 12 October 2003 22:52 To: [EMAIL PROTECTED] Subject: [PHP] feedback form I create a feedback form in html and the action si to

[PHP] Object and properties

2003-10-13 Thread Cosmin
Is there a way to find out all the properties from an object? For instance if I have: --- class test { var $a; var $b; var $c; function test(){} } $example= new test(); --- , is there a function to tell me that the obj

[PHP] feedback form

2003-10-13 Thread merryE
I create a feedback form in html and the action si to post to the php. It doesn't wotk well and i don't know what's is the problem. please help me to look at it. Tell me the errors, thank's. This is the form.php code: This is the form.html code: name :

Re: [PHP] mail() php in message

2003-10-13 Thread Onno Kuipers
Manuel Lemos wrote: Hello, On 10/13/2003 05:02 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the m

[PHP] From PHP to C and viceversa

2003-10-13 Thread Antonio Bernabei
Hi, I have apache under linux and I want to exchange data from a php script to a c programm (some strings): is it possible? Can anyone help me? Thanks Antonio Bernabei -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() php in message

2003-10-13 Thread Onno Kuipers
Manuel Lemos wrote: Hello, On 10/13/2003 05:02 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the m

Re: [PHP] mail() php in message

2003-10-13 Thread Manuel Lemos
Hello, On 10/13/2003 05:02 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the message off the mail.

[PHP] Re: Working with external images

2003-10-13 Thread Voodoo
Just found it. If anyone is interested, $src_image="myImage"; $picsize=getimagesize($src_image); $source_x = $picsize[0]; $source_y = $picsize[1]; echo $source_x." x ".$source_y; Thanks anyway, Voodoo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] php convert html to pdf

2003-10-13 Thread hycn office
hi all ~ where can find the free of charge complete script ? remarks : i am using web hosting , so cant install anything thank you "-_- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() php in message

2003-10-13 Thread Onno Kuipers
Chris Hayes wrote: message of the mail. I know how the to put html in the message: $message = ' in stead of print " $gebruikerbooks "; do $message .= " $gebruikerbooks "; A little clarification: * Just instead of echoing it directly to the browser, add it to your variable $message. * "$

<    1   2