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

2005-06-21 Thread JamesBenson
With the fedora core 3 apache/php RPM packages im sure php is loaded statically instead of dynamically, that would be the reason why the loadModule directive is not in httpd.conf, in my setup apache was not compiled with --enable-so i tried upgrading the PHP version but found having to recompile

Re: [PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Greg Donald
On 6/21/05, Ian Holsman <[EMAIL PROTECTED]> wrote: > why 'PHP'.. > easy.. you guys use apache and IIS. PHP is so great it can run on both.. > you guys have a *choice*.. > If we didn't listen to what you guys say.. you wouldn't choose us next time. > > > mod_perl or .NET users don't have that choi

[PHP] variable object creating

2005-06-21 Thread Eli
Hi, I want to create an object in a form that I get the class name and its parameters, and I need to create that object... How can this been done? i.e: $classname = "MyClass"; $construct_params = array("param1","param2","param3"); /* Now create the object with the given classname and params...

Re: [PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Esteamedpw
it's very easy to use and there's more documentation floating around than any other - which is always a good thing... =) from a n00b's point of view!

[PHP] Re: How to print variable name and contents

2005-06-21 Thread nntp.charter.net
Bob and Ed and others, Thanks for all the responses. They really helped. -- Gil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Ian Holsman
wow you php bunch are a vocal lot.. ;-) no other mailing list had a peep. ok. let me try to answer the questions.. and apologies if I offend, it isn't the intention. the answers your have given me are great (I wish u stuck them in the survey form, but no matter) you've just given me 2 diff

Re: [PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Rene Brehmer
Documented research indicate that on Wed, 22 Jun 2005 10:58:12 +1000, Ian Holsman wrote: > Greg Donald wrote: >> On 6/21/05, Al <[EMAIL PROTECTED]> wrote: >> >>>Why bother. >>> >>>http://news.netcraft.com/archives/web_server_survey.html >> >> http://www.securityspace.com/s_survey/data/200504/ind

Re: [PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Greg Donald
On 6/21/05, Ian Holsman <[EMAIL PROTECTED]> wrote: > These show that apache has 70% usage, but not why. > > The survey is aimed to find out: > - what people actually use (and how) Most people use Apache. How? To serve web pages most likely. There are quite a few new projects using the Apache p

Re: [PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Ian Holsman
Greg Donald wrote: On 6/21/05, Al <[EMAIL PROTECTED]> wrote: Why bother. http://news.netcraft.com/archives/web_server_survey.html http://www.securityspace.com/s_survey/data/200504/index.html http://www.securityspace.com/s_survey/data/man.200504/apachemods.html These show that apache ha

Re: [PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Greg Donald
On 6/21/05, Al <[EMAIL PROTECTED]> wrote: > Why bother. > > http://news.netcraft.com/archives/web_server_survey.html http://www.securityspace.com/s_survey/data/200504/index.html http://www.securityspace.com/s_survey/data/man.200504/apachemods.html -- Greg Donald Zend Certified Engineer MySQL

[PHP] Re: Apache Webserver User Survey

2005-06-21 Thread Al
Why bother. http://news.netcraft.com/archives/web_server_survey.html Ian Holsman wrote: 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 a

[PHP] Re: resetting arrays

2005-06-21 Thread Al
in general, you should use "0" as your first key, not 1. It'll save trouble. array_values() will index from 0 $pos= 0; unset($ses_basket_items[$pos]) //will remove the first item. I. Gray wrote: Thanks Al, That's done it! unset($ses_basket_items[$pos]); $ses_basket_items = array_va

Re: [PHP] Checking requested range

2005-06-21 Thread Jochem Maas
Neil Doody wrote: 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

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,

[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 comple

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 th

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 ass

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 wa

[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 s

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

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 >> 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 u

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 PROT

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 exclu

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 h

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 $dbh = my

[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] Re: security question...??

2005-06-21 Thread Chris W. Parker
bruce 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 > inform

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-general&w=2 > STFM | http://php.net/

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 Sub

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 th

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

2005-06-21 Thread John Nichel
Frank Whitsell wrote: I just installed Fedora Core 3, which also installed apache 2.0.52, php 4.3.9, and mysql 3.23.58. 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... http://download.fedora.redhat.com

[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 th

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 atlea

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 de

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] 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 Esteamedpw
when i try it this way: query($query); $num_results = $result->num_rows; echo 'Number of books found: '.$num_results.''; for ($i=0; $i <$num_results; $i++) { $row = $result->fetch_assoc(); echo ''.($i+1).'. Title: '; echo htmlspecialchars(stripslashes($row['title'])); echo 'Author: '; e

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 auth.php

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-general&w=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] 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 ? I think i'll have to get the \n > and convert it. can anyone tell me? > > Thanks. > > sunny > > -- > PHP General Mailing List (http://www.

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

[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 ? 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 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 :-) > d

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' >

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

2005-06-21 Thread John Nichel
Jochem Maas wrote: apparently I am to receive 615.810 euros 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] Re: So many returned mail notices!

2005-06-21 Thread Jochem Maas
Chris W. Parker wrote: JB05UK 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, the

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

2005-06-21 Thread Jochem Maas
JB05UK wrote: Chris W. Parker wrote: JamesBenson 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 t

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

2005-06-21 Thread John Nichel
JB05UK wrote: My point is if you dont like spam do something about it, clearly your too ignorant to understand. 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 General Mailing

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 M

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

2005-06-21 Thread Chris W. Parker
JB05UK 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 co

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

2005-06-21 Thread JB05UK
Chris W. Parker wrote: JamesBenson 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, http:/

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 b

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

2005-06-21 Thread Chris W. Parker
bruce 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

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

2005-06-21 Thread John Nichel
Chris W. Parker wrote: JamesBenson 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: So many returned mail notices!

2005-06-21 Thread Chris W. Parker
JamesBenson 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, > > http://www.php.net/mailing-

[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 inse

[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 lib

[PHP] Re: MYSQLI, Class not found?

2005-06-21 Thread JB05UK
Try placing the following into a .php file, If that fails you either dont have a mysql server or PHP was not compiled with mysql support, see here for instructions http://php.net/manual/en/ref.mysql.php [EMAIL PROTECTED] wrote: Hey guys, I'm doing a tutorial from a book (PHP an

[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 n

[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

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 M

[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] 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 overco

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 ass

[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: I get the following

[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 p

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

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 wro

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

[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 s

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] S

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 20

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 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: 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

[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 haven't

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

2005-06-21 Thread John Nichel
Paul Godard wrote: I would really appreciate advice on this matter... 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 (http://www.php.net/) To un

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

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 debuggi

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]); $ses_baske

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: php-general@

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

[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 th

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, you

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, us

[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..

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, bu

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... 'a', 1 => 'b', 2 => 'c', 3 => 'd', 4 => 'e'); print_r($array); unset

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, Cata

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 thou

[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

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 4.1.1

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 wheth

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: 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 encry

[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

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, bu

[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 : - > > -

[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 h

  1   2   >