RE: [PHP] VERY URGENT

2001-05-08 Thread Rudolf Visagie

Aah, welcome to the new South Africa, everybody :-)

Rudolf Visagie
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2001 08:46
To: Christian Dechery
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] VERY URGENT


On  8-May-01 at 18:50, Christian Dechery ([EMAIL PROTECTED]) wrote:
> what in Gods name is that?

A pretty well known con.  Usually it involves Angola; this
crew seems to have at least changed the names and made a
few of the other details less obvious.  (They probably get
revealed later after the in-person or phone meeting.)  Despite
what it says, they want your money, your account info, and
whatever other info they can get from you and translate into
money they shouldn't have.  Identity theft wouldn't surprise
me at all...

Even if it were legitimate to the extent that events would
occur as outlined; and they weren't just trolling for your
account and other info; then you'd probably be guilty of
money laundering for going along with their scheme.

Check snopes.com - I'm pretty sure they have an entry for
this general fraud; and possibly even for this specific variant.



-Pat

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] VERY URGENT

2001-05-08 Thread patl

On  8-May-01 at 18:50, Christian Dechery ([EMAIL PROTECTED]) wrote:
> what in Gods name is that?

A pretty well known con.  Usually it involves Angola; this
crew seems to have at least changed the names and made a
few of the other details less obvious.  (They probably get
revealed later after the in-person or phone meeting.)  Despite
what it says, they want your money, your account info, and
whatever other info they can get from you and translate into
money they shouldn't have.  Identity theft wouldn't surprise
me at all...

Even if it were legitimate to the extent that events would
occur as outlined; and they weren't just trolling for your
account and other info; then you'd probably be guilty of
money laundering for going along with their scheme.

Check snopes.com - I'm pretty sure they have an entry for
this general fraud; and possibly even for this specific variant.



-Pat

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to bring selected rows to upper page

2001-05-08 Thread heinisch

At 09.05.01  09:28, you wrote:
>Hello friends,
>I want to prepare a page as attached. But main problem is how can I bring 
>the data to upper page when lower page's row is selected. I want to take 
>all data on selected row  to the upper pages fileds.
>please help me.
>Murat
If you sent a php-made page to the client, it is out of your(the servers) 
control. You could do something like Layer (doesn´t work on all browsers)
or some JavaScript(same as above), or have some selects on your page. You 
should redesing you page.
HTH Oliver


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Test 2

2001-05-08 Thread Ralph Guzman

This is only a test. I apologize.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] test

2001-05-08 Thread Ralph Guzman

...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Weirdest error I've ever had....

2001-05-08 Thread heinisch

At 06.05.01  12:00, you wrote:
>Alright I have a simple file writing script. Nothing special. in one
>part I use this code:
> $data[$x] = str_replace("","\n", $data[$x]);
>to replace break tags with page breaks. Problem is that for some
>reason it is adding wierd  tags to the file. It only does this
>on that server. What is that?
why don´t you use $data[$x]=nl2br($data[$x]);
smart n easy
HTH Oliver


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] how to bring selected rows to upper page

2001-05-08 Thread Murat SAYGILI




Hello friends,
I want to prepare a page as attached. But main problem is how can I bring the 
data to upper page when lower page's row is selected. I want to take all data on 
selected row 
to the upper pages fileds.
please help me.
Murat

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Re: [PHP] Array in PHP and Javascript

2001-05-08 Thread elias

Hi there
There are lots of way that a PHP script can pass arrays to JavaScript...
you can output the array to javascript like:

$fls is an array.

  rnd_imagesnames = new Array(
  ); // array statment closing


that's an example...

take a look at the 'rndimg' example using PHP & JavaScript...

-elias
http://ww.eassoft.cjb.net

""Reuben D Budiardja"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Hello,

I have a question here. Can I pass an Array (php) to a javascript
function, and then process the array there using javascript? How do I
access the php array in javascript then?

Say, all I want a do is to iterate through the array and build a string
using javascript, for example.

How do I pass the array to the javascript function? If someone could help
me, I would really appreciate it.

Thanks in advance.
Reuben D. Budiardja

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] progession bar

2001-05-08 Thread heinisch

At 09.05.01  12:32, you wrote:
>
>Hi all
>Does any one know how to do the progession bar to mesure the time out? 
>Like give it 1 minute for the bar to progress, I got some logic here but 
>something still unclear to me.
>The procedures I see are
>1. get curren time when the page is loaded
>2. add 60 seconds on that current time value to tell when to stop the bar
>3. make a table , 6 rows so each row repersent every 10 seconds
>4. This is the bit where I got stuck, how do I change the color of table 
>cell every 10 secs for 6 times.
>any help will be thankful
>Jack
>[EMAIL PROTECTED]
>"There is nothing more rewarding than reaching the goal you set for yourself"
Go to the Java or JavaScript pages, this problem is client-side, Remember 
the page you create with
php will be produced on the server. When it ist sent in the internet it´s 
out of servers control.
If you want to make a "fake bar" you can sent a http://your_server?x=N";>
this makes the browser ask again your server. If you send the page 
again(you can control behaviour and therefor the
progression bar with var x) you can sent several stages. But I think that´s 
not what you want ;-)
HTH Oliver


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Array in PHP and Javascript

2001-05-08 Thread Reuben D Budiardja


Hello,

I have a question here. Can I pass an Array (php) to a javascript 
function, and then process the array there using javascript? How do I 
access the php array in javascript then? 

Say, all I want a do is to iterate through the array and build a string 
using javascript, for example.

How do I pass the array to the javascript function? If someone could help 
me, I would really appreciate it. 

Thanks in advance.
Reuben D. Budiardja

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] HTTP Auth

2001-05-08 Thread gary

Im having a problem with Authentication uisng $PHP_AUTH_USER and
$PHP_AUTH_PASSWORD works fine connecting via netscape but automatically
set to false when using IE 5. Apache server , PHP installed as a module
on a freebie server. Code below:
';
echo 'Please go to Registration
page to Get a logon, It is Free.';
echo
"???".$PHP_AUTH_USER."???".$PHP_AUTH_PW."";
  exit;
} else {
}
pg_close($conn);
?>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] string varable...

2001-05-08 Thread Vegard

Does anybody know how much text can be stored in a variable og type string?

Regards Vegard.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] multiple domain handling with php

2001-05-08 Thread Scott Mebberson

Does anybody have any scripts or tips on hosting multiple domains on the one
account ie. if the domain being requested is this, go here in my account if
not go here in my account?

Thanks

Scott.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] progession bar

2001-05-08 Thread Jacky

Hi all
Does any one know how to do the progession bar to mesure the time out? Like give it 1 
minute for the bar to progress, I got some logic here but something still unclear to 
me.
The procedures I see are
1. get curren time when the page is loaded
2. add 60 seconds on that current time value to tell when to stop the bar
3. make a table , 6 rows so each row repersent every 10 seconds
4. This is the bit where I got stuck, how do I change the color of table cell every 10 
secs for 6 times. 
any help will be thankful
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



[PHP] Stop if word is found?

2001-05-08 Thread Jan Grafström

Hi!
I am searching some files for a word and if word is found I will stop
the script.
I tried with die, but I have never used it before and it didn´t work
perhaps I used it in a wrong way..

$fd = fopen($filename1, "r");
$string = fread($fd, filesize($filename1));
$fruits = explode (" ", $string);
fclose($fd);
while (list ($key, $val) = each ($fruits)) {
if (eregi("$word", $val)) {
print "$filename1".",".$key;
}
}
$fd = fopen($filename2, "r");
$string = fread($fd, filesize($filename2));
$fruits = explode (" ", $string);
fclose($fd);
while (list ($key, $val) = each ($fruits)) {
if (eregi("$word", $val)) {
print "$filename2".",".$key;
}
}
--
If I put in a word wich is found in both files than I got two answers
but I only wan´t
to know the first one. Can I prevent it to run if the word is found in
file1?

Thanks in advance for helping me.
Regards
Jan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] quick question: frames OT

2001-05-08 Thread Romulo Roberto Pereira

Hello!

Just a quick ot question:

>From a php script I open a frameset this divides the browser window in two
rows. How do I do to get rid of the frameset without closing the window?

TIA

Rom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Putting quotes in?

2001-05-08 Thread CC Zona

In article <004401c0d83d$c711a180$[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] ("Ender") wrote:

> Okay I am taking a number from a mySQL database and I want to put quotes on 
> that number?
> 
> How would I do this?
> 
> $databasenumber = 123.123.123.123;
> 
> How do I make 
> $databasenumber = "123.123.123.123";
> 
> To:
> runprogram("hls",$databasenumber);

Either you're confused...or I am.   Are you thinking that the string 
must have quotes wrapped around it before it can be used as a parameter to 
a function?  'Cuz it's already coming out of the database as a string; 
despite the fact that the $databasenumber value gives the appearance of 
being a "number", it's not a numercial datatype such as an integer or a 
float--it's a string.  You should just be able to do some variation (add 
appropriate error checking) on the following:

$result=mysql_query("select foo as databasenumber from bar where 
whatever='something'");
$row=mysql_fetch_array($result);
extract($row);
runprogram("hls",$databasenumber);

(If the objective really is to concatenate literal quote characters onto a 
string, then the other poster already gave you a good solution.)

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OT question..

2001-05-08 Thread Christian Reiniger

On Wednesday 09 May 2001 03:02, [EMAIL PROTECTED] wrote:
> On Tue, May 08, 2001 at 07:14:12PM -0500, Alex Behrens wrote:
> > I agree, that is not a very cool signature. Please remove it, it
> > offends me as well.
>
> I have seen many people, who have been killed by Adolf Hitler. My
> father have been near Moscow (Russia), Tromsö (Norway) and France.
> After the second world war, he told me, he is a pacifist.

Again sorry to the people offended, but I still have the opinion that the 
quote has by and large positive effects. I've now included a note into 
the sig to clear out the misunderstandings that could easily happen.

EOT, ok?

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

What luck for the rulers that men do not think.

- Adolf Hitler

Note: This quote is not meant to be offensive, it is meant to make
people think, to let them learn from history (which especially
includes learning from the unpleasant facts). I'm sure that discussing
this quote in school would decrease the number of "new" nazis appearing
everywhere, if only by a little bit. That's why I will not remove it.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Putting quotes in?

2001-05-08 Thread Jason Murray

> Okay I am taking a number from a mySQL database and I want to 
> put quotes on that number?

$databasenumber = "\"123.123.123.123\"";

or

$databasenumber = '"123.123.123.123"';

Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Putting quotes in?

2001-05-08 Thread Ender

Okay I am taking a number from a mySQL database and I want to put quotes on that 
number?

How would I do this?

$databasenumber = 123.123.123.123;

How do I make 
$databasenumber = "123.123.123.123";

To:
runprogram("hls",$databasenumber);

Best regards,

Ender [Clan Leader]
[EMAIL PROTECTED]



[PHP] progession bar

2001-05-08 Thread Jacky

Hi all
does anyone know how to make the progression bar according to the time out that has 
been set up to start after the page is load?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



Re: [PHP] PHP + APACHE on Win2k

2001-05-08 Thread Brian Clark

Hi macky,

@ 5:28:51 AM on 5/8/2001, macky wrote:

> how can apache interpret PHP code placed inside HTML document... or
> on .php pages...?

By installing PHP either as a DSO or a CGI.

Instructions for doing so are here:



Alternatively, I like to use the version located here, for windows
machines (as a DSO):



If you already have PHP installed, then open httpd.conf in your Apache
Conf directory, and alter the AddType line for PHP to include the html
extension.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP + APACHE on Win2k

2001-05-08 Thread Peter Houchin - SunRentals Aust

Add that to your http.conf file in apache
ScriptAlias /php4/ "drive:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **
 

-Original Message-
From: macky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 7:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP + APACHE on Win2k


how can apache interpret PHP code placed inside HTML document... or on .php
pages...?

ive already installed APACHE in WIN2K and it works perfectly fine


--
--
The information contained in this message (including any attachments)
is confidential and intended solely for the attention and use of the
named addressee(s). It must not be copied, distributed nor disclosed
to any person. If you are not the intended recipient, please delete
it from your system and notify sender immediately. Any disclosure,
copying or distribution thereof or any action taken or omitted to be
taken in reliance thereon is prohibited and may be unlawful.
--




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP + APACHE on Win2k

2001-05-08 Thread macky

how can apache interpret PHP code placed inside HTML document... or on .php
pages...?

ive already installed APACHE in WIN2K and it works perfectly fine


--
--
The information contained in this message (including any attachments)
is confidential and intended solely for the attention and use of the
named addressee(s). It must not be copied, distributed nor disclosed
to any person. If you are not the intended recipient, please delete
it from your system and notify sender immediately. Any disclosure,
copying or distribution thereof or any action taken or omitted to be
taken in reliance thereon is prohibited and may be unlawful.
--




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Hit stats

2001-05-08 Thread Steve Wade

I have a set of links on my page, and I want people to be able to see:

* How many times the link has been successfully used by previous people
* If the link is broken

I'm a bit of a newbie :-)

Can anyone share some code, or explain how to do this?

Thanks heaps,
swadie

 
~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] VERY URGENT

2001-05-08 Thread Julie Kwok

LOL some practical joke? .. wait .. its not April's Fools. Umm really, if
its really that confidential should it be leaked to an ML?

> -Original Message-
> From: Christian Dechery [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 9 May 2001 11:53 AM
> To: SOLOMON BALOGUN; [EMAIL PROTECTED]
> Subject: Re: [PHP] VERY URGENT
> 
> 
> what in Gods name is that?
> 
> At 02:51 9/5/2001 +0100, SOLOMON BALOGUN wrote:
> >VERY URGENT BUSINESS,
> >#20 LOUIS BOTHA CRESCENT,
> >SADTON.SOUTH AFRICA,
> >Tel:874-762-727947,
> >Fax:87-4762-727949.
> >
> >Dear sir,
> >
> >In order to transfer out (USD 126 M) One hundred and
> >twenty six million United States Dollars) from African
> >Development Bank. I have the courage to ask you to
> >look for a reliable and honest person who will be
> >capable for
> >this important business believing that you will never
> >let me down either now or in future.
> >
> >I am SOLOMON BALOGUN, the Chief auditor of African
> >Development Bank (ADB). There is an account opened in
> >this bank in 1980 and since 1990 nobody has operated
> >on this account again. after going through some old
> >files in the records I discovered that if I do not
> >remit this money out urgently it will be forfeited for
> >nothing. the owner of this account is Mr. Smith B.
> >Andreas, a foreigner, and a miner at kruger gold co.,
> >a geologist by profession and  he died since 1990. no
> >other person knows about this account or any thing
> >concerning it, the account has no other beneficiary
> >and my investigation proved to me as well that this
> >company does not know anything about this account and
> >the amount involved is (USD 126M) One hundred and
> >twenty six million United States Dollars million
> >dollars. I want to first transfer USDM twenty six
> >million United States Dollars from this money into a
> >safe foreigners account abroad before the rest, but I
> >don't know any foreigner, I am only contacting you as
> >a foreigner because this money can not be approved to
> >a local bank here, but can only be approved to any
> >foreign account because the money is in us dollars and
> >the former owner of the account is Mr. Smith B.
> >Andreas is  a foreigner too.  I know that this message
> >will come to you as a surprise as we  don't know our
> >selves before, we will sign agreement, but be sure
> >that it is real and a genuine business. I
> >only got your contact address my from my secretary who
> >operates computer,
> >with believe in god that you will never let me down in
> >this business you are the only person that I have
> >contacted in this business, so please reply urgently
> >so that I will inform you the next step to take
> >urgently. Send also your private telephone and fax
> >number including the full details of the account to be
> >used for the deposit.
> >
> >I want us to meet face to face or sign a binding
> >agreement to bind us together so that you can receive
> >this money into a foreign account or any account of
> >your choice where the fund will be safe. and I will
> >fly to your country for withdrawal and sharing and
> >other investments.
> >
> >I am contacting you because of the need to involve a
> >foreigner with foreign account and foreign
> >beneficiary. I need your full co-operation to make
> >this work fine. because the management is ready to
> >approve this payment to any foreigner who has correct
> >information of this account, which Iwill give to you
> >later immediately, if you are able and with capability
> >to handle such amount in strict confidence and trust
> >according to my instructions and advice for our mutual
> >benefit because this opportunity will never come again
> >in my life. I need truthful person in this business
> >because I don't want to make mistake I need your
> >strong assurance and trust.
> >
> >With my position now in the office I can transfer this
> >money to any foreigner's reliable account which you
> >can provide with assurance that this money will be
> >intact pending my physical arrival in your country for
> >sharing. I will destroy all documents of transaction
> >immediately we receive this money leaving no trace to
> >any place. you can also come to discuss with me face
> >to face after which I will make this remittance in
> >your presence and two of us will fly to your country
> >at least two days ahead of the money going into the
> >account.
> >
> >I will apply for annual leave to get visa immediately
> >I hear from you that you are ready to act and receive
> >this fund in your account. I will use my position and
> >influence to effect legal approvals and onward
> >transfer of this money to your account with
> >appropriate clearance forms of the ministries and
> >foreign exchange departments.
> >
> >At the conclusion of this business, you will be given
> >35% of the total amount, 60% will be for me, while 5%
> >will be for expenses both parties might have incurred
> >during the process of transferring.
> >
> >I look forward to your earliest 

RE: [PHP] VERY URGENT

2001-05-08 Thread John Vanderbeck

Spam thats been going around lately.  Good old money laundering apparently.
Friends have reported seeing it as well.

It better stop hitting the list over and over again though or i'm gonna
scream :)

- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues


> -Original Message-
> From: Christian Dechery [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 9:53 PM
> To: SOLOMON BALOGUN; [EMAIL PROTECTED]
> Subject: Re: [PHP] VERY URGENT
>
>
> what in Gods name is that?
>
> At 02:51 9/5/2001 +0100, SOLOMON BALOGUN wrote:
> >VERY URGENT BUSINESS,
> >#20 LOUIS BOTHA CRESCENT,
> >SADTON.SOUTH AFRICA,
> >Tel:874-762-727947,
> >Fax:87-4762-727949.
> >
> >Dear sir,
> >
> >In order to transfer out (USD 126 M) One hundred and
> >twenty six million United States Dollars) from African
> >Development Bank. I have the courage to ask you to
> >look for a reliable and honest person who will be
> >capable for
> >this important business believing that you will never
> >let me down either now or in future.
> >
> >I am SOLOMON BALOGUN, the Chief auditor of African
> >Development Bank (ADB). There is an account opened in
> >this bank in 1980 and since 1990 nobody has operated
> >on this account again. after going through some old
> >files in the records I discovered that if I do not
> >remit this money out urgently it will be forfeited for
> >nothing. the owner of this account is Mr. Smith B.
> >Andreas, a foreigner, and a miner at kruger gold co.,
> >a geologist by profession and  he died since 1990. no
> >other person knows about this account or any thing
> >concerning it, the account has no other beneficiary
> >and my investigation proved to me as well that this
> >company does not know anything about this account and
> >the amount involved is (USD 126M) One hundred and
> >twenty six million United States Dollars million
> >dollars. I want to first transfer USDM twenty six
> >million United States Dollars from this money into a
> >safe foreigners account abroad before the rest, but I
> >don't know any foreigner, I am only contacting you as
> >a foreigner because this money can not be approved to
> >a local bank here, but can only be approved to any
> >foreign account because the money is in us dollars and
> >the former owner of the account is Mr. Smith B.
> >Andreas is  a foreigner too.  I know that this message
> >will come to you as a surprise as we  don't know our
> >selves before, we will sign agreement, but be sure
> >that it is real and a genuine business. I
> >only got your contact address my from my secretary who
> >operates computer,
> >with believe in god that you will never let me down in
> >this business you are the only person that I have
> >contacted in this business, so please reply urgently
> >so that I will inform you the next step to take
> >urgently. Send also your private telephone and fax
> >number including the full details of the account to be
> >used for the deposit.
> >
> >I want us to meet face to face or sign a binding
> >agreement to bind us together so that you can receive
> >this money into a foreign account or any account of
> >your choice where the fund will be safe. and I will
> >fly to your country for withdrawal and sharing and
> >other investments.
> >
> >I am contacting you because of the need to involve a
> >foreigner with foreign account and foreign
> >beneficiary. I need your full co-operation to make
> >this work fine. because the management is ready to
> >approve this payment to any foreigner who has correct
> >information of this account, which Iwill give to you
> >later immediately, if you are able and with capability
> >to handle such amount in strict confidence and trust
> >according to my instructions and advice for our mutual
> >benefit because this opportunity will never come again
> >in my life. I need truthful person in this business
> >because I don't want to make mistake I need your
> >strong assurance and trust.
> >
> >With my position now in the office I can transfer this
> >money to any foreigner's reliable account which you
> >can provide with assurance that this money will be
> >intact pending my physical arrival in your country for
> >sharing. I will destroy all documents of transaction
> >immediately we receive this money leaving no trace to
> >any place. you can also come to discuss with me face
> >to face after which I will make this remittance in
> >your presence and two of us will fly to your country
> >at least two days ahead of the money going into the
> >account.
> >
> >I will apply for annual leave to get visa immediately
> >I hear from you that you are ready to act and receive
> >this fund in your account. I will use my position and
> >influence to effect legal approvals and onward
> >transfer of this money to your account with
> >appropriate clearance forms of the ministries and
> >foreign exchange departments.
> >
> >At the conclusion of this business, 

Re: [PHP] VERY URGENT

2001-05-08 Thread Christian Dechery

what in Gods name is that?

At 02:51 9/5/2001 +0100, SOLOMON BALOGUN wrote:
>VERY URGENT BUSINESS,
>#20 LOUIS BOTHA CRESCENT,
>SADTON.SOUTH AFRICA,
>Tel:874-762-727947,
>Fax:87-4762-727949.
>
>Dear sir,
>
>In order to transfer out (USD 126 M) One hundred and
>twenty six million United States Dollars) from African
>Development Bank. I have the courage to ask you to
>look for a reliable and honest person who will be
>capable for
>this important business believing that you will never
>let me down either now or in future.
>
>I am SOLOMON BALOGUN, the Chief auditor of African
>Development Bank (ADB). There is an account opened in
>this bank in 1980 and since 1990 nobody has operated
>on this account again. after going through some old
>files in the records I discovered that if I do not
>remit this money out urgently it will be forfeited for
>nothing. the owner of this account is Mr. Smith B.
>Andreas, a foreigner, and a miner at kruger gold co.,
>a geologist by profession and  he died since 1990. no
>other person knows about this account or any thing
>concerning it, the account has no other beneficiary
>and my investigation proved to me as well that this
>company does not know anything about this account and
>the amount involved is (USD 126M) One hundred and
>twenty six million United States Dollars million
>dollars. I want to first transfer USDM twenty six
>million United States Dollars from this money into a
>safe foreigners account abroad before the rest, but I
>don't know any foreigner, I am only contacting you as
>a foreigner because this money can not be approved to
>a local bank here, but can only be approved to any
>foreign account because the money is in us dollars and
>the former owner of the account is Mr. Smith B.
>Andreas is  a foreigner too.  I know that this message
>will come to you as a surprise as we  don't know our
>selves before, we will sign agreement, but be sure
>that it is real and a genuine business. I
>only got your contact address my from my secretary who
>operates computer,
>with believe in god that you will never let me down in
>this business you are the only person that I have
>contacted in this business, so please reply urgently
>so that I will inform you the next step to take
>urgently. Send also your private telephone and fax
>number including the full details of the account to be
>used for the deposit.
>
>I want us to meet face to face or sign a binding
>agreement to bind us together so that you can receive
>this money into a foreign account or any account of
>your choice where the fund will be safe. and I will
>fly to your country for withdrawal and sharing and
>other investments.
>
>I am contacting you because of the need to involve a
>foreigner with foreign account and foreign
>beneficiary. I need your full co-operation to make
>this work fine. because the management is ready to
>approve this payment to any foreigner who has correct
>information of this account, which Iwill give to you
>later immediately, if you are able and with capability
>to handle such amount in strict confidence and trust
>according to my instructions and advice for our mutual
>benefit because this opportunity will never come again
>in my life. I need truthful person in this business
>because I don't want to make mistake I need your
>strong assurance and trust.
>
>With my position now in the office I can transfer this
>money to any foreigner's reliable account which you
>can provide with assurance that this money will be
>intact pending my physical arrival in your country for
>sharing. I will destroy all documents of transaction
>immediately we receive this money leaving no trace to
>any place. you can also come to discuss with me face
>to face after which I will make this remittance in
>your presence and two of us will fly to your country
>at least two days ahead of the money going into the
>account.
>
>I will apply for annual leave to get visa immediately
>I hear from you that you are ready to act and receive
>this fund in your account. I will use my position and
>influence to effect legal approvals and onward
>transfer of this money to your account with
>appropriate clearance forms of the ministries and
>foreign exchange departments.
>
>At the conclusion of this business, you will be given
>35% of the total amount, 60% will be for me, while 5%
>will be for expenses both parties might have incurred
>during the process of transferring.
>
>I look forward to your earliest reply through my email
>address or by my
>Tel:874-762-727947,
>fax:874-762-727949.
>
>yours truly
>
>SOLOMON BALOGUN.
>
>
>
>
>
>
>
>Do You Yahoo!?
>For regular News updates go to http://in.news.yahoo.com
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


. Christian Dechery (lemming)
. ht

[PHP] VERY URGENT

2001-05-08 Thread SOLOMON BALOGUN

VERY URGENT BUSINESS,
#20 LOUIS BOTHA CRESCENT,
SADTON.SOUTH AFRICA,  
Tel:874-762-727947,
Fax:87-4762-727949.

Dear sir,

In order to transfer out (USD 126 M) One hundred and
twenty six million United States Dollars) from African
Development Bank. I have the courage to ask you to
look for a reliable and honest person who will be
capable for
this important business believing that you will never
let me down either now or in future.

I am SOLOMON BALOGUN, the Chief auditor of African
Development Bank (ADB). There is an account opened in
this bank in 1980 and since 1990 nobody has operated
on this account again. after going through some old
files in the records I discovered that if I do not
remit this money out urgently it will be forfeited for
nothing. the owner of this account is Mr. Smith B.
Andreas, a foreigner, and a miner at kruger gold co.,
a geologist by profession and  he died since 1990. no
other person knows about this account or any thing
concerning it, the account has no other beneficiary
and my investigation proved to me as well that this
company does not know anything about this account and
the amount involved is (USD 126M) One hundred and
twenty six million United States Dollars million
dollars. I want to first transfer USDM twenty six
million United States Dollars from this money into a
safe foreigners account abroad before the rest, but I
don't know any foreigner, I am only contacting you as
a foreigner because this money can not be approved to
a local bank here, but can only be approved to any
foreign account because the money is in us dollars and
the former owner of the account is Mr. Smith B.
Andreas is  a foreigner too.  I know that this message
will come to you as a surprise as we  don't know our
selves before, we will sign agreement, but be sure
that it is real and a genuine business. I
only got your contact address my from my secretary who
operates computer,
with believe in god that you will never let me down in
this business you are the only person that I have
contacted in this business, so please reply urgently
so that I will inform you the next step to take
urgently. Send also your private telephone and fax
number including the full details of the account to be
used for the deposit.

I want us to meet face to face or sign a binding
agreement to bind us together so that you can receive
this money into a foreign account or any account of
your choice where the fund will be safe. and I will
fly to your country for withdrawal and sharing and
other investments.

I am contacting you because of the need to involve a
foreigner with foreign account and foreign
beneficiary. I need your full co-operation to make
this work fine. because the management is ready to
approve this payment to any foreigner who has correct
information of this account, which Iwill give to you
later immediately, if you are able and with capability
to handle such amount in strict confidence and trust
according to my instructions and advice for our mutual
benefit because this opportunity will never come again
in my life. I need truthful person in this business
because I don't want to make mistake I need your
strong assurance and trust.

With my position now in the office I can transfer this
money to any foreigner's reliable account which you
can provide with assurance that this money will be
intact pending my physical arrival in your country for
sharing. I will destroy all documents of transaction
immediately we receive this money leaving no trace to
any place. you can also come to discuss with me face
to face after which I will make this remittance in
your presence and two of us will fly to your country
at least two days ahead of the money going into the
account.

I will apply for annual leave to get visa immediately
I hear from you that you are ready to act and receive
this fund in your account. I will use my position and
influence to effect legal approvals and onward
transfer of this money to your account with
appropriate clearance forms of the ministries and
foreign exchange departments.

At the conclusion of this business, you will be given
35% of the total amount, 60% will be for me, while 5%
will be for expenses both parties might have incurred
during the process of transferring.

I look forward to your earliest reply through my email
address or by my
Tel:874-762-727947,
fax:874-762-727949.

yours truly

SOLOMON BALOGUN.







Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] VERY URGENT

2001-05-08 Thread SOLOMON BALOGUN

VERY URGENT BUSINESS,
#20 LOUIS BOTHA CRESCENT,
SADTON.SOUTH AFRICA,  
Tel:874-762-727947,
Fax:87-4762-727949.

Dear sir,

In order to transfer out (USD 126 M) One hundred and
twenty six million United States Dollars) from African
Development Bank. I have the courage to ask you to
look for a reliable and honest person who will be
capable for
this important business believing that you will never
let me down either now or in future.

I am SOLOMON BALOGUN, the Chief auditor of African
Development Bank (ADB). There is an account opened in
this bank in 1980 and since 1990 nobody has operated
on this account again. after going through some old
files in the records I discovered that if I do not
remit this money out urgently it will be forfeited for
nothing. the owner of this account is Mr. Smith B.
Andreas, a foreigner, and a miner at kruger gold co.,
a geologist by profession and  he died since 1990. no
other person knows about this account or any thing
concerning it, the account has no other beneficiary
and my investigation proved to me as well that this
company does not know anything about this account and
the amount involved is (USD 126M) One hundred and
twenty six million United States Dollars million
dollars. I want to first transfer USDM twenty six
million United States Dollars from this money into a
safe foreigners account abroad before the rest, but I
don't know any foreigner, I am only contacting you as
a foreigner because this money can not be approved to
a local bank here, but can only be approved to any
foreign account because the money is in us dollars and
the former owner of the account is Mr. Smith B.
Andreas is  a foreigner too.  I know that this message
will come to you as a surprise as we  don't know our
selves before, we will sign agreement, but be sure
that it is real and a genuine business. I
only got your contact address my from my secretary who
operates computer,
with believe in god that you will never let me down in
this business you are the only person that I have
contacted in this business, so please reply urgently
so that I will inform you the next step to take
urgently. Send also your private telephone and fax
number including the full details of the account to be
used for the deposit.

I want us to meet face to face or sign a binding
agreement to bind us together so that you can receive
this money into a foreign account or any account of
your choice where the fund will be safe. and I will
fly to your country for withdrawal and sharing and
other investments.

I am contacting you because of the need to involve a
foreigner with foreign account and foreign
beneficiary. I need your full co-operation to make
this work fine. because the management is ready to
approve this payment to any foreigner who has correct
information of this account, which Iwill give to you
later immediately, if you are able and with capability
to handle such amount in strict confidence and trust
according to my instructions and advice for our mutual
benefit because this opportunity will never come again
in my life. I need truthful person in this business
because I don't want to make mistake I need your
strong assurance and trust.

With my position now in the office I can transfer this
money to any foreigner's reliable account which you
can provide with assurance that this money will be
intact pending my physical arrival in your country for
sharing. I will destroy all documents of transaction
immediately we receive this money leaving no trace to
any place. you can also come to discuss with me face
to face after which I will make this remittance in
your presence and two of us will fly to your country
at least two days ahead of the money going into the
account.

I will apply for annual leave to get visa immediately
I hear from you that you are ready to act and receive
this fund in your account. I will use my position and
influence to effect legal approvals and onward
transfer of this money to your account with
appropriate clearance forms of the ministries and
foreign exchange departments.

At the conclusion of this business, you will be given
35% of the total amount, 60% will be for me, while 5%
will be for expenses both parties might have incurred
during the process of transferring.

I look forward to your earliest reply through my email
address or by my
Tel:874-762-727947,
fax:874-762-727949.

yours truly

SOLOMON BALOGUN.







Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] VERY URGENT

2001-05-08 Thread SOLOMON BALOGUN

VERY URGENT BUSINESS,
#20 LOUIS BOTHA CRESCENT,
SADTON.SOUTH AFRICA,  
Tel:874-762-727947,
Fax:87-4762-727949.

Dear sir,

In order to transfer out (USD 126 M) One hundred and
twenty six million United States Dollars) from African
Development Bank. I have the courage to ask you to
look for a reliable and honest person who will be
capable for
this important business believing that you will never
let me down either now or in future.

I am SOLOMON BALOGUN, the Chief auditor of African
Development Bank (ADB). There is an account opened in
this bank in 1980 and since 1990 nobody has operated
on this account again. after going through some old
files in the records I discovered that if I do not
remit this money out urgently it will be forfeited for
nothing. the owner of this account is Mr. Smith B.
Andreas, a foreigner, and a miner at kruger gold co.,
a geologist by profession and  he died since 1990. no
other person knows about this account or any thing
concerning it, the account has no other beneficiary
and my investigation proved to me as well that this
company does not know anything about this account and
the amount involved is (USD 126M) One hundred and
twenty six million United States Dollars million
dollars. I want to first transfer USDM twenty six
million United States Dollars from this money into a
safe foreigners account abroad before the rest, but I
don't know any foreigner, I am only contacting you as
a foreigner because this money can not be approved to
a local bank here, but can only be approved to any
foreign account because the money is in us dollars and
the former owner of the account is Mr. Smith B.
Andreas is  a foreigner too.  I know that this message
will come to you as a surprise as we  don't know our
selves before, we will sign agreement, but be sure
that it is real and a genuine business. I
only got your contact address my from my secretary who
operates computer,
with believe in god that you will never let me down in
this business you are the only person that I have
contacted in this business, so please reply urgently
so that I will inform you the next step to take
urgently. Send also your private telephone and fax
number including the full details of the account to be
used for the deposit.

I want us to meet face to face or sign a binding
agreement to bind us together so that you can receive
this money into a foreign account or any account of
your choice where the fund will be safe. and I will
fly to your country for withdrawal and sharing and
other investments.

I am contacting you because of the need to involve a
foreigner with foreign account and foreign
beneficiary. I need your full co-operation to make
this work fine. because the management is ready to
approve this payment to any foreigner who has correct
information of this account, which Iwill give to you
later immediately, if you are able and with capability
to handle such amount in strict confidence and trust
according to my instructions and advice for our mutual
benefit because this opportunity will never come again
in my life. I need truthful person in this business
because I don't want to make mistake I need your
strong assurance and trust.

With my position now in the office I can transfer this
money to any foreigner's reliable account which you
can provide with assurance that this money will be
intact pending my physical arrival in your country for
sharing. I will destroy all documents of transaction
immediately we receive this money leaving no trace to
any place. you can also come to discuss with me face
to face after which I will make this remittance in
your presence and two of us will fly to your country
at least two days ahead of the money going into the
account.

I will apply for annual leave to get visa immediately
I hear from you that you are ready to act and receive
this fund in your account. I will use my position and
influence to effect legal approvals and onward
transfer of this money to your account with
appropriate clearance forms of the ministries and
foreign exchange departments.

At the conclusion of this business, you will be given
35% of the total amount, 60% will be for me, while 5%
will be for expenses both parties might have incurred
during the process of transferring.

I look forward to your earliest reply through my email
address or by my
Tel:874-762-727947,
fax:874-762-727949.

yours truly

SOLOMON BALOGUN.







Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] forcing download instead of showing output

2001-05-08 Thread Christian Dechery

At 16:53 8/5/2001 -0400, Toby Miller wrote:
>I use this code:
>
>header("Content-Type: $filetype");
>header("Content-Disposition: atachment; filename=$showfilename");
>header("Content-Length: $filesize");
>readfile($source);
>
>Note the mispelling of "atachment". This seems wrong but is actually the
>correct spelling for IE, Netscape doesn't seem to mind either way.

tried that... didn't work... all it did was tried to save the file being 
displayed (the form) to script.html..

I'm going to explain a little better what my script does, so it's easier to 
help me.

there is a form with only one field... a file field... than the user 
selects the file, clicks on submit, by doing this, the file is uploaded and 
processed... it's a CSV file, that has to be checked and processed and 
return another CSV file with a specific filename (in my case 
$filename="003".date("dmy").".txt";)... so what I really want is the user 
to download this file with the processed content from the uploaded file...

Do I really have to create this file with fopen() or something and only 
then put the headers? In this case I'd have a file that I don't want... I'd 
have to delete it later on, isn't there a way I can just redirect all the 
output generated by php to a download and instruct the browser the filename 
to be saved?

Where can I get some reference to all this header stuff?

thanks

. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OT question..

2001-05-08 Thread MaD dUCK

also sprach Billy Harvey (on Tue, 08 May 2001 09:11:15PM -0400):
> Is someone quoting Adolf Hitler grounds for imprisonment in Germany
> now?

of course not.

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
humpty was pushed.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Zip support

2001-05-08 Thread Wandrer

At 10:55 AM 5/8/01 -0400, you wrote:
>I see that there is support for bzip2 and gzip in PHP, so I was wondering if
>there was any standard zip support that I'm not seeing.
>Stuart Hicks
>Senior Programmer / Systems Administrator
>The Affinity Group

PhpZip 1.5 : http://phpconcept.free.fr/phpzip-index.php3



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php chat or customer support center

2001-05-08 Thread Ashwin Kutty


try phprojekt @ http://www.PHProjekt.de

its quite a good product and does a lot more that just one-on-one chat and
in fact is a complete suite for customer support..

On Tue, 8 May 2001, Black S. wrote:

> We have all seen these one-on-one chat systems placed on sites like home.com
> and others. You can click on a button and chat live with a customer service
> agent. Does anyone know if a PHP based system like this exists? If not, what
> are your recommendations for such a system? Java?
> 
> Thanks All,
> Blake S.
> 
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OT question..

2001-05-08 Thread Billy Harvey

 > So let stop this thread, I have a very good lawyer. You can speak with him
 > at the LinuxDays at Stuttgart, Germany.
 > 
 > -Egon <[EMAIL PROTECTED]>

Just who the hell are you threatening to sue and what for Egon -
everyone who reads the PHP list and doesn't feel offended by what you
do?

Is someone quoting Adolf Hitler grounds for imprisonment in Germany
now?

Billy
-- 
  the personification of the devil as the symbol
 of all evil assumes the living shape of the Jew."
  -- Adolf Hitler, "Mein Kampf", Vol. 1, Chapter 11

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OT question..

2001-05-08 Thread eschmid+sic

On Tue, May 08, 2001 at 07:14:12PM -0500, Alex Behrens wrote:
> I agree, that is not a very cool signature. Please remove it, it offends me
> as well.

I have seen many people, who have been killed by Adolf Hitler. My father
have been near Moscow (Russia), Tromsö (Norway) and France. After
the second world war, he told me, he is a pacifist. 

So let stop this thread, I have a very good lawyer. You can speak with him
at the LinuxDays at Stuttgart, Germany.

-Egon <[EMAIL PROTECTED]>

> > > I ment the signature signed by Adolf Hitler. As a German I doesnt like
> > > such nonsense. BTW I'm also a webmaster @ php.net.
> >
> > I side with Christian here - The only way we can prevent mistakes like the
> > whole Hitler thing is to learn about them, and know what it looks like
> when
> > someone's trying to get crawl into absolute power so we can recognize it
> and
> > prevent it when it happens.
> >
> > Sig for a Day
> > Stephan Ahonen, ICQ 491101
> > "That's very funny Scotty, now beam down my clothes!"
> > Come back tomorrow for a different sig!
> > Backspace a single "s" to reply by email

-- 
LinuxTag, Stuttgart, Germany: July 5-8 2001: http://www.linuxtag.de/
All known books about PHP and related books: http://php.net/books.php 
Concert Band of the University of Hohenheim: http://www.concert-band.de/
First and second bestselling book in German: http://www.php-buch.de/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OT question..

2001-05-08 Thread Chris Adams

On 8 May 2001 16:43:03 -0700, Stephan Ahonen <[EMAIL PROTECTED]> wrote:
>> I ment the signature signed by Adolf Hitler. As a German I doesnt like
>> such nonsense. BTW I'm also a webmaster @ php.net.
> 
> I side with Christian here - The only way we can prevent mistakes like the
> whole Hitler thing is to learn about them, and know what it looks like when
> someone's trying to get crawl into absolute power so we can recognize it and
> prevent it when it happens.

I'll second this - the quote is hardly pro-Nazi. 

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OT question..

2001-05-08 Thread Alex Behrens

I agree, that is not a very cool signature. Please remove it, it offends me
as well.

Thanks!

-Alex "Big Al" Behrens
E-mail: [EMAIL PROTECTED]
Phone: 651-482-8779
Cell: 651-329-4187
Fax: 651-482-1391
ICQ: 3969599
Owner of the 3D-Unlimited Network:
http://www.3d-unlimited.com
Send News:
[EMAIL PROTECTED]
- Original Message -
From: "Stephan Ahonen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 6:46 PM
Subject: Re: [PHP] OT question..


> > I ment the signature signed by Adolf Hitler. As a German I doesnt like
> > such nonsense. BTW I'm also a webmaster @ php.net.
>
> I side with Christian here - The only way we can prevent mistakes like the
> whole Hitler thing is to learn about them, and know what it looks like
when
> someone's trying to get crawl into absolute power so we can recognize it
and
> prevent it when it happens.
>
> Sig for a Day
> Stephan Ahonen, ICQ 491101
> "That's very funny Scotty, now beam down my clothes!"
> Come back tomorrow for a different sig!
> Backspace a single "s" to reply by email
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Simple Questions

2001-05-08 Thread Benjamin Munoz

This is not working?

echo("$server->server_num_players."/".$server->server_max_players
");

If you are trying to print out 
4/4
but can't because it is evaluating it mathematically, try using the HTML
character entity for /, /

echo("$server->server_num_players/$server->server_max_players");

Hope this is what you meant.

-Ben

-Original Message-
From: Ender [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Simple Questions


Okay few questions, I am pretty new to this hehe.

If I have a number say, 123.123.123.123.

$ip = 123.123.123.123;

How do I put a starting " and an ending " to make it

"123.123.123.123"

AND

This doesn't work:

echo("$server->server_num_players."/".$server->server_max_players
");

What do I need to do to put a / between the two variables?


Best regards,

Ender [Clan Leader]
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OT question..

2001-05-08 Thread Stephan Ahonen

> I ment the signature signed by Adolf Hitler. As a German I doesnt like
> such nonsense. BTW I'm also a webmaster @ php.net.

I side with Christian here - The only way we can prevent mistakes like the
whole Hitler thing is to learn about them, and know what it looks like when
someone's trying to get crawl into absolute power so we can recognize it and
prevent it when it happens.

Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by email


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] any way to get backslashes through in preg_replace?

2001-05-08 Thread Michael Geary

Hi folks,

In a nutshell, I am doing this:

$findIt = array("firstHit","secondHit");
$replaceIt = array("\\341","\\116");

$sourceString = "this is the firstHit and this is the secondHit";

$sourceString = preg_replace($findIt,$replaceIt,$sourceString);

the problem is, what I want to result is the following literal text:

"this is the \341 and this is the \116"

but PHP is evaluating my backslashes as either backreferences, or escaped 
characters, or something else. How can I pass a replace parameter so that 
it is literally accepted, and not evaluated in some way?

By the way, when I pass:

$replaceIt = array("341","116");

I get:

"this is the \\341 and this is the \\116"

I can't afford to run stripSlashes on my resulting string, because it 
would break other areas of the string. I need to trap this in the 
preg_replace.

...and yes, I WOULD use str_replace, but it doesn't seem to work in IIS 
with arrays passed as search & replace parameters. If anyone can verify 
this, I'd be grateful!


Thanks so much,

michael


Michael Geary
Interactive Architect

SeraNova
(801) 437-5808
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php chat or customer support center

2001-05-08 Thread Black S.

We have all seen these one-on-one chat systems placed on sites like home.com
and others. You can click on a button and chat live with a customer service
agent. Does anyone know if a PHP based system like this exists? If not, what
are your recommendations for such a system? Java?

Thanks All,
Blake S.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Simple Questions

2001-05-08 Thread Ender

Okay few questions, I am pretty new to this hehe.

If I have a number say, 123.123.123.123.

$ip = 123.123.123.123;

How do I put a starting " and an ending " to make it

"123.123.123.123"

AND

This doesn't work:

echo("$server->server_num_players."/".$server->server_max_players");

What do I need to do to put a / between the two variables?


Best regards,

Ender [Clan Leader]
[EMAIL PROTECTED]



Re: [PHP] mysql_trouble (check fast!)

2001-05-08 Thread James, Yz

Hi Fredrik,

Always check whether or not the required variables are there BEFORE querying
the database.  And make sure that the negatives are dealt with first.
That's my opinion.  I'd probably also check whether the original username /
password is in the database before proceeding.  Probably more work on the
db's part than needed, but still.  Gotta make sure everything's correct:



James.

""FredrikAT"" <[EMAIL PROTECTED]> wrote in message
9d9jll$fic$[EMAIL PROTECTED]">news:9d9jll$fic$[EMAIL PROTECTED]...
> $na_pw is the active password...
> ..if pw is blank or wrong i want to output a error message...
> ...iknow that I could do if (empty($na_pw) and $na_pw <> $pw), but then I
> would have to send another query to MySQL..
>
> I thought that q_updateresult would say (when i echo) 0 when password is
> bad, but it echos 1.
>
> Any tips?
>
> CODE:
> $q_updatequery = "UPDATE brukerinfo SET navn=\"$ny_navn\",
tlf=\"$ny_tlf\",
> pw=PASSWORD('$ny_pw') WHERE brukerID=\"$id\" and pw=PASSWORD('$na_pw')\n";
>
> $q_updateresult = mysql_db_query ($db, $q_updatequery);
>
> -
> Fredrik A. Takle
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Weirdest error I've ever had....

2001-05-08 Thread Chris Anderson

Alright I have a simple file writing script. Nothing special. in one
part I use this code:
$data[$x] = str_replace("","\n", $data[$x]);
to replace break tags with page breaks. Problem is that for some
reason it is adding wierd  tags to the file. It only does this
on that server. What is that?

Chris Anderson   aka "Null"

PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] thanks Hrishi AND ANOTHER QUESTION ?

2001-05-08 Thread Jorge Amaya

THANK YOU FOR YOUR CONCEPTS, HELPED ME ENOUGH, YOU ARE VERY KIND, I HAVE 
A QUESTION MORE, APACHE IT| ALREADY WORKS ME, IT LOADS ME PHP4, BUT THE 
NAVIGATOR  DOESN'T  BEGIN..

IT DOESN'T LOAD THE NAVIGATOR UP WITH APACHE.

APOLOGIZE TO HAVE WRITTEN YOU TO YOUR OTHER MAIL, A THOUSAND EXCUSES.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Default values in MySQL

2001-05-08 Thread Don Read


On 08-May-01 Joseph Bannon wrote:
> How do you set Default values in mysql?
> 

CREATE TABLE webmaster (
  wmid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
  pcode char(1) DEFAULT 'S' NOT NULL,
  grade char(1) DEFAULT 'C' NOT NULL,
  name varchar(80) DEFAULT '' NOT NULL,
  contact varchar(80) DEFAULT '' NOT NULL,
  addr1 varchar(80) DEFAULT '' NOT NULL,
  addr2 varchar(80),
  city varchar(80) DEFAULT '' NOT NULL,
 ...

Not that it has anything to do with PHP.

http://www.mysql.com/manual.php 
http://lists.mysql.com/

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Detecting error in OCIExecute calls

2001-05-08 Thread Robert Mena

Hi, I am accessing an oracle database from PHP using
stored procedures available.

I'd like to detect when a problem occurs in order to
stop trying to fetch results.  In mysql I check for
rc=0 as an error.  The php doc does not tell if this
applies to oracle as well.

The code is something like this 
$res = OCINewCursor($oraCon); 
$stm = OCIParse ( $oraCon, " 
BEGIN 
  MY_PROCEDURE(:LOGIN, :PASS, :KEY, :INITIAL, :FINAL,
:RES); 
END; 
"); 

OCIBindByName ( $stm, ":LOGIN", &$login, -1); 
OCIBindByName ( $stm, ":PASS", &$pass, -1); 
OCIBindByName ( $stm, ":KEY", &$key, -1); 
OCIBindByName ( $stm, ":INITIAL", &$initial, -1); 
OCIBindByName ( $stm, ":FINAL", &$final, -1); 
OCIBindByName ( $stm, ":RES", &$res, -1, OCI_B_CURSOR
); 

$rc = @OCIExecute ( $stm ); 
if($rc)
{
OCIExecute ($res); 
...
}
else
{
// Error do something!
}

Thanks.

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Default values in MySQL

2001-05-08 Thread Joseph Bannon

How do you set Default values in mysql?

Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Converting mySQL to PostgreSQL

2001-05-08 Thread Jason Beebe



Hi,

I am in need a transfering an existing mySQL database to PostgreSQL. I
have
seen info on the converter. Before I get started I wanted to see info
anyone
has any insight or tips on converting these DBs (ie- is it problematic,
inconsistent, etc). Thanks!




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: [PHP-DEV] Dynamic Update of DNS ??

2001-05-08 Thread Stig Venaas

On Tue, May 08, 2001 at 08:35:37AM -0400, Stig Sæther Bakken wrote:
> [Stig Venaas <[EMAIL PROTECTED]>]
> > the LDAP back-end, see http://www/dns/bind/bind-sdb/. If you look at
> ^^^
> I guess this will take most people to somewhere else than they
> expect. :-)
> 
>  - Stig

Yes, I've got a few mails on this, I was in a hurry and just did a
cut'n'paste. Almost as fun as telling people to go to localhost...
The correct URL is http://www.venaas.no/dns/bind/bind-sdb/

Stig

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Wrapping text to store in the database

2001-05-08 Thread Don Read


On 08-May-01 Romulo Roberto Pereira wrote:
> Hello!
> 
> If a user drop a text like this in a textarea:
>


 
> ---
> 
> As you can see the text is simple and there are not any html tags. How do I
> do to add this elements so the text become something like this below, I mean
> how to wrap it up in html tags?
> 

 
> Ideas?

nl2br()

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTTP authentication : logout!!!

2001-05-08 Thread Don Read


On 08-May-01 Mauricio Souza Lima wrote:
> 
> Cool, you have found another way!
> So the realm make diference? A user loged in a realm isn't the same in
> other realm? Very cool...

Not quite, the realm is a string to present to the login dialog box
it has no effect on the credentials in this example.
But you could code such a thing.

> Explain better your solution to us.
> 

'Kay

> 
>> 
>> logoff.php3:
>> 
>> $fname="tmp/$PHP_AUTH_USER";
>> touch($fname);

create a lockfile tmp/loginname

>> Header("Location: http://www.mydomain.com/index.html";);

 & send them to a non-protected page.

>> 
>> secure.php3:
>> 
>> function checklogin($user,$pass='',$realm='') {
>> 

  here $realm is some unused glue for orthagonal function() calls

>> $fname="tmp/$user";
>> if (file_exists($fname)) {

check if tmp/loginname exists

>> unlink($fname); // delete it
>> return(false);  
>> }

   if we got this far, they either 
   1. didn't hit logoff  
   2. they did and already got the 401-(Re)Authenticate

>> $query="select login from users
>>   where login='$user' and password=PASSWORD('$pass')";
>> // echo $query .'';
>> $result = mysql_query( $query);
>> $row = mysql_fetch_object($result);
>> if ($row) {
>> return(true);
>> }
>> return(false);
>> }
>> 

Basically it's a spin-lock file that is checked on login ... could just as
easily be done as a shared semaphore, DB entry, whatever.

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] session help (session.gc_probability)

2001-05-08 Thread Jeff Warrington

Hi,

i am using sessions for a web application and was wondering whether it's
possible to set the gc_probablity to < 1%. I tried with a value of 0.25
but it appears that the gc callback function still runs at 1%. I figure
that the value is an integer and rounds up the values but if someone
can tell me different..

thanks,
jeff

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] MYSQLDUMP

2001-05-08 Thread Jack Dempsey

you should be supplying a password...what's the error?

-jack

-Original Message-
From: TopFive [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 5:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] MYSQLDUMP



When I attempt to backup my database using MYSQLDUMP, I get repeated 
syntax error messages from MySQL.  This is driving me nuts.  I've 
even attempted the simplest form of the command I can muster:

  mysqldump mydatabasename > dump.sql;

Am I overlooking something dreadfully obvious here?

Chris W.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] MYSQLDUMP

2001-05-08 Thread TopFive


When I attempt to backup my database using MYSQLDUMP, I get repeated 
syntax error messages from MySQL.  This is driving me nuts.  I've 
even attempted the simplest form of the command I can muster:

  mysqldump mydatabasename > dump.sql;

Am I overlooking something dreadfully obvious here?

Chris W.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPMyAdmin & local Windows/Apache question

2001-05-08 Thread TopFive


Does anyone have experience using PHPMyAdmin running on a local 
server under Windows NT/2000?  I've installed it, but when I load the 
index.php, I get a lot of PHP code displaying in my browser where my 
list of databases and tables should be.

Thanks in advance,
Chris W.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] forcing upload instead of showing doc

2001-05-08 Thread Toby Miller

I use this code:

header("Content-Type: $filetype");
header("Content-Disposition: atachment; filename=$showfilename");
header("Content-Length: $filesize");
readfile($source);

Note the mispelling of "atachment". This seems wrong but is actually the
correct spelling for IE, Netscape doesn't seem to mind either way.

--Toby

- Original Message -
From: "Wieger Uffink" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 12:07 PM
Subject: Re: [PHP] forcing upload instead of showing doc


> Hi,
>
>
>  header("Content-Type: application/octet-stream");
> header("Content-Disposition: attachment; filename=name.doc");
> include("file.doc");
> ?>
>
> Wieger
>
> Christian Dechery wrote:
> >
> > How do I force an output to be recognized by the browser by a
downloadable
> > text file as soon as I press the submit button?
> >
> > what header(*) stuff should I add before echo-ing stuff?
> >
> > thanks
> >
> > . [ Christian Dechery  ]
> > . Webdeveloper @ Tá Na Mesa!
> > . Listmaster @ Gaita-L
> > . http://www.tanamesa.com.br
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> Wieger Uffink
> tel: +31 20 428 6868
> fax: +31 20 470 6905
> web: http://www.usmedia.nl
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php/postgres display information...

2001-05-08 Thread Joe Conway

> hey guys,
> alright, I am new to using php to interface with a database, right now I
> am trying to display just the primary keys for a table in my database, can
> someone point me in the right direction on how to use php to display this
> information?

Create a function to supply the info -- see:
http://www.brasileiro.net/postgres/cookbook/view-one-recipe.adp?recipe_id=36

Then call the function:

http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Classes adn arrays

2001-05-08 Thread Stefan Kostopoulos

Thanks Jack!

This was really driving me mad and it was such a little 
thing

Stefan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Date & Time Formatting ??

2001-05-08 Thread Don Read


On 08-May-01 Jack Sasportas wrote:


> 
> The Goal is to have the Time stamp looking like 12:24 (military time OK)
> 
> and the date 05-08-2001 or even 05-08-01.
> 
> The MySQL db looks like so:
>  date   -00-00
>  time  00:00:00
> 
> I don't seem to really be able to vary the DB format.

combine the date & time:

mystamp datetime  ..

select date_format(mystamp,'%m-%d%Y %r') as ts from blah;

> 
> Any examples or links to good docs appreciated

 find /usr/local -name "manual.txt" -print | grep mysql
 http://www.mysql.com/manual.php  

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] accessing Javascript Cookies with php

2001-05-08 Thread Brian Paulson

I am having to use JavaScript to set a cookie, and if the page that sets the
cookie is any where but in the root web dir of the server I am unable to
retrieve it with php.

I have tested this out with Windows+apache+php4 and Linux+apache+php4 and am
unable to retrieve the cookie.

Has any one had this same Problem?

Thank you
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
http://www.chieftain.com
1-800-269-6397


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php, snmp, and mibs

2001-05-08 Thread ..s.c.o.t.t.. [gts]

as someone else suggested... a regexp is probably the
thing you want.

since i have no idea what the format of a MIB is,
i cannot give you any example.


but to find dotted num's, use something akin to this:

preg_match_all('/(\d+)(?=\.?)/', $MIB, $matches);


> -Original Message-
> From: Mike Backes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 2:28 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php, snmp, and mibs
> 
> 
> Hi,
> Sorry if this is a repeat question, I just can't seem to find an answer to
> this question.
> 
> I am running php4 on NT. I've been able to connect to some network equipment
> with the snmp commands, and retrieve the results. But it's the list of
> values, which can be tough to correspond to the MIB. Is there a way to get
> at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even
> better, to get the object names and such into an array?
> 
> Thanks for any information,
> Mike
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] conversion script

2001-05-08 Thread ..s.c.o.t.t.. [gts]

if you're renaming to .PHP, i assume that you'll
be using PHP.  use PHP to solve your problem:

This was taken directly from the PHP.net site:

if ($dir = @opendir("/tmp")) {
  while($file = readdir($dir)) {
echo "$file\n";
  }  
  closedir($dir);
}

as others have said before, "read the documentation".
it really does help. 



> -Original Message-
> From: Mark Maggelet [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 2:34 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] conversion script
> 
> 
> On Tue, 8 May 2001 11:09:18 -0700, Ryan Christensen ([EMAIL PROTECTED]) 
> wrote:
> >Would anyone be able to help me out with this:
> >
> >I have quite a few (almost 2000) .html files that I would like to 
> >change
> >over to the .php extension.  Past that, I would also like to add 
> >text to the
> >top & bottom of each page (for template purposes.)  Does anyone know
> >of a
> >script that would automate this process, going through all the 
> >documents in
> >a directory, and making the needed changes?
> >
> >Thanks in advance..
> 
> for the first part you can try (not tested):
> 
> for i in `/bin/ls *html |sed 's/.html//g'`; do mv $i.html $i.php; 
> done
> 
> for the second part you might want to try putting it in your 
> auto_prepend_file.
> 
> - Mark
> 
> >
> >Ryan Christensen
> >OlyPen Technical Support
> >[EMAIL PROTECTED]
> >360.457.3000
> >800.303.8696
> >
> >
> >
> >-- 
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: php-list-
> >[EMAIL PROTECTED]
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] mysql_trouble (check fast!)

2001-05-08 Thread Matt Schroebel

You have to check for a db result with either $count = mysql_num_rows($q_updateresult) 
or 
if ($row = mysql_fetch_array($q_updateresult)).

mysql_query returns a 1 or 0 to indicate if the query was sucessful.  One might 
typically query a db before inserting a record to make sure it's not there first. If 
it's not there, there wouldn't be a result, but the query was okay.

> From: FredrikAT [mailto:[EMAIL PROTECTED]]

> $na_pw is the active password...
> ..if pw is blank or wrong i want to output a error message...
> ...iknow that I could do if (empty($na_pw) and $na_pw <> 
> $pw), but then I
> would have to send another query to MySQL..
> 
> I thought that q_updateresult would say (when i echo) 0 when 
> password is bad, but it echos 1.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTTP authentication : logout!!!

2001-05-08 Thread Mauricio Souza Lima


Cool, you have found another way!
So the realm make diference? A user loged in a realm isn't the same in
other realm? Very cool...
Explain better your solution to us.

Regards,

Don Read wrote:
> 
> On 07-May-01 Mauricio Souza Lima wrote:
> 
> > And you have to inform the user to clean the password field, click ok,
> > then the pop-up will open again, then user click in cancel.
> >
> > I just know that way to do. If anyone know another way, Postit!
> >
> 
> create a tmp directory
> 
> 
> logoff.php3:
> 
> require('secure.php3');
> authuser("Logoff"); // validate user (possible Dos attack here)
> 
> $fname="tmp/$PHP_AUTH_USER";
> touch($fname);
> Header("Location: http://www.mydomain.com/index.html";);
> 
> -
> 
> secure.php3:
> 
> function checklogin($user,$pass='',$realm='') {
> if (! dbInit()) {
> echo "\n\n";
> die("Unable to contact database server");
> }
> 
> $fname="tmp/$user";
> if (file_exists($fname)) {
> unlink($fname);
> return(false);
> }
> $query="select login from users
>   where login='$user' and password=PASSWORD('$pass')";
> // echo $query .'';
> $result = mysql_query( $query);
> $row = mysql_fetch_object($result);
> if ($row) {
> return(true);
> }
> return(false);
> }
> 
> function authheader($realm) {
> Header('WWW-authenticate: basic realm="'.$realm .'"');
> Header('HTTP/1.0 401 Unauthorized');
> echo "\n\n";
> }
> 
> function authuser($realm='Access') {
> global $PHP_AUTH_USER, $PHP_AUTH_PW;
> 
> if (! (isset($PHP_AUTH_USER)) ) {
> authheader($realm);
> exit;
> }
> if (! (checklogin($PHP_AUTH_USER, $PHP_AUTH_PW, $realm)) ) {
> authheader($realm);
> echo 'Failed Login';
> exit;
> }
> }
> 
> Regards,
> --
> Don Read   [EMAIL PROTECTED]
> -- It's always darkest before the dawn. So if you are going to
>steal the neighbor's newspaper, that's the time to do it.

-- 
Mauricio Souza Lima
Programador - Catho ONLINE
[EMAIL PROTECTED] www.catho.com.br
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php/postgres display information...

2001-05-08 Thread Jason Lotito



> -Original Message-
> From: Daniel L. Ferrell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php/postgres display information...
>
>
> hey guys,
>alright, I am new to using php to interface with a
> database, right now I
> am trying to display just the primary keys for a table in my database, can
> someone point me in the right direction on how to use php to display this
> information?
>
>  Dan

http://www.newbienetwork.net/sections.php?op=viewarticle&artid=21 <- For
PostreSQL

http://techdocs.postgresql.org <- Other docs on PostreSQL.

Jason Lotito
www.NewbieNetwork.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mysql_trouble (check fast!)

2001-05-08 Thread FredrikAT

$na_pw is the active password...
..if pw is blank or wrong i want to output a error message...
...iknow that I could do if (empty($na_pw) and $na_pw <> $pw), but then I
would have to send another query to MySQL..

I thought that q_updateresult would say (when i echo) 0 when password is
bad, but it echos 1.

Any tips?

CODE:
$q_updatequery = "UPDATE brukerinfo SET navn=\"$ny_navn\", tlf=\"$ny_tlf\",
pw=PASSWORD('$ny_pw') WHERE brukerID=\"$id\" and pw=PASSWORD('$na_pw')\n";

$q_updateresult = mysql_db_query ($db, $q_updatequery);

-
Fredrik A. Takle
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php/postgres display information...

2001-05-08 Thread Daniel L. Ferrell

hey guys,
 alright, I am new to using php to interface with a database, right now I
am trying to display just the primary keys for a table in my database, can
someone point me in the right direction on how to use php to display this
information?

 Dan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] mySQL access denied with correct account/pw?

2001-05-08 Thread Matt Schroebel

If you are now accessing remotely, you'll need remote privileges for the user, not 
just user@localhost.  Could also be the db name is incorrect.

> -Original Message-
> From: John Vanderbeck [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 2:59 PM
 He has given me the 
> account and password for the mySQL server, and I have quadruple checked 
> it with him.  We both swear it is correct in the script.  However, mySQL 
> reports an access denied message whenever I try to connect.
> 
> Could something ELSE be causing this error?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] regarding classes

2001-05-08 Thread Jack Dempsey

i deleted the original message, but here's why your code wouldn't work:

you were using $this->$items...
drop the second $

try this:

items[$id] = $text;   
}

   function output($id){

echo $this->items[$id]; 
 }

}

$c = new Cart();
$c->add_item(0,"zero");
$c->add_item(1,"one"); 
$c->add_item(2,"two"); 

$c->output(0);   
$c->output(1);   
$c->output(2);
  
  
?>

that should be what you're looking for

-jack

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Odp: [PHP] MySql vs PostgreSQL

2001-05-08 Thread Tomasz Wasiluk

> So, I've noticed that most of you talk about PHP/MySQL almost exclusively.
> Does anyone use PHP and PostgreSQL?  What are the advantages of MySQL over
> PostgreSQL, other than it's easier to pronounce...

I'v been using Postgres for some time now and I think I'm going to swicth to MySQL
because of the Large Objects in Postgres, which aren't very good. I don't use 
subqueries
so it won't be a big problem.

| Tom Wasiluk  (  [EMAIL PROTECTED]  )
| http://php.pl



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HTTP authentication : logout!!!

2001-05-08 Thread Don Read


On 07-May-01 Mauricio Souza Lima wrote:

> And you have to inform the user to clean the password field, click ok, 
> then the pop-up will open again, then user click in cancel.
> 
> I just know that way to do. If anyone know another way, Postit!
> 

create a tmp directory


logoff.php3:

require('secure.php3');
authuser("Logoff"); // validate user (possible Dos attack here)

$fname="tmp/$PHP_AUTH_USER";
touch($fname);
Header("Location: http://www.mydomain.com/index.html";);

-

secure.php3:

function checklogin($user,$pass='',$realm='') {
if (! dbInit()) {
echo "\n\n";
die("Unable to contact database server");
}

$fname="tmp/$user";
if (file_exists($fname)) {
unlink($fname);
return(false);
}
$query="select login from users 
  where login='$user' and password=PASSWORD('$pass')";
// echo $query .'';
$result = mysql_query( $query);
$row = mysql_fetch_object($result);
if ($row) {
return(true);
}
return(false);
}

function authheader($realm) {
Header('WWW-authenticate: basic realm="'.$realm .'"');
Header('HTTP/1.0 401 Unauthorized');
echo "\n\n";
}

function authuser($realm='Access') {
global $PHP_AUTH_USER, $PHP_AUTH_PW;
 
if (! (isset($PHP_AUTH_USER)) ) {
authheader($realm);
exit;
}
if (! (checklogin($PHP_AUTH_USER, $PHP_AUTH_PW, $realm)) ) {
authheader($realm);
echo 'Failed Login';
exit;
}
}

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Recursive SQL Queries: Web Directory Categories

2001-05-08 Thread Philip Hallstrom

Also take a look at Joe Celko's 'SQL for Smarties'.  There's a whole
chapter on this.  It gets kind if burly, but it's pretty cool.  It's all
done by converting your schema below into a tree structure...

(no, i don't have any code since I've just read about it never done it
:)

-philip

In article <[EMAIL PROTECTED]>,
Krznaric Michael <[EMAIL PROTECTED]> wrote:
>James,
>
>   Take a look at hierarchical queries in MS SQl.  If I'm not mistaken,
>this is part of the SQL 99 standard and is implemented by many SQL 92
>compliant database vendors.  I know ORACLE and DB2 support it.  I'm not sure
>if you already have but I would investigate this topic with MS SQL.
>
>Mike
>
>
>-Original Message-
>From: James Crowley [mailto:[EMAIL PROTECTED]]
>Sent: Monday, May 07, 2001 1:45 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Recursive SQL Queries: Web Directory Categories
>
>
>Hi,
>   I have a web directory which allows sub-categories to an unlimited
>level.
>This is done with a categories table, and assigning a parentid to each...
>For example
>
>ID   ParentIDName
>10   Products
>21   Sub-Category of Products (Level 1)
>31   Another Sub-Category (Level 1)
>42   A sub-sub-category (Level 2)
>
>What I need to do is return a list of an items parent categories. For
>example, if we are in category 4, I want text outputted saying
>
>Products \ Sub-Category\sub-sub Category
>
>However, it does not seem possible to do this with a single SQL query. I
>have succeeded in creating a recursive one below (in MS SQL):
>
>CREATE PROCEDURE dbo.dir_recurse(@parentid INT) AS
>  --// List its parent categories
>  DECLARE @childid INT
>  DECLARE hC CURSOR LOCAL FOR SELECT parent FROM categories c WHERE id =
>@parentid ORDER BY c.name FOR READ ONLY
>  OPEN hC
>  FETCH NEXT FROM hC INTO @childid
>  WHILE @@FETCH_STATUS = 0 AND @childid != 0
>  BEGIN
>EXECUTE dir_recurse @childid
>FETCH NEXT FROM hC INTO @childid
>  END
>  CLOSE hC
>  DEALLOCATE hC
>  RETURN 0
>GO
>
>However, this returns more than one result set, which neither ASP or PHP (so
>therefore it's probably the ODBC driver...) seem to support. Help!
>
>Regards,
>
>- James
>
>Editor, VB Web
>==
>Web   - http://www.vbweb.co.uk
>Email - [EMAIL PROTECTED]
>ICQ#  - 60612011
>==
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]
>> Sent: 06 May 2001 20:11
>> To: [EMAIL PROTECTED]
>> Subject: php-general Digest 6 May 2001 19:11:22 - Issue 670
>>
>>
>>
>> php-general Digest 6 May 2001 19:11:22 - Issue 670
>>
>> Topics (messages 51587 through 51649):
>>
>> IIS instead of PWS!!! what else can i do..
>>  51587 by: Thomas Edison Jr.
>>  51588 by: Zak Greant
>>  51591 by: Thomas Edison Jr.
>>  51592 by: Thomas Edison Jr.
>>  51593 by: Zak Greant
>>  51594 by: Alexander Skwar
>>
>> Re: PHP on PWS not working!
>>  51589 by: Thomas Edison Jr.
>>  51590 by: Thomas Edison Jr.
>>  51600 by: Phil Driscoll
>>  51640 by: Thomas Edison Jr.
>>  51644 by: Phil Driscoll
>>
>> Re: Sorry, what is "PWS"
>>  51595 by: Alexander Skwar
>>
>> Re: "Free" Database Design Program
>>  51596 by: Andrzej Swedrzynski
>>
>> Novedades en Gordos.com
>>  51597 by: Gordos.com
>>
>> PHP as apache module and security.
>>  51598 by: Andrzej Swedrzynski
>>  51607 by: Estelle Martin
>>  51609 by: Andrzej Swedrzynski
>>
>> Re: nslookup function ?
>>  51599 by: Tom Carter
>>
>> Complete Newbie
>>  51601 by: biscut
>>
>> What is msvcr70.dll??
>>  51602 by: Ermanno Iannacci
>>
>> Re: PEAR where should I start?
>>  51603 by: Gyozo Papp
>>
>> Image displaying problem
>>  51604 by: Estelle Martin
>>
>> Re: class (not class instance) variables
>>  51605 by: Gyozo Papp
>>
>> Re: quicker query?
>>  51606 by: Gyozo Papp
>>
>> searching a MySQL database
>>  51608 by: Jamie Saunders
>>  51620 by: bill
>>  51623 by: John Vanderbeck
>>
>> Insert data into mysql table
>>  51610 by: Mohamedou
>>
>> Re: wordwrap
>>  51611 by: Yasuo Ohgaki
>>
>> php4apachi.dll
>>  51612 by: Darren
>>
>> best ide for windows
>>  51613 by: Alexander Bierbrauer
>>  51615 by: Gyozo Papp
>>  51617 by: Geir Eivind Mork
>>  51618 by: John Vanderbeck
>>  51626 by: Henrik Hansen
>>  51628 by: Andrzej Swedrzynski
>>  51629 by: Gyozo Papp
>>  51630 by: Alex Piaz
>>  51633 by: Alexander Skwar
>>  51634 by: Bjorn Sodergren
>>  51635 by: Andrzej Swedrzynski
>>  51637 by: John Vanderbeck
>>  51639 by: Andrzej Swedrzynski
>>
>> php.exe [filename .php] vs. run [filename.php] via webserver
>>  51614 by: Art
>>
>> Install problems with PHP and GD
>>  51616 by: John Vanderbeck
>>
>> if string contains...
>>  51619 by: Jamie Saunders
>>  51621 by: Alvin Tan
>>  51622 by: Gyozo Papp
>>
>> Slightly OT - Backing up mySQL...
>>  51624 by: Nick Terzi

[PHP] Classes and arrays

2001-05-08 Thread Stefan Kostopoulos

Hi!

Can anybody explain to me why this script outputs:

oneone

instead of:

zeroone

???

Thanks,

stefan


$items[$id] = $text;
}
   
   function output($id){

echo $this->$items[$id];
 }

}


$c = new Cart;
$c->add_item(0,"zero");
$c->add_item(1,"one");
$c->output(0);
$c->output(1);


?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] How to read a web page and analyze but not display it

2001-05-08 Thread Jack Dempsey

Dexter,

that's a pretty broad question...if you look at the functions at php.net
such as fopen, you should find some information regarding reading
webpages...

-jack

-Original Message-
From: Dexter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 6:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to read a web page and analyze but not display it


hi PHP 'sters,

How to read a web page and analyze but not display it using PHP.



Thanks

Dexter.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to read a web page and analyze but not display it

2001-05-08 Thread Zak Greant

Use fopen() or file()

--zak


- Original Message - 
From: "Dexter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 4:27 PM
Subject: [PHP] How to read a web page and analyze but not display it


hi PHP 'sters,

How to read a web page and analyze but not display it using PHP.



Thanks

Dexter. 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php, snmp, and mibs

2001-05-08 Thread Jack Dempsey

Mike,

I haven't worked with MIB files myself, but what you're describing sounds
like it could be solved with regex's...can you post a snippet of what file
looks like that you're trying to extract from?

-jack

-Original Message-
From: Mike Backes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php, snmp, and mibs


Hi,
Sorry if this is a repeat question, I just can't seem to find an answer to
this question.

I am running php4 on NT. I've been able to connect to some network equipment
with the snmp commands, and retrieve the results. But it's the list of
values, which can be tough to correspond to the MIB. Is there a way to get
at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even
better, to get the object names and such into an array?

Thanks for any information,
Mike


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to read a web page and analyze but not display it

2001-05-08 Thread Dexter

hi PHP 'sters,

How to read a web page and analyze but not display it using PHP.



Thanks

Dexter. 




Re: [PHP] Variable question, yet another

2001-05-08 Thread Jason Stechschulte

On Tue, May 08, 2001 at 01:20:49PM -0500, King, Justin wrote:
> So when the line hits type 1, it evals like this
>  
> echo "[a href="myscript.php?username={$userdata["username"]}"]Goto
> MyScript.php[/a]";
>  
> Of course this yields an error because of the "'s in the anchor tag.
> But if I add slashes the evaluated code will be
>  
> echo "[a href=\"myscript.php?username={$userdata[\"username\"]}\"]Goto
> MyScript.php[/a]";

Why not just break out of the string to print the username?
echo "[a href=\"myscript.php?username=".$userdata["username"]."\"]Goto
Myscript.php[/a]";

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
The whole history of computers is rampant with cheerleading at best and
bigotry at worst.
 -- Larry Wall in <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php, snmp, and mibs

2001-05-08 Thread Mike Backes

Hi,
Sorry if this is a repeat question, I just can't seem to find an answer to
this question.

I am running php4 on NT. I've been able to connect to some network equipment
with the snmp commands, and retrieve the results. But it's the list of
values, which can be tough to correspond to the MIB. Is there a way to get
at least the x.x.x.x.x.x from a MIB file into an array of some kind, or even
better, to get the object names and such into an array?

Thanks for any information,
Mike


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] RE: Undelivered Mail Returned to Sender

2001-05-08 Thread John Vanderbeck

I have been getting this as well, and it is _really_ starting to annoy me.
Why is this not filtered out anyways? I am the owner and admin of the
GameDesign mailing list, and our software automaticly filters these things
from the general list.

Please fix this :(

- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues


> -Original Message-
> From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 2:22 PM
> To: PHP General List
> Subject: [PHP] RE: Undelivered Mail Returned to Sender
>
>
> every reply i send to the list gives this back...could someone take that
> address off the list?
> thanks
>
> jack
>
> -Original Message-
> From: Mail Delivery System [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 2:16 PM
> To: [EMAIL PROTECTED]
> Subject: Undelivered Mail Returned to Sender
>
>
> This is the Postfix program at host mail-in.namezero.com.
>
> I'm sorry to have to inform you that the message returned
> below could not be delivered to one or more destinations.
>
> For further assistance, please send mail to 
>
> If you do so, please include this problem report. You can
> delete your own text from the message returned below.
>
>   The Postfix program
>
> <[EMAIL PROTECTED]>: host
> inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User
> unknown
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] session question

2001-05-08 Thread Rodrigo Reis da Rocha

I have a question about session variables.
In my page the session variables are not seen by the pages where tem are not declared.
I´ve used "session_register(variable)" and so after at another page I´ve called "echo 
$variable;" and it generate a message that the variable does not exists.
The session variables are not suposed to be seen at any time, at any page when the 
param globals is set on while session stands up?


Tkx. 
R3.



RE: [PHP] session question

2001-05-08 Thread John Vanderbeck

Are you opening a session on each of the pages you want to use the
variables?

Calling session_register() I believe causes an implicit opening of the
session, but on the other pages you have to explicity open the session, or
you won't have access to those vars.

- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues


> -Original Message-
> From: Rodrigo Reis da Rocha [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 2:58 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] session question
>
>
> I have a question about session variables.
> In my page the session variables are not seen by the pages where
> tem are not declared.
> I´ve used "session_register($variable)" and so after at another
> page I´ve called "echo $variable;" and it generate a message that
> the variable does not exists.
> The session variables are not suposed to be seen at any time, at
> any page when the param globals is set on while session stands up?
>
>
> Tkx.
> R3.
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mySQL access denied with correct account/pw?

2001-05-08 Thread John Vanderbeck

Working on getting mySQL setup on a new server.  I mainly do the PHP work
while another guy does the server work.  He has given me the account and
password for the mySQL server, and I have quadruple checked it with him.  We
both swear it is correct in the script.  However, mySQL reports an access
denied message whenever I try to connect.

Could something ELSE be causing this error?

- John Vanderbeck
- Admin, GameDesign (http://gamedesign.incagold.com/)
- GameDesign, the industry source for game design and development issues



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] session question

2001-05-08 Thread Rodrigo Reis da Rocha

I have a question about session variables.
In my page the session variables are not seen by the pages where tem are not declared.
I´ve used "session_register($variable)" and so after at another page I´ve called "echo 
$variable;" and it generate a message that the variable does not exists.
The session variables are not suposed to be seen at any time, at any page when the 
param globals is set on while session stands up?


Tkx. 
R3.



Re: [PHP] Safe mode upload

2001-05-08 Thread Philip Olson


Awhile ago there was some discussion on irc #php , this use was proposed
(by onki) :

  $tmp_name = $HTTP_POST_FILES['userfile']['tmp_name']; 

  move_uploaded_file ($tmp_name, '/home/httpd/html/upload/example.zip'); 

  chmod('/home/httpd/html/upload/example.zip', 0644); 

And it works. move_uploaded_file() is the key here. Haven't personally
tried it like this as the safe mode server I have access to is 4.0.2 and
move_uploaded_file is a 4.0.3 function

  http://www.php.net/manual/en/function.move-uploaded-file.php
  http://www.php.net/manual/en/features.file-upload.php

Also, what you can do is get a script called chuid from here :

  http://www.srparish.net/scripts/ 

It must be installed by sysadmin. Then, users do something like this : 

  ...  ... 

  passthru ("chuid $file 1033");

  copy($file, "/path/to/uploads/$file_name");

Something like that. The above (1033) is the users uid which of course is
different for everyone.  If anyone has comments to add/change to this
post, please do so.

Also upon review of the php4.0.5 CHANGELOG, note the following entry :

  "Allow access to uploaded files in safe_mode. Beware that you can only
  read the file. If you copy it to new location the copy will not have the
  right UID and you script won't be able to access that copy. (Thies)"

  http://php.net/ChangeLog-4.php


Regards,
Philip


On Tue, 8 May 2001, php wrote:

> 
> Hi everyone.
> 
> I have trouble uploading files while in safe mode 
> .Warning: SAFE MODE Restriction in effect. The script whose uid is 206 is
> not allowed to access /tmp/php6wtDUc owned by uid 0 
> Can someone help me pass around this problem?
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] conversion script

2001-05-08 Thread Mark Maggelet

On Tue, 8 May 2001 11:09:18 -0700, Ryan Christensen ([EMAIL PROTECTED])
wrote:
>Would anyone be able to help me out with this:
>
>I have quite a few (almost 2000) .html files that I would like to
>change
>over to the .php extension.  Past that, I would also like to add
>text to the
>top & bottom of each page (for template purposes.)  Does anyone know
>of a
>script that would automate this process, going through all the
>documents in
>a directory, and making the needed changes?
>
>Thanks in advance..

for the first part you can try (not tested):

for i in `/bin/ls *html |sed 's/.html//g'`; do mv $i.html $i.php;
done

for the second part you might want to try putting it in your
auto_prepend_file.

- Mark

>
>Ryan Christensen
>OlyPen Technical Support
>[EMAIL PROTECTED]
>360.457.3000
>800.303.8696
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: php-list-
>[EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Variable question, yet another

2001-05-08 Thread King, Justin

Alright... here's my situation for those that didn't read my string of
messages yesterday.. (plus a bit more background information as to why
I'm doing this)
 
I'm writing an engine for a content managing system.  Part of the system
is a menu builder.  I use 2 tables, (this is a mysql database) menu and
menu_parts.  They look like this
 
Table menu
ID   : Integer; (auto increments, key)
Name : Varchar[128];
Type : Integer; (unused now)
 
Table menu_parts
ID : Integer;
Menu   : Integer; (which menu this belongs to)
Order  : Tinyint; (all menu items have incremental numbers)
Type   : Tinyint;
Data   : Text;
 
My code looks like this
 
[code]
$query="SELECT type,data FROM menu_parts WHERE menu='1' ORDER BY
m_order";
$result=mysql_query($query);
if($myrow=mysql_fetch_array($result))
{   do {
if($myrow["type"]==1)
eval("echo
\"".$myrow["data"]."\";");
elseif($myrow["type"]==2)
eval($myrow["data"]);
else
echo $myrow["data"];
} while($myrow=mysql_fetch_array($result));
}
[/code]
 
So depending on the menu_parts type, it will display the data field
differently.  

If the type=0, it simple outputs the data field plain text.
If the type=1, it adds echo to both sides and outputs data.
If the type=2, it evaluates the code as is.
 
The problem I'm having, is with type 1.  The main reason for this type
is say I want to send the user to a php script and pass parameters (I'm
going to use []'s so those of you with html email readers don't parse
it)
 
[a href="myscript.php?username={$userdata["username"]}"]Goto
MyScript.php[/a]
 
So when the line hits type 1, it evals like this
 
echo "[a href="myscript.php?username={$userdata["username"]}"]Goto
MyScript.php[/a]";
 
Of course this yields an error because of the "'s in the anchor tag.
 
But if I add slashes the evaluated code will be
 
 
echo "[a href=\"myscript.php?username={$userdata[\"username\"]}\"]Goto
MyScript.php[/a]";
 
Which will cause the $userdata["username"] variable to not process
properly.  I thought about making type one do echo ''; instead of echo
""; but then if the user has a ' in their menu it won't function
properly.
 
I wish I could do this with regular expressions, but I'm not fluent with
them (and also doubt I could succeed in my task if I did).  
 
I think I described my problem as thorough as I could have. Any help,
comments, etc would be greatly appreciated.
 
-Justin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] conversion script

2001-05-08 Thread Jack Dempsey

a simple perl script would suffice...don't have time to write one now (paper
to write...joy) but if you can't find one, i can help later...

-jack

-Original Message-
From: Ryan Christensen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:09 PM
To: PHP Mailing List
Subject: [PHP] conversion script


Would anyone be able to help me out with this:

I have quite a few (almost 2000) .html files that I would like to change
over to the .php extension.  Past that, I would also like to add text to the
top & bottom of each page (for template purposes.)  Does anyone know of a
script that would automate this process, going through all the documents in
a directory, and making the needed changes?

Thanks in advance..


Ryan Christensen
OlyPen Technical Support
[EMAIL PROTECTED]
360.457.3000
800.303.8696



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] RE: Undelivered Mail Returned to Sender

2001-05-08 Thread Jack Dempsey

every reply i send to the list gives this back...could someone take that
address off the list?
thanks

jack

-Original Message-
From: Mail Delivery System [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:16 PM
To: [EMAIL PROTECTED]
Subject: Undelivered Mail Returned to Sender


This is the Postfix program at host mail-in.namezero.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to 

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<[EMAIL PROTECTED]>: host
inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User
unknown


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Problem with PHP 4.0.5

2001-05-08 Thread Jack Dempsey

are you sure your html is properly formatted? if you like, send me the small
script you're using, and i'll run it on a pre 4.0.5 release...
if something shows up in ie but not ns that's a browser, not php problem...

-jack

-Original Message-
From: biscut [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:00 PM
To: John Vanderbeck; [EMAIL PROTECTED]
Subject: RE: [PHP] Problem with PHP 4.0.5


I have exactly the same problem, if you try viewing the page with IE then
you will probably find that it works fine...if you get any answers then
could you let me know what you did ?? I found that even with using  -Original Message-
> From: John Vanderbeck [mailto:[EMAIL PROTECTED]]
> Sent: 08 May 2001 01:33
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Problem with PHP 4.0.5
>
>
> Try,
>
>  echo "This is a test\n";
> ?>
>
> Some systems are configured to not allow the shorthand " REQUIRE the full code start "
>
> - John Vanderbeck
> - Admin, GameDesign (http://gamedesign.incagold.com/)
> - GameDesign, the industry source for game design and development issues
>
>
> > -Original Message-
> > From: Alvaro Collado [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 07, 2001 8:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Problem with PHP 4.0.5
> >
> >
> > I have installed PHP4.0.5 in a Red Hat Linux 6.0 with Apache.
> > When I run the test no problem, all is OK, but when I run a html
> > index file in Netscape ( LocalHost )
> > whith a single code like this
> >
> > 
> >
> > nothing was display, nothing.
> >
> > When I change the code for an know error for example 
> > Netscape prints the full text of the tag
> > "" .
> >
> > Please help me.
> >
> > Thanks
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] class inheritance question

2001-05-08 Thread Neil Kimber

yes, as will:

Class C extends B{
function cc(){
$this->bb();// Will this work ? <-- YES
$this->aa();
 }
}


-Original Message-
From: py [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 14:02
To: [EMAIL PROTECTED]
Subject: [PHP] class inheritance question


Hello,

Class A{
function aa(){}
}

Class B extends A{
function bb(){
$this->aa();// I know this is ok
}
}

Class C extends B{
function cc(){
$this->bb();// Will this work ? 
 }
}

py


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] conversion script

2001-05-08 Thread Ryan Christensen

Would anyone be able to help me out with this:

I have quite a few (almost 2000) .html files that I would like to change
over to the .php extension.  Past that, I would also like to add text to the
top & bottom of each page (for template purposes.)  Does anyone know of a
script that would automate this process, going through all the documents in
a directory, and making the needed changes?

Thanks in advance..


Ryan Christensen
OlyPen Technical Support
[EMAIL PROTECTED]
360.457.3000
800.303.8696



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] class inheritance question

2001-05-08 Thread py

Hello,

Class A{
function aa(){}
}

Class B extends A{
function bb(){
$this->aa();// I know this is ok
}
}

Class C extends B{
function cc(){
$this->bb();// Will this work ? 
 }
}

py



[PHP] Problem executing files without line feeds

2001-05-08 Thread jon mclaughlin

Help!

We're currently in the process of moving from one server (with PHP
v4.0.3pl1) to a new box (with PHP v4.0.5) Both have RedHat Linux.

It seems that file that worked fine on the old setup are no longer executing
properly. I"m having the problem specifically with included files. If the
file does not have line feeds after the carriage return (i.e. Was generated
on a Mac) the comment line is not ending and the code won't execute
(strangely enough, the code just displays).

If I change the file to a Unix format file (using BBEdit on the Mac) it then
executes fine with the include.

Has anyone ever encountered something like this? Any suggestions?

I'd like to avoid having to find all the files and fix them.

Thanks!

..jon
-- 
..::.:..::.::.:.:..::..:::...:.:.::.::.::.:..
  jon mclaughlin
  digitalnoise.com
   a division of PLATFORM.NET
.:.:.:..::.:.:::..:::...:.:.::.::.:.::.:.
p:646.613.3510 c:917.612.8261
f:646.613.3599 e:[EMAIL PROTECTED]
..::.:..::.::.:.:::...:.:.::.::..:..::.:.::.:



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Problem with PHP 4.0.5

2001-05-08 Thread biscut

I have exactly the same problem, if you try viewing the page with IE then
you will probably find that it works fine...if you get any answers then
could you let me know what you did ?? I found that even with using  -Original Message-
> From: John Vanderbeck [mailto:[EMAIL PROTECTED]]
> Sent: 08 May 2001 01:33
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Problem with PHP 4.0.5
>
>
> Try,
>
>  echo "This is a test\n";
> ?>
>
> Some systems are configured to not allow the shorthand " REQUIRE the full code start "
>
> - John Vanderbeck
> - Admin, GameDesign (http://gamedesign.incagold.com/)
> - GameDesign, the industry source for game design and development issues
>
>
> > -Original Message-
> > From: Alvaro Collado [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 07, 2001 8:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Problem with PHP 4.0.5
> >
> >
> > I have installed PHP4.0.5 in a Red Hat Linux 6.0 with Apache.
> > When I run the test no problem, all is OK, but when I run a html
> > index file in Netscape ( LocalHost )
> > whith a single code like this
> >
> > 
> >
> > nothing was display, nothing.
> >
> > When I change the code for an know error for example 
> > Netscape prints the full text of the tag
> > "" .
> >
> > Please help me.
> >
> > Thanks
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Recursive SQL Queries: Web Directory Categories

2001-05-08 Thread Krznaric Michael

James,

Take a look at hierarchical queries in MS SQl.  If I'm not mistaken,
this is part of the SQL 99 standard and is implemented by many SQL 92
compliant database vendors.  I know ORACLE and DB2 support it.  I'm not sure
if you already have but I would investigate this topic with MS SQL.

Mike


-Original Message-
From: James Crowley [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 1:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Recursive SQL Queries: Web Directory Categories


Hi,
I have a web directory which allows sub-categories to an unlimited
level.
This is done with a categories table, and assigning a parentid to each...
For example

ID   ParentIDName
10   Products
21   Sub-Category of Products (Level 1)
31   Another Sub-Category (Level 1)
42   A sub-sub-category (Level 2)

What I need to do is return a list of an items parent categories. For
example, if we are in category 4, I want text outputted saying

Products \ Sub-Category\sub-sub Category

However, it does not seem possible to do this with a single SQL query. I
have succeeded in creating a recursive one below (in MS SQL):

CREATE PROCEDURE dbo.dir_recurse(@parentid INT) AS
  --// List its parent categories
  DECLARE @childid INT
  DECLARE hC CURSOR LOCAL FOR SELECT parent FROM categories c WHERE id =
@parentid ORDER BY c.name FOR READ ONLY
  OPEN hC
  FETCH NEXT FROM hC INTO @childid
  WHILE @@FETCH_STATUS = 0 AND @childid != 0
  BEGIN
EXECUTE dir_recurse @childid
FETCH NEXT FROM hC INTO @childid
  END
  CLOSE hC
  DEALLOCATE hC
  RETURN 0
GO

However, this returns more than one result set, which neither ASP or PHP (so
therefore it's probably the ODBC driver...) seem to support. Help!

Regards,

- James

Editor, VB Web
==
Web   - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ#  - 60612011
==

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: 06 May 2001 20:11
> To: [EMAIL PROTECTED]
> Subject: php-general Digest 6 May 2001 19:11:22 - Issue 670
>
>
>
> php-general Digest 6 May 2001 19:11:22 - Issue 670
>
> Topics (messages 51587 through 51649):
>
> IIS instead of PWS!!! what else can i do..
>   51587 by: Thomas Edison Jr.
>   51588 by: Zak Greant
>   51591 by: Thomas Edison Jr.
>   51592 by: Thomas Edison Jr.
>   51593 by: Zak Greant
>   51594 by: Alexander Skwar
>
> Re: PHP on PWS not working!
>   51589 by: Thomas Edison Jr.
>   51590 by: Thomas Edison Jr.
>   51600 by: Phil Driscoll
>   51640 by: Thomas Edison Jr.
>   51644 by: Phil Driscoll
>
> Re: Sorry, what is "PWS"
>   51595 by: Alexander Skwar
>
> Re: "Free" Database Design Program
>   51596 by: Andrzej Swedrzynski
>
> Novedades en Gordos.com
>   51597 by: Gordos.com
>
> PHP as apache module and security.
>   51598 by: Andrzej Swedrzynski
>   51607 by: Estelle Martin
>   51609 by: Andrzej Swedrzynski
>
> Re: nslookup function ?
>   51599 by: Tom Carter
>
> Complete Newbie
>   51601 by: biscut
>
> What is msvcr70.dll??
>   51602 by: Ermanno Iannacci
>
> Re: PEAR where should I start?
>   51603 by: Gyozo Papp
>
> Image displaying problem
>   51604 by: Estelle Martin
>
> Re: class (not class instance) variables
>   51605 by: Gyozo Papp
>
> Re: quicker query?
>   51606 by: Gyozo Papp
>
> searching a MySQL database
>   51608 by: Jamie Saunders
>   51620 by: bill
>   51623 by: John Vanderbeck
>
> Insert data into mysql table
>   51610 by: Mohamedou
>
> Re: wordwrap
>   51611 by: Yasuo Ohgaki
>
> php4apachi.dll
>   51612 by: Darren
>
> best ide for windows
>   51613 by: Alexander Bierbrauer
>   51615 by: Gyozo Papp
>   51617 by: Geir Eivind Mork
>   51618 by: John Vanderbeck
>   51626 by: Henrik Hansen
>   51628 by: Andrzej Swedrzynski
>   51629 by: Gyozo Papp
>   51630 by: Alex Piaz
>   51633 by: Alexander Skwar
>   51634 by: Bjorn Sodergren
>   51635 by: Andrzej Swedrzynski
>   51637 by: John Vanderbeck
>   51639 by: Andrzej Swedrzynski
>
> php.exe [filename .php] vs. run [filename.php] via webserver
>   51614 by: Art
>
> Install problems with PHP and GD
>   51616 by: John Vanderbeck
>
> if string contains...
>   51619 by: Jamie Saunders
>   51621 by: Alvin Tan
>   51622 by: Gyozo Papp
>
> Slightly OT - Backing up mySQL...
>   51624 by: Nick Terzich
>   51625 by: Felix Kronlage
>   51627 by: Henrik Hansen
>
> Re: simple database extraction problem :(
>   51631 by: Manuel Lemos
>
> Can php give me row number?
>   51632 by: Jan Grafstrvm
>   51636 by: Gyozo Papp
>   51642 by: Stephan Ahonen
>
> Flash/PHP/MySQL
>   51638 by: FredrikAT
>   51641 by: Eduardo Pirez Jover
>
> Passing variables to another page - newbie
>   51643 by: Dean Martin
>   51645 by: Jack Dempsey
>   51646 by: John

RE: [PHP] MySql vs PostgreSQL

2001-05-08 Thread Jack Dempsey

http://www.phpbuilder.com/columns/tim20001112.php3?page=1

-jack

-Original Message-
From: Brent Langston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 1:22 PM
To: PHP General List
Subject: [PHP] MySql vs PostgreSQL


So, I've noticed that most of you talk about PHP/MySQL almost exclusively.
Does anyone use PHP and PostgreSQL?  What are the advantages of MySQL over
PostgreSQL, other than it's easier to pronounce...

Thanks,
Brent

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >