php-general Digest 20 Jun 2005 11:42:07 -0000 Issue 3522

2005-06-20 Thread php-general-digest-help
php-general Digest 20 Jun 2005 11:42:07 - Issue 3522 Topics (messages 217200 through 217214): Re: comparing two texts 217200 by: jenny mathew 217203 by: Jochem Maas 217207 by: JamesBenson Returned mail: see transcript for details 217201 by: MAILER-DAEMON

[PHP] Returned mail: see transcript for details

2005-06-20 Thread MAILER-DAEMON
The original message was included as attachment -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Fshockopen error while opening a https stream urgent help needed

2005-06-20 Thread choksi
Hi i have changed the re-complile php openssl but now its giving me connection refused error. Warning: fsockopen() [function.fsockopenhttps://192.168.0.85/voip/function.fsockopen]: unable to connect to ssl://192.168.65.20:443 (Connection refused) in * /www/htdocs/voip/api_class.php* on line

Re: [PHP] comparing two texts

2005-06-20 Thread Jochem Maas
jenny mathew wrote: so,what what should i conclude .it is not possible to compare two texts and hight the difference at this moment. 1. conclude whatever the you like 2. 'hight' is not an english word (I guess you mean highlight) 3. actually it is possible but you have to write some code

[PHP] SIMPLExml problem....

2005-06-20 Thread Cruonit
I tryed this simple PHP script that uses SimpleXML control: ?php $users = simplexml_load_file('baza.xml'); echo $users - name; ? and i got: Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in /mnt/storage/users/w/i/p/wipe/formular.php on

[PHP] SIMPLExml problem....

2005-06-20 Thread Cruonit
I tryed this simple PHP script that uses SimpleXML control: ?php $users = simplexml_load_file('baza.xml'); echo $users - name; ? and i got: Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in /mnt/storage/users/w/i/p/wipe/formular.php on

[PHP] SIMPLExml problem....

2005-06-20 Thread Cruonit
I tryed this simple PHP script that uses SimpleXML control: ?php $users = simplexml_load_file('baza.xml'); echo $users - name; ? and i got: Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in /mnt/storage/users/w/i/p/wipe/formular.php on

Re: [PHP] comparing two texts

2005-06-20 Thread JamesBenson
I saw a function in the php manual the other day which displays the difference as a percentage, for instance two strings, foo foos would be maybe 90% match, not sure thats what you mean though, you can always do a str_replace like so, $string1 = 'foo'; $string2 = 'foos'; $string =

Re: [PHP] SIMPLExml problem....

2005-06-20 Thread Paul Waring
On Mon, Jun 20, 2005 at 10:48:41AM +0200, Cruonit wrote: I tryed this simple PHP script that uses SimpleXML control: snip In future, please don't post the same thing to the list three times, there really is no point. If your post isn't showing up, at least have the patience to wait a few minutes

[PHP] Allowed memory size of

2005-06-20 Thread david forums
Hello I got the following message. PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 69505726 bytes) I read on several forums to increase the size of the memory limit in php.ini. As you can wee which as already be done cause 13421772869505726. But I

[PHP] Re: rename

2005-06-20 Thread JamesBenson
Well, why not first check for existance of the file then check if its able to write to the new location, do something like, if(!file_exists('/my/file/name')) { echo 'File does not exist'; } if(!is_writable('/my/new/file/name')) { echo 'Destination dir is not writable'; } then finally check if

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

2005-06-20 Thread JamesBenson
Ive never seen this happen with an image map. Dont this work? MAP Name=mymap AREA Shape=rect Coords=25,180,125,280 Href=http://www.example.com; /MAP IMG Src=/images/imagemap.gif Width=500 Height=300 Alt=Image Map Usemap=#mymap bruce wrote: hi... i've got a

[PHP] file upload

2005-06-20 Thread Han
Hello, I'm having a problem with a file upload. The following works on one server I use : - --- function add_me(){ global $filename; global $maxFileSize; global $yourdirectory; // put this in a file that is called by your

Re: [PHP] Permission argh!

2005-06-20 Thread Jochem Maas
Andy Pieters wrote: Hi all I am in the process of creating an installer for my php application. During the test proces, it does this: isdir(root)?create dir root ok?chmod 0777 isdir(root/child)?create dir root/child ok?chmod 0777 isdir(root/child/grandchild)?create dir root/child/grandchild

Re: [PHP] SIMPLExml problem....

2005-06-20 Thread Jochem Maas
Cruonit wrote: I tryed this simple PHP script that uses SimpleXML control: ?php $users = simplexml_load_file('baza.xml'); echo $users - name; ? and i got: Fatal error: Cannot clone object of class SimpleXMLElement due to 'zend.ze1_compatibility_mode' in

Re: [PHP] SIMPLExml problem....

2005-06-20 Thread Jochem Maas
Cruonit wrote: I just copy/paste the error from other code, but i talked to the admin and he said I might suggest that reading the error (and maybe reseaching the meaning - if you don't understand what it means) ... read this: http://www.php.net/manual/en/ini.core.php now assuming your

[PHP] editor in WEB PAGE

2005-06-20 Thread Denyl Meneses Guillén
Hello I want to use a RTF editor within a web page like the Hotmail or Yahoo where when writing the content of the email him can be put format like Bold, fonts, etc. I'll like to find how to do. Thanks for your helps Denyl.

[PHP] Re: Allowed memory size of

2005-06-20 Thread Bob Winter
David, Perhaps your memory usage and/or memory limit is different than what you are assuming it is. If you add the following code to your script, in several places if necessary, it should help you debug it . // PRINT CURRENT MEMORY USAGE:

[PHP] Re: editor in WEB PAGE

2005-06-20 Thread M. Sokolewicz
Denyl Meneses Guillén wrote: Hello I want to use a RTF editor within a web page like the Hotmail or Yahoo where when writing the content of the email him can be put format like Bold, fonts, etc. I'll like to find how to do. Thanks for your helps Denyl. JavaScript; this has nothing

Re: [PHP] editor in WEB PAGE

2005-06-20 Thread Angelo Zanetti
there is a product called spaw, i think the site is www.solmetra.com check it out HTH Angelo Zanetti Z Logic www.zlogic.co.za Denyl Meneses Guillén wrote: Hello I want to use a RTF editor within a web page like the Hotmail or Yahoo where when writing the content of the email him can be put

[PHP] Re: SFTP problems

2005-06-20 Thread JB05UK
Read the php man, it says to use the 'b' flag for binary files, infact it says to use it most the time anyway, if im not mistaken. Lowell Allen wrote: 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

[PHP] word lists

2005-06-20 Thread Cilliè
Hi guys, i'm new on the list, so hi ! anyway, sorry if this is the wrong place to ask. uhm, wouldn't any one by any chance know where i could find a list of rubbish words, i mean, words like {and,this,that,those,are,is} ect. words that are meaningless when used alone. i have been googling a

Re: [PHP] word lists

2005-06-20 Thread Jochem Maas
Cilliè wrote: Hi guys, i'm new on the list, so hi ! anyway, sorry if this is the wrong place to ask. uhm, wouldn't any one by any chance know where i could find a list of rubbish words, i mean, words like {and,this,that,those,are,is} ect. words that are meaningless not that I know of, sorry.

Re: [PHP] word lists

2005-06-20 Thread Dotan Cohen
On 6/20/05, Jochem Maas [EMAIL PROTECTED] wrote: Cilliè wrote: Hi guys, i'm new on the list, so hi ! anyway, sorry if this is the wrong place to ask. uhm, wouldn't any one by any chance know where i could find a list of rubbish words, i mean, words like {and,this,that,those,are,is}

Re: [PHP] word lists

2005-06-20 Thread Cilliè
out of interest what are you trying/going to do with such a list? playing with categorizing stuff based on word frequency and relevance to other stuff with similar word frequency. the will give a lot of false positives :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: SFTP problems

2005-06-20 Thread Lowell Allen
On Jun 20, 2005, at 11:19 AM, JB05UK wrote: Read the php man, it says to use the 'b' flag for binary files, infact it says to use it most the time anyway, if im not mistaken. Substituting wb for wt also fails. As I said in my OP below, I need to send both text files and binary files, and the

[PHP] security question...??

2005-06-20 Thread bruce
hi... a number of you write apache/web/server apps that deal with secure information.. in doing some research it occured to me that a potential weak link is on the client side, regarding the browser? how many of you actually attempt to verify that the browser being used by the client is indeed a

Re: [PHP] Extensions: parameters as references

2005-06-20 Thread Jason Barnett
Yasir Malik wrote: Is there any list (or forum) that can help me with this? Thanks, Yasir You probably will have more luck trying out the PECL group. These authors write PHP extensions and have the knowledge / desire to work on extensions. Not too many of us regular developers have

Re: [PHP] Re: editor in WEB PAGE

2005-06-20 Thread Denyl Meneses Guillén
of course that is Javascript, but I want to know if it is possible and if they know some application - Original Message - From: M. Sokolewicz [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, June 20, 2005 8:01 AM Subject: [PHP] Re: editor in WEB PAGE Denyl Meneses Guillén

[PHP] Delivery failed

2005-06-20 Thread Returned mail
The original message was received at Tue, 21 Jun 2005 01:38:16 +0900 from [133.60.182.142] - The following addresses had permanent fatal errors - php-general@lists.php.net - Transcript of the session follows - ... while talking to 206.244.153.37: RCPT

Re: [PHP] asterix for arrray_search?

2005-06-20 Thread Jason Barnett
Richard Lynch wrote: On Sat, June 18, 2005 10:11 am, Merlin said: ... I believe that in recent versions of PHP, the preg_* functions will accept an array as an argument... Or maybe I dreamed that. FYI I thought this also... but it appears that you can only do one match at a time with

[PHP] Predictable-random array

2005-06-20 Thread Dotan Cohen
I've got an array $items which has about 200 entires. I want to print them out in random order, but as usual, I have a catch! I need to add a 'key' so that if need be, I can always return to the same 'random' order, like so: $items=predicatable_random($items, qwerty); so for each place that I

[PHP] Re: security question...??

2005-06-20 Thread Jason Barnett
bruce wrote: hi... a number of you write apache/web/server apps that deal with secure information.. in doing some research it occured to me that a potential weak link is on the client side, regarding the browser? how many of you actually attempt to verify that the browser being used by the

[PHP] Returned mail: Data format error

2005-06-20 Thread The Post Office
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner

Re: [PHP] Predictable-random array

2005-06-20 Thread Marek Kilimajer
Dotan Cohen wrote: I've got an array $items which has about 200 entires. I want to print them out in random order, but as usual, I have a catch! I need to add a 'key' so that if need be, I can always return to the same 'random' order, like so: $items=predicatable_random($items, qwerty); so for

[PHP] Re: Predictable-random array

2005-06-20 Thread Jason Barnett
Dotan Cohen wrote: I've got an array $items which has about 200 entires. I want to print them out in random order, but as usual, I have a catch! I need to add a 'key' so that if need be, I can always return to the same 'random' order, like so: $items=predicatable_random($items, qwerty); Try

[PHP] So many returned mail notices!

2005-06-20 Thread Chris W. Parker
Hey, I know this kind of post can be annoying to some people but I must ask anyway. Is everyone else getting a bunch of returned mail from [EMAIL PROTECTED] It looks like it has something to do with (possibly) an email address that is subscribed through Road Runner? Anyway this kind of thing

Re: [PHP] So many returned mail notices!

2005-06-20 Thread John Nichel
Chris W. Parker wrote: Hey, I know this kind of post can be annoying to some people but I must ask anyway. Is everyone else getting a bunch of returned mail from [EMAIL PROTECTED] It looks like it has something to do with (possibly) an email address that is subscribed through Road Runner?

Re: [PHP] So many returned mail notices!

2005-06-20 Thread Richard Davey
Hello Chris, Monday, June 20, 2005, 6:33:24 PM, you wrote: CWP Anyway this kind of thing always makes me a bit nervous because I CWP start to think something is wrong with my end. It's not just you, we all get them. Bloody annoying. Best regards, Richard Davey -- http://www.launchcode.co.uk

RE: [PHP] So many returned mail notices!

2005-06-20 Thread Chris W. Parker
Richard Davey mailto:[EMAIL PROTECTED] on Monday, June 20, 2005 10:51 AM said: Hello Chris, Monday, June 20, 2005, 6:33:24 PM, you wrote: Anyway this kind of thing always makes me a bit nervous because I start to think something is wrong with my end. It's not just you, we all get

[PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread AmirBehzad Eslami
Yes! phpInfo() on Yahoo! URL: http://advr1.advertising.scd.yahoo.com/ 1) First I was at: http://promo.yahoo.com/user_research/ 2) I moved to the upper directory: http://promo.yahoo.com/ 3) Do you Yahoo!, the new page said. So I did View Source. 4) http://advr1.advertising.scd.yahoo.com/ Cheers,

Re: [PHP] word lists

2005-06-20 Thread Steve Edberg
At 6:00 PM +0200 6/20/05, Cilliè wrote: out of interest what are you trying/going to do with such a list? playing with categorizing stuff based on word frequency and relevance to other stuff with similar word frequency. the will give a lot of false positives :) You might want to look at

[PHP] Re: So many returned mail notices!

2005-06-20 Thread JamesBenson
Im suscribed to the newsgroup and dont receive emails, I simply browse the threads in Thunderbird, you must of signed up for daily digests. Chris W. Parker wrote: Hey, I know this kind of post can be annoying to some people but I must ask anyway. Is everyone else getting a bunch of

[PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread AmirBehzad Eslami
Yes! phpInfo() on Yahoo! URL: http://advr1.advertising.scd.yahoo.com/ 1) First I was at: http://promo.yahoo.com/user_research/ 2) Then I moved to an upper directory: http://promo.yahoo.com/ 3) Do you Yahoo!, the new page said. So I did View Source. 4) http://advr1.advertising.scd.yahoo.com/

RE: [PHP] Re: security question...??

2005-06-20 Thread bruce
jason... it's the 2nd point... the hacked app that i'm concerned/thinking about... as i stated, a secure app/system incorporates not just the system, and the wire, it also deals with the client app that's being used. and in fact, i'm of the belief that the manufacturers/developers of a given

[PHP] phpinfo(); executed on Yahoo!

2005-06-20 Thread AmirBehzad Eslami
Yes! phpInfo() on Yahoo! URL: http://advr1.advertising.scd.yahoo.com/ 1) First I was at: http://promo.yahoo.com/user_research/ 2) Then I moved to an upper directory: http://promo.yahoo.com/ 3) Do you Yahoo!, the new page said. So I did View Source. 4) http://advr1.advertising.scd.yahoo.com/

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Richard Davey
Hello AmirBehzad, Monday, June 20, 2005, 7:07:27 PM, you wrote: AE Yes! phpInfo() on Yahoo! AE URL: http://advr1.advertising.scd.yahoo.com/ Very cool :) I like the amount of Yahoo modules they are using within PHP. I'm not entirely sure this page will stay up for much longer though (at least

[PHP] Re: So many returned mail notices!

2005-06-20 Thread -{ Rene Brehmer }-
I'm subbed to both the newsgroup, and the emails, and I have them in both. It's a virus using the PHP list address as sender, apparently going through RoadRunner, and then posting itself to the newsserver. Since the messages don't have the [PHP] marker, they're posted to the newsgroup, not the

Re: [PHP] Re: security question...??

2005-06-20 Thread Jason Barnett
Please do not CC me; I will check the newsgroups and usually respond to all messages there. Onward! bruce wrote: jason... it's the 2nd point... the hacked app that i'm concerned/thinking about... as i stated, a secure app/system incorporates not just the system, and the wire, it also deals

[PHP] Re: So many returned mail notices!

2005-06-20 Thread Jason Barnett
Chris W. Parker wrote: Hey, I know this kind of post can be annoying to some people but I must ask anyway. Is everyone else getting a bunch of returned mail from [EMAIL PROTECTED] It looks like it has something to do with (possibly) an email address that is subscribed through Road Runner?

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Jason Barnett
Rats, I guess Andrei is watching this list because it's already down :P I knew they used PHP... but it would have been cool to see what things they've done to handle the number of page requests they have. Oh well. :-/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Dotan Cohen
On 6/20/05, Jason Barnett [EMAIL PROTECTED] wrote: Rats, I guess Andrei is watching this list because it's already down :P I knew they used PHP... but it would have been cool to see what things they've done to handle the number of page requests they have. Oh well. :-/ If anybody wants

RE: [PHP] Re: So many returned mail notices!

2005-06-20 Thread Chris W. Parker
JamesBenson mailto:[EMAIL PROTECTED] on Monday, June 20, 2005 11:11 AM said: Im suscribed to the newsgroup and dont receive emails, I simply browse the threads in Thunderbird, you must of signed up for daily digests. Nope. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread AmirBehzad Eslami
On Monday, June 20, 2005, Jason Barnett wrote: JB [..] but it would have been cool to see what things they've done to handle the number of page requests they have. Take a look at the attached file. HTH, Behzad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Chris W. Parker
AmirBehzad Eslami mailto:[EMAIL PROTECTED] on Monday, June 20, 2005 12:11 PM said: On Monday, June 20, 2005, Jason Barnett wrote: [..] but it would have been cool to see what things they've done to handle the number of page requests they have. Take a look at the attached file.

Re: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Dotan Cohen
On 6/20/05, Chris W. Parker [EMAIL PROTECTED] wrote: AmirBehzad Eslami mailto:[EMAIL PROTECTED] on Monday, June 20, 2005 12:11 PM said: On Monday, June 20, 2005, Jason Barnett wrote: [..] but it would have been cool to see what things they've done to handle the number of page

[PHP] Re: security question...??

2005-06-20 Thread Matthew Weier O'Phinney
* bruce [EMAIL PROTECTED]: a number of you write apache/web/server apps that deal with secure information.. in doing some research it occured to me that a potential weak link is on the client side, regarding the browser? how many of you actually attempt to verify that the browser being used by

Re: [PHP] word lists

2005-06-20 Thread Jochem Maas
thanks steve! Steve Edberg wrote: At 6:00 PM +0200 6/20/05, Cilliè wrote: out of interest what are you trying/going to do with such a list? playing with categorizing stuff based on word frequency and relevance to other stuff with similar word frequency. the will give a lot of false

Re: [PHP] Predictable-random array

2005-06-20 Thread Jochem Maas
Dotan Cohen wrote: I've got an array $items which has about 200 entires. I want to print it might be helpful to know where the array comes from. or maybe its a static definition to start with (nothing wrong with that as such :-) does $items change over time? in what way? them out in random

Re: [PHP] Re: security question...??

2005-06-20 Thread -{ Rene Brehmer }-
I don't see any way of doing such a thing, without also seeing how easily it would be to fake it. I'm not really sure what it is you want to achieve. As a webmaster you can't really take responsibility for the clients using insecure software to access your website. It is technically possible to

[PHP] Returned mail: see transcript for details

2005-06-20 Thread Mail Administrator
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner

[PHP] MYSQLI, Class not found?

2005-06-20 Thread Esteamedpw
Hey guys, I'm doing a tutorial from a book (PHP and MySQL Web Development) and I'm having a problem... when I use the script they supply I get this error: Fatal error: Class 'mysqli' not found in C:\apachefriends\xampp\htdocs\results.php on line 29 here is the code:

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: MYSQLI, Class not found?

2005-06-20 Thread Catalin Trifu
Hi, Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this extension requires. Catalin [EMAIL PROTECTED] wrote: Hey guys, I'm doing a tutorial from a book (PHP and MySQL Web Development) and I'm having a problem... when I use the

RE: [PHP] Re: security question...??

2005-06-20 Thread bruce
matt... you miss what i'm saying, and what my point is. i as a server communicate with clients. under normal situations, the client is used to communicate back to the server. but what if someone created a 'client' that looked like IE, except this client was really sending the information entered

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: MYSQLI, Cla...

2005-06-20 Thread Esteamedpw
In a message dated 6/20/2005 7:30:20 P.M. Central Standard Time, [EMAIL PROTECTED] writes: Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this extension requires. I did all of this and I'm still getting the error: Runtime Configuration The

RE: [PHP] Re: security question...??

2005-06-20 Thread bruce
rene.. from my perspective, i strongly disagree... if you're going to be writing apps that deal with sensitive information, you better damm well give some thought as to how secure the client is, or even if the client is actually valid! while i'm not precisely sure as to how you'd go about

RE: [PHP] Re: security question...??

2005-06-20 Thread Murray @ PlanetThoughtful
from my perspective, i strongly disagree... if you're going to be writing apps that deal with sensitive information, you better damm well give some thought as to how secure the client is, or even if the client is actually valid! To the best of my knowledge, if you're developing an app that

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: MYSQLI, Class not found?

2005-06-20 Thread Esteamedpw
Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this extension requires. I did all of this and I'm still getting the error: Runtime Configuration The behaviour of these functions is affected by settings in php.ini. Table 1. MySQLi Configuration

Re: [PHP] Re: security question...??

2005-06-20 Thread Matthew Weier O'Phinney
* bruce [EMAIL PROTECTED]: you miss what i'm saying, and what my point is. i as a server communicate with clients. under normal situations, the client is used to communicate back to the server. but what if someone created a 'client' that looked like IE, except this client was really sending

Re: [PHP] Re: security question...??

2005-06-20 Thread Matthew Weier O'Phinney
* bruce [EMAIL PROTECTED]: if you're going to be writing apps that deal with sensitive information, you better damm well give some thought as to how secure the client is, That's what encryption using public/private keypairs is for. The client encrypts the data with the public key, and the only

[PHP] Persistant Connections and max_connections on mysql

2005-06-20 Thread Dan Rossi
Hi there, I have run into issues on a public production server where I keep running into max connection issues on mysql if I am using peristant connections. Sometimes the machine gets high traffic and I was wondering if there are good reasons to leave them on or off. After turning them off its