|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 16 Jun 2000 16:57:39 -0000 Issue 1738
From: php3-digest-help
lists.php.netDate: Fri Jun 16 2000 - 11:57:39 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 17 Jun 2000 04:57:38 -0000 Issue 1739"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 16 Jun 2000 04:57:41 -0000 Issue 1737"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 16 Jun 2000 16:57:39 -0000 Issue 1738
Topics (messages 93621 through 93681):
Classes and mysql_fetch_object()
93621 by: Joe Stump
Re: Using PHP to find a date
93622 by: php3.developersdesk.com
Re: bug?
93623 by: Ted Knudson
Re: mail() works for some addresses, not others?
93624 by: Ted Knudson
mod_auth_mysql
93625 by: David A. Snodgrass
93650 by: Christian Lyra Gomes
Download a file // IF question // Read a file!
93626 by: Sune Alexandersen
How exactly does PHP work ?
93627 by: Mandar Deshmukh
double
93628 by: Sergey Tovmach
ADV. Penis enlargement without surgery!
93629 by: Don't delete!
93638 by: Leonardo Dias
93640 by: Saurabh Gupta
93642 by: Gregory Drake Wilson
93644 by: Greg Linnell
93645 by: David A. Snodgrass
93666 by: Thomas Deliduka
93669 by: Zeev Suraski
Cookies on PHP4 RC1 on IIS 5, problems!!!
93630 by: Paulo Eduardo Azevedo Silveira
93639 by: Leonardo Dias
Ereg-tutorial
93631 by: Trio
93632 by: Justin French
Re: How to compute DST?
93633 by: Jack McKinney
Re: [PHP-DEV] can anyone help me with fixing a bug in php?
93634 by: Sascha Schumann
Access
93635 by: Derek
93643 by: Dennis Moore
Question on postgress 7 and php4.
93636 by: Eric Naujock
Automated response mail header
93637 by: Thomas Edison Jr.
93646 by: Hans-Peter Gygax
93671 by: Zack Beatty
AS/400
93641 by: fota
Upgrading GD w/o recompiling PHP
93647 by: Bomelin, Joakim
93648 by: Sam Liddicott
93651 by: Bomelin, Joakim
93655 by: Sam Liddicott
93657 by: Bomelin, Joakim
can you split() like in perl?
93649 by: Brian
93652 by: Tom Walsh
93658 by: Brian
suspected use of PHP!
93653 by: Reed, Dana
93656 by: Leonardo Dias
93659 by: Robert V. Zwink
93661 by: Leonardo Dias
autoform inserting
93654 by: Colm Rafferty
Apache/PHP/MySQL memory bloat
93660 by: Sam Liddicott
93662 by: Zeev Suraski
93664 by: Sam Liddicott
93670 by: charette.sneezy.org
93673 by: Sam Liddicott
FreeBSD connection to MS SQL Server 6.5 with php4
93663 by: Travis Ruthenburg
Subject: Oracle 8 + PHP Next/Prev records
93665 by: John Cavacas
R: [PHP3] fsockopen and smtp
93667 by: Roberto Sartor
MySQL and PHP3 on NT ?
93668 by: Ade Smith
93680 by: Erik Mathy
PHP and mail() with ezmlm
93672 by: Joe Stump
93676 by: Joe Stump
93681 by: charette.sneezy.org
Headers after authentication
93674 by: Boget, Chris
93675 by: Sam Liddicott
Captureing Header() with output buffering
93677 by: Wico de Leeuw
Classes - private, public, protected variables
93678 by: Joe Stump
How to get Session variables to expire
93679 by: Neil Innes
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
I defined a class and some variables for that class - now this class basically represents a row in my database and the functions are things I want to do with that row. Is there anyway I can pull $row in as an object and assign it in one big swoop to my other class like this:
while($row = mysql_fetch_object($result)){
// create new object
$address = new Address;
// *should* assign vars in row to address
$address = $row;
// should use vars from $row to dump names
$address->dump_name();
}
What am I doing wrong?
/*****************************\
* Joe Stump *
* www.Care2.com *
* Office: 650.328.0198 *
* Extension: 122 *
\*****************************/
www.miester.org
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
------END GEEK CODE BLOCK------
attached mail follows:
Addressed to: "Greg Schnippel" <schnippy
sigmanet.net>
php3
lists.php.net
** Reply to note from "Greg Schnippel" <schnippy
sigmanet.net> Thu, 15 Jun 2000 16:33:29 -0400
>
> Hello all,
>
> I have an article database with the articles ordered by date. If I
> want to select the last seven days worth of articles, is there a PHP
> function to give me the date from seven days ago that I can pipe into
> the MySQL query?
>
> I store the dates in MySQL date format.
First off, you mention that articles are ordered by date. Not in
MySQL. (or any other SQL database - I think) You are not allowed to
expect any special order of your entries unless you specificly declare
an order with an ORDER BY clause in your query. They may appear to
stay in some order as you add entries, but try deleting a few, then
adding some more. They don't stay in order.
Now on to your question...
If it is in MySQL, why not use a MySQL function?
From section 7.3.11, Date and time functions of the MySQL manual:
--------------------------------------------------------------
ADDDATE(date,INTERVAL expr type)
SUBDATE(date,INTERVAL expr type)
These functions perform date arithmetic. They are new for MySQL
3.22. ADDDATE() and SUBDATE() are synonyms for DATE_ADD() and
DATE_SUB(). date is a DATETIME or DATE value specifying the
starting date. expr is an expression specifying the interval
value to be added or substracted from the starting date. expr
is a string; it may start with a `-' for negative intervals.
type is a keyword indicating how the expression should be
interpreted.
The following table shows how the type and expr arguments are
related:
type value Meaning
Expected expr format
SECOND Seconds
SECONDS
MINUTE
Minutes
MINUTES
HOUR
Hours
HOURS
DAY
Days
DAYS
MONTH
Months
MONTHS
YEAR
Years
YEARS
MINUTE_SECOND
Minutes and seconds
"MINUTES:SECONDS"
HOUR_MINUTE
Hours and minutes
"HOURS:MINUTES"
DAY_HOUR
Days and hours
"DAYS HOURS"
YEAR_MONTH
Years and months
"YEARS-MONTHS"
HOUR_SECOND
Hours, minutes,
"HOURS:MINUTES:SECONDS"
DAY_MINUTE
Days, hours, minutes
"DAYS HOURS:MINUTES"
DAY_SECOND
Days, hours, minutes, seconds
"DAYS HOURS:MINUTES:SECONDS"
MySQL allows any non-numeric delimiter in the expr format.
The ones shown in the table are the suggested delimiters. If the
date argument is a DATE value and your calculations involve
only YEAR, MONTH and DAY parts (that is, no time parts), the
result is a DATE value. Otherwise the result is a DATETIME value.
mysql> select DATE_ADD("1997-12-31 23:59:59",
INTERVAL 1 SECOND);
-> 1998-01-01 00:00:00
mysql> select DATE_ADD("1997-12-31 23:59:59",
INTERVAL 1 DAY);
-> 1998-01-01 23:59:59
mysql> select DATE_ADD("1997-12-31 23:59:59",
INTERVAL "1:1" MINUTE_SECOND);
-> 1998-01-01 00:01:00
mysql> select DATE_SUB("1998-01-01 00:00:00",
INTERVAL "1 1:1:1" DAY_SECOND);
-> 1997-12-30 22:58:59
mysql> select DATE_ADD("1998-01-01 00:00:00",
INTERVAL "-1 10" DAY_HOUR);
-> 1997-12-30 14:00:00
mysql> select DATE_SUB("1998-01-02", INTERVAL 31 DAY);
-> 1997-12-02
If you specify an interval value that is too short (does not
include all the interval parts that would be expected from the
type keyword), MySQL assumes you have left out the leftmost parts
of the interval value. For example, if you specify a type of
DAY_SECOND, the value of expr is expected to have days, hours,
minutes and seconds parts. If you specify a value like "1:10",
MySQL assumes that the days and hours parts are missing and the
value represents minutes and seconds. In other words, "1:10"
DAY_SECOND is interpreted in such a way that it is equivalent
to "1:10" MINUTE_SECOND. This is analogous to the way that
MySQL interprets TIME values as representing elapsed time rather
than as time of day. If you use incorrect dates, the result is
NULL. If you add MONTH, YEAR_MONTH or YEAR and the resulting
date has a day that is larger than the maximum day for the new
month, the day is adjusted to the maximum days in the new
month.
mysql> select DATE_ADD('1998-01-30', Interval 1 month);
-> 1998-02-28
Note from the preceding example that the word INTERVAL and the type keyword are not
case sensitive.
--------------------------------------------------------------
and
--------------------------------------------------------------
NOW()
Returns the current date and time as a value in 'YYYY-MM-DD
HH:MM:SS' or YYYYMMDDHHMMSS format, depending on whether the
function is used in a string or numeric context.
mysql> select NOW();
-> '1997-12-15 23:50:26'
mysql> select NOW() + 0;
-> 19971215235026
--------------------------------------------------------------
Which might be combined as:
SELECT Whatever
FROM Wherever
WHILE Date > DATE_SUB( NOW(), INTERVAL 7 DAYS );
Remember, the manual is your friend! There is an amazing amount of
information in the MySQL manual. So much you may want to skip most of
it. Chapters 6 and 7 are not things you should skip...
You can find an online copy of the manual at:
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com
attached mail follows:
I get the same error if I leave out the ] in an array.
Ted Knudson
http://www.automatedcabinets.com
http://www.pulsarusa.com
> -----Original Message-----
> From: Adam Powell [mailto:adam
powlex.com]
> Sent: Thursday, June 15, 2000 1:42 PM
> To: php3
lists.php.net
> Subject: bug?
>
>
>
> Im getting the following message at the top of my PHP files on
> occasions...
>
> Warning: Missing ] in ________(objStr_indexOf('document_all variable in
> Unknown on line 0
>
> Does anybody know why this could be happening? Im using PHPv4.0.0
>
> Thanks,
> ADam
>
>
attached mail follows:
>I implemented some code yesterday to email things to someone. It appears to
>send messages just fine to yahoo or hotmail accounts, but won't mail to
>some other accounts (such as my edu account). The code:
I have had the same problem with one of my scripts. I know the e-mails are
ok because these are email addresses I send to all the time.
Ted Knudson
http://www.automatedcabinets.com
http://www.pulsarusa.com
attached mail follows:
Sorry this is a little off topic, but, i just cant answer this question
myself.
Im running mod_auth_mysql, and i just added another user record to my table,
and it will now not authenticate passwords., anyone seen this before?
attached mail follows:
hm... did you reload the grant table in mysqld?
On Wed, 16 Feb 2000, David A. Snodgrass wrote:
> Sorry this is a little off topic, but, i just cant answer this question
> myself.
>
> Im running mod_auth_mysql, and i just added another user record to my table,
> and it will now not authenticate passwords., anyone seen this before?
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi all!
I have three questions:
1. I¨d like to be able to click a link, and instead of opening the file
in the browser, to be able to download it. How can this be done?
2. I write an IF like this:
IF(condition)
{ this thing }
elseif(condition 2)
{ this thing }
else(condition 3)
{ the other thing }
But I bet my mums socks it can be done otherwise.. How about something like
IF(condition) OR (condition 2)
{ this thing }
else(condition 3)
{ the other thing }
how would I accomplish that?
3. I would like to read the contents of a text file on a remote server
and compare to a value. This is to check to see if there is any update of my
program. Lets say I have a file called www.someserver.com/updates.txt
containing only the digit 2.1 .. I would like the script to compare 2.1 with
the current version and to echo UPDATE AVAILABLE if the number is greater.
Ive tried with
// get contents of a file into a string
$filename = "/usr/local/something.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
as mentioned in the online manual, but I only succeed in opening a local
file.. And how can i compare a number with a decimal?
I thank you all for your time.
regards,
Sune Alexandersen
--------------------
Company site: http://www.drs.no
Private site: http://www.suneworld.com
Wap site: http://tagtag.com/suneworld
Download WebExplorer today and manage your PHP
enabled website in your webbrowser! Its free!
http://www.suneworld.com/programs
(over 1.000 downloads since release)
attached mail follows:
I wanted to know, on each new user accessing a php page, what is
created on the server? :
1) a object,
2) a thread,
3) a process
Learning something about this will give me a clearer picture of php
Mandar
attached mail follows:
I can’t format double.
I have InterBase database and table in it:
CREATE TABLE TABLE1 (NPP INTEGER NOT NULL,
…
FIELD1 DOUBLE PRECISION,
FIELD2 DOUBLE PRECISION,
…
PRIMARY KEY (NPP));
In my xxx.php:
…
$db = odbc_connect("MyDSN", "MyNAME", "MyPW", SQL_CUR_USE_ODBC);
$stmt = "SELECT * FROM TABLE1 ORDER BY NPP";
$rs = odbc_exec($db, $stmt);
$fr = odbc_fetch_row($rs, 1);
print odbc_result($rs, "FIELD1");
// I have: 64050.2800000002
print (double)odbc_result($rs, "FIELD1");
// I have: 64050
printf("%01.2f", odbc_result($rs, "FIELD1"));
// I have: 64050.00
What is the problem here?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
attached mail follows:
================== Removal Information =========================
This message is sent in compliance of the new email bill section 301. Per
Section 301, Paragraph (a)(2)(C) of S. 1618, further transmissions to you
by the sender of this email will be stopped at no cost to you. This message
is not intended for residents in the State of WA, NV, CA & VA. Screening of
addresses has been done to the best of our technical ability. If you are a
Washington, Virginia,or California resident please remove yourself. We
respect all removal requests. To Be Removed:
mailto:intermark
mail.com?subject=remove. If you are sure you DID NOT
"opt-in", meaning -at some time- signed up to receive health and/or sexual
health related information, please send removal request. In any case, this
is a one-time offer, so you will not hear from us again.
=================================================================
This is for adult men only !!!
****************** If you did not 'opt-in', please delete now! ***
****************** IF YOU ARE NOT AN ADULT, DELETE NOW !! ********
We are a serious company, offering a program that will enhance your sex
life, and enlarge your penis in a totally natural way.
We realize many men -and their women- are unhappy with their penis size. The
truth is that size matters, not only it affects many men's performance,
but their self-esteem as well.
Penis enlargement is POSSIBLE; just as you can exercise almost any part of
your body, you CAN exercise your penis.
Our program is totally PROVEN and GUARANTEED !!!
Our company has the techniques! Totally NATURAL techniques; no gadgets, no
pumps, no surgery!
If you want more information, please send an email with 'more info'in the
subject to: larger
mundomail.net. This is an automated answer, for removal
use intermark
mail.com.
If the above link has been removed, just reply to this message or send a new
message to enlarge
polbox.com with 'more info' on the subject line.
This IS NOT UNSOLICITED; you appear in an opt-in list, if in error, please
remove yourself. Please let those who suffer from sexual disfunction,
other ailments or small penis size receive this information!
attached mail follows:
Wow! They sent this to the PHP List? What do they think PHP means? Penis
Higher Penis? :-))
> This is for adult men only !!!
Oh, really?
> ****************** IF YOU ARE NOT AN ADULT, DELETE NOW !! ********
Oh...
> We are a serious company, offering a program that will enhance your sex
> life, and enlarge your penis in a totally natural way.
> Penis enlargement is POSSIBLE; just as you can exercise almost any part of
> your body, you CAN exercise your penis.
> Our program is totally PROVEN and GUARANTEED !!!
^^^^^^^
<?
// My Program...
Function PenisToBigger($yourPenis)
{
Exercise($yourPenis);
Feed($yourPenis);
$bigger = DoItWith($yourPenis);
Return $bigger;
}
$myPenis = PenisToBigger($myPenis);
?>
Sorry if you might be offended with this type of joke. I just couldn't
resist...
ROFL!
8-))
-- Leonardo Dias Analista Programador / Analyst Programmer Catho Online http://www.catho.com.br
attached mail follows:
lmao
post it on code exchange :)
Cheerz
----- Original Message -----
From: "Leonardo Dias" <madleo
catho.com.br>
To: <php3
lists.php.net>; "Ricardo Ribeiro" <rick
catho.com.br>; "Adriano
Meirinho" <meirinho
catho.com.br>; <thiagomm
catho.com.br>
Sent: Friday, June 16, 2000 6:10 PM
Subject: Re: [PHP3] ADV. Penis enlargement without surgery!
> Wow! They sent this to the PHP List? What do they think PHP means? Penis
> Higher Penis? :-))
>
>
> > This is for adult men only !!!
>
> Oh, really?
>
> > ****************** IF YOU ARE NOT AN ADULT, DELETE NOW !! ********
>
> Oh...
>
> > We are a serious company, offering a program that will enhance your sex
> > life, and enlarge your penis in a totally natural way.
>
> > Penis enlargement is POSSIBLE; just as you can exercise almost any part
of
> > your body, you CAN exercise your penis.
>
> > Our program is totally PROVEN and GUARANTEED !!!
> ^^^^^^^
>
> <?
> // My Program...
> Function PenisToBigger($yourPenis)
> {
> Exercise($yourPenis);
> Feed($yourPenis);
> $bigger = DoItWith($yourPenis);
> Return $bigger;
> }
>
> $myPenis = PenisToBigger($myPenis);
>
> ?>
>
> Sorry if you might be offended with this type of joke. I just couldn't
> resist...
>
> ROFL!
> 8-))
>
> --
> Leonardo Dias
> Analista Programador / Analyst Programmer
> Catho Online
> http://www.catho.com.br
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Looks like they used the "Automatic Email Extractor" from http://www.elcomsoft.com/aee.html I say we get a copy and run it on their site. Then we could "opt-in" them to our "Mailbox enlargement without calling it spam". Who's with me? ;) Too bad we cannot trace teh actual sender with certainty.
Gregory Wilson www.drakos7.net
attached mail follows:
Produce a Harder Penis
-----Original Message-----
From: Leonardo Dias [mailto:madleo
catho.com.br]
Sent: 16 June 2000 13:41
To: php3
lists.php.net; Ricardo Ribeiro; Adriano Meirinho;
thiagomm
catho.com.br
Subject: Re: [PHP3] ADV. Penis enlargement without surgery!
Wow! They sent this to the PHP List? What do they think PHP means? Penis Higher Penis? :-))
> This is for adult men only !!!
Oh, really?
> ****************** IF YOU ARE NOT AN ADULT, DELETE NOW !! ********
Oh...
> We are a serious company, offering a program that will enhance your sex > life, and enlarge your penis in a totally natural way.
> Penis enlargement is POSSIBLE; just as you can exercise almost any part of > your body, you CAN exercise your penis.
> Our program is totally PROVEN and GUARANTEED !!! ^^^^^^^
<? // My Program... Function PenisToBigger($yourPenis) { Exercise($yourPenis); Feed($yourPenis); $bigger = DoItWith($yourPenis); Return $bigger; }
$myPenis = PenisToBigger($myPenis);
?>
Sorry if you might be offended with this type of joke. I just couldn't resist...
ROFL! 8-))
-- Leonardo Dias Analista Programador / Analyst Programmer Catho Online http://www.catho.com.br-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
hahahahhahaha
Started my day off with a dribble of coffe down my chin!
Gee thanks!
Doh! got some in my keyboard too.
Thanks for the laugh leo :)
- dave
----- Original Message -----
From: "Leonardo Dias" <madleo
catho.com.br>
To: <php3
lists.php.net>; "Ricardo Ribeiro" <rick
catho.com.br>; "Adriano
Meirinho" <meirinho
catho.com.br>; <thiagomm
catho.com.br>
Sent: Friday, June 16, 2000 4:40 AM
Subject: Re: [PHP3] ADV. Penis enlargement without surgery!
> Wow! They sent this to the PHP List? What do they think PHP means? Penis
> Higher Penis? :-))
>
>
> > This is for adult men only !!!
>
> Oh, really?
>
> > ****************** IF YOU ARE NOT AN ADULT, DELETE NOW !! ********
>
> Oh...
>
> > We are a serious company, offering a program that will enhance your sex
> > life, and enlarge your penis in a totally natural way.
>
> > Penis enlargement is POSSIBLE; just as you can exercise almost any part
of
> > your body, you CAN exercise your penis.
>
> > Our program is totally PROVEN and GUARANTEED !!!
> ^^^^^^^
>
> <?
> // My Program...
> Function PenisToBigger($yourPenis)
> {
> Exercise($yourPenis);
> Feed($yourPenis);
> $bigger = DoItWith($yourPenis);
> Return $bigger;
> }
>
> $myPenis = PenisToBigger($myPenis);
>
> ?>
>
> Sorry if you might be offended with this type of joke. I just couldn't
> resist...
>
> ROFL!
> 8-))
>
> --
> Leonardo Dias
> Analista Programador / Analyst Programmer
> Catho Online
> http://www.catho.com.br
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I found it interesting that on 6/16/00 9:29 AM Gregory Drake Wilson said:
> Looks like they used the "Automatic Email Extractor" from > http://www.elcomsoft.com/aee.html I say we get a copy and run it on their > site. Then we could "opt-in" them to our "Mailbox enlargement without > calling it spam". Who's with me? ;) Too bad we cannot trace teh actual > sender with certainty.
Well, spamcop.net came up with this (sorry for the long post):
------------------------------------------------------- SpamCop version 1.2.6 (c) Julian Haight, Joel Martin 1998, 1999, 2000 All Rights Reserved
Parsing header:
Received: from toye.php.net [198.186.203.33] by neweve.com (SMTPD32-6.03) id ACBA10400128; Fri, 16 Jun 2000 06:08:58 -0400 Possible spammer: 198.186.203.33 "nslookup 33.203.186.198.dul.maps.vix.com." (checking ip) [show] not found "nslookup toye.php.net" (checking ip) [show] ip = 198.186.203.51 "nslookup toye.php.net" (checking ip) [show] toye.php.net not 198.186.203.33, discarded as fake. "nslookup 33.203.186.198.rbl.maps.vix.com." (checking ip) [show] not found "nslookup 33.203.186.198.inputs.orbs.org." (checking ip) [show] not found "nslookup 33.203.186.198.dul.maps.vix.com." (checking ip) [show] not found 198.186.203.33 has already been sent to ORBS Received line accepted
Received: (qmail 18663 invoked by uid 1013); 16 Jun 2000 10:04:16 -0000 no ip found in received line Ignored
Received: (qmail 18656 invoked from network); 16 Jun 2000 10:04:13 -0000 no ip found in received line Ignored
Tracking ip 198.186.203.33:
Using cached/interpolated data to assume 198.186.203.33 =
postmaster
sourceforge.net, postmaster
valinux.com [show]
Statistics:
ISP (postmaster
sourceforge.net, postmaster
valinux.com) score:0
IP (198.186.203.33) score:0
Found email address:php-list-admin
lists.php.net
"whois lists.php.net
whois.abuse.net" (checking abuse.net database) [show]
nothing useful.
"nslookup lists.php.net" (checking ip) [show] ip not found; lists.php.net
discarded as fake.
"dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
mailserver:toye.php.net. = 198.186.203.51
"dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
mailserver:toye.php.net. = 198.186.203.51
Tracking ip 198.186.203.51:
Using cached/interpolated data to assume 198.186.203.51 =
postmaster
valinux.com [show]
Found email address:intermark
mail.com
"whois mail.com
whois.abuse.net" (checking abuse.net database) [show]
abuse.net recommends: abuse
mail.com
"nslookup mail.com" (checking ip) [show] ip = 165.251.32.210
abuse.net shortcut:abuse
mail.com
Found email address:larger
mundomail.net
"whois mundomail.net
whois.abuse.net" (checking abuse.net database) [show]
abuse.net recommends:
nmagcatalunya
compuconn.com
"nslookup mundomail.net" (checking ip) [show] ip not found; mundomail.net
discarded as fake.
"dig mundomail.net mx" (digging for Mail eXchanger) [show] Found
mailserver:mail.mundomail.net. = 206.63.243.211
abuse.net shortcut:nmagcatalunya
compuconn.com
Found email address:php3-unsubscribe
lists.php.net
"whois lists.php.net
whois.abuse.net" (checking abuse.net database) [show]
nothing useful.
"nslookup lists.php.net" (checking ip) [show] ip not found; lists.php.net
discarded as fake.
"dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
mailserver:toye.php.net. = 198.186.203.51
"dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
mailserver:toye.php.net. = 198.186.203.51
Tracking ip 198.186.203.51:
Using cached/interpolated data to assume 198.186.203.51 =
postmaster
valinux.com [show]
Found link:http://www.php.net/mailsearch.php3
"whois www.php.net
whois.abuse.net" (checking abuse.net database) [show]
nothing useful.
"nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
"nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
Tracking ip 216.167.37.56:
Using cached/interpolated data to assume 216.167.37.56 = abuse
dn.net [show]
Found email address:enlarge
polbox.com
"whois polbox.com
whois.abuse.net" (checking abuse.net database) [show]
abuse.net recommends: abuse
polbox.com,
postmaster
polbox.com
"nslookup polbox.com" (checking ip) [show] ip = 212.244.200.10
abuse.net shortcut:postmaster
polbox.com, abuse
polbox.com
Found email address:intermark
mail.com
"whois mail.com
whois.abuse.net" (checking abuse.net database) [show]
abuse.net recommends: abuse
mail.com
"nslookup mail.com" (checking ip) [show] ip = 165.251.32.210
abuse.net shortcut:abuse
mail.com
Found email address:php3-digest-subscribe
lists.php.net
"whois lists.php.net
whois.abuse.net" (checking abuse.net database) [show]
nothing useful.
"nslookup lists.php.net" (checking ip) [show] ip not found; lists.php.net
discarded as fake.
"dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
mailserver:toye.php.net. = 198.186.203.51
"dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
mailserver:toye.php.net. = 198.186.203.51
Tracking ip 198.186.203.51:
Using cached/interpolated data to assume 198.186.203.51 =
postmaster
valinux.com [show]
Found link:http://www.php.net/
"whois www.php.net
whois.abuse.net" (checking abuse.net database) [show]
nothing useful.
"nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
"nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
Tracking ip 216.167.37.56:
Using cached/interpolated data to assume 216.167.37.56 = abuse
dn.net [show]
Finished (0 seconds). Tracking URL - may be saved for future reference:http://spamcop.net/sc?id=7595872&crc=99408 Please make sure this email IS spam: ================== Removal Information ========================= This message is sent in compliance of the new email bill section 301. Per View full message
Options to Report Spam to:
Source of email postmaster
sourceforge.net, postmaster
valinux.com
enlarge
polbox.com - Email host postmaster
polbox.com, abuse
polbox.com
larger
mundomail.net - Email host nmagcatalunya
compuconn.com
intermark
mail.com - Email host abuse
mail.com
-------------------------------------------------------
I sent one off.
--Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
attached mail follows:
What does that mean? You traced it all the way to www.php.net?
Zeev
On Fri, 16 Jun 2000, Thomas Deliduka wrote:
> I found it interesting that on 6/16/00 9:29 AM Gregory Drake Wilson said:
>
> > Looks like they used the "Automatic Email Extractor" from
> > http://www.elcomsoft.com/aee.html I say we get a copy and run it on their
> > site. Then we could "opt-in" them to our "Mailbox enlargement without
> > calling it spam". Who's with me? ;) Too bad we cannot trace teh actual
> > sender with certainty.
>
> Well, spamcop.net came up with this (sorry for the long post):
>
> -------------------------------------------------------
> SpamCop version 1.2.6 (c) Julian Haight, Joel Martin 1998, 1999, 2000 All
> Rights Reserved
>
> Parsing header:
>
> Received: from toye.php.net [198.186.203.33] by neweve.com (SMTPD32-6.03) id
> ACBA10400128; Fri, 16 Jun
> 2000 06:08:58 -0400
> Possible spammer: 198.186.203.33
> "nslookup 33.203.186.198.dul.maps.vix.com." (checking ip) [show] not found
> "nslookup toye.php.net" (checking ip) [show] ip = 198.186.203.51
> "nslookup toye.php.net" (checking ip) [show] toye.php.net not
> 198.186.203.33, discarded as fake.
> "nslookup 33.203.186.198.rbl.maps.vix.com." (checking ip) [show] not found
> "nslookup 33.203.186.198.inputs.orbs.org." (checking ip) [show] not found
> "nslookup 33.203.186.198.dul.maps.vix.com." (checking ip) [show] not found
> 198.186.203.33 has already been sent to ORBS
> Received line accepted
>
> Received: (qmail 18663 invoked by uid 1013); 16 Jun 2000 10:04:16 -0000
> no ip found in received line
> Ignored
>
> Received: (qmail 18656 invoked from network); 16 Jun 2000 10:04:13 -0000
> no ip found in received line
> Ignored
>
> Tracking ip 198.186.203.33:
> Using cached/interpolated data to assume 198.186.203.33 =
> postmaster
sourceforge.net, postmaster
valinux.com [show]
>
> Statistics:
> ISP (postmaster
sourceforge.net, postmaster
valinux.com) score:0
> IP (198.186.203.33) score:0
>
> Found email address:php-list-admin
lists.php.net
> "whois lists.php.net
whois.abuse.net" (checking abuse.net database) [show]
> nothing useful.
> "nslookup lists.php.net" (checking ip) [show] ip not found; lists.php.net
> discarded as fake.
> "dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
> mailserver:toye.php.net. = 198.186.203.51
> "dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
> mailserver:toye.php.net. = 198.186.203.51
>
> Tracking ip 198.186.203.51:
> Using cached/interpolated data to assume 198.186.203.51 =
> postmaster
valinux.com [show]
>
> Found email address:intermark
mail.com
> "whois mail.com
whois.abuse.net" (checking abuse.net database) [show]
> abuse.net recommends: abuse
mail.com
> "nslookup mail.com" (checking ip) [show] ip = 165.251.32.210
> abuse.net shortcut:abuse
mail.com
>
> Found email address:larger
mundomail.net
> "whois mundomail.net
whois.abuse.net" (checking abuse.net database) [show]
> abuse.net recommends:
> nmagcatalunya
compuconn.com
> "nslookup mundomail.net" (checking ip) [show] ip not found; mundomail.net
> discarded as fake.
> "dig mundomail.net mx" (digging for Mail eXchanger) [show] Found
> mailserver:mail.mundomail.net. = 206.63.243.211
> abuse.net shortcut:nmagcatalunya
compuconn.com
>
> Found email address:php3-unsubscribe
lists.php.net
> "whois lists.php.net
whois.abuse.net" (checking abuse.net database) [show]
> nothing useful.
> "nslookup lists.php.net" (checking ip) [show] ip not found; lists.php.net
> discarded as fake.
> "dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
> mailserver:toye.php.net. = 198.186.203.51
> "dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
> mailserver:toye.php.net. = 198.186.203.51
>
> Tracking ip 198.186.203.51:
> Using cached/interpolated data to assume 198.186.203.51 =
> postmaster
valinux.com [show]
>
> Found link:http://www.php.net/mailsearch.php3
> "whois www.php.net
whois.abuse.net" (checking abuse.net database) [show]
> nothing useful.
> "nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
> "nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
>
> Tracking ip 216.167.37.56:
> Using cached/interpolated data to assume 216.167.37.56 = abuse
dn.net [show]
>
> Found email address:enlarge
polbox.com
> "whois polbox.com
whois.abuse.net" (checking abuse.net database) [show]
> abuse.net recommends: abuse
polbox.com,
> postmaster
polbox.com
> "nslookup polbox.com" (checking ip) [show] ip = 212.244.200.10
> abuse.net shortcut:postmaster
polbox.com, abuse
polbox.com
>
> Found email address:intermark
mail.com
> "whois mail.com
whois.abuse.net" (checking abuse.net database) [show]
> abuse.net recommends: abuse
mail.com
> "nslookup mail.com" (checking ip) [show] ip = 165.251.32.210
> abuse.net shortcut:abuse
mail.com
>
> Found email address:php3-digest-subscribe
lists.php.net
> "whois lists.php.net
whois.abuse.net" (checking abuse.net database) [show]
> nothing useful.
> "nslookup lists.php.net" (checking ip) [show] ip not found; lists.php.net
> discarded as fake.
> "dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
> mailserver:toye.php.net. = 198.186.203.51
> "dig lists.php.net mx" (digging for Mail eXchanger) [show] Found
> mailserver:toye.php.net. = 198.186.203.51
>
> Tracking ip 198.186.203.51:
> Using cached/interpolated data to assume 198.186.203.51 =
> postmaster
valinux.com [show]
>
> Found link:http://www.php.net/
> "whois www.php.net
whois.abuse.net" (checking abuse.net database) [show]
> nothing useful.
> "nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
> "nslookup www.php.net" (checking ip) [show] ip = 216.167.37.56
>
> Tracking ip 216.167.37.56:
> Using cached/interpolated data to assume 216.167.37.56 = abuse
dn.net [show]
>
> Finished (0 seconds).
> Tracking URL - may be saved for future
> reference:http://spamcop.net/sc?id=7595872&crc=99408
> Please make sure this email IS spam:
> ================== Removal Information =========================
> This message is sent in compliance of the new email bill section 301. Per
> View full message
>
> Options to Report Spam to:
> Source of email postmaster
sourceforge.net, postmaster
valinux.com
> enlarge
polbox.com - Email host postmaster
polbox.com, abuse
polbox.com
> larger
mundomail.net - Email host nmagcatalunya
compuconn.com
> intermark
mail.com - Email host abuse
mail.com
> -------------------------------------------------------
>
> I sent one off.
>
-- Zeev Suraski <zeevzend.com> http://www.zend.com/
attached mail follows:
Hi It seems that I ve already tried every stuff... This is my problem for example at the top of index.php
seccookie("test","test", time() + 3600);
at another page (the pages must be linked by forms?)
echo $test;
and nothing appears, I have even tried to use $HTTP_blahbla..._COOKIE["test"]
Another thing, did anyone could install PHP 4.00 in Win2k professional as a ISAPI module?
Thanks Paulo
----------------------------------------- Paulo Eduardo Azevedo Silveira -----------------------------------------
attached mail follows:
> Hi > It seems that I ve already tried every stuff... > This is my problem > for example > at the top of index.php > seccookie("test","test", time() + 3600);
You didn't set the location to save the cookie here. It doesn't work, then. Test your script telnetting to the port 80 of your server and doing a
HEAD / HTTP/1.0\n\n
Read the headers. If the setcookie header appears, you might see what's wrong with it.
-- Leonardo Dias Analista Programador / Analyst Programmer Catho Online http://www.catho.com.br
attached mail follows:
Hi!
Is there anywhere good ereg tutorial which has all possibility of ereg-funtion? I know that PHP.Net has some, but not much. Can somebody tell me address?
T. Masa
attached mail follows:
Trio wrote:
> Is there anywhere good ereg tutorial which has all possibility of > ereg-funtion? I know that PHP.Net has some, but not much. Can somebody tell > me address?
http://www.phpbuilder.com has a very clear tute... although ereg's are the most complex thing i've ever tried to get my head around, so who knows HOW complete it is.
I'd also go through the perl 5.x manuals, because (unlike the php manual) the perl docs have detailed explanations of EVERYTHING...
I'd start with the phpbuilder article.
Justin French
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Jun 14, 2000 at 01:51:41AM -0500, Ted Knudson wrote: > It will not work for Indiana because parts of the state go on daylight > savings time and some parts do not. > Also Arizona and Hawaii do not go on daylight savings time.
For the 400th time, yes it will. If you live in Illinois, you are listed as CT, and my system will switch you between CST and CDT. If you live in parts of Indiana that aren't using DST, you list the time zone as CST, in which case it _won't_ change.
- --
Whoever put the '.' next to the '/' Jack McKinney
on a keyboard obviously never used jackmc
lorentz.com
the -R option to /bin/chown http://www.lorentz.com
F4 A0 65 67 58 77 AF 9B FC B3 C5 6B 55 36 94 A6
-----BEGIN PGP SIGNATURE----- Version: 2.6.2
iQCVAwUBOUoYZ0Zx0BGJTwrZAQFaCQP7BsCAiBWsqzq8bKYfO42kWM0gXEdjTIpl 88u3WZtBqXTNljfukVnNu08Ed0HwZILH0ocf7q5IIF6bdUGBR/aKwdjwGnJbSYAF oFCkp+2wrY6B4fyJAezxsyESlSmTQkmkzdOiOYlHnLJiR69ACey0dsmDNyrnba3d k1HKJdKaXtk= =4QTA -----END PGP SIGNATURE-----
attached mail follows:
On Thu, 15 Jun 2000, Wico de Leeuw wrote:
> Hiya > > I submitted bug 4932 > http://bugs.php.net/version4/bugs.php?id=4932 > > i think it is a clear report (maybe i'm wrong) > but i have some scripts that depend on mcrypt and i would be glad if this > but was fixed > if i knew c i would fix it for you guys and a couple of others to :) > but i don't :( > > So i'am asking you guys to take a (another?) look a the bug > or maybe someone else on the list can fix it and send a diff
There are a couple of NUL bytes at the end of $decrypt. It is not a bug, you just need to strip the string appropiately.
- Sascha
attached mail follows:
Quickie:
Can the username entered in an .htaccess check be passed as a value to be used on subsequent php pages?
Thank you,
Derek Bruce
dbruce
browsehere.com
attached mail follows:
This value is automatically captured in the environmental variable, $REMOTE_USER.
----- Original Message -----
From: Derek <dbruce
browsehere.com>
To: <php3
lists.php.net>
Sent: Friday, June 16, 2000 8:09 AM
Subject: [PHP3] Access
> Quickie:
>
> Can the username entered in an .htaccess check be passed as a value to be
> used on subsequent php pages?
>
> Thank you,
> Derek Bruce
> dbruce
browsehere.com
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
When working with the postgress databse tools I get and error.
Warning: This compilation does not support pg_cmdtuples() in db_pgsql.inc on line 122
What can I do to fix this??
attached mail follows:
We have made a script using mail() function that sends an automated response to anyone who uses our response form at our site.
However, when the person recieves our response, "Nobody" appears in the 'Sender' coloumn. Can we change that?
Regards, T. Edison jr.
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : abraxastech
yahoo.com
Tel : 91-4546512/4522124
*******************************************
__________________________________________________ Do You Yahoo!? Send instant messages with Yahoo! Messenger. http://im.yahoo.com/
attached mail follows:
Hi Thomas,
> However, when the person recieves our response, > "Nobody" appears in the 'Sender' coloumn. Can we > change that?
Use the optional "header" argument to the mail() function. Here's an example taken from one of my scripts:
mail($email, $headline, $text, "From: " . $user_fields['email'] );
attached mail follows:
Hi Thomas,
Open your php.ini file and edit the following line:
sendmail_from = Put your info here ;for win32 only
For example: sendmail_from = Webmaster ;for win32 only or sendmail_from = System Administrator ;for win32 only or sendmail_from = John Doe ;for win32 only
This just adjusts what a mail message displays as the "From" header, BY DEFAULT. However, this default can be overridden in the mail() function by adding a "From:blahblahblah" in the additional headers parameter. It is best to enter a default into the php.ini file, and then adjust it accordingingly in the mail function as needed. Also, that is not to be confused with the "Reply-to:" option for the additional headers parameter of the mail function. Email me if you have any questions.
Cheers! -zack
>--------------------------------------- >We have made a script using mail() function that sends >an automated response to anyone who uses our response >form at our site. > >However, when the person recieves our response, >"Nobody" appears in the `Sender` coloumn. Can we >change that?
>Regards, >T. Edison jr.
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : abraxastech
yahoo.com
Tel : 91-4546512/4522124
*******************************************
__________________________________________________ Do You Yahoo!? Send instant messages with Yahoo! Messenger. http://im.yahoo.com/
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi Everybody!
Is anybody who know a programming language like PHP which run on AS/400?
Thanks,
Fonyi Tamás
fota
sopronbutor.hu
attached mail follows:
Is this possible?
/Joakim
attached mail follows:
Only if gd-support for php was compiled as a php loadable module.
Sam
-----Original Message-----
From: Bomelin, Joakim
To: 'php3
lists.php.net'
Sent: 16/06/00 15:00
Subject: [PHP3] Upgrading GD w/o recompiling PHP
Is this possible?
/Joakim
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I built GD before PHP, and PHP found it and compiled with support for it I guess... I didn't do something special, just make in the GD-directory, the make PHP with Apache...
> -----Original Message-----
> From: Sam Liddicott [mailto:sam.liddicott
ananova.com]
> Sent: den 16 juni 2000 16:07
> To: 'Bomelin, Joakim '; ''php3
lists.php.net' '
> Subject: RE: [PHP3] Upgrading GD w/o recompiling PHP
>
>
>
> Only if gd-support for php was compiled as a php loadable module.
>
> Sam
>
> -----Original Message-----
> From: Bomelin, Joakim
> To: 'php3
lists.php.net'
> Sent: 16/06/00 15:00
> Subject: [PHP3] Upgrading GD w/o recompiling PHP
>
> Is this possible?
>
> /Joakim
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
attached mail follows:
But when compiling php did you make the gd support loadable? (Not the same as a gd shared library)?
I guess you did not. But as long as your php is apache loadable you can recompile php, and re-start apache withouy recompiling apache.
Sam
-----Original Message-----
From: Bomelin, Joakim
To: ''php3
lists.php.net' '
Sent: 16/06/00 15:12
Subject: RE: [PHP3] Upgrading GD w/o recompiling PHP
I built GD before PHP, and PHP found it and compiled with support for it I guess... I didn't do something special, just make in the GD-directory, the make PHP with Apache...
> -----Original Message-----
> From: Sam Liddicott [mailto:sam.liddicott
ananova.com]
> Sent: den 16 juni 2000 16:07
> To: 'Bomelin, Joakim '; ''php3
lists.php.net' '
> Subject: RE: [PHP3] Upgrading GD w/o recompiling PHP
>
>
>
> Only if gd-support for php was compiled as a php loadable module.
>
> Sam
>
> -----Original Message-----
> From: Bomelin, Joakim
> To: 'php3
lists.php.net'
> Sent: 16/06/00 15:00
> Subject: [PHP3] Upgrading GD w/o recompiling PHP
>
> Is this possible?
>
> /Joakim
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> But as long as your php is apache loadable you can recompile php, and > re-start apache withouy recompiling apache. >
Too bad I compiled it into Apache =)
/Joakim
attached mail follows:
I have a question regarding split(),explode() in php3.
in perl you can take a "slice" of the output of split(), and store it in a scaler, like so:
$foo="try:this:out"; $bar=(split(/:/,$foo))[1];
$bar now has "this" in it.
Can you do this in php3?
-----------------------------------------------------
Brian Feeny (BF304) signal
shreve.net
318-222-2638 x 109 http://www.shreve.net/~signal
Network Administrator ShreveNet Inc. (ASN 11881)
attached mail follows:
You split() out to an array.
So technically you could do:
$foo = "try:this:out"; $bar = split(":", $foo);
and then $bar[1] would have this
HTH
Tom Walsh
> -----Original Message-----
> From: Brian [mailto:signal
shreve.net]
> Sent: Friday, June 16, 2000 10:09 AM
> To: php3 list
> Subject: [PHP3] can you split() like in perl?
>
>
>
> I have a question regarding split(),explode() in php3.
>
> in perl you can take a "slice" of the output of split(), and
> store it in a
> scaler, like so:
>
> $foo="try:this:out";
> $bar=(split(/:/,$foo))[1];
>
> $bar now has "this" in it.
>
> Can you do this in php3?
> -----------------------------------------------------
> Brian Feeny (BF304) signal
shreve.net
> 318-222-2638 x 109 http://www.shreve.net/~signal
> Network Administrator ShreveNet Inc. (ASN 11881)
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
attached mail follows:
On Fri, 16 Jun 2000, Tom Walsh wrote:
> You split() out to an array. > > So technically you could do: > > $foo = "try:this:out"; > $bar = split(":", $foo); >
right, thats what I am doing now. Perl, splits out into an array also, but it allows you to "slice" it before it gets stored, I didn't know if php allowed you to do that or not.
> and then $bar[1] would have this
>
> HTH
>
> Tom Walsh
>
> > -----Original Message-----
> > From: Brian [mailto:signal
shreve.net]
> > Sent: Friday, June 16, 2000 10:09 AM
> > To: php3 list
> > Subject: [PHP3] can you split() like in perl?
> >
> >
> >
> > I have a question regarding split(),explode() in php3.
> >
> > in perl you can take a "slice" of the output of split(), and
> > store it in a
> > scaler, like so:
> >
> > $foo="try:this:out";
> > $bar=(split(/:/,$foo))[1];
> >
> > $bar now has "this" in it.
> >
> > Can you do this in php3?
> > -----------------------------------------------------
> > Brian Feeny (BF304) signal
shreve.net
> > 318-222-2638 x 109 http://www.shreve.net/~signal
> > Network Administrator ShreveNet Inc. (ASN 11881)
> >
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to
> > php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail:
> > php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to:
> > http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail:
> > php-list-admin
lists.php.net
> >
>
-----------------------------------------------------
Brian Feeny (BF304) signal
shreve.net
318-222-2638 x 109 http://www.shreve.net/~signal
Network Administrator ShreveNet Inc. (ASN 11881)
attached mail follows:
Just as the penis enlargement thread is dying down, or 'getting smaller' rather, here comes some more crap.
<http://bbspot.com/News/2000/6/php_suspend.html>
med vänlig hälsning /Dana
attached mail follows:
> Just as the penis enlargement thread is dying down, or 'getting smaller' > rather, here comes some more crap.
Let's start a Produce a Hairy Penis thread, now. :-)))
> <http://bbspot.com/News/2000/6/php_suspend.html>
Now that's bad news. The real drug isn't PHP, but ASP (derivated from LSD, ASP might be a new type of Acid, you know)
> med vänlig hälsning
Ah... now it's my turn to say something almost no one will understand:
Água mole em pedra dura, tanto bate até que fura.
Explain yours and I'll explain mine... :-))
-- Leonardo Dias Analista Programador / Analyst Programmer Catho Online - Brasil - São Paulo http://www.catho.com.br
attached mail follows:
Água mole em pedra dura, tanto bate até que fura. "Soft water hits a hard stone so much that a hole is made in the stone." It means that even the toughest people/things are overcome through hard enough insistence
Swedish: Med Vänlig Hälsning / Best Regards / With kind greeting
Just trying to help : )
-Rob Z.
----- Original Message -----
From: "Leonardo Dias" <madleo
catho.com.br>
To: "Reed, Dana" <Dana.Reed
clinicaldatacare.com>
Cc: <php3
lists.php.net>
Sent: Friday, June 16, 2000 10:29 AM
Subject: Re: [PHP3] suspected use of PHP!
> > Just as the penis enlargement thread is dying down, or 'getting smaller'
> > rather, here comes some more crap.
>
> Let's start a Produce a Hairy Penis thread, now. :-)))
>
> > <http://bbspot.com/News/2000/6/php_suspend.html>
>
> Now that's bad news. The real drug isn't PHP, but ASP (derivated from
> LSD, ASP might be a new type of Acid, you know)
>
> > med vänlig hälsning
>
> Ah... now it's my turn to say something almost no one will understand:
>
> Água mole em pedra dura, tanto bate até que fura.
>
> Explain yours and I'll explain mine... :-))
>
> --
> Leonardo Dias
> Analista Programador / Analyst Programmer
> Catho Online - Brasil - São Paulo
> http://www.catho.com.br
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
> Água mole em pedra dura, tanto bate até que fura. > "Soft water hits a hard stone so much that a hole is made in the stone." > It means that even the toughest people/things are overcome > through hard enough insistence > Swedish: Med Vänlig Hälsning / Best Regards / With kind greeting > Just trying to help : )
Aha!
You either speak portuguese and swedish or have friends in both countries.
-- Leonardo Dias Analista Programador / Analyst Programmer Catho Online http://www.catho.com.br
attached mail follows:
Dear all I am looking at php. Presently coding in cgi (python). php looks good, more specific for the web than python. QUESTION: Can php allow you to automatically insert form values via a script? I can do this in cgi scripting but can it be done in php? FOR EXAMPLE I want to (via code) insert a username and passord to a website page. I want to submit these values and read the resultant html line by line.
in python scripting a urllib function does it like: formdata = { 'username':username_value, 'password':password_value } sock = urllib.urlopen(myURL, formdata) for htmlline in sock.readlines(): process each html line ... ...
Is there an equivalent feature in php?
Thanks in advance
Colm Rafferty
attached mail follows:
We have a php page which performs a query returning 21,000 results. After processing each result and finishing we find the apache process is listed (via top) as using about 50MB.
This server servers very few requests.
Because of the way apache works, the next day another apache process will serve that request and bang goes another 50MB.
This morning I recovered 600MB by doing a graceful restart on apache.
But I don't think the bloat is correct. I am concerned that php is free-ing the memory back to its memalloc when the page has finished but that it is no free'd back to the system. In other words maybe the process marks that ram as free for sub-allocating when requested but still not back available to the OS.
It also may be a saving in such cass as this if there was a php directive to cause the process to exit when finished the current request. Perhaps I could kill gracefull its own pid?
Any ideas on the bloat?
This is apache 1.3.11, php 3.0.16,, mysql 3.22.30 on Sunos 5.7
Thanks
Sam
attached mail follows:
On Fri, 16 Jun 2000, Sam Liddicott wrote:
> We have a php page which performs a query returning 21,000 results. After > processing each result and finishing we find the apache process is listed > (via top) as using about 50MB. > > This server servers very few requests.
You could simply set MaxRequestsPerChild (in httpd.conf) to a very low number.
Zeev
> > Because of the way apache works, the next day another apache process > will serve that request and bang goes another 50MB. > > This morning I recovered 600MB by doing a graceful restart on apache. > > But I don't think the bloat is correct. I am concerned that php is free-ing > the memory back to its memalloc when the page has finished but that it is no > free'd back to the system. In other words maybe the process marks that ram > as free for sub-allocating when requested but still not back available to > the OS. > > It also may be a saving in such cass as this if there was a php directive to > cause the process to exit when finished the current request. Perhaps I > could kill gracefull its own pid? > > Any ideas on the bloat? > > This is apache 1.3.11, php 3.0.16,, mysql 3.22.30 on Sunos 5.7 > > Thanks > > Sam > >
-- Zeev Suraski <zeevzend.com> http://www.zend.com/
attached mail follows:
-----Original Message-----
From: Zeev Suraski
To: Sam Liddicott
Cc: 'php3
lists.php.net' '
Sent: 16/06/00 16:17
Subject: Re: [PHP3] Apache/PHP/MySQL memory bloat
On Fri, 16 Jun 2000, Sam Liddicott wrote:
> We have a php page which performs a query returning 21,000 results. After > processing each result and finishing we find the apache process is listed > (via top) as using about 50MB. > > This server servers very few requests.
You could simply set MaxRequestsPerChild (in httpd.conf) to a very low number.
Sam: Yes, for now we are setting this to one, as the server only ever serves these requests at a very low interval.
Do you think it likely that the problem is related to the size of the result set? Is this by design, a result of the memory sub-allocation method, or something slightly dodgy?
Thanks
Sam
Zeev
> > Because of the way apache works, the next day another apache process > will serve that request and bang goes another 50MB. > > This morning I recovered 600MB by doing a graceful restart on apache. > > But I don't think the bloat is correct. I am concerned that php is free-ing > the memory back to its memalloc when the page has finished but that it is no > free'd back to the system. In other words maybe the process marks that ram > as free for sub-allocating when requested but still not back available to > the OS. > > It also may be a saving in such cass as this if there was a php directive to > cause the process to exit when finished the current request. Perhaps I > could kill gracefull its own pid? > > Any ideas on the bloat? > > This is apache 1.3.11, php 3.0.16,, mysql 3.22.30 on Sunos 5.7 > > Thanks > > Sam > >
-- Zeev Suraski <zeevzend.com> http://www.zend.com/
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> I am concerned that php is free-ing > the memory back to its memalloc when the page has finished but that it is no > free'd back to the system. In other words maybe the process marks that ram > as free for sub-allocating when requested but still not back available to > the OS.
Well, that is the way almost all Unices work. If you try using sbrk to allocate & deallocate memory you will confuse the system malloc lib the first time you set the brk lower. The only way I know of to do this relatively easily on some Unix systems is to change the malloc to an anonymous mmap() and free the mmap'ed area when you're done. In other words, re-writing the mysql allocation strategy.
And not breaking anything else :^)
I did this a long, long time ago using the setjmp/longjmp strategy for signal handling/rendering graphics (a complex scene can eat up gigabytes of memory - and it's nice to give it back to other processes sometimes!) ...
Mark Charette
sneezy.org
attached mail follows:
Wow. That made good reading.
Perhaps the simplest solution to the general problem is an official way to signal that the process should quit after generating the current page.
I can just recycle httpd sooner; but on some cases the only solution may be to run 2 httpd's, one with quick recycling.
What does Zeev think?
Sam
-----Original Message-----
From: charette
sneezy.org
To: sam.liddicott
ananova.com; zeev
zend.com
Cc: php3
lists.php.net
Sent: 16/06/00 17:15
Subject: RE: [PHP3] Apache/PHP/MySQL memory bloat
Well, that is the way almost all Unices work. If you try using sbrk to allocate & deallocate memory you will confuse the system malloc lib the first time you set the brk lower. The only way I know of to do this relatively easily on some Unix systems is to change the malloc to an anonymous mmap() and free the mmap'ed area when you're done. In other words, re-writing the mysql allocation strategy.
And not breaking anything else :^)
I did this a long, long time ago using the setjmp/longjmp strategy for signal handling/rendering graphics (a complex scene can eat up gigabytes of memory - and it's nice to give it back to other processes sometimes!) ...
Mark Charette
sneezy.org
attached mail follows:
After scouring the archives and the net, I still have not found any answers.
I am trying to set up php to connect to a ms SQL Server 6.5 database. I am running apache 1.3.12 with php4 installed as a dso on FreeBSD 4.0.
My first question is, should I be using sybase-db or sybase-ct? With sybase-ct I get the error message "Sybase: Unable to connect" with sybase-db, i get an index result of 0.
Second, what should my interfaces file be? The port of mod_php4 automagically installs freetsd so I assume it should be /path/to/freetsd/infaces.
And lastly, I'd be more than grateful for any tips from anyone with similiar setups.
Thanks for your time,
Travis Ruthenburg
attached mail follows:
Hey guys.
I'm developing a few data driven pages with PHP and Oracle 8. I'm using the OCI functions in PHP to do so. My problem is I have a long list of titles that need to be pulled out of the DB, and I want to show them 10 at a time. Clicking next gives you the next 10 titles, etc, etc.
Now, in MySQL we have the LIMIT function, but there is no such function in Oracle. The closest I have found is ROWCOUNT which can be given a < or > value. I've also haven't seen any Oracle sample code to accomplish this, and i'm sure i'm not the first person to need something like this ;) So far no luck, i'm still trying a few things, but I would appriciate some code or ideas to try. Thanks in advance.
attached mail follows:
I downloaded your SMTP class, in a RedHat 6.2+Apache+PHP 3.0.15 against MS Exchange Server 5.5 works well, but I would know: how send e-mail in HTML format?
Ciao Roberto
-----Messaggio originale-----
Da: Manuel Lemos [mailto:mlemos
acm.org]
Inviato: giovedì 15 giugno 2000 22.41
A: David Johnson
Oggetto: Re: [PHP3] fsockopen and smtp
Precedence: bulk
Hello David,
On 15-Jun-00 08:55:11, you wrote:
>I want to get the return from an smtp server but I get empty every time.
>This was my latest try:
>$fp = fsockopen($server, 25, &$errno, &$errstr, 30);
>if(!$fp) {
> echo "$errstr ($errno)<br>\n";
> } else {
> fputs($fp,"mail from: me
davidj.org");
> echo fread($fp,128);
> fputs($fp,"rcpt to: ".$address);
> echo fread($fp,128);
>fclose($fp);
>the fread fails, I think because I don't have a specific file to pull from, >only from the smtp server response.
You need to end SMTP command lines with \r\n or else it will hang until the server times out.
>Is this possible or am I loopy-gone-cuckoo or both?
Why going loopy-gone-cuckoo when you can use this free and ready to use SMTP PHP class? :-)
http://phpclasses.UpperDesign.com/browse.html/package/14
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I am going to have to move an existing MySQL db (structure only) over to an MySQL db on NT with php3, currently its in a Unix environment, is there any differences I should be aware of, can I connect to the database the same ? Is there any tips anyone can give me ? Sorry if this is obvious as I am very new to NT, and learning very quickly
Thanks
Ade
attached mail follows:
There aren't any particular differences that I am aware of. The mysql_* calls are all the same, mysql listens on the same port...it's all good. :)
There might be some mysql specific performance issues, and of course mysql on Windows isn't free (there's a $200 license). An interesting tactic, that. Anyways, check the mysql site ( http://www.mysql.org ) to see if there are any major issues.
I switch from NT development to Linux production boxes with mysql databases often and have had no problems to speak of.
Hope that helps a bit, - Erik
-----Original Message-----
From: Ade Smith <php
eschooluk.com>
To: php3
lists.php.net <php3
lists.php.net>
Date: Friday, June 16, 2000 9:13 AM
Subject: [PHP3] MySQL and PHP3 on NT ?
I am going to have to move an existing MySQL db (structure only) over to an MySQL db on NT with php3, currently its in a Unix environment, is there any differences I should be aware of, can I connect to the database the same ? Is there any tips anyone can give me ? Sorry if this is obvious as I am very new to NT, and learning very quickly
Thanks
Ade
attached mail follows:
This is what I am sending off to ezmlm:
news-unsubscribe-joestump98=yahoo.com
server.com
And while following the logs I get nothing - does anyone know whats going on here? Any ezmlm experts?
--Joe
/*****************************\ * Joe Stump * * www.Care2.com * * Office: 650.328.0198 * * Extension: 122 * \*****************************/ www.miester.org
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
------END GEEK CODE BLOCK------
attached mail follows:
> What is the output of
>
> ezmlm-list DIR |grep -i joestump98
>
> where DIR is the news
server.com list's ezmlm directory.
[root
australia care2]# /usr/local/bin/ezmlm/ezmlm-list /home/care2/NEWS/ | grep -i -n -r joestump98
257481:joestump98
yahoo.com
[root
australia care2]#
> What does "nothing" mean? Does it show delivery attempts?
in /home/care2/NEWS/Log when I sub/unsub via ezmlm-sub/ezmlm-unsub I get an entery that looks similar to this:
961100863 - root
ocean.care2.com (only with my email address - this is from testing)
on the other hand when I use mail() in PHP with news-subscribe-joestump98=yahoo.com
server.com the Log file doesn't produce anything.
> > Mate /*****************************\ * Joe Stump * * www.Care2.com * * Office: 650.328.0198 * * Extension: 122 * \*****************************/ www.miester.org
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
------END GEEK CODE BLOCK------
attached mail follows:
What does the mail log show????? Ezmlm may be rejecting your request and trying to send its followup to the Web server.
Mark Charette
sneezy.org
attached mail follows:
If I send the authentication headers (ie,
Header( "WWW-authenticate: basic realm=\"$realm\"" ); Header( "HTTP/1.0 401 Unauthorized" );
)
and the user hits cancel, can I send a
header( "location: " );
to the browser to redirect them? Or would that not work because stuff was already sent tot he browser? I'm doing this right now and it isn't working; the redirected to page is not coming up and I'm trying to figure out why. If the answer to my above questions are "No" and "Yes" respectively, then I'll know. If they aren't, then I'm going to have to go back to the drawing board to try and figure out what's going on.
Chris
attached mail follows:
I think some browsers are sensitive to the order among the headers of the Location Header, however I *know* you don't have to stop after sending the 401 header, but you can send a page as well, the page contents being conditional upon auth.
I have a page which displays a diary only if auth failed, or a diary and address book if auth succeeded.
sam
-----Original Message-----
From: Boget, Chris
To: php-general
lists.php.net; Php3 (E-mail)
Sent: 16/06/00 17:38
Subject: [PHP3] Headers after authentication
If I send the authentication headers (ie,
Header( "WWW-authenticate: basic realm=\"$realm\"" ); Header( "HTTP/1.0 401 Unauthorized" );
)
and the user hits cancel, can I send a
header( "location: " );
to the browser to redirect them? Or would that not work because stuff was already sent tot he browser? I'm doing this right now and it isn't working; the redirected to page is not coming up and I'm trying to figure out why. If the answer to my above questions are "No" and "Yes" respectively, then I'll know. If they aren't, then I'm going to have to go back to the drawing board to try and figure out what's going on.
Chris
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hiya
Little question:
is tere a way to capture headers before they're send to the browsers just like you can capture the data with ob_get_contents() and also a way to clean/change the headers?
Greetz,
Wico
attached mail follows:
Can I use these? If so is it just like C++
ie:
class Stuff{ private: $var = "private"; public: $varb = "public"; }
????
/*****************************\ * Joe Stump * * www.Care2.com * * Office: 650.328.0198 * * Extension: 122 * \*****************************/ www.miester.org
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
------END GEEK CODE BLOCK------
attached mail follows:
I've seen several people ask variations of this question in the archives, but no one seems to have replied. So now it's my turn to ask. I'm running PHP4.0 and using sessions, passing the session id through a URL rather than a cookie. Everything works fine, except I can't get the variables registered to a particular SID to be cleaned up after a certain period of time. session_destroy() does the trick, but isn't going to work if people just quit in the middle of a session. So I want the session to timeout. It's my understanding that this could be accomplished by setting session.gc.maxlifetime in php.ini to the number of seconds after which the data would be cleaned up. I've tried changing that value and the different php.ini values show up when I run info.php (for example if I change the PHPSESSID session.name to something else) so I think the php.ini file is being read, but I still can't get the session variables cleaned up. Even after the default 1440 seconds. Has anyone got any ideas?
- Next message: php3-digest-help
lists.php.net: "php3 Digest 17 Jun 2000 04:57:38 -0000 Issue 1739"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 16 Jun 2000 04:57:41 -0000 Issue 1737"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]