Re: [PHP] comparing two texts

2005-06-18 Thread Edward Vermillion
On Jun 18, 2005, at 3:42 PM, Richard Lynch wrote: On Sat, June 18, 2005 3:21 am, jenny mathew said: is it possible to compare two different text messages and highlight the difference in php. i mean to say that $text1="message 1" $text2="message 2" i want to compare both $text1 and $text2 for d

Re: [PHP] Re: Using Exec Function

2005-06-18 Thread Richard Lynch
On Fri, June 17, 2005 5:50 am, Davide Pasqualini said: > I did as You suggested: > > $win_cmd = "\"C:\\Hello.exe\""; > exec($win_cmd, $stdout, $stderr); > print "Standard output:\n"; > print_r($stdout); > print "Standard error:\n"; > print_r($stderr); > ?> > > but Hello.Exe, a very simple program,

Re: [PHP] passthru() passing variables

2005-06-18 Thread Richard Lynch
On Fri, June 17, 2005 6:47 am, Jason Barnett said: > What is a reliable cross-platform way of showing which user PHP is > running as? http://php.net/get_current_user The bogus User Contributed note about REMOTE_USER is, well, bogus, almost for sure. If that fails, I guess you could try: Then

Re: [PHP] sorting object props

2005-06-18 Thread Richard Lynch
On Fri, June 17, 2005 2:48 pm, D_C said: > is there a way to sort the properties of an object by their name, much > like sort works on arrays? > > i am getting back an object from a database query and want to list the > resulting items in alpha order by field name... http://php.net/ksort Last tim

Re: [PHP] possible jscript/php/frames question!!

2005-06-18 Thread Richard Lynch
On Fri, June 17, 2005 3:47 pm, bruce said: > i've got a problem where i'm trying to play with imagemaps. i created a > test > image map, but when i select inside the image map, i 'see' the "?x,y" from > the imagemap, appended to the url in the browser address bar... i get > http://foo.com?3,5 etc..

Re: [PHP] comparing two texts

2005-06-18 Thread Richard Lynch
On Sat, June 18, 2005 3:21 am, jenny mathew said: > is it possible to compare two different text messages and highlight > the difference in php. > i mean to say that > $text1="message 1" > $text2="message 2" > i want to compare both $text1 and $text2 for differences and highlight > the differece in

Re: [PHP] rename

2005-06-18 Thread Richard Lynch
On Sat, June 18, 2005 3:50 am, Mister Jack said: > I would like to know precisely what rename do in case of error. any > link for that ? It will probably return 0 (or maybe -1) on error. It may or may not also fill in $php_errmessage (?) or whatever the variable is called. It should be documente

Re: [PHP] comparing two texts

2005-06-18 Thread Richard Lynch
On Sat, June 18, 2005 9:41 am, jenny mathew said: > i want to compare two text fetched out of database and echo the result > on the webpage.i want to do it in php language and i donot want to > compare two text files ,i wanna compare two text messages (that is > fetched out from database). I belie

Re: [PHP] asterix for arrray_search?

2005-06-18 Thread Richard Lynch
On Sat, June 18, 2005 10:11 am, Merlin said: > I am trying to find out how to match a search on : 5a or 5b with array > search. > Basicly I would like to make it true as soon as the function finds a value > starting with 5. > > As for now I have: > if (array_search('5a', $emsg) OR array_search('5b'

[PHP] Re: [SOLVED] Merging Duplicate array items

2005-06-18 Thread Joe Harman
I think I solved the issue i was having... I would be willing for any optimization though.. .here is what I did - code - $ARY_cart[] = array('product_id' => '123', 'sku' => 'DFBag-12', 'quantity' => '2', 'produ

Re: [PHP] Re: rename

2005-06-18 Thread Mister Jack
Hi, That's what I've done, but I does not say clearly _when_ @rename should failed. I've read the documentation in the C library for Unix, and it says that it failed when it can't _add_ an entry to the directory. What I observe is an empty file... still weird, I'll look depper into it. (since i've

[PHP] Merging Duplicate array items

2005-06-18 Thread Joe Harman
Hello, I've been trying to figure out on how I could evaluated this array and combine like items... here is the array.. it represents a shopping cart contents.. you'll notice that the first array is the same as the third... what I am trying to do is combine the quantity of the first array and the t

Re: [PHP] asterix for arrray_search?

2005-06-18 Thread Yasir Malik
As for now I have: if (array_search('5a', $emsg) OR array_search('5b', $emsg)){ ... that statement will get very long till z :-) Any ideas how to make something like this: array_search('5*', $emsg) How about something like: search($emsg) { for($i = 0; $i < count($emsg); $i++) if(preg_mat

[PHP] asterix for arrray_search?

2005-06-18 Thread Merlin
Hi there, I am trying to find out how to match a search on : 5a or 5b with array search. Basicly I would like to make it true as soon as the function finds a value starting with 5. As for now I have: if (array_search('5a', $emsg) OR array_search('5b', $emsg)){ ... that statement will get very

[PHP] SFTP problem

2005-06-18 Thread Lowell Allen
I need to use SFTP to send text files and binary files from one server to another, but I'm unable to use fopen on the remote server, and if I send with ssh2_scp_send the files are truncated. I'm assuming the libssh2-PECL/ssh2 installation isn't the problem because I'm able to connect using ssh2

Re: [PHP] comparing two texts

2005-06-18 Thread jenny mathew
i want to compare two text fetched out of database and echo the result on the webpage.i want to do it in php language and i donot want to compare two text files ,i wanna compare two text messages (that is fetched out from database). thanks. Yours, Jenny. On 6/18/05, Jochem Maas <[EMAIL PROTECTED]>

Re: [PHP] comparing two texts

2005-06-18 Thread Jochem Maas
jenny mathew wrote: hello group, is it possible to compare two different text messages and highlight the difference in php. i mean to say that $text1="message 1" $text2="message 2" i want to compare both $text1 and $text2 for differences and highlight the differece in php.is it possible. yes.

[PHP] SFTP problems

2005-06-18 Thread Lowell Allen
I need to use SFTP to send text files and binary files from one server to another, but I'm unable to use fopen on the remote server, and if I send with ssh2_scp_send the files are truncated. I'm assuming the libssh2-PECL/ssh2 installation isn't the problem because I'm able to connect using ssh2

Re: [PHP] Problems with header()

2005-06-18 Thread Martín Marqués
El Sáb 18 Jun 2005 01:38, Tom Rogers escribió: > > Here is a script I use to send pdfs which also handles caching > information. It may just be you are missing the content-length header? [snip] > header("Accept-Ranges: bytes"); > header('Cache-Control: no-cache, must-revalidate'); > header("Conte

[PHP] Re: rename

2005-06-18 Thread Bob Winter
Look at http://us2.php.net/manual/en/function.rename.php Mister Jack wrote: Hi, I would like to know precisely what rename do in case of error. any link for that ? I do a : @rename($old, $new), what happens if I run out of space ? is the rename just an alias for C function library ? thanks --

[PHP] rename

2005-06-18 Thread Mister Jack
Hi, I would like to know precisely what rename do in case of error. any link for that ? I do a : @rename($old, $new), what happens if I run out of space ? is the rename just an alias for C function library ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] comparing two texts

2005-06-18 Thread jenny mathew
hello group, is it possible to compare two different text messages and highlight the difference in php. i mean to say that $text1="message 1" $text2="message 2" i want to compare both $text1 and $text2 for differences and highlight the differece in php.is it possible. waiting for your reply. thank

[PHP] Re: your script: Telling human and machines apart

2005-06-18 Thread Burhan Khalid
Merlin wrote: Hi Burhan, you posted a while ago to the php user group: This is an example of what my script outputs : http://meidomus.com/code/captcha/ Source available if you are interested. I would be interested to try that code and alter it to fit my needs. Would that be possible? Merli