[PHP] Re: [PEAR] PEAR DB PAGER array_push

2004-11-14 Thread Lorenzo Alberton
[EMAIL PROTECTED] wrote: Salut! is there a good way to present data from table (many fields / not only one) into $itemData instead of array_push (line 12 .. 16) ? == ?php /** * PEAR DB */ require_once 'DB.php'; $db=

[PHP] Silly OOP question

2004-11-14 Thread Brent Clements
I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application. for instance. I have a project.class file that has functions for dealing with individual

[PHP] Re: Silly OOP question

2004-11-14 Thread Daniel Schierbeck
Brent Clements wrote: I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application. for instance. I have a project.class file that has functions for dealing

Re: [PHP] php mail() error

2004-11-14 Thread Manuel Lemos
Hello, On 11/14/2004 03:49 AM, Curt Zirzow wrote: Requiring authentication is one common solution to not leave relaying opened. Common but not the *only* way. That is irrelevant because most servers that issue the message above only allow relaying with prior authentication. FYI, the class that

Re: [PHP] Re: php mail() error

2004-11-14 Thread Manuel Lemos
Hello, On 11/14/2004 04:11 AM, Curt Zirzow wrote: Im using the php mail() function to try send an email to a user that has just registered. mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' , 'Welcome'); But when I get the following error back.: Warning: mail(): SMTP

[PHP] Hacking attempt

2004-11-14 Thread The Doctor
One of our customers how has Hacking attempt on their index.php instead of their regualr page. What caused this and how do we get the regualr page back? -- Member - Liberal International This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] God Queen and country! Beware Anti-Christ rising!

Re: [PHP] Hacking attempt

2004-11-14 Thread raditha dissanayake
and what exactly is a hacking attempt? The Doctor wrote: One of our customers how has Hacking attempt on their index.php instead of their regualr page. What caused this and how do we get the regualr page back? -- Raditha Dissanayake.

[PHP] PHP+Oracle+Apache

2004-11-14 Thread Evgeniy Sudyr
Good day, I use Apache2+PHP5+Oracle8 under WindowsXP I want use php with Oracle. I uncommented strings in php.ini: ;extension=php_oci8.dll ;extension=php_oracle.dll ;extension=php_dbase.dll Now when I start apache it say me that this extensions are not present in extensions dir (But they are

Re: [PHP] Silly OOP question

2004-11-14 Thread -{ Rene Brehmer }-
At 12:34 14-11-2004, Brent Clements wrote: I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application. for instance. I have a project.class file that has

[PHP] Database Search and seperate results page

2004-11-14 Thread Stuart Felenstein
After googling for quite some time I'm back asking here. I want to be able to seperate by search and results into two pages. My form is set up on Search.php I have set actionsearchresults.php Couple of questions: I have my array of user selected options from my form element - Ind[] I gather

[PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
I wonder why the CLI version of PHP doesn't consult environment variables to override some default settings. This mechanism is used by all the other interpreters that I use (e.g.: perl with PERLLIB/etc, python with PYTHONHOME/PYTHONPATH/etc, ruby with RUBYOPT/RUBYLIB/RUBYPATH/etc). PS: I am

[PHP] Re:[SOLVED] [PHP] Database Search and seperate results page

2004-11-14 Thread Stuart Felenstein
--- Stuart Felenstein [EMAIL PROTECTED] wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Overwriting offset methods of ArrayObject

2004-11-14 Thread Klaus Reimer
Hello, I just tried to overwrite a method of ArrayObject like this: class MyArrayObject extends ArrayObject { public function offsetGet($key) { echo Here I am\n; return parent::offsetGet($key); } } $o = new MyArrayObject(); $o['test'] = 'test';

Re: [PHP] Silly OOP question

2004-11-14 Thread Robert Cummings
On Sun, 2004-11-14 at 09:30, -{ Rene Brehmer }- wrote: Just remember that PHP isn't a true OOP language, so going OOP may not Please define true OOP language and provide a few examples that meet your criteria. Then show how other examples like PHP fail to meet your true OOP criteria. Don't

Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread Greg Donald
On Sun, 14 Nov 2004 21:53:52 +0700, David Garamond [EMAIL PROTECTED] wrote: I wonder why the CLI version of PHP doesn't consult environment variables to override some default settings. This mechanism is used by all the other interpreters that I use (e.g.: perl with PERLLIB/etc, python with

[PHP] Test post from a new client

2004-11-14 Thread Robb Kerr
This is a test post from a new client. I'm trying to decide whether or not to keep it. Please post a reply so that I can see how it shows up. Thanx, Robb

[PHP] File Handing Windows / Linux

2004-11-14 Thread Steve Vernon
Hiya! I am trying to make some code which gets a handle to a directory, but has different code for my localhost (Windows) and for online (Linux server). Basically, I want either of the below lines. Say if the first fails, it must be on Linux and then it uses the line below. The two example

Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
Greg Donald wrote: On Sun, 14 Nov 2004 21:53:52 +0700, David Garamond [EMAIL PROTECTED] wrote: I wonder why the CLI version of PHP doesn't consult environment variables to override some default settings. This mechanism is used by all the other interpreters that I use (e.g.: perl with PERLLIB/etc,

Re: [PHP] Re: Silly OOP question

2004-11-14 Thread Brent Clements
Daniel, Thanks for the insight, this is what I had thought. I just wanted to get a peer's validation of my thought process. You hit what I thought was right, right on the head. -Brent - Original Message - From: Daniel Schierbeck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday,

Re: [PHP] Silly OOP question

2004-11-14 Thread Klaus Reimer
Brent Clements wrote: or should I create a projects.class file that has a function called getProjects. Yes, that's a possibility. You can even create more stuff in this Projects class like createProject, removeProject and stuff like this. If these tasks are pretty static and you don't need

[PHP] PHP file permission

2004-11-14 Thread Jerry Swanson
What is the optimal PHP file permission? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP file permission

2004-11-14 Thread M. Sokolewicz
depends on what you need it for Jerry Swanson wrote: What is the optimal PHP file permission? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Handing Windows / Linux

2004-11-14 Thread Jason Wong
On Monday 15 November 2004 00:34, Steve Vernon wrote: I am trying to make some code which gets a handle to a directory, but has different code for my localhost (Windows) and for online (Linux server). Basically, I want either of the below lines. Say if the first fails, it must be on Linux

[PHP] Re: File Handing Windows / Linux

2004-11-14 Thread M. Sokolewicz
Steve Vernon wrote: Hiya! I am trying to make some code which gets a handle to a directory, but has different code for my localhost (Windows) and for online (Linux server). Basically, I want either of the below lines. Say if the first fails, it must be on Linux and then it uses the line below.

Re: [PHP] Re: PHP file permission

2004-11-14 Thread Jerry Swanson
regular php page, some mysql queries and print html on the screen. On Sun, 14 Nov 2004 18:19:28 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote: depends on what you need it for Jerry Swanson wrote: What is the optimal PHP file permission? -- PHP General Mailing List

Re: [PHP] Database Search and seperate results page

2004-11-14 Thread Jason Wong
On Sunday 14 November 2004 22:31, Stuart Felenstein wrote: After googling for quite some time I'm back asking here. I want to be able to seperate by search and results into two pages. Sadly, you're really not learning much from this list ... My form is set up on Search.php I have set

Re: [PHP] Database Search and seperate results page

2004-11-14 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Sadly, you're really not learning much from this list ... I partially disagree. I think it might be better for me to take a more elementary approach to the language before getting moving on to specific project issues. ... print_r()/var_dump()

[PHP] alert function

2004-11-14 Thread Mathieu Morin
In html, there is the alert() function that makes a popup with a ok button. Is there such a thing in php? example: if ($lastname == ) { print brbrcenterfont face=arial color=redEnter a name!/font/center; } but that changes my page setup. -- PHP General Mailing List

Re: [PHP] Silly OOP question

2004-11-14 Thread -{ Rene Brehmer }-
At 17:14 14-11-2004, Robert Cummings wrote: On Sun, 2004-11-14 at 09:30, -{ Rene Brehmer }- wrote: Just remember that PHP isn't a true OOP language, so going OOP may not Please define true OOP language and provide a few examples that meet your criteria. Then show how other examples like PHP fail

Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread Jordi Canals
On Sun, 14 Nov 2004 23:42:58 +0700, David Garamond [EMAIL PROTECTED] wrote: Greg Donald wrote: print_r($_ENV); What should I see in it? RTFM http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] alert function

2004-11-14 Thread Larry E . Ullman
In html, there is the alert() function that makes a popup with a ok button. Is there such a thing in php? Actually, that's a JavaScript function. You can't do the same thing in PHP although you can use PHP to create the JavaScript. Printing an error message, like you already had, is probably a

Re: [PHP] Silly OOP question

2004-11-14 Thread Robert Cummings
On Sun, 2004-11-14 at 13:27, -{ Rene Brehmer }- wrote: At 17:14 14-11-2004, Robert Cummings wrote: On Sun, 2004-11-14 at 09:30, -{ Rene Brehmer }- wrote: Just remember that PHP isn't a true OOP language, so going OOP may not Please define true OOP language and provide a few examples that

[PHP] Re: Test post from a new client

2004-11-14 Thread Daniel Schierbeck
Robb Kerr wrote: This is a test post from a new client. I'm trying to decide whether or not to keep it. Please post a reply so that I can see how it shows up. Thanx, Robb FUBAR -- Daniel Schierbeck Help spread Firefox (www.getfirefox.com):

[PHP] Re: Silly OOP question

2004-11-14 Thread Daniel Schierbeck
Brent Clements wrote: I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application. for instance. I have a project.class file that has functions for dealing

Re: [PHP] Silly OOP question

2004-11-14 Thread Daniel Schierbeck
Klaus Reimer wrote: you can implement it completely statically so you don't need to instanciate the class Well, it might be useful to have more than one list of projects, ie if you want all design-related projects, or all PHP-projects. -- Daniel Schierbeck Help spread Firefox

[PHP] paypal ipn - subscriptions

2004-11-14 Thread nate
I'm creating a subscription service where customers will signup and pay $X per month to have access to this service. I've done the easy part, which is communicating back and forth with paypal. Anytime a transaction is made, it's sent to my ipn.php script. The part I'm having difficulty with is

[PHP] Re: Silly OOP question

2004-11-14 Thread Dusty Bin
Brent Clements wrote: I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application. for instance. I have a project.class file that has functions for dealing

[PHP] Re: Silly OOP question

2004-11-14 Thread Dusty Bin
Dusty Bin wrote: snip /snip foreach($container-getProjects as $project) { snip /snip Sorry about the typo, of course it should read: foreach($container-getProjects() as $project) { Dusty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Silly OOP question

2004-11-14 Thread Klaus Reimer
Daniel Schierbeck wrote: you can implement it completely statically so you don't need to instanciate the class Well, it might be useful to have more than one list of projects, ie if you want all design-related projects, or all PHP-projects. But then you might need a class to organize these

[PHP] Mysql 4.1.7 + PHP 4.3.9

2004-11-14 Thread electroteque
Is this a possible combination ? Work is trying to compile PHP4 against 4.1, I havent even tried it apart from against PHP5. It says in the manual that the mysqli driver is the only one compatible with 4.1, although I have managed to compile both mysql and mysqli in php5, and run my apps ok as

[PHP] Re: paypal ipn - subscriptions

2004-11-14 Thread Michelle Konzack
Hello nate, Am 2004-11-14 11:46:57, schrieb [EMAIL PROTECTED]: I'm creating a subscription service where customers will signup and pay $X per month to have access to this service. I've done the easy part, which is communicating back and forth with paypal. Anytime a transaction is made, it's

[PHP] Atom 2 RSS Script? Anyone got one?

2004-11-14 Thread Nick Wilson
hi all, im all tired out of searching, just cant seem to find a script that will convert atom 0.3 to any rss format. Does anyone have one or know where i can get hold of one? I know about 2rss.com but they insert ads as i understand it so that just wont do :) thanks for any links or help.. --

[PHP] unable to use vars in foreach

2004-11-14 Thread Jonathan Villa
I'm using PHP 5.0.2 Here is a snippet of my code $post=$_POST;//this is actually happening in an include somewhere else and autoprepended. Works just fine. $modules = simplexml_load_file(MODULES); foreach ($modules-module as $mod) { echo $mod-postName.'br'; if

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Ryan King
On Sunday, November 14, 2004, at 08:24PM, Jonathan Villa [EMAIL PROTECTED] wrote: $modules = simplexml_load_file(MODULES); Are you certain that MODULES has been defined()? And what do you get when you print_r($modules)? -ryan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] unable to use vars in foreach [updated question]

2004-11-14 Thread Jonathan Villa
So, searching php.net (I swear I did before...) I found this at http://us2.php.net/language.types.array You cannot use arrays or objects as keys. Doing so will result in a warning: Illegal offset type. Neverthought that my var was an object, just thought maybe a string. My new question is,

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Jonathan Villa
On Sunday, November 14, 2004, at 08:24PM, Jonathan Villa [EMAIL PROTECTED] wrote: $modules = simplexml_load_file(MODULES); Are you certain that MODULES has been defined()? And what do you get when you print_r($modules)? -ryan Yes MODULES is defined. It's defined in an include file.

Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread David Garamond
Jordi Canals wrote: On Sun, 14 Nov 2004 23:42:58 +0700, David Garamond [EMAIL PROTECTED] wrote: Greg Donald wrote: print_r($_ENV); What should I see in it? RTFM http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment Um, am I missing something here? ITTRFMTR (is that

Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread raditha dissanayake
David Garamond wrote: Um, am I missing something here? ITTRFMTR (is that the right fine manual to read?) I originally asked why the php cli binary cannot be told to look for php.ini in a custom location specified via an environment variable (it only accepts the -c command line argument). All

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Ryan King
On Sunday, November 14, 2004, at 08:36PM, Jonathan Villa [EMAIL PROTECTED] wrote: On Sunday, November 14, 2004, at 08:24PM, Jonathan Villa [EMAIL PROTECTED] wrote: $modules = simplexml_load_file(MODULES); Are you certain that MODULES has been defined()? And what do you get when

Re: [PHP] unable to use vars in foreach [updated question]

2004-11-14 Thread Ryan King
On Sunday, November 14, 2004, at 08:44PM, Jonathan Villa [EMAIL PROTECTED] wrote: So, searching php.net (I swear I did before...) I found this at http://us2.php.net/language.types.array You cannot use arrays or objects as keys. Doing so will result in a warning: Illegal offset type.

Re: [PHP] unable to use vars in foreach

2004-11-14 Thread Jonathan Villa
ah yes thanks both worked... I had written a function to this... I knew there had to be a much easier way!!! On Sunday, November 14, 2004, at 08:36PM, Jonathan Villa [EMAIL PROTECTED] wrote: On Sunday, November 14, 2004, at 08:24PM, Jonathan Villa [EMAIL PROTECTED] wrote:

[PHP] Array from database table

2004-11-14 Thread Richard
How do I get the data from a mysql database into and array that looks like this Array ( [0] = 1 [1] = 2 [2] = 3 [3] = 4 [4] = 5 [5] = 6 ) The table has three fields but I only need the data from one field. $query=SELECT amenityID FROM property_amenity where listingId = '$listingId'; -- PHP

[PHP] Sessions: I don't get it!!

2004-11-14 Thread Don
I'd like to do something with sessions that should be easy. But I'm new to this, and obviously I'm missing something somewhere... I want to use cookies if the visitor allows, but tack the session info (SID) get style on the URL of a linked page *only if* the visitor blocks cookies. I've tried

Re: [PHP] Array from database table

2004-11-14 Thread raditha dissanayake
Richard wrote: How do I get the data from a mysql database into and array that looks like this Array ( [0] = 1 [1] = 2 [2] = 3 [3] = 4 [4] = 5 [5] = 6 ) by using mysql_fetch_row() or mysql_fetch_array() The table has three fields but I only need the data from one field. $query=SELECT amenityID

RE: [PHP] Sessions: I don't get it!!

2004-11-14 Thread nate
Looks like you're making it way more complicated than it needs to be. PHP will automatically tack on the Session ID tag to your local url's, but only if it needs to. There is no need to append the SID to url's manually. Nate -Original Message- From: Don [mailto:[EMAIL PROTECTED] Sent:

[PHP] Converting a string into ASCII and a bit more - newbie

2004-11-14 Thread Alp
Hi, My question could have quite stright forward answer or the question itself might be silly but being a newbie, I'll ask it anyway. First I am trying to convert each character in a string into their respective ASCII codes and then keep these again in a string. Such as: string : ABCDEFGHIJ,

[PHP] PHP postfix mail problem no recipient problem on SUSE 9.1

2004-11-14 Thread Chris W
I have a PHP script to send an email that I know is correct. Ever since I installed SUSE 9.1I get a no recipient error from postfix. I know others have had this problem but after an extensive search I can find no solution. As of yet no one seems to know, or is not willing to tell how to fix

[PHP] Pulling data from a table into a array

2004-11-14 Thread Richard
I am using mysql_fetch_row to pull data from a table to fill an array But I am not getting the data into the array the way I whant it to be. $query = SELECT amenityID FROM property_amenity where listingId = '$listingId'; $results = mysql_query($query); if ($results) {

Re: [PHP] Converting a string into ASCII and a bit more - newbie

2004-11-14 Thread Klaus Reimer
Alp wrote: $x=1 while ($x=strlen($string)) { $holder = ord(substr($string, $x, 1)); $result = $result . $holder; } and failed since it takes ages to process and does not really return a proper value/result but repetitive number such as 1.. I think you forgot to increment