Re: [PHP] Array Question

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 15:52 +0100, Stut wrote: Robert Cummings wrote: On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote: On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array that can detect if a partial value is in an array value or not: e.g.

Re: [PHP] Array Question

2007-07-11 Thread Stut
Robert Cummings wrote: On Wed, 2007-07-11 at 15:52 +0100, Stut wrote: Robert Cummings wrote: On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote: On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array that can detect if a partial value is in an array

Re: [PHP] Array Question

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 16:07 +0100, Stut wrote: Robert Cummings wrote: On Wed, 2007-07-11 at 15:52 +0100, Stut wrote: Robert Cummings wrote: On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote: On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array

Re: [PHP] Array Question

2007-07-11 Thread Robin Vickery
On 11/07/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote: On 11/07/07, kvigor [EMAIL PROTECTED] wrote: Is there a php function similar to in_array that can detect if a partial value is in an array value or not: e.g. $var1 = big

Re: [PHP] Array Question

2007-07-11 Thread Richard Lynch
On Wed, July 11, 2007 9:52 am, Stut wrote: $needle = (array)$needle; Conversion to array creates an array with one element... the value converted. Without raising a notice? Sure looks like it: php -d error_reporting=2047 -r '$foo = (array) foo; var_dump($foo);' array(1) { [0]=

Re: [PHP] Array Question

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 16:11 -0500, Richard Lynch wrote: On Wed, July 11, 2007 9:52 am, Stut wrote: $needle = (array)$needle; Conversion to array creates an array with one element... the value converted. Without raising a notice? Sure looks like it: php -d error_reporting=2047

Re: [PHP] Array Question

2007-07-11 Thread Richard Lynch
On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: But I'd have to say that the intent is not all that clear, really, and I'd be leery of this feature, personally. I wouldn't be leery at all. It's been around for a very long time and it's documented:

Re: [PHP] Array Question

2007-07-11 Thread Robert Cummings
On Wed, 2007-07-11 at 16:40 -0500, Richard Lynch wrote: On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: But I'd have to say that the intent is not all that clear, really, and I'd be leery of this feature, personally. I wouldn't be leery at all. It's been around for a very long

Re: [PHP] Novice Question - Viewing Errors

2007-06-19 Thread Daniel Brown
On 6/19/07, revDAVE [EMAIL PROTECTED] wrote: I am just beginning to learn about PHP. It seems as though if I make a code error... The PHP page will simply come up blank. ( Not too helpful for error checking) - I would like to see some kind of report on the page as to what went wrong. I have

Re: [PHP] Novice Question - Viewing Errors

2007-06-19 Thread Daniel Brown
On 6/19/07, Daniel Brown [EMAIL PROTECTED] wrote: On 6/19/07, revDAVE [EMAIL PROTECTED] wrote: I am just beginning to learn about PHP. It seems as though if I make a code error... The PHP page will simply come up blank. ( Not too helpful for error checking) - I would like to see some kind

Re: [PHP] Novice Question - Viewing Errors

2007-06-19 Thread Jochem Maas
revDAVE wrote: I am just beginning to learn about PHP. It seems as though if I make a code error... The PHP page will simply come up blank. ( Not too helpful for error checking) - I would like to see some kind of report on the page as to what went wrong. I have tried adding various

Re: [PHP] Install question

2007-06-15 Thread Daniel Brown
On 6/15/07, Paul K [EMAIL PROTECTED] wrote: I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program ?php phpinfo(); ? Nothing

Re: [PHP] Install question

2007-06-15 Thread Jim Lucas
Paul K wrote: I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program ?php phpinfo(); ? Nothing displays. Where do I look to see

Re: [PHP] a question on session ID and security

2007-05-30 Thread Richard Lynch
On Mon, May 28, 2007 6:46 pm, Davis Chan wrote: Hi! I am developing a site with some authenticated users only features. I would like to know if the following is true: 1. script for login process is located on a SSL-enabled server, so usernames and passwords are encrypted. 2. upon successful

Re: [PHP] Security Question, re directory permissions [long answer]

2007-05-22 Thread Daniel Brown
My pleasure, Arno! On 5/22/07, Arno Kuhl [EMAIL PROTECTED] wrote: -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: 18 May 2007 10:27 To: Al Cc: php-general@lists.php.net Subject: Re: [PHP] Security Question, re directory permissions [long answer] On 5/18/07

Re: [PHP] Security Question, re directory permissions

2007-05-19 Thread Tijnema
On 5/19/07, itoctopus [EMAIL PROTECTED] wrote: I'm genuinely interested to know with whom you're hosting... No problem, it's www.dapx.com, it hasn't a lot security, safe_mode is off for example. If you know the right stuff from another user on the same server, you can actually do some nice

Re: [PHP] Security Question, re directory permissions

2007-05-19 Thread Al
I use Hosting Matters. It is super reliable and solid. itoctopus wrote: I'm genuinely interested to know with whom you're hosting... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Tijnema !
On 5/18/07, Al [EMAIL PROTECTED] wrote: I'm on a shared Linux host and have been wondering about security and directory other [world] permissions. The defaults are 755. The 'others' [world] can read them only. Is there a security hole if a dir on the doc root if a directory has permissions

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Al
How can they write or edit files there without having ftp access or the site's file manager? Tijnema ! wrote: On 5/18/07, Al [EMAIL PROTECTED] wrote: I'm on a shared Linux host and have been wondering about security and directory other [world] permissions. The defaults are 755. The 'others'

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Tijnema !
On 5/18/07, Al [EMAIL PROTECTED] wrote: How can they write or edit files there without having ftp access or the site's file manager? SSH access? Telnet maybe? PHP script? CGI script? ASP script? There are a lot of possible ways someone can write there. Tijnema Tijnema ! wrote: On

Re: [PHP] Security Question, re directory permissions [long answer]

2007-05-18 Thread Daniel Brown
On 5/18/07, Al [EMAIL PROTECTED] wrote: I'm on a shared Linux host and have been wondering about security and directory other [world] permissions. The defaults are 755. The 'others' [world] can read them only. Is there a security hole if a dir on the doc root if a directory has permissions

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Al
But, SSH and telnet, etc. require authentication login-in and all the executables you mentioned [and others] require someone who has access to upload a harmful file to start with. Right? Once they are in there, they can do anything they please anyhow. Al. Tijnema ! wrote: On

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Tijnema
On 5/19/07, Al [EMAIL PROTECTED] wrote: But, SSH and telnet, etc. require authentication login-in and all the executables you mentioned [and others] require someone who has access to upload a harmful file to start with. Right? Once they are in there, they can do anything they please anyhow.

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Al
How can anyone, other than the staff, get into my site? Far as I know, other users can't get out of their own domain space and into mine. Tijnema wrote: On 5/19/07, Al [EMAIL PROTECTED] wrote: But, SSH and telnet, etc. require authentication login-in and all the executables you mentioned

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 20:16 -0400, Al wrote: How can anyone, other than the staff, get into my site? Far as I know, other users can't get out of their own domain space and into mine. Bugs in your code, bugs in third-party code, bugs in PHP itself, sometimes they can be abused to take

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Tijnema
On 5/19/07, Al [EMAIL PROTECTED] wrote: How can anyone, other than the staff, get into my site? Far as I know, other users can't get out of their own domain space and into mine. That's quite easy, especially when you have SSH access. Of course, it will only work with specific settings, and

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Al
I guess your comment The less secure everything else is. is the best answer. I'm developing a CMS where logged-in, selected users can create new directories and pages in them. I'm comfortable that my code is secure. I'm using php's ftp functions, with good security, to mkdir and create

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread itoctopus
I'm genuinely interested to know with whom you're hosting... -- itoctopus - http://www.itoctopus.com Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 5/19/07, Al [EMAIL PROTECTED] wrote: How can anyone, other than the staff, get into my site? Far as I know, other users

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-07 Thread Richard Lynch
On Fri, May 4, 2007 9:23 pm, revDAVE wrote: I have a form on page one - and would like to submit to a second page in PHP that could grab the fields and send it out as an e-mail. Are there any links that show how do this? http://php.net/faq.php Somewhere in there is a question about

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-05 Thread Jim Lucas
Q: is there some kind of mail command like this for PHP? yes, it is called mail() check out this example, it is short but to the point. http://us.php.net/mail#57473 Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-04 Thread revDAVE
On 5/4/2007 7:29 PM, Brad Sumrall [EMAIL PROTECTED] wrote: Where are the fields? Hi Brad, Just a basic form with a few fields inside like - name - address etc lie: form action=sendmail.php method=post input name=name type=text input name=email type=text /form -- Thanks - RevDave [EMAIL

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-04 Thread revDAVE
Message- From: revDAVE [mailto:[EMAIL PROTECTED] Sent: Friday, May 04, 2007 10:36 PM To: php-general@lists.php.net Cc: Brad Sumrall Subject: Re: [PHP] Newbie Question - Form To Email Needed On 5/4/2007 7:29 PM, Brad Sumrall [EMAIL PROTECTED] wrote: Where are the fields? Hi Brad

Re: [PHP] Re: Question on Portfoilo's

2007-04-12 Thread Tijnema !
On 4/11/07, Steve [EMAIL PROTECTED] wrote: If you're working under an NDA or on code that doesn't belong to you, you'll most likely need to hit up the hobbiest side of programming to build your portfolio. Sit down, plan some app that would make your life easier (or someone else's), go through

Re: [PHP] foreach question

2007-04-10 Thread Richard Lynch
On Sun, April 8, 2007 6:29 pm, [EMAIL PROTECTED] wrote: I have .. foreach( $_POST as $key ) { echo $keybr /; } You are actually echoing out the VALUE, not the KEY... and that gives me item1 item2 item3 item4 item5br / Unless your VALUE has item1\nitem2\nitem3\nitem4\nitem5 in

Re: [PHP] foreach question

2007-04-09 Thread siavash1979
-general@lists.php.net Sent: Monday, April 09, 2007 5:20 AM Subject: Re: [PHP] foreach question [EMAIL PROTECTED] wrote: both examples do the same thing.. no, ex1 only has 1 br / so outputs like.. item1item2item3item4item5br / Where as I want this.. item1br / item2br

Re: [PHP] foreach question

2007-04-08 Thread Sebe
[EMAIL PROTECTED] wrote: I have .. foreach( $_POST as $key ) {echo $keybr /; } and that gives me item1 item2 item3 item4 item5br / how do I write it to give me item1br / item2br / item3br / item4br / item5br / Thanks both examples do the same thing.. -- PHP General Mailing List

Re: [PHP] foreach question

2007-04-08 Thread chris
PROTECTED] Cc: php-general@lists.php.net Sent: Monday, April 09, 2007 1:22 AM Subject: Re: [PHP] foreach question [EMAIL PROTECTED] wrote: I have .. foreach( $_POST as $key ) {echo $keybr /; } and that gives me item1 item2 item3 item4 item5br / how do I write it to give me item1br / item2br

Re: [PHP] foreach question

2007-04-08 Thread Sebe
] Cc: php-general@lists.php.net Sent: Monday, April 09, 2007 1:22 AM Subject: Re: [PHP] foreach question [EMAIL PROTECTED] wrote: I have .. foreach( $_POST as $key ) {echo $keybr /; } and that gives me item1 item2 item3 item4 item5br / how do I write it to give me item1br / item2br

Re: [PHP] foreach question

2007-04-08 Thread siavash1979
AM Subject: Re: [PHP] foreach question [EMAIL PROTECTED] wrote: I have .. foreach( $_POST as $key ) {echo $keybr /; } and that gives me item1 item2 item3 item4 item5br / how do I write it to give me item1br / item2br / item3br / item4br / item5br

Re: [PHP] foreach question

2007-04-08 Thread Lori Lay
the full script to the list. Lori - Original Message - From: Sebe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, April 09, 2007 1:22 AM Subject: Re: [PHP] foreach question [EMAIL PROTECTED] wrote: I have .. foreach( $_POST as $key ) {echo $keybr

Re: [PHP] foreach question

2007-04-08 Thread chris
be better to post the full script to the list. Lori - Original Message - From: Sebe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, April 09, 2007 1:22 AM Subject: Re: [PHP] foreach question [EMAIL PROTECTED] wrote: I have .. foreach( $_POST as $key

Re: [PHP] foreach question

2007-04-08 Thread Lori Lay
PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, April 09, 2007 5:20 AM Subject: Re: [PHP] foreach question [EMAIL PROTECTED] wrote: both examples do the same thing.. no, ex1 only has 1 br / so outputs like.. item1item2item3item4item5br / Where as I want

Re: [PHP] Simple question on simplexml

2007-04-06 Thread Jochem Maas
there is this: http://php.net/manual/en/function.simplexml-element-addChild.php which will allow adding of string data (so you won't be needing to create the new SimpleXMLElement object as per your example below). obviously you will have to first load tghe complete xml document into simplexml

Re: [PHP] imagecreate() question

2007-04-02 Thread Richard Davey
tedd wrote: In the php manual it says: imagecreate() returns an image identifier representing a blank image of specified size. We recommend the use of imagecreatetruecolor(). Q: Why the recommendation? Because the need to create 256 colour (or less) images grows less year by year. If you

Re: [PHP] imagecreate() question

2007-04-02 Thread tedd
At 4:27 PM +0100 4/2/07, Richard Davey wrote: tedd wrote: In the php manual it says: imagecreate() returns an image identifier representing a blank image of specified size. We recommend the use of imagecreatetruecolor(). Q: Why the recommendation? Because the need to create 256 colour

Re: [PHP] imagecreate() question

2007-04-02 Thread Edward Vermillion
Did you try making it transparent first, before adding the circle? Only a question because I'm not sure if it will make a difference. I know I had problems trying to get the alpha blending to actually look decent in png's (ended up looking like a very poor gif with a non- antialiased mask)

Re: [PHP] newbie question about debuging

2007-03-31 Thread Tijnema !
On 3/31/07, buFka [EMAIL PROTECTED] wrote: Hello, I would like to install pOWL (http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey the installation steps. I log in: http://www.picvalley.net/u/26/25123_331.PNG and then then i get this error message

Re: [PHP] newbie question about debuging

2007-03-31 Thread buFka
The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With

Re: [PHP] newbie question about debuging

2007-03-31 Thread Tijnema !
On 3/31/07, buFka [EMAIL PROTECTED] wrote: The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise

Re: [PHP] newbie question about debuging

2007-03-31 Thread buFka
Tijnema ! wrote: Hmm, in your image i see Database 'testdb' not found. Followed by a link. What happens if you click on that link? I don't know anything about Oracle/pOWL, but it looks like the script can't connect to your Oracle database. Did you check if the database settings are

Re: [PHP] newbie question about debuging

2007-03-31 Thread Richard Lynch
On Sat, March 31, 2007 8:53 am, Tijnema ! wrote: On 3/31/07, buFka [EMAIL PROTECTED] wrote: Hmm, in your image i see Database 'testdb' not found. Followed by a link. What happens if you click on that link? I don't know anything about Oracle/pOWL, but it looks like the script can't connect to

[PHP] Re: PHP newbie question on xslt

2007-03-27 Thread Timothy Murphy
Miguel J. Jiménez wrote: // Example 2520. Creating an XSLTProcessor ?php $xml_filename = collection.xml; $xsl_filename= collection.xsl; $doc = new DOMDocument(); $xsl = new XSLTProcessor(); $doc-load($xsl_filename); $xsl-importStyleSheet($doc); $doc-load($xml_filename); echo

Re: [PHP] syntax question

2007-03-26 Thread cajbecu
Ross wrote: Can I put post values directly into insert statements? $query = INSERT INTO categories (category_name) VALUES ('$_POST['cat_name']); Yes you can, but it is not secure to do that! use (insecure): $query = INSERT INTO categories (category_name) VALUES

Re: [PHP] syntax question

2007-03-26 Thread Brad Bonkoski
Ross wrote: Can I put post values directly into insert statements? $query = INSERT INTO categories (category_name) VALUES ('$_POST['cat_name']); Yes, although this is not recommended. What is someone puts a single quote in there? Or some other bad characters otherwise... 2

Re: [PHP] syntax question

2007-03-26 Thread tedd
At 3:59 PM +0100 3/26/07, Ross wrote: Can I put post values directly into insert statements? $query = INSERT INTO categories (category_name) VALUES ('$_POST['cat_name']); Open to sql injection. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP

Re: [PHP] syntax question

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 9:59 am, Ross wrote: Can I put post values directly into insert statements? $query = INSERT INTO categories (category_name) VALUES ('$_POST['cat_name']); Sure! If you want your webserver to get hacked by the Bad Guys, just go right ahead and do that. [that was

Re: [PHP] syntax question

2007-03-26 Thread itoctopus
Escape it, use either htmlentities (with ENT_QUOTES) or addslashes. -- itoctopus - http://www.itoctopus.com Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, March 26, 2007 9:59 am, Ross wrote: Can I put post values directly into insert statements? $query =

Re: [PHP] Array Question

2007-03-25 Thread Stut
[EMAIL PROTECTED] wrote: $count=count($data-legs-leg); $k=0; while($k $count) {

Re: [PHP] newbie question about storing big5 codes into mysql-5.0.24a

2007-03-24 Thread Tijnema !
On 3/24/07, Man-wai Chang [EMAIL PROTECTED] wrote: create table temp ( big5 char(2) ) character set big5 collate big5_bin; insert into temp ( big5 ) values ( 0x9f54 ); insert into temp ( big5 ) values ( 0x9f53 ); The 2nd query will report duplicated key. How should I fix the problem? What

Re: [PHP] newbie question about storing big5 codes into mysql-5.0.24a

2007-03-24 Thread Jochem Maas
Tijnema ! wrote: On 3/24/07, Man-wai Chang [EMAIL PROTECTED] wrote: create table temp ( big5 char(2) ) character set big5 collate big5_bin; insert into temp ( big5 ) values ( 0x9f54 ); insert into temp ( big5 ) values ( 0x9f53 ); The 2nd query will report duplicated key. How should I fix

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
$legrow[$data-legs-leg[$k]['legId']] ?? See if that works... Jake -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, March 24, 2007 11:27 PM To: php-general@lists.php.net Subject: [PHP] Array Question Hi All I am having a bit of trouble

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
What if you put $temp = $data-legs-leg[$k]['legId']; And then put that into $legrow[$temp]; Do you have anything in $temp? Jake -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, March 24, 2007 11:27 PM To: php-general@lists.php.net Subject:

RE: [PHP] Array Question

2007-03-24 Thread rluckhurst
Hi Jake Thanks for the answer. That is what I had in my example that did not work. I had tried that and then wondered how I might access that key. I have tried $legrow[number]; where number is a value I know to be one of the legId's. Is this correct? Regards Richard

RE: [PHP] Array Question

2007-03-24 Thread rluckhurst
Hi Jake I tried that and got the same result. Regards Richard What if you put $temp = $data-legs-leg[$k]['legId']; And then put that into $legrow[$temp]; Do you have anything in $temp? Jake -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday,

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
What is the result your getting? Jake -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, March 24, 2007 11:57 PM To: Jake McHenry Cc: php-general@lists.php.net Subject: RE: [PHP] Array Question Hi Jake I tried that and got the same result

RE: [PHP] Array Question

2007-03-24 Thread rluckhurst
Hi Jake I am getting nothing at all. Regards Richard What is the result your getting? Jake -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, March 24, 2007 11:57 PM To: Jake McHenry Cc: php-general@lists.php.net Subject: RE: [PHP] Array

RE: [PHP] Array Question

2007-03-24 Thread Jake McHenry
:09 AM To: Jake McHenry Cc: php-general@lists.php.net Subject: RE: [PHP] Array Question Hi Jake I am getting nothing at all. Regards Richard What is the result your getting? Jake -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent

Re: [PHP] Integer question

2007-03-23 Thread Tijnema !
On 3/23/07, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, March 22, 2007 2:33 pm, Tijnema ! wrote: 2). How do you handle numbers that large, while maintaining precision. keep them as strings - and/or use a 64bit machine? a 64bit machine would make the number larger, not unlimited :)

Re: [PHP] Configure question

2007-03-23 Thread Jochem Maas
Jake McHenry wrote: I searched the archives... Haven't seen an answer to this yet Does anyone know why Virtual Directory Support is enabled on windows, but disabled on unix? And what exactly is it? I know I can enable it by --enable-maintainer-zts, but it says in configure that it is

RE: [PHP] Configure question

2007-03-23 Thread Jake McHenry
I scanned over it quick.. Looks interesting.. Thanks :) I'll get into it more tomorrow Jake -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 7:58 PM To: Jake McHenry Cc: php-general@lists.php.net Subject: Re: [PHP] Configure question

Re: [PHP] Integer question

2007-03-22 Thread Tijnema !
On 3/22/07, Matt Carlson [EMAIL PROTECTED] wrote: When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807). 2). How

Re: [PHP] Integer question

2007-03-22 Thread Jochem Maas
Matt Carlson wrote: When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807). I can't see how that is possible,

Re: [PHP] Integer question

2007-03-22 Thread Tijnema !
On 3/22/07, Jochem Maas [EMAIL PROTECTED] wrote: Matt Carlson wrote: When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of mysql's bigint

Re: [PHP] Integer question

2007-03-22 Thread Jochem Maas
Tijnema ! wrote: On 3/22/07, Jochem Maas [EMAIL PROTECTED] wrote: Matt Carlson wrote: When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float. 1). How do you return the true number of the float when it reaches the upper limits of

Re: [PHP] Integer question

2007-03-22 Thread Richard Lynch
On Thu, March 22, 2007 2:33 pm, Tijnema ! wrote: 2). How do you handle numbers that large, while maintaining precision. keep them as strings - and/or use a 64bit machine? a 64bit machine would make the number larger, not unlimited :) Even GMP (or BC) isn't unlimited... It's just limited

Re: [PHP] _Construct question

2007-03-21 Thread Tijnema !
On 3/21/07, Chris [EMAIL PROTECTED] wrote: John Comerford wrote: Hi Folks, I am still pretty new to PHP and I have a question regarding classes and using _construct. Up until now I have been creating my classes as follows: class test1 { var $name; function test1($pName) { $this-name

Re: [PHP] Re: Question

2007-03-20 Thread Jim Lucas
Dan Shirah wrote: I had thought about having the multiple submissions on a single form, but with the amount of user information that is collected and the variable amount of users that may need to be entered this method would not be ideal. (A single form that you have to scroll down a far way and

Re: [PHP] Re: Question

2007-03-20 Thread Dan Shirah
Because in my application it is VERY VERY VERY important that I track the specific details for any given user in any given account. The user data changes frequently and I need to be able to track user information changes, numbers of accounts they are assigned to etc. So rather than updating the

Re: [PHP] Re: Question

2007-03-20 Thread Németh Zoltán
2007. 03. 20, kedd keltezéssel 16.31-kor Dan Shirah ezt írta: Because in my application it is VERY VERY VERY important that I track the specific details for any given user in any given account. The user data changes frequently and I need to be able to track user information changes, numbers

Re: [PHP] _Construct question

2007-03-20 Thread Chris
John Comerford wrote: Hi Folks, I am still pretty new to PHP and I have a question regarding classes and using _construct. Up until now I have been creating my classes as follows: class test1 { var $name; function test1($pName) { $this-name = $pName; } } So I when I create a new class I

Re: [PHP] _Construct question

2007-03-20 Thread Richard Lynch
On Tue, March 20, 2007 6:51 pm, John Comerford wrote: I am still pretty new to PHP and I have a question regarding classes and using _construct. Up until now I have been creating my classes as follows: class test1 { var $name; function test1($pName) { It changed from PHP 4 to PHP 5

Re: [PHP] Re: Question

2007-03-20 Thread Richard Lynch
On Tue, March 20, 2007 2:05 pm, Dan Shirah wrote: Each account is unique. It is possible that the same user could be on multiple accounts, therefore the account will be tied to the user each time. If each account can have multiple users, AND each user can have multiple accounts, then you have

Re: [PHP] Re: Question

2007-03-20 Thread Richard Lynch
On Tue, March 20, 2007 3:31 pm, Dan Shirah wrote: Because in my application it is VERY VERY VERY important that I track the specific details for any given user in any given account. The user data changes frequently and I need to be able to track user information changes, numbers of

Re: [PHP] Re: Question

2007-03-20 Thread Jim Lucas
Richard Lynch wrote: On Tue, March 20, 2007 3:31 pm, Dan Shirah wrote: Because in my application it is VERY VERY VERY important that I track the specific details for any given user in any given account. The user data changes frequently and I need to be able to track user information changes,

Re: [PHP] newbie question

2007-03-19 Thread Robert Cummings
On Mon, 2007-03-19 at 20:10 +, bob pilly wrote: Hi all Can anyone tell me what '' means before a var? e.g function($var) It means the variable is passed into the function as a reference. Changes to the value of the variable will be reflected outside of the function in the variable

Re: [PHP] newbie question

2007-03-19 Thread Janet Valade
bob pilly wrote: Hi all Can anyone tell me what '' means before a var? e.g function($var) http://us3.php.net/manual/en/language.references.php Janet -- Janet Valade -- janet.valade.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Seak, Teng-Fong
Stut wrote: Seak, Teng-Fong wrote: But after I've spent some time reading the log files, I've finally found out how the hackers managed to achieve worm infiltration. Actually, they're using an URL like this:

Re: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Dave Goodchild
Turn off register_globals - if you pollute your scripts with global variables like that you are asking for trouble. If you can't make sure you clean the variable. Using include($page.php) is asking for trouble. If you can get register_globals switched off (it's off by default in PHP5 for this

RE: [PHP] Re: question regarding form filtering

2007-03-15 Thread Tim
-Message d'origine- De : Richard Lynch [mailto:[EMAIL PROTECTED] Envoyé : mercredi 14 mars 2007 23:45 À : Tim Cc : 'Haydar Tuna'; php-general@lists.php.net Objet : RE: [PHP] Re: question regarding form filtering On Wed, March 14, 2007 9:07 am, Tim wrote: You almost for sure

[PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Seak, Teng-Fong
Seak, Teng-Fong wrote: No, I don't deserve anything because, as I've written in the original post (but I suppose you didn't notice), the website is outsourced and made by a 3rd company. Well, I've just realised (and checked) that I forgot to mention that my company's website was outsourced.

RE: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Jim Moseby
Seak, Teng-Fong wrote: No, I don't deserve anything because, as I've written in the original post (but I suppose you didn't notice), the website is outsourced and made by a 3rd company. Then you should be having this conversation with the 3rd party. They need to validate *EVERY* bit of

Re: [PHP] Re: [PHP-WIN] Re: [PHP] Re: Question on virus/worms

2007-03-15 Thread Richard Lynch
On Thu, March 15, 2007 9:15 am, Seak, Teng-Fong wrote: Stut wrote: Seak, Teng-Fong wrote: But after I've spent some time reading the log files, I've finally found out how the hackers managed to achieve worm infiltration. Actually, they're using an URL like this:

RE: [PHP] Re: question regarding form filtering

2007-03-14 Thread Richard Lynch
expect many on this list to disagree with the preceding 2 paragraphs. YMMV On Tue, March 13, 2007 9:36 am, Tim wrote: -Message d'origine- De : Haydar Tuna [mailto:[EMAIL PROTECTED] Envoyé : mardi 13 mars 2007 14:53 À : php-general@lists.php.net Objet : [PHP] Re: question regarding

RE: [PHP] Re: question regarding form filtering

2007-03-14 Thread Tim
-Message d'origine- De : Richard Lynch [mailto:[EMAIL PROTECTED] Envoyé : mercredi 14 mars 2007 09:48 À : Tim Cc : 'Haydar Tuna'; php-general@lists.php.net Objet : RE: [PHP] Re: question regarding form filtering I personally would not presume that PHP and JS regex patterns

RE: [PHP] Re: question regarding form filtering

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 9:07 am, Tim wrote: You almost for sure do *NOT* want to attempt to send the entire Webster's 2nd Edition dictionary to the browser as JS data so that the JS can check. :-) Hehe, oh? Really? ;-) I suppose you could do a Web 2.0 Ajax-y thingie for that... Not a

RE: [PHP] Re: question regarding form filtering

2007-03-13 Thread Tim
-Message d'origine- De : Haydar Tuna [mailto:[EMAIL PROTECTED] Envoyé : mardi 13 mars 2007 14:53 À : php-general@lists.php.net Objet : [PHP] Re: question regarding form filtering Hello, You can write some basic functions such as checking length of variable, removing

Re: [PHP] session question

2007-03-05 Thread Alain Roger
the index.php page is the first page where user should logon. it consists of 3 flags (english, french and slovak). when use click on 1 flags, it reload the index.php page and changes the login and password words by their relative translation into the flag country selected. if user click on LOGON

Re: [PHP] session question

2007-03-05 Thread Stut
Alain Roger wrote: the index.php page is the first page where user should logon. it consists of 3 flags (english, french and slovak). when use click on 1 flags, it reload the index.php page and changes the login and password words by their relative translation into the flag country selected.

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Stut
Ryan A wrote: Quick question, one of our sites already uses BASIC_AUTH to take the username and pass from clients, we were thinking of instead doing it via a login form (so we can also add a CAPTCHA later...if needed) what I would like to know is, by using a login form instead of a BASIC_AUTH

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Stut
I think you meant to send this to the OP not me. And please also include the list in your replies. Tijnema ! wrote: The best way is using a HTML form, and then adding a javascript ,that runs before submitting, that encrypts the password with md5. This offers little more security than plain

<    5   6   7   8   9   10   11   12   13   14   >