[PHP] updating only some records of some tables of a database

2005-06-21 Thread Paul Godard
Hi I manage a couple of mysql databases that are hosted on my server as well as at my ISP. We do update quite often some records in different tables databases. As in South Africa, we pay per GB of traffic, complete dumping of all databases every day is excluded. I am looking at a better

RE: [PHP] Re: editor in WEB PAGE

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

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

2005-06-21 Thread Rory Browne
On 6/20/05, bruce [EMAIL PROTECTED] 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

Re: [PHP] Re: Allowed memory size of

2005-06-21 Thread david forums
Bob I try to run your test script. So before the file reading the memory is 125730 o, and I 'm not able to get the next text due to error display CURRENT MEMORY USAGE = 125720 PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 69505726 bytes) I tried to

Re: [PHP] Re: editor in WEB PAGE

2005-06-21 Thread Rory Browne
On 6/21/05, Kim Madsen [EMAIL PROTECTED] wrote: -Original Message- From: Denyl Meneses Guillén [mailto:[EMAIL PROTECTED] Sent: Monday, June 20, 2005 8:26 PM To: php-general@lists.php.net; M. Sokolewicz Subject: Re: [PHP] Re: editor in WEB PAGE of course that is Javascript,

RE: [PHP] Re: editor in WEB PAGE

2005-06-21 Thread Kim Madsen
-Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 9:49 AM To: Kim Madsen Cc: Denyl Meneses Guillén; php-general@lists.php.net; M. Sokolewicz Subject: Re: [PHP] Re: editor in WEB PAGE On 6/21/05, Kim Madsen [EMAIL PROTECTED] wrote:

[PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Catalin Trifu
Hi, This is a database issue and has to do with the following mysql variables: interactive_timeout wait_timeout By default these variables are set to 28800 and they represent the time for which the server waits on persistent connection. If you have a busy site that

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

2005-06-21 Thread Catalin Trifu
Can you describe your environment: PHP version, Apache version, MySQL version, linux or win32. Did you run phpinfo() and see the loaded extensions ? Catalin [EMAIL PROTECTED] wrote: Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this

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

2005-06-21 Thread Rene Brehmer
However secure you try to make a web application, even with encryption, it still does not hinder anyone from putting a packet sniffer on your client and grab whatever sensitive information you send out. And if a hacker really wanted to get hold of your sensitive information, he wouldn't actually

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Dan Rossi
On 21/06/2005, at 6:06 PM, Catalin Trifu wrote: Hi, This is a database issue and has to do with the following mysql variables: interactive_timeout wait_timeout By default these variables are set to 28800 and they represent the time for which the server waits on

[PHP] MySQLI, Class not found

2005-06-21 Thread Esteamedpw
I'm using a XAMPP setup through ApacheFriends.org, version 1.4.14 - it uses PHP 5.0.3 and MySQL 4.1.12 and Apache 2.0.54 (Win32) The PHPInfo doesn't show the MySQLi extensions loaded, but I try adding the DLL in the extension list like so: ;extension=php_msql.dll

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Esteamedpw
Well, I figured out that problem (I suppose) by upgrading to MySQL 5.0 and the error doesn't come up anymore... but now I get this error: Fatal error: Call to a member function free() on a non-object in C:\xampp\htdocs\results.php on line 60 Again, here's the code:

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Catalin Trifu
Dan Rossi wrote: On 21/06/2005, at 6:06 PM, Catalin Trifu wrote: Hi, This is a database issue and has to do with the following mysql variables: interactive_timeout wait_timeout By default these variables are set to 28800 and they represent the time for which

[PHP] Re: editor in WEB PAGE

2005-06-21 Thread Sergey
I used KTML http://www.interaktonline.com/Products/KTML/Overview/ Denyl Meneses Guillén [EMAIL PROTECTED] ???/ ? ?: news:[EMAIL PROTECTED] 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

[PHP] Re: editor in WEB PAGE

2005-06-21 Thread Sergey
I used KTML http://www.interaktonline.com/Products/KTML/Overview/ Denyl Meneses Guillén [EMAIL PROTECTED] ???/ ? ?: news:[EMAIL PROTECTED] 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

[PHP] Re: file upload

2005-06-21 Thread Sergey
use $HTTP_POST_FILES for older php versions Han [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED] Hello, I'm having a problem with a file upload. The following works on one server I use : -

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Dan Rossi
On 21/06/2005, at 7:47 PM, Catalin Trifu wrote: I presume you mean whether it's interactive_timeout or wait_timeout, or ? Actually they both are important. Read the mysql at dev.mysql.com C. We should be sweet now, still use persistant connections on a high traffice server,

[PHP] Re: editor in WEB PAGE

2005-06-21 Thread Satyam
http://www.htmlarea.com/ It seems their free version is discontinued and the new version no longer free. But they now list a large number of editors with different licenses and capabilities. Satyam Denyl Meneses Guillén [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello I want

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

2005-06-21 Thread Shaw, Chris - Accenture
(thus Philip Zimmermann got arrested for violating the weapons law when he created PGP) I thought he got arrested because he exported PGP out of the US, not because he created it. He was told that PGP could not leave the US via any electronical form, compiled or uncompiled, because of the

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Jason Wong
On Tuesday 21 June 2005 18:33, Dan Rossi wrote: We should be sweet now, still use persistant connections on a high traffice server, but reduce the timeout for the threads before they drop off, hence why they stay open for so long and then run into the max_connection issues. To be certain

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Catalin Trifu
One other mysql optimization is to increase the thread_pool. This way mysql spends less time creating threads; which on linux without NPTL is not exactly a cheap operation. Catalin Dan Rossi wrote: On 21/06/2005, at 7:47 PM, Catalin Trifu wrote: I presume you mean whether

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Catalin Trifu
Could you make a var_export($result); before calling free() ? Normally the extension should work fine with MySQL 4.1.12. Does the phpinfo() say against which MySQL version it was compiled. I use mysqli on linux and have no problems with it. php5.1.0b1, apache 2.0.54, mysql

[PHP] resetting arrays

2005-06-21 Thread I. Gray
Hi. I am sure this is easy, but I can't get this work. Is there not a php function that can do this? I have an array- for example... [1] = Yellow [2] = Green [3] = Purple [4] = Blue [5] = Red [6] = Orange [7] = Cyan What happens, say if I delete [3] = Purple? I get... [1] = Yellow [2] =

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

2005-06-21 Thread david forums
Why don't you try to get interactivity with ID machin which is unique, or with mac address. David Le Tue, 21 Jun 2005 12:50:23 +0200, Shaw, Chris - Accenture [EMAIL PROTECTED] a écrit: (thus Philip Zimmermann got arrested for violating the weapons law when he created PGP) I thought

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread david forums
Hi Use sqlrelay which manage persistance and load balancing and give very high speedy access cause is doing database pool connection cache. regards david Le Tue, 21 Jun 2005 11:47:29 +0200, Catalin Trifu [EMAIL PROTECTED] a écrit: Dan Rossi wrote: On 21/06/2005, at 6:06 PM,

Re: [PHP] resetting arrays

2005-06-21 Thread Richard Davey
Hello, Tuesday, June 21, 2005, 1:33:55 PM, you wrote: IG I have an array- for example... IG What happens, say if I delete [3] = Purple? I get... IG But what if I want to reset the numbers? Like... ?php $array = array(0 = 'a', 1 = 'b', 2 = 'c', 3 = 'd', 4 = 'e');

Re: [PHP] resetting arrays

2005-06-21 Thread david forums
Hi I'm not sure but maybe array_flip or array_reverse should help try with different array_FONCTION, at the ultimate you can use array_map to reindex the array. regards david Le Tue, 21 Jun 2005 14:33:55 +0200, I. Gray [EMAIL PROTECTED] a écrit: Hi. I am sure this is easy, but

[PHP] Re: resetting arrays

2005-06-21 Thread Al
I. Gray wrote: Hi. I am sure this is easy, but I can't get this work. Is there not a php function that can do this? I have an array- for example... [1] = Yellow [2] = Green [3] = Purple [4] = Blue [5] = Red [6] = Orange [7] = Cyan What happens, say if I delete [3] = Purple? I get... [1]

RE: [PHP] resetting arrays

2005-06-21 Thread Kim Madsen
-Original Message- From: I. Gray [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 2:34 PM To: php-general@lists.php.net Subject: [PHP] resetting arrays Hi. I am sure this is easy, but I can't get this work. Is there not a php function that can do this? Yes, use sort()

Re: [PHP] resetting arrays

2005-06-21 Thread I. Gray
Thanks Richard, I had thought of sort. It almost does what I want, and really simply and neat. However it sorts the array alphabetically, and I would prefer to have things in the same order. Is there another way? Ian Gray Richard Davey wrote: Hello, Tuesday, June 21, 2005, 1:33:55 PM,

[PHP] Re: resetting arrays

2005-06-21 Thread I. Gray
Thanks Al, That's done it! unset($ses_basket_items[$pos]); $ses_basket_items = array_values($ses_basket_items) ; They aren't big arrays so I suppose I shouldn't worry about exceeding memory limits - http://uk2.php.net/manual/en/function.array-values.php#36837 ? My only problem now is

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

2005-06-21 Thread Matthew Weier O'Phinney
* david forums [EMAIL PROTECTED]: Why don't you try to get interactivity with ID machin which is unique, or with mac address. MAC address wouldn't work if the user is behind a proxy. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org

RE: [PHP] Re: resetting arrays

2005-06-21 Thread Shaw, Chris - Accenture
Use !== if (array_search($basket, $baskitems) !== FALSE) { $pos = array_search($basket, $baskitems); unset($ses_basket_items[$pos]); $ses_basket_items = array_values($ses_basket_items) ; -Original Message- From: I. Gray [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 14:21 To:

Re: [PHP] Re: resetting arrays

2005-06-21 Thread I. Gray
Agggh, I feel stupid now. I keep on forgetting to use the double equal sign... Thanks everyone, it is all working now! Shaw, Chris - Accenture wrote: Use !== if (array_search($basket, $baskitems) !== FALSE) { $pos = array_search($basket, $baskitems); unset($ses_basket_items[$pos]);

Re: [PHP] Re: Allowed memory size of

2005-06-21 Thread Bob Winter
David I don't have a definitive answer for you, but I notice that the memory size is less than twice the file size. Depending on the PHP functions you are using you could be eating up a lot of memory in the execution of the script that wouldn't necessary show up where you inserted the

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

2005-06-21 Thread Rory Browne
On 6/21/05, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: * david forums [EMAIL PROTECTED]: Why don't you try to get interactivity with ID machin which is unique, or with mac address. MAC address wouldn't work if the user is behind a proxy. I think you mean IP addresses. MAC's won't

Re: [PHP] updating only some records of some tables of a database

2005-06-21 Thread John Nichel
Paul Godard wrote: snip non php stuff I would really appreciate advice on this matter... /snip Ask php questions on a php list. Ask MySQL questions on a MySQL list. http://lists.mysql.com/ -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Strategies for debugging a segmentation fault on a production ser ver

2005-06-21 Thread Michael Caplan
Hi there, I am looking for some advice on how to go about debugging Apache 1.3.33 / PHP 5.0.4 on a production Linux box (RHE 3). The scenario is this: Once a day we find a segfault in our apache logs. From our current position, we don't know what page was accessed, and our 400+ users

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

2005-06-21 Thread bruce
if i'm the server app, and you tell me that you're IE, v.6, i'd like the ability to somehow be able to gather information from you, such that i can then check with msoft to see if your answers match what msoft claims the answers should be. if you give wrong answers, i can then make a determination

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

2005-06-21 Thread Jason Barnett
I haven't tried it yet, but clock skew looks interesting: http://www.aunty-spam.com/track-any-computer-on-the-internet-using-its-clock-skew-fingerprint/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Allowed memory size of

2005-06-21 Thread david forums
I did it IT works with 256M memory allocated. After realising the line it shown 69505726(little more )Mo as memory usage. It's in some way really not understandable. I suppose it could be a php bug. tx david Le Tue, 21 Jun 2005 16:35:20 +0200, Bob Winter [EMAIL PROTECTED] a écrit:

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

2005-06-21 Thread david forums
I read this article, which is very interresting. I will work over a tracking service, adn I'm very interresting by those information. But my main question, it's how to do it with php. If some of you try this please let us know how to applicate it with php. regards david Le Tue, 21 Jun

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

2005-06-21 Thread Shaw, Chris - Accenture
You could always use a IE exploit to crash the browser, if they are still requesting, you know they are not IE. ;) Out of interest, what information are you planning on getting from the browser? Why can you not use certificates? -Original Message- From: bruce [mailto:[EMAIL PROTECTED]

[PHP] Mail System Error - Returned Mail

2005-06-21 Thread Automatic Email Delivery Software
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] Re: security question...??

2005-06-21 Thread Duncan Hill
On Tuesday 21 June 2005 16:05, bruce typed: if i'm the server app, and you tell me that you're IE, v.6, i'd like the ability to somehow be able to gather information from you, such that i can then check with msoft to see if your answers match what msoft claims the answers should be. if you

Re: [PHP] Re: Allowed memory size of

2005-06-21 Thread Bob Winter
David, I don't believe this to be a bug. In order to process the script, PHP needs to use additional memory resources. My guess is that while the original 69Mb file is loaded, the new encrypted file also needs to exist in memory. Glad you were able to find a solution. --Bob david forums

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

2005-06-21 Thread Jason Wong
On Tuesday 21 June 2005 23:05, bruce wrote: if i'm the server app, and you tell me that you're IE, v.6, i'd like the ability to somehow be able to gather information from you, such that i can then check with msoft to see if your answers match what msoft claims the answers should be. if you

[PHP] Re: So many returned mail notices!

2005-06-21 Thread JamesBenson
You could unsuscribe, open your news client and enter news.php.net you can then browse at your own leasure, it does actually say a warning msg at the bottom of this page, http://www.php.net/mailing-lists.php Chris W. Parker wrote: Hey, I know this kind of post can be annoying to some

[PHP] GD library images not displaying

2005-06-21 Thread Ross Trewhella
Hi, I am running Apache 2.0 with PHP 4.2.11 on Windows XP. I installed php_gd2.dll by uncommenting extension=php_gd2.dll and making sure that the file was in my extension_dir. I restarted Apache and didn't get an error, so assumed it was working. When I run my example code: ?php $im =

Re: [PHP] GD library images not displaying

2005-06-21 Thread Richard Davey
Hello Ross, Tuesday, June 21, 2005, 4:47:40 PM, you wrote: RT I am running Apache 2.0 with PHP 4.2.11 on Windows XP. RT I installed php_gd2.dll by uncommenting extension=php_gd2.dll RT and making sure that the file was in my extension_dir. RT I restarted Apache and didn't get an error, so

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

2005-06-21 Thread Jason Barnett
This was an interesting topic when it started, but this is getting way out of the realm of PHP and you are in danger of your messages going my /dev/null. I understand your concerns about application security being all-encompassing, but there have been a lot of good suggestions on how to

[PHP] sending eml file

2005-06-21 Thread david forums
Hi Could you give me a way to send (with a local sendmail) eml file. Not as attachment but as the whole email. regards david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sending eml file

2005-06-21 Thread John Nichel
david forums wrote: Hi Could you give me a way to send (with a local sendmail) eml file. Not as attachment but as the whole email. http://us4.php.net/manual/en/ref.filesystem.php http://us4.php.net/mail -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General

[PHP] Re: Merging Duplicate array items

2005-06-21 Thread Sergey
U may use array_unique() function Joe Harman [EMAIL PROTECTED] ???/ ? ?: news:[EMAIL PROTECTED] 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

[PHP] Re: Merging Duplicate array items

2005-06-21 Thread Sergey
U may use array_unique() function Joe Harman [EMAIL PROTECTED] ???/ ? ?: news:[EMAIL PROTECTED] 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

[PHP] Re: MYSQLI, Class not found?

2005-06-21 Thread JB05UK
Try placing the following into a .php file, ?php // Connecting, selecting database // enter below your database host, user and pass $link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') or die('Could not connect: ' . mysql_error()); echo 'Connected successfully'; //

[PHP] Re: GD library images not displaying

2005-06-21 Thread JB05UK
Found this in the PHP manual, To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and

[PHP] splitting CSV rows into multiple SQL inserts?

2005-06-21 Thread Vince LaMonica
I sent this note off to the php-db list last night, but the more I thought about it, the more I figured this was a general looping question rather than a mysql-specific one. I am attempting to take a CSV file that has order header and line item data on each line and split it into mulitple

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

2005-06-21 Thread Chris W. Parker
JamesBenson mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 8:41 AM said: You could unsuscribe, open your news client and enter news.php.net No. you can then browse at your own leasure, it does actually say a warning msg at the bottom of this page,

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

2005-06-21 Thread John Nichel
Chris W. Parker wrote: JamesBenson mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 8:41 AM said: You could unsuscribe, open your news client and enter news.php.net No. Yes. And give me $5 before you go. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED]

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

2005-06-21 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] on Monday, June 20, 2005 5:50 PM said: 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! It's not possible to determine the

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

2005-06-21 Thread Matthew Weier O'Phinney
* Rory Browne [EMAIL PROTECTED] : On 6/21/05, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: * david forums [EMAIL PROTECTED] : Why don't you try to get interactivity with ID machin which is unique, or with mac address. MAC address wouldn't work if the user is behind a proxy. I

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

2005-06-21 Thread JB05UK
Chris W. Parker wrote: JamesBenson mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 8:41 AM said: You could unsuscribe, open your news client and enter news.php.net No. you can then browse at your own leasure, it does actually say a warning msg at the bottom of this page,

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

2005-06-21 Thread Chris W. Parker
JB05UK mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 10:31 AM said: My point is if you dont like spam do something about it, clearly your too ignorant to understand. When did I complain about spam? Go back to my original post, reread it, think about it, then realize that I never

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

2005-06-21 Thread I. Gray
I think many of us on this mailing list would be grateful if there was a little less nastiness going around. If someone is 'ignorant' then there are nicer ways of putting it. My point is if you dont like spam do something about it, clearly your too ignorant to understand. -- PHP General

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

2005-06-21 Thread John Nichel
JB05UK wrote: snip My point is if you dont like spam do something about it, clearly your too ignorant to understand. /snip don't, not dont you're, not your ignorant: not understanding the OP's post. *PLONK* -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP

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

2005-06-21 Thread Jochem Maas
JB05UK wrote: Chris W. Parker wrote: JamesBenson mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 8:41 AM said: You could unsuscribe, open your news client and enter news.php.net No. you can then browse at your own leasure, it does actually say a warning msg at the bottom of

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

2005-06-21 Thread Jochem Maas
Chris W. Parker wrote: JB05UK mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 10:31 AM said: My point is if you dont like spam do something about it, clearly your too ignorant to understand. When did I complain about spam? Go back to my original post, reread it, think about it, then

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

2005-06-21 Thread John Nichel
Jochem Maas wrote: snip apparently I am to receive 615.810 euros /snip Beer's on you. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Predictable-random array

2005-06-21 Thread Dotan Cohen
On 6/20/05, Marek Kilimajer [EMAIL PROTECTED] wrote: 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,

Re: [PHP] Predictable-random array

2005-06-21 Thread Dotan Cohen
On 6/21/05, Jochem Maas [EMAIL PROTECTED] wrote: 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

[PHP] text areas and line brakes

2005-06-21 Thread Sunny Boy
if someone writes something in a text box, how would I convert a line break in the text area to echo a br /? I think i'll have to get the \n and convert it. can anyone tell me? Thanks. sunny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Predictable-random array

2005-06-21 Thread Jochem Maas
Dotan Cohen wrote: On 6/21/05, Jochem Maas [EMAIL PROTECTED] wrote: Dotan Cohen wrote: $items is a static file, that does not change over time. It just needs that makes things easier :-) to be output in a reproducable 'random' order for different purposes. I looked over your

Re: [PHP] text areas and line brakes

2005-06-21 Thread Dotan Cohen
On 6/21/05, Sunny Boy [EMAIL PROTECTED] wrote: if someone writes something in a text box, how would I convert a line break in the text area to echo a br /? I think i'll have to get the \n and convert it. can anyone tell me? Thanks. sunny -- PHP General Mailing List

Re: [PHP] text areas and line brakes

2005-06-21 Thread Jason Barnett
http://php.net/manual/en/function.nl2br.php -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] using require

2005-06-21 Thread Jochem Maas
Cima wrote: hi all, i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my web site. when i log on, this

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Esteamedpw
when i try it this way: ?php // create short variable names $searchtype=$_POST['searchtype']; $searchtype=$_POST['searchterm']; $searchterm=trim($searchterm); if (!$searchtype || !$searchterm) { echo 'You have not entered search details. Please go back and try again.'; exit; } if

Re: [PHP] Re: MYSQLI, Class not found?

2005-06-21 Thread Esteamedpw
no, that's been working fine. it's just the mysqli wasn't working with MySQL 4.1.12 - now i have 5.0.7 and it works - now i'm just getting a fatal error using free(). Thanks, Clint

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Catalin Trifu
Hi, One thing i see is the use of num_rows on mysqli_result class, but num_rows is member or mysqli class and not mysqli_result. Perhaps this call to num_rows corrupts the rest. Other than that everything seems fine. Perhaps you should consider linux :), much better choice

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Esteamedpw
In a message dated 6/21/2005 2:55:08 P.M. Central Standard Time, [EMAIL PROTECTED] writes: error_reporting(E_ALL); Well, with E_ALL on i get this error: === Notice: Undefined variable: searchterm in c:\wamp\www\books\results.php on line 18 You have not entered search

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Esteamedpw
Wow, I feel really stupid... // create short variable names $searchtype=$_POST['searchtype']; $searchtype=$_POST['searchterm']; the third line should be $searchterm=$_POST['searchterm'] wow lol... I'd like to hope this wasn't the error all along - but

[PHP] undefined mysql_connect() ???

2005-06-21 Thread Frank Whitsell
I would really appreciate any help anyone can give me if you know anything about this problem: I am getting an undefined function call error message from PHP when I call mysql_connect(). That error message appears in the httpd error_log file when I try to connect to mysql. The exact text of

Re: [PHP] undefined mysql_connect() ???

2005-06-21 Thread John Nichel
Frank Whitsell wrote: snip I just installed Fedora Core 3, which also installed apache 2.0.52, php 4.3.9, and mysql 3.23.58. /snip All this installed with RPM's? You'll need the php-mysql rpm. Should be on your install CD's. Or here if you don't have the CD's...

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

2005-06-21 Thread bruce
chris... what you state is true at the extreme... but in the case of an client app, i could already extract information about the various apps that make up the client.. ie if, as in the case of IE, I was able to get information from the IE browser about various dlls that make up the browser. if

RE: [PHP] undefined mysql_connect() ???

2005-06-21 Thread bruce
frank... try creating a really simple php app that hist the mysql db, and run it from the php/command line interface.. does it work properly?? -bruce -Original Message- From: Frank Whitsell [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 1:09 PM To: php-general@lists.php.net

Re: [PHP] text areas and line brakes

2005-06-21 Thread Joe Harman
$YOUR_VARIABLE_CONVERTED = nl2br($YOUR_VARIABLE); On 6/21/05, Jason Barnett [EMAIL PROTECTED] wrote: http://php.net/manual/en/function.nl2br.php -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

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

2005-06-21 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 1:38 PM said: what you state is true at the extreme... but in the case of an client app, i could already extract information about the various apps that make up the client.. ie if, as in the case of IE, I was able to get information

[PHP] Checking requested range

2005-06-21 Thread Neil Doody
Is there anything in PHP which would allow me to check the requested range of bytes by an client? Basically one of the download scripts I made some time ago got hit by a load of requests for a file, but the server was giving back 416 Requested Range Not Satisfiable. I assume that the user is

RE: [PHP] undefined mysql_connect() ???

2005-06-21 Thread Frank Whitsell
Thanks for your reply, Bruce. I hadn't thought of running it from the command-line as a test. Here is the entire code and the result (which was the same): Script started on Tue 21 Jun 2005 03:49:17 PM CDT THE TEST CODE = [EMAIL PROTECTED] tst]$ cat mysqltst.php ?php

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

2005-06-21 Thread Rene Brehmer
Documented research indicate that on Tue, 21 Jun 2005 18:31:17 +0100, JB05UK wrote: Chris W. Parker wrote: Your point is? My point is if you dont like spam do something about it, clearly your too ignorant to understand. Clearly that comment alone indicates who's the real ignorant

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

2005-06-21 Thread Rory Browne
Even if you could pull it off technically, and I'd be very interested if you did, considering that the most insecure browser out there, is also the most commonly used. Ditto for OS. If all you're concerned about is client image(which from the tone seems to be the case), then you could simply

RE: [PHP] undefined mysql_connect() ???

2005-06-21 Thread bruce
frank, did you install php/mysql as an RPM or from source? what OS are you using? if you did the RPM (assuming redhat linux), do a rpm -qa | grep 'php' (or maybe just php without the '') tell me/the list what it says.. -bruce -Original Message- From: Frank Whitsell [mailto:[EMAIL

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

2005-06-21 Thread Rene Brehmer
Documented research indicate that on Tue, 21 Jun 2005 20:14:59 +0200, Jochem Maas wrote: Chris W. Parker wrote: JB05UK mailto:[EMAIL PROTECTED] on Tuesday, June 21, 2005 10:31 AM said: My point is if you dont like spam do something about it, clearly your too ignorant to understand.

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

2005-06-21 Thread Rene Brehmer
Documented research indicate that on Tue, 21 Jun 2005 16:25:36 +0100, Shaw, Chris - Accenture wrote: You could always use a IE exploit to crash the browser, if they are still requesting, you know they are not IE. ;) Out of interest, what information are you planning on getting from the

[PHP] Returned mail: see transcript for details

2005-06-21 Thread MAILER-DAEMON
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] Re: security question...??

2005-06-21 Thread Rene Brehmer
Documented research indicate that on Tue, 21 Jun 2005 13:37:50 -0700, bruce wrote: chris... what you state is true at the extreme... but in the case of an client app, i could already extract information about the various apps that make up the client.. ie if, as in the case of IE, I was able

Re: [PHP] Checking requested range

2005-06-21 Thread Marek Kilimajer
Neil Doody wrote: Is there anything in PHP which would allow me to check the requested range of bytes by an client? Basically one of the download scripts I made some time ago got hit by a load of requests for a file, but the server was giving back 416 Requested Range Not Satisfiable. I

Re: [PHP] Checking requested range

2005-06-21 Thread Neil Doody
Marek Kilimajer wrote: Try http://pear.php.net/package/HTTP_Download Cheers for that, I think I just found a reasonable method to do a short term fix, though I might totally redesign my download application to support resumable download agents. I looked on the HTTP 1.1 protocol and found

[PHP] Apache Webserver User Survey

2005-06-21 Thread Ian Holsman
Hi. I am conducting a survey about what users want out of a webserver and how the Apache webserver ranks as far as fulfilling those needs. In order to get a better understanding of it, I thought I would ask you guys what was important to you. The survey should take about 10-15 minutes to

RE: [PHP] undefined mysql_connect() ???

2005-06-21 Thread Frank Whitsell
Sheesh, the electric power has just been off for almost an hour! Here's the result of running rpm -qa | grep -i php: php-4.3.9-3 php-ldap-4.3.9-3 php-pear-4.3.9-3 The o/s is Fedora Core 3, and I selected the Server installation, which also automatically installed apache 2.0.52, php 4.3.9,

  1   2   >