Re: [PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Thodoris
On Thu, Sep 18, 2008 at 4:35 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: If you need abstraction, check this out: http://us.php.net/pdo Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Error message

2008-09-18 Thread Eric Gorr
On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> Well, this is weird. When I copied your t

Re: [PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Dan Joseph
On Thu, Sep 18, 2008 at 5:35 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > You can't upgrade PHP? > > Thank you, > Micah Gersten > onShore Networks > Internal Developer > http://www.onshore.com > > > > Dan Joseph wrote: > > On Thu, Sep 18, 2008 at 4:35 PM, Micah Gersten <[EMAIL PROTECTED]> > wrot

[PHP] XHTML 移动概要 (XHTML MP) / WAP 2.0 教程

2008-09-18 Thread Shelley
各位好. XHTML 移动概要 (XHTML MP) / WAP 2.0 教程: http://www.phparch.cn/index.php/web/66-mobile/188 正在编写中,已完成部分已加链接。 欢迎大家多提意见或建议并留下你的想法供大家交流。 谢谢。 -- With best regards, Shelley Shyan http://phparch.cn

Re: [PHP] Error message

2008-09-18 Thread Jim Lucas
Terry J Daichendt wrote: > You have a real attitude problem, please don't bother with me again. > > > "Jochem Maas" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Terry J Daichendt schreef: >>> I'm pasting this code from the example at php.net and getting these >> >> which examp

Re: [PHP] Error message

2008-09-18 Thread Micah Gersten
Si, puedes tener espacio en blanco delante de session_start(), pero no puedes tener espacio delante de 'http://www.onshore.com CanihoJR wrote: > No puedes tener ningun espacio en blanco delante de session_start(); > > Sorry for my english: > you cant have any blank spaccing before SESSION_START(

Re: [PHP] Error message

2008-09-18 Thread Terry J Daichendt
You have a real attitude problem, please don't bother with me again. "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Terry J Daichendt schreef: I'm pasting this code from the example at php.net and getting these which example might that be, with 1000's of built in

Re: [PHP] Error message

2008-09-18 Thread Jochem Maas
Andrew Barnett schreef: It sounds like there is a space or output before the a blank space before the Andrew 2008/9/19 CanihoJR <[EMAIL PROTECTED]>: No puedes tener ningun espacio en blanco delante de session_start(); Sorry for my english: you cant have any blank spaccing before SESSION_STA

Re: [PHP] Error message

2008-09-18 Thread Jochem Maas
Terry J Daichendt schreef: I'm pasting this code from the example at php.net and getting these which example might that be, with 1000's of built in functions you can imagine there is probably more than one. errors. Can anyone determine what I'm doing wrong? yes. but can your read? the erro

Re: [PHP] Error message

2008-09-18 Thread Andrew Barnett
It sounds like there is a space or output before the : > No puedes tener ningun espacio en blanco delante de session_start(); > > Sorry for my english: > you cant have any blank spaccing before SESSION_START() > > > Prueba: > TRY: > > session_start(); > > echo 'Welcome to page #1'; > > $_SESSION['

Re: [PHP] Error message

2008-09-18 Thread CanihoJR
No puedes tener ningun espacio en blanco delante de session_start(); Sorry for my english: you cant have any blank spaccing before SESSION_START() Prueba: TRY: page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?>

[PHP] Error message

2008-09-18 Thread Terry J Daichendt
I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> Warning: session_start() [function.session-start]: Cannot send session cookie - headers already s

Re: [PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Micah Gersten
You can't upgrade PHP? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Dan Joseph wrote: > On Thu, Sep 18, 2008 at 4:35 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > > >> If you need abstraction, check this out: >> http://us.php.net/pdo >> >> Thank you, >

Re: [PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Dan Joseph
On Thu, Sep 18, 2008 at 4:35 PM, Micah Gersten <[EMAIL PROTECTED]> wrote: > If you need abstraction, check this out: > http://us.php.net/pdo > > Thank you, > Micah Gersten > onShore Networks > Internal Developer > http://www.onshore.com > > -- > PHP General Mailing List (http://www.php.net/) > To

Re: [PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Micah Gersten
If you need abstraction, check this out: http://us.php.net/pdo Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Dan Joseph wrote: > On Thu, Sep 18, 2008 at 3:36 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > >> If you already have your results in an array, t

Re: [PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Dan Joseph
On Thu, Sep 18, 2008 at 3:36 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > If you already have your results in an array, try using count($result); > That should count the number of results returned to your result array. > > Or you could try uncommenting the mssql extension in your php.ini file and

Re: [PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Dan Shirah
On 9/18/08, Dan Joseph <[EMAIL PROTECTED]> wrote: > Hi, > > Anyone else using the odbc_* functions to interact with MS SQL Server 2005? > > I'm having a problem getting odbc_num_rows() to return anything other than > -1 when querying a stored procedure. I can get it to work using Top in a > norma

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Ashley Sheridan
On Thu, 2008-09-18 at 15:30 -0400, Eric Butera wrote: > On Thu, Sep 18, 2008 at 3:28 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Thu, 2008-09-18 at 15:20 -0400, Eric Butera wrote: > >> On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan > >> <[EMAIL PROTECTED]> wrote: > >> > Hi All, > >>

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Eric Butera
On Thu, Sep 18, 2008 at 3:28 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Thu, 2008-09-18 at 15:20 -0400, Eric Butera wrote: >> On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > Hi All, >> > >> > I'm not sure if this is possible, but basically I was wonderin

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Ashley Sheridan
On Thu, 2008-09-18 at 15:20 -0400, Eric Butera wrote: > On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I'm not sure if this is possible, but basically I was wondering if > > anyone had any experience with using PHP to read/deconstruct a PDF file. >

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Eric Butera
On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm not sure if this is possible, but basically I was wondering if > anyone had any experience with using PHP to read/deconstruct a PDF file. > > I'm asking because a system I built at work is being used by a

[PHP] Deconstruct PDF

2008-09-18 Thread Ashley Sheridan
Hi All, I'm not sure if this is possible, but basically I was wondering if anyone had any experience with using PHP to read/deconstruct a PDF file. I'm asking because a system I built at work is being used by a complete computer illiterate. Even after careful step-by-step instruction, she still k

Re: [PHP] Static method variable

2008-09-18 Thread Jochem Maas
Christoph Boget schreef: Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function __construct() { }

Re: [PHP] Re: PHP and MySQL SELECT COUNT (*)

2008-09-18 Thread Vinny Gullotta
Thanks all, I appreciate the follow ups and the help with the code. I'm still relatively new with this stuff, and never had any formal training, it's all just been learn as I go, and I have to learn fast as this project is relatively urgent to get completed. I plan on going through all of my co

Re: [PHP] $_SERVER["REMOTE_ADDR"] returning ::1

2008-09-18 Thread David Rocks
Stut wrote: On 18 Sep 2008, at 16:37, David Rocks wrote: Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5

[PHP] Re: Function parameters and arrays

2008-09-18 Thread Frank Stanovcak
Actually Stut pointed out that I was calling both dimmensions when my sorry butt should only have been referencing the second one. I had everything over expanded so I could see where the code was breaking. Thank you everyone for the help! That was fantastic! Frank ""Frank Stanovcak"" <[EMAIL PRO

Re: [PHP] textarea html generation problem

2008-09-18 Thread sean greenslade
I prefer the htmlentities because it allows me to edit the real code, not an edited form of the code. All the <> still appear. On Tue, Sep 16, 2008 at 9:41 AM, TQ White II <[EMAIL PROTECTED]> wrote: > > I add str_replace('textarea', 'textareaHIDE', ... to the display code and > the reverse to the

Re: [PHP] Function parameters and arrays

2008-09-18 Thread Jim Lucas
Frank Stanovcak wrote: > I am trying to pass a multi dimmed array as a variable parameter to a custom > function to build a query for me. Here is the basic code and what I am > getting. > > $WhereList[0][0] = 'OESalesOrder.OrderNo'; > $WhereList[0][1] = '='; > $WhereList[0][2] = '2272'; > $SQLS

RE: [PHP] Function parameters and arrays

2008-09-18 Thread Simcha
This would be a little neater: foreach(func_get_arg(2) as $k => $WhereArray) { //echo $WhereArray[0][0]; $SQLStmt .= ' ' . $WhereArray[0] . ' ' . $WhereArray[1] . ' ' . $WhereArray[2]; if($k != 0) $SQLStmt .=' ' . $WhereArray[3]; }; Simcha Younger -Original Message- F

Re: [PHP] $_SERVER["REMOTE_ADDR"] returning ::1

2008-09-18 Thread Stut
On 18 Sep 2008, at 16:37, David Rocks wrote: Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using

Re: [PHP] $_SERVER["REMOTE_ADDR"] returning ::1

2008-09-18 Thread David Rocks
Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE

Re: [PHP] SQLExtendedFetch

2008-09-18 Thread Liz Kim
thanks for all your input. unfortunately, i cannot set up a new database as it is being used by other applications/websites. the versions of odbc, php and apache are all the same... please do let me know if you have any other suggestions! thanks On Wed, Sep 17, 2008 at 5:48 PM, Chris <[EMAIL PRO

Re: [PHP] Function parameters and arrays

2008-09-18 Thread Stut
On 18 Sep 2008, at 16:29, Frank Stanovcak wrote: I am trying to pass a multi dimmed array as a variable parameter to a custom function to build a query for me. Here is the basic code and what I am getting. $WhereList[0][0] = 'OESalesOrder.OrderNo'; $WhereList[0][1] = '='; $WhereList[0][2] =

Re: [PHP] $_SERVER["REMOTE_ADDR"] returning ::1

2008-09-18 Thread Brady Mitchell
On Sep 17, 2008, at 957PM, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR. I

[PHP] Function parameters and arrays

2008-09-18 Thread Frank Stanovcak
I am trying to pass a multi dimmed array as a variable parameter to a custom function to build a query for me. Here is the basic code and what I am getting. $WhereList[0][0] = 'OESalesOrder.OrderNo'; $WhereList[0][1] = '='; $WhereList[0][2] = '2272'; $SQLString = SQLCall('OESalesOrder',$FieldLi

Re: [PHP] $_SERVER["REMOTE_ADDR"] returning ::1

2008-09-18 Thread Stut
On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR. Is

Re: [PHP] Static method variable

2008-09-18 Thread Micah Gersten
If you're looking for a persistent variable in one class instance, then you need a member variable. If you want it persistent across all class instances, you want a static variable. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Christoph Boget wrote: > Per

[PHP] $_SERVER["REMOTE_ADDR"] returning ::1

2008-09-18 Thread David Rocks
I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR. Is this a PHP or a APACHE 2 thing? -- PHP General

Re: [PHP] Email Verification

2008-09-18 Thread Andrew Ballard
On Thu, Sep 18, 2008 at 2:09 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Lupus Michaelis wrote: > >> Richard Heyes a écrit : >> >>> New domain name extensions can be accounted for easily, eg: >>> >>> \.(?:[a-z]){2,4} >> >>It excludes .museum tld. > > Don't make assumptions about which TLDs that

[PHP] Re: Static method variable

2008-09-18 Thread Carlos Medina
Christoph Boget schrieb: Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function __construct() { }

Re: [PHP] Static method variable

2008-09-18 Thread Thijs Lensselink
Quoting Christoph Boget <[EMAIL PROTECTED]>: Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function _

[PHP] Static method variable

2008-09-18 Thread Christoph Boget
Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function __construct() { } public function test( $n

[PHP] ODBC Functions & MS SQL Server 2005

2008-09-18 Thread Dan Joseph
Hi, Anyone else using the odbc_* functions to interact with MS SQL Server 2005? I'm having a problem getting odbc_num_rows() to return anything other than -1 when querying a stored procedure. I can get it to work using Top in a normal query (non-stored procedure). SELECT Top 100 * FROM Tabl

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-18 Thread Ross McKay
Luke wrote: >so it's like Microsoft Access? I don't get it... No, Microsoft Access is a development environment sitting on top of a simplistic database (JET). Access gives you a nice GUI to help you interactively build up your database, and it makes a great prototyping tool and data massage tool,

Re: [PHP] Re: MySQL Workbench coming for Linux

2008-09-18 Thread Luke
so it's like Microsoft Access? I don't get it... 2008/9/18 Ross McKay <[EMAIL PROTECTED]> > Bastien Koert wrote: > > >what about dia on llinux? Not quite as nice as visio...but livable > > The Enterprise Architect version of Visio lets you add column > definitions to your entities, add foreign ke

[PHP] Re: Email Verification

2008-09-18 Thread Colin Guthrie
Stut wrote: Or better, the MX record... :) An MX record is not required to accept email for a domain. The relevant RFC (can't recall the number right now) states that it should fall back to using the A record if no MX record is present. Excellent. That's my "new thing" learned for the day.

Re: [PHP] Re: Email Verification

2008-09-18 Thread Stut
On 18 Sep 2008, at 09:44, Colin Guthrie wrote: Per Jessen wrote: Lupus Michaelis wrote: Richard Heyes a écrit : New domain name extensions can be accounted for easily, eg: \.(?:[a-z]){2,4} It excludes .museum tld. Don't make assumptions about which TLDs that are or are not allowed - the

[PHP] Re: Email Verification

2008-09-18 Thread Colin Guthrie
Per Jessen wrote: Lupus Michaelis wrote: Richard Heyes a écrit : New domain name extensions can be accounted for easily, eg: \.(?:[a-z]){2,4} It excludes .museum tld. Don't make assumptions about which TLDs that are or are not allowed - the domain part of an email address could be vali

Re: [PHP] Re: Pear XML parser finding nothing in ATOM / Movable Type feed

2008-09-18 Thread John Allsopp
Nathan Rixham wrote: Atom and RSS are completely different; the only similarities lie in the fact they are both XML, and both used frequently for syndicating news. Really? OK, back to the books, thanks You need an atom parser; or just load the feed into DOMDocument.. SimplePie and RssPhp are