[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) ?
==
$db= DB::connect("mysql://valerie:@localhost/valerie");
$query = 'SELECT id, name FROM count
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
proj
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 wi
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 I
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 serve
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!
Alb
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.
-
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 e
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
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 action"searchresults.php"
Couple of questions:
I have my array of user selected options from my form
element - Ind[]
I gather t
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 aw
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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';
ec
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 fo
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 wit
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
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 lin
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,
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: Sunda
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 m
What is the optimal PHP file permission?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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 Linu
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.
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 (ht
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 a
--- 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() $
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 "Enter a
name!";
}
but that changes my page setup.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
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 fai
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/)
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 b
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 exam
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):
http://www.spreadfirefox.com/?q=user/register&r=
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 wi
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 (www.getfirefox.com
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
figu
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 wi
Dusty Bin wrote:
foreach($container->getProjects as $project) {
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
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 Projec
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
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
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..
--
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.'';
if (isset($post[$mod->postNa
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 unsub
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, h
>
> 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
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 t
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 ot
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
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.
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]
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'";
--
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
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 ame
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: Su
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, expe
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
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) {
whi
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 $x
59 matches
Mail list logo