|
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 1 Jun 2000 04:59:38 -0000 Issue 1707
From: php3-digest-help
lists.php.netDate: Wed May 31 2000 - 23:59:38 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 1 Jun 2000 16:59:37 -0000 Issue 1708"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 31 May 2000 16:59:41 -0000 Issue 1706"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 1 Jun 2000 04:59:38 -0000 Issue 1707
Topics (messages 92250 through 92296):
Re: Date question - a year of months
92250 by: Scott Tirrell
92259 by: Randall Goguen
92264 by: Jonathan Wright \(DjNA\)
Re: VPN's?
92251 by: Brian T. Allen
92252 by: Brian T. Allen
92268 by: Brian T. Allen
Re: str_replace() causes emalloc() seg faults
92253 by: John Percival
Re: PHP4 compilation problems [SOLVED].
92254 by: Jim Brown, Sr.
Re: NNTP
92255 by: Jerry
giving date in other language
92256 by: Jêdrzej Kolesiñski
Newbie question regarding time
92257 by: Chad Day
[PHP4 / WinNT / Apache / Error 500 pb]
92258 by: Philippe Chauvat
Zlib error during PHP4 compilation
92260 by: Jim Brown, Sr.
Problem bei Installation von PHP
92261 by: Dr. Thomas Fischer
92265 by: kovac
Quick Dumb Question.
92262 by: Mike Hatcher
92263 by: Matt McClanahan
92270 by: Brian T. Allen
92272 by: TaoX { Brian Hinson; }
92282 by: Justin French
92283 by: Lawrence Sica
php3 performance
92266 by: Xianneng Shen
ImageTTFText and ImageTTFBBox
92267 by: darcy w. christ
Installing PHP like a CGI module
92269 by: Chicolinux is surfing!
php/html/mysql freelance developer needed
92271 by: Joe Kerns
Re: running a remote command
92273 by: Cameron Brunner
php4 classes
92274 by: Cory Friend
92278 by: Vamsi Nath
PHP4 Sessions: A Tip on Dealing With Them
92275 by: Waldo L. Jaquith
92277 by: David Ford
92288 by: Mark Charette
Auto clearing of temp files
92276 by: Miri
Re: Is PHP caching oracle connections?
92279 by: Mark Nold
Do I doing OK??
92280 by: Chicolinux is surfing!
92281 by: yuzz µöhð ¥ú§õf
Re: Australian PHP + MySQL Hosting
92284 by: Justin French
92287 by: Chris Harris
zLib to compress a string not a file
92285 by: Steven Roussey
Image Create from GIF works..almost [prime]
92286 by: Mo Salame
divisible by 1000
92289 by: CDitty
92291 by: Pizdyk Haval Poganki , i podavilsia
92292 by: CDitty
92293 by: Alfred Perlstein
92294 by: Mike Sheldon
92295 by: Brian T. Allen
array of objects ?
92290 by: Mario de Mello Bittencourt Neto
Help with redirects, POST vars
92296 by: John Rumpelein
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:
"Jonathan Wright (DjNA)" wrote:
>
> Try this.
>
> $firstmonth = date("F");
> $secondmonth = date("F", mktime(0,0,0,date("n")+1 ,1,date("Y")) );
> $thirdmonth = date("F", mktime(0,0,0,date("n")+2 ,1,date("Y")) );
> $fourthmonth = date("F", mktime(0,0,0,date("n")+3 ,1,date("Y")) );
> $fifthmonth = date("F", mktime(0,0,0,date("n")+4 ,1,date("Y")) );
> $sixthmonth = date("F", mktime(0,0,0,date("n")+5 ,1,date("Y")) );
> $seventhmonth = date("F", mktime(0,0,0,date("n")+6 ,1,date("Y")) );
> $eighthmonth = date("F", mktime(0,0,0,date("n")+7 ,1,date("Y")) );
> $ninthmonth = date("F", mktime(0,0,0,date("n")+8 ,1,date("Y")) );
> $tenthmonth = date("F", mktime(0,0,0,date("n")+9 ,1,date("Y")) );
> $eleventhmonth = date("F", mktime(0,0,0,date("n")+10,1,date("Y")) );
> $twelvthmonth = date("F", mktime(0,0,0,date("n")+11,1,date("Y")) );
>
> I changed all the days to 1, from date("d"). It makes more sense, as
> no-matter what day in the month it is, the first will always be a new month.
>
> - - - - - - - - - - - - - - - - - - - -
> Jonathan Wright [DjNA]
> mail
djna.fsnet.co.uk
> www.djna.fsnet.co.uk
> ICQ [21961373]
>
> : -----Original Message-----
> : From: Scott Tirrell [mailto:stirrell
deepriver.com]
> : Sent: 31 May 2000 16:06
> : To: PHP Mailing list
> : Subject: [PHP3] Date question - a year of months
> :
> :
> : Hello,
> :
> : I was trying to write a small routine that would gather a year of months
> : starting with the current month for a calendar. Here is what I tried:
> :
> : $firstmonth = date(F);
> : $secondmonth = date( "F", mktime(0,0,0,date("m")+1,date("d"),date("Y")) );
> : $thirdmonth = date( "F", mktime(0,0,0,date("m")+2,date("d"),date("Y")) );
> : $fourthmonth = date( "F", mktime(0,0,0,date("m")+3,date("d"),date("Y")) );
> : $fifthmonth = date( "F", mktime(0,0,0,date("m")+4,date("d"),date("Y")) );
> : $sixthmonth = date( "F", mktime(0,0,0,date("m")+5,date("d"),date("Y")) );
> : $seventhmonth = date( "F",
> : mktime(0,0,0,date("m")+6,date("d"),date("Y")) );
> : $eighthmonth = date( "F", mktime(0,0,0,date("m")+7,date("d"),date("Y")) );
> : $ninthmonth = date( "F", mktime(0,0,0,date("m")+8,date("d"),date("Y")) );
> : $tenthmonth = date( "F", mktime(0,0,0,date("m")+9,date("d"),date("Y")) );
> : $eleventhmonth = date( "F",
> : mktime(0,0,0,date("m")+10,date("d"),date("Y")) );
> : $twelvthmonth = date( "F",
> : mktime(0,0,0,date("m")+11,date("d"),date("Y")) );
This solution worked fine. Thanks very much to everyone who helped me!
Sincerely,
Scott
-- Scott Tirrell Programmer Deep River Interactive stirrelldeepriver.com http://www.deepriver.com
attached mail follows:
<? for ($i=1; $i<=12; $i++) { $this_month[$i] = date("F", mktime(0,0,0,$i,1,2000)); echo $this_month[$i]; echo "<br>"; } ?>
Randall Goguen http://www.LinuxGuruz.org
On Wed, 31 May 2000, Jonathan Wright (DjNA) wrote:
> Try this.
>
> $firstmonth = date("F");
> $secondmonth = date("F", mktime(0,0,0,date("n")+1 ,1,date("Y")) );
> $thirdmonth = date("F", mktime(0,0,0,date("n")+2 ,1,date("Y")) );
> $fourthmonth = date("F", mktime(0,0,0,date("n")+3 ,1,date("Y")) );
> $fifthmonth = date("F", mktime(0,0,0,date("n")+4 ,1,date("Y")) );
> $sixthmonth = date("F", mktime(0,0,0,date("n")+5 ,1,date("Y")) );
> $seventhmonth = date("F", mktime(0,0,0,date("n")+6 ,1,date("Y")) );
> $eighthmonth = date("F", mktime(0,0,0,date("n")+7 ,1,date("Y")) );
> $ninthmonth = date("F", mktime(0,0,0,date("n")+8 ,1,date("Y")) );
> $tenthmonth = date("F", mktime(0,0,0,date("n")+9 ,1,date("Y")) );
> $eleventhmonth = date("F", mktime(0,0,0,date("n")+10,1,date("Y")) );
> $twelvthmonth = date("F", mktime(0,0,0,date("n")+11,1,date("Y")) );
>
> I changed all the days to 1, from date("d"). It makes more sense, as
> no-matter what day in the month it is, the first will always be a new month.
>
> - - - - - - - - - - - - - - - - - - - -
> Jonathan Wright [DjNA]
> mail
djna.fsnet.co.uk
> www.djna.fsnet.co.uk
> ICQ [21961373]
>
> : -----Original Message-----
> : From: Scott Tirrell [mailto:stirrell
deepriver.com]
> : Sent: 31 May 2000 16:06
> : To: PHP Mailing list
> : Subject: [PHP3] Date question - a year of months
> :
> :
> : Hello,
> :
> : I was trying to write a small routine that would gather a year of months
> : starting with the current month for a calendar. Here is what I tried:
> :
> : $firstmonth = date(F);
> : $secondmonth = date( "F", mktime(0,0,0,date("m")+1,date("d"),date("Y")) );
> : $thirdmonth = date( "F", mktime(0,0,0,date("m")+2,date("d"),date("Y")) );
> : $fourthmonth = date( "F", mktime(0,0,0,date("m")+3,date("d"),date("Y")) );
> : $fifthmonth = date( "F", mktime(0,0,0,date("m")+4,date("d"),date("Y")) );
> : $sixthmonth = date( "F", mktime(0,0,0,date("m")+5,date("d"),date("Y")) );
> : $seventhmonth = date( "F",
> : mktime(0,0,0,date("m")+6,date("d"),date("Y")) );
> : $eighthmonth = date( "F", mktime(0,0,0,date("m")+7,date("d"),date("Y")) );
> : $ninthmonth = date( "F", mktime(0,0,0,date("m")+8,date("d"),date("Y")) );
> : $tenthmonth = date( "F", mktime(0,0,0,date("m")+9,date("d"),date("Y")) );
> : $eleventhmonth = date( "F",
> : mktime(0,0,0,date("m")+10,date("d"),date("Y")) );
> : $twelvthmonth = date( "F",
> : mktime(0,0,0,date("m")+11,date("d"),date("Y")) );
> :
> : It worked fine except for today. I'm guessing because there are 31 days
> : in May and just 30 in June, it threw it off. So today my $firstmonth is
> : equal to May and the $secondmonth is equal to July instead of June. Can
> : anyone help me solve this problem?
> :
> : Sincerely,
> : Scott
> : --
> : Scott Tirrell Programmer Deep River Interactive
> : stirrell
deepriver.com http://www.deepriver.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
> :
> :
>
>
> --
> 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:
That won't work, as he want's to know the next twelve months, not twelve months. I've adjusted the code.
? for ($i=1; $i<=12; $i++) { $this_month[$i] = date("F", mktime(0,0,0,date("n")+$i,1,2000)); echo $this_month[$i]; echo "<br>"; } ?>
- - - - - - - - - - - - - - - - - - - -
Jonathan Wright [DjNA]
mail
djna.fsnet.co.uk
www.djna.fsnet.co.uk
ICQ [21961373]
: -----Original Message-----
: From: Randall Goguen [mailto:ranman
huggle.com]
: Sent: 31 May 2000 19:57
: To: Jonathan Wright (DjNA)
: Cc: stirrell
deepriver.com; PHP Mailing list
: Subject: RE: [PHP3] Date question - a year of months
:
:
:
:
: <?
: for ($i=1; $i<=12; $i++) {
: $this_month[$i] = date("F", mktime(0,0,0,$i,1,2000));
: echo $this_month[$i];
: echo "<br>";
: }
: ?>
:
: Randall Goguen
: http://www.LinuxGuruz.org
:
: On Wed, 31 May 2000, Jonathan Wright (DjNA) wrote:
:
: > Try this.
: >
: > $firstmonth = date("F");
: > $secondmonth = date("F", mktime(0,0,0,date("n")+1 ,1,date("Y")) );
: > $thirdmonth = date("F", mktime(0,0,0,date("n")+2 ,1,date("Y")) );
: > $fourthmonth = date("F", mktime(0,0,0,date("n")+3 ,1,date("Y")) );
: > $fifthmonth = date("F", mktime(0,0,0,date("n")+4 ,1,date("Y")) );
: > $sixthmonth = date("F", mktime(0,0,0,date("n")+5 ,1,date("Y")) );
: > $seventhmonth = date("F", mktime(0,0,0,date("n")+6 ,1,date("Y")) );
: > $eighthmonth = date("F", mktime(0,0,0,date("n")+7 ,1,date("Y")) );
: > $ninthmonth = date("F", mktime(0,0,0,date("n")+8 ,1,date("Y")) );
: > $tenthmonth = date("F", mktime(0,0,0,date("n")+9 ,1,date("Y")) );
: > $eleventhmonth = date("F", mktime(0,0,0,date("n")+10,1,date("Y")) );
: > $twelvthmonth = date("F", mktime(0,0,0,date("n")+11,1,date("Y")) );
: >
: > I changed all the days to 1, from date("d"). It makes more sense, as
: > no-matter what day in the month it is, the first will always be
: a new month.
: >
: > - - - - - - - - - - - - - - - - - - - -
: > Jonathan Wright [DjNA]
: > mail
djna.fsnet.co.uk
: > www.djna.fsnet.co.uk
: > ICQ [21961373]
: >
: > : -----Original Message-----
: > : From: Scott Tirrell [mailto:stirrell
deepriver.com]
: > : Sent: 31 May 2000 16:06
: > : To: PHP Mailing list
: > : Subject: [PHP3] Date question - a year of months
: > :
: > :
: > : Hello,
: > :
: > : I was trying to write a small routine that would gather a
: year of months
: > : starting with the current month for a calendar. Here is what I tried:
: > :
: > : $firstmonth = date(F);
: > : $secondmonth = date( "F",
: mktime(0,0,0,date("m")+1,date("d"),date("Y")) );
: > : $thirdmonth = date( "F",
: mktime(0,0,0,date("m")+2,date("d"),date("Y")) );
: > : $fourthmonth = date( "F",
: mktime(0,0,0,date("m")+3,date("d"),date("Y")) );
: > : $fifthmonth = date( "F",
: mktime(0,0,0,date("m")+4,date("d"),date("Y")) );
: > : $sixthmonth = date( "F",
: mktime(0,0,0,date("m")+5,date("d"),date("Y")) );
: > : $seventhmonth = date( "F",
: > : mktime(0,0,0,date("m")+6,date("d"),date("Y")) );
: > : $eighthmonth = date( "F",
: mktime(0,0,0,date("m")+7,date("d"),date("Y")) );
: > : $ninthmonth = date( "F",
: mktime(0,0,0,date("m")+8,date("d"),date("Y")) );
: > : $tenthmonth = date( "F",
: mktime(0,0,0,date("m")+9,date("d"),date("Y")) );
: > : $eleventhmonth = date( "F",
: > : mktime(0,0,0,date("m")+10,date("d"),date("Y")) );
: > : $twelvthmonth = date( "F",
: > : mktime(0,0,0,date("m")+11,date("d"),date("Y")) );
: > :
: > : It worked fine except for today. I'm guessing because there
: are 31 days
: > : in May and just 30 in June, it threw it off. So today my
: $firstmonth is
: > : equal to May and the $secondmonth is equal to July instead of
: June. Can
: > : anyone help me solve this problem?
: > :
: > : Sincerely,
: > : Scott
: > : --
: > : Scott Tirrell Programmer Deep River Interactive
: > : stirrell
deepriver.com http://www.deepriver.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
: > :
: > :
: >
: >
: > --
: > 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:
Just an observation:
I feel like a member of the PHP community, it has changed the way I do business, and I have an incredible amount of respect (even aw!) for the members on this list. It is only natural, when confronted with a problem to be solved, to turn to friends & peers for help with the solution.
I have posted off-topic questions here, and have been given great solutions (some involving PHP, some not). Likewise, I have benefitted greatly from reading other solutions to off-topic posts.
I know there needs to be order, and we wouldn't want it to get out of hand. But in reality, it is a rare occurence, and I think it adds to the list rather than diluting it (it seems like some on the list may feel a little religious about the whole thing, ready to sacrifice someone for an off-topic post).
Thanks to the whole list and PHP community! Brian
>
> Wednesday, May 31, 2000, 7:04:29 AM, you wrote:
>
> >> Hi all,
> >>
> >> What's required to create a VPN?
> >>
> >> This is my situation:
> >> I'm about to start a business (Wireless ISP) and I have customers
> >> that require to be connected to their LAN using my service. I suppose I
> >> can create some sort of VPN where their machine can connect to an NT
> >> server on their private LAN.
> >>
> >> Is this possible ?
> >>
> >> On my side I will be using a LINUX server as my main server and I'm
> >> looking for some advice for the best solution on this little problem.
>
>
> LD> Completely off-topic...
>
>
> Hello All,
>
> I couldn't help notice how quickly people respond to point out the
> lack of etiquitte on this list. So far, I've seen six responses to
> this poor soul, whom appears to have made a simple mistake, pointing
> out his blatent lack of respect for members of this list! I've also
> noticed how quickly it turns ugly by a few members starting the
> personal insults against the poor guy...all because he sent the e-mail
> to the wrong list.
>
> My point is... I've seen many, many, many legitimate php3 questions,
> complex and simple, posted to this list that have never received a
> single response. Yet make one mistake that has nothing to do with
> php3, and the kind folks on this list are all over you offering
> unwanted responses!
>
> Calm down out there folks, life is way too short. I don't want to
> stir anything up, just quietly thing about it on your own.
>
> --
> Best regards,
> badger mailto:badger
pongo.org
attached mail follows:
For the record, there are some great VPN solutions for PHP, some more encrypted / secure, some less.
http://freshmeat.net/search.php3?query=VPN has some good resources and should give you a good start.
Some will even allow you to work under linux and still work for your NT customers (the last thing I want to do is put an NT box in my server room!).
HTH, Brian
>
> Hi all,
>
> What's required to create a VPN?
>
> This is my situation:
> I'm about to start a business (Wireless ISP) and I have customers
> that require to be connected to their LAN using my service. I suppose I
> can create some sort of VPN where their machine can connect to an NT
> server on their private LAN.
>
> Is this possible ?
>
> On my side I will be using a LINUX server as my main server and I'm
> looking for some advice for the best solution on this little problem.
>
> Thanks,
>
> --
> ============================================
> Hector M Banda
> Senior Computer Programmer
> Information Systems Department
> Imperial Valley College
> Imperial Ca, 92251
> Phone: 760.355.6105
> Fax : 425.790.6379
> ============================================
>
>
>
> --
> 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:
> For the record, there are some great VPN solutions for PHP, some more > encrypted / secure, some less.
Sorry, this was meant to say linux instead of PHP (was just in a PHP evangelizing mood). Of course PHP and VPN have little to do with each other...
attached mail follows:
Well I gave up on the backtrace in the end - the site5 support guy just ignored me.
I spent some more time on the problem and narrowed it down to the return statement in the end. The original code was like this:
function bbcodeparse ($bbcode) {
// do some stuff with $bbcode including many str_replace and eregi_replace
return $bbcode;
}
It was the return that seemed to be causing the crash, so I did this as a workaround:
function bbcodeparse ($bbcode) {
bbcodeparse2($bbcode;
return $bbcode2;
}
function bbcodeparse2 ($bbcode) {
global $bbcode2;
// do stuff on $bbcode
$bbcode2=$bbcode;
}
And that fixed the problem! I have no idea what caused it, but I got it working. Unfortunately, no backtrace, but I will report it as a PHP bug anyway.
Cheers, John
----- Original Message -----
From: "Richard Lynch" <richard
zend.com>
To: ""John Percival"" <john
vbulletin.com>
Sent: Thursday, May 25, 2000 9:44 PM
Subject: Re: [PHP3] str_replace() causes emalloc() seg faults
> > > Sounds like a very good thing to bug report... > > Especially if you can provide the scripts that built the databases for > download some where... > > Or do the gdb thing with a backtrace from a core? > > > > Firstly, congrats to the PHP team for getting PHP 4 out. > > > > PHP Info output: > > > > PHP Version 4.0.0 > > > > System Linux area51.site5.com 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST > > 2000 i686 unknown > > Build Date May 22 2000 > > Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' > > '--with-xml' '--with-mysql' '--enable-track-vars' > > Server API Apache > > Virtual Directory Support disabled > > Configuration File (php.ini) Path /usr/local/lib > > ZEND_DEBUG enabled > > Thread Safety disabled > > > > > > This program makes use of the Zend scripting language engine: > > Zend Engine v1.00, Copyright (c) 1998-2000 Zend Technologies > > > > (The same was happening with PHP4 RC2) > > > > > > A certain script on this site51 host is causing seg faults. I have narrowed > > it down to the str_replace function I think. > > > > Here is the result of the Apache error log: > > > > FATAL: emalloc(): Unable to allocate 1515870815 bytes > > [Sun May 21 19:18:38 2000] [notice] child pid 16531 exit signal Segmentation > > fault (11) > > > > This is one of the various calls that creates the error: > > > > if ($allowsmilie==1 and $dosmilies==1) { > > $smilies=$DB_site->query("SELECT smilietext,smiliepath FROM smilie"); > > while ($smilie=$DB_site->fetch_array($smilies)) { > > if ($smilie[smilietext]!="") { > > $bbcode=str_replace($smilie[smilietext],"<img > > src=\"$smilie[smiliepath]\">",$bbcode); > > } > > } > > } > > > > > > Commenting out the str_replace line removes the problem. This call is part > > of a larger script ( http://www.vbulletin.com/ ), which works fine on every > > other server that it has been tested on. Indeed, this script works fine on > > other site51 sites too. It seems to be dependent on which database is being > > used. Lets say that there are 2 sites, A and B, and 2 MySQL databases C and > > D. > > > > Database D works with the PHP code from either site A or site B. Database C > > however, does not work from site A (untested on site B). It seems strange, > > since both databases were installed from the same script. > > > > I know that this is rather long-winded - I do appreciate any help that you > > can offer. I am tempted to open a bug report if no one can answer, but it > > seemed unneccessary to do so if it was a known 'feature'. > > > > Thanks in advance, > > John Percival > -- > Richard Lynch | If this was worth $$$ to you, buy a CD > US Customer Support Director | from one of the artists listed here: > Zend Technologies USA | http://www.L-I-E.com/artists.htm > http://www.zend.com | (this has nothing to do with Zend, duh!) >
attached mail follows:
OK,
I expect to get flogged pretty bad for this one. I found out what my ENTIRE problem was...ready for this??
My original command line was: ./configure --with-apache=../apache_1.3.12 --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-ttf --with-ftp --with-snmp --with-imap=/usr/local/imapd/imapd-4.7b --enable-track-vars
Which failed miserably. The reason for this is because 'c-client' isn't in '/usr/local/imapd/imapd-4.7b', it's in '/usr/local/imapd/imap-4.7b'
See my mistake?? (imapd-4.7b is supposed to be imap-4.7b) :o)
Go ahead, I'm ready for my punishment :o) LOL
Thnx for all the help.
-- James Brown, Sr. CIO | DNS/System/Network Administrator Sys-AdminCSUinternet.net | CSU internet, inc. - Tifton, GA.
attached mail follows:
At 3:26 PM +0100 on 5/30/00, WL wrote:
>Hi all, > >Has anyone managed to use VH Consultants' NNRP Class >(http://www.vhconsultants.com/nnrp/nnrp.htm) successfully? All I'm trying >to do is pull a list (50) messages from a particular newsgroup. > Yes, we're using it quite successfully. Note that there are two problems that I ran into while implementing our solution using class.nnrp
1. They seem to think that the PHP function set_time_limit() adds to the amount of time the PHP script has left, when what it actually does is *set* the time the script has left. In the function "ExpectResponse()", it does an "AddTime(1)" which sets the amount of time the script has left to 1; if you do any major processing after this, you run the risk of running out of time. I added
$this->Addtime(10);
outside of the "while" loop in that function. (I ran into this when running the body of articles through a regular expression to convert URLs to links.)
2. When determining header names, the regular expression that they use assumes that there are no colons in the data part of the header. That is, the name of the header ends up being everything up to the *last* colon in the line. Thus, very few (if any) articles have a "Date" header. Most have a "Date: 5/31/00 19:20" header (or something like that). This also made the "Subject" header basically disappear if there was a colon in the subject line. (The header was still in the associative array, it just wasn't called "Header".)
The offending regular expression is in the Article() function and the Head() function. I changed the if(ereg(...)) lines to:
if(ereg("^([^:]*):(.*)$",$line,$ph)) { if(ereg("^([^:]*):(.*)$",$line,$ph)) {
In going over the code right now, it looks as though I should also have changed it in Overviewfmt() as well. This sets it so that the header's name is everything in front of the *first* colon in the line, and the data is everything after the first colon.
Jerry
-- jerryacusd.edu http://www.acusd.edu/~jerry/ "It's too bad we don't have a can to listen to to get back to San Diego," said Voniece. "What do we make in San Diego, anyway?" "Tourists, I think," said Arthur. He brightened. "Do they sell tourists in cans?" "I think they do," said Voniece, "but they're awfully expensive." --The Shopping Cart Graveyard
attached mail follows:
i have this code ... i wont to give in other lanugage the name of the day and month...
function formatTimestamp($time) { global $datetime; ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
$datetime = date("l, M jS
h:i A", m
ktime($datetime[4],$datetime[5],$datet
ime[6],$datetime[2],$datetime[3],$datetime[1]));
$english_Day = date("l"); if($english_Day == "Monday") {
$deutsch_Day = "Montag"; } elseif($english_Day == "Tuesday") { $deutsch_Day = "Dienstag"; } elseif($english_Day == "Wednesday") { $deutsch_Day = "Mittwoch"; } elseif($english_Day == "Thursday") { $deutsch_Day = "Donnerstag"; } elseif($english_Day == "Friday") { $deutsch_Day = "Freitag"; } elseif($english_Day == "Saturday") { $deutsch_Day = "Samstag"; } else { $deutsch_Day = "Sonntag"; } //// here the problem $deutsch_Day=date("l"); return($datetime); }
it always gives me in english... can you help me Jêdrzej Kolesiñski
attached mail follows:
I have a form where I want the user to input a time, with another box toggling AM or PM.. is there a simple way I'm missing to store this in a MySQL time field?
I mean, I think I can see the hard way ..
if ($AMPM = 'PM') { $mytime = ($mytime + 12); }
and then somehow append a :00 onto that value, then insert that into the MySQL database. I've been searching PHPBuilder and this list for this question, as I think it would have turned up before, but haven't come up with anything useful.
Thanks, Chad Day Beach Associates
When I speak german... I think german in my head... but like...Do skript kiddies see a w40l3 8uncha 1's and 0's and 3's and 4's and 7's in their h34d'5 w43n t43y R +a1k1n6 ? -- SirStanley
attached mail follows:
Hello,
I just installed php4 on my WinNT4 box with Apache server. When I try to use a php script, the result is an 500 Error page and this message:
The instruction at "Ox100765d6" referenced memory at "Ox4152545f". The memory could not be "written"
and the error.log file contain
[Wed May 31 13:02:14 2000] [error] [client 127.0.0.1] Premature end of script headers: d:/program files/apache group/apache/php/php.exe
Thank you for your help Philippe
- text/x-vcard attachment: Card for Philippe Chauvat
attached mail follows:
Hello again,
Can someone explain to me why I'm getting this error now??
configure: error: Zlib module requires zlib >= 1.0.9
I've got zlib-1.1.3 installed. It installed 'zlib.h' and 'zconf.h' in '/usr/local/include'. Also, the 'libz.*' files are in '/usr/local/lib'.
What's wrong now??
TIA
-- James Brown, Sr. CIO | DNS/System/Network Administrator Sys-AdminCSUinternet.net | CSU internet, inc. - Tifton, GA.
attached mail follows:
Hallo,
+++++++++++ Let me know, if you need an English version of my question!! +++++++++++
vor wenigen Tagen habe ich versucht PHP auf meinem Rechner zu installieren. Leider ist mir das letztendlich nicht gelungen.
Ich habe einen handelsüblichen PC mit Windows 98. Das PHP habe ich von einer CD aus der Zeitschrift PC-Magazin.
Ich habe PHP gemäß Installationsanleitung installiert! Insbesondere habe ich das PHP3-Verzeichnis angelegt und alle Dateien dort reinkopiert. Die PHP3-Ini-Datei habe ich in das Windows-Verzeichnis kopiert und umbenannt. Weiter habe ich die Zeile "extension_dir = c:\php3 ;" eingefügt. Alle Zeilen mit "extension" haben vorne ein Semikolon. An der Datei "browscap.ini" habe ich keine Änderung vorgenommen. Die Änderungen an der "registry" habe ich mittels der Datei "php_iis_reg.inf" gemacht. Ich habe an dieser Datei keine Änderungen vorgenommen. Danach habe ich noch den Personal Web Server installiert.
Anschließend habe ich eine ASCII-Datei mit Namen TEST.PHP3 mit folgendem Inhalt erzeugt: <html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body> </html>
Wenn ich jetzt den Internet Explorer aufrufe und mir diese Datei öffne, wird PHP gestartet. Ich erkenne das daran, dass für eine halbe Sekunde ein schwarzes Fenster aufgeht (sieht aus wie die MS-DOS-Eingabeaufforderung) und den Inhalt von TEST.PHP3 anzeigt. Dann passiert nichts mehr. Das gleiche passiert auch, wenn ich einen Doppelclick auf TEST.PHP3 mache.
Nach meinem Verständnis erkennt der Internet Explorer sehr wohl dass es sich um eine PHP3-Datei handelt. Aber aus irgend einem Grund wird aus der PHP3-Datei kein HTML-Code erzeugt. Bzw. wird der HTML-Code nicht an den Internet Explorer übergeben.
Ich stelle mir zumindest vor, dass genau das passieren müsste.
Ich bitte Sie mir einen Hinweis zu geben, wie ich weiter verfahren kann. Selbst das einfache Datei von oben kann ich nicht anzeigen. Der Vollständigkeit halber sollte ich noch erwähnen, dass der Internet Explorer ansonsten gut funktioniert.
Sollten Sie aus irgend einem Grund nicht in der Lage sein, mir weiterzuhelfen, wäre ich um eine kurze Rückmeldung dankbar.
Mit freundlichen Grüßen,
Thomas Fischer
attached mail follows:
Hallo Thomas Hast du auch einen Web Server auf deinem PC? Scheinbar wird dein script ausgeführt aber nicht durch den Web Server. Du muss auch den ISAPI teil in dem Web Server registrieren. Sonst kannst du eine Eingabeaufforderung Fenster aufmachen und dort dein scripts ausführen. Hoffentlich bringt es dir was. Viel Glück
Tschuss Kurt
-----Original Message-----
From: Dr. Thomas Fischer [mailto:06978802111-0001
t-online.de]
Sent: Mittwoch, 31. Mai 2000 21:19
To: php3
lists.php.net
Subject: [PHP3] Problem bei Installation von PHP
Hallo,
+++++++++++ Let me know, if you need an English version of my question!! +++++++++++
vor wenigen Tagen habe ich versucht PHP auf meinem Rechner zu installieren. Leider ist mir das letztendlich nicht gelungen.
Ich habe einen handelsüblichen PC mit Windows 98. Das PHP habe ich von einer CD aus der Zeitschrift PC-Magazin.
Ich habe PHP gemäß Installationsanleitung installiert! Insbesondere habe ich das PHP3-Verzeichnis angelegt und alle Dateien dort reinkopiert. Die PHP3-Ini-Datei habe ich in das Windows-Verzeichnis kopiert und umbenannt. Weiter habe ich die Zeile "extension_dir = c:\php3 ;" eingefügt. Alle Zeilen mit "extension" haben vorne ein Semikolon. An der Datei "browscap.ini" habe ich keine Änderung vorgenommen. Die Änderungen an der "registry" habe ich mittels der Datei "php_iis_reg.inf" gemacht. Ich habe an dieser Datei keine Änderungen vorgenommen. Danach habe ich noch den Personal Web Server installiert.
Anschließend habe ich eine ASCII-Datei mit Namen TEST.PHP3 mit folgendem Inhalt erzeugt: <html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body> </html>
Wenn ich jetzt den Internet Explorer aufrufe und mir diese Datei öffne, wird PHP gestartet. Ich erkenne das daran, dass für eine halbe Sekunde ein schwarzes Fenster aufgeht (sieht aus wie die MS-DOS-Eingabeaufforderung) und den Inhalt von TEST.PHP3 anzeigt. Dann passiert nichts mehr. Das gleiche passiert auch, wenn ich einen Doppelclick auf TEST.PHP3 mache.
Nach meinem Verständnis erkennt der Internet Explorer sehr wohl dass es sich um eine PHP3-Datei handelt. Aber aus irgend einem Grund wird aus der PHP3-Datei kein HTML-Code erzeugt. Bzw. wird der HTML-Code nicht an den Internet Explorer übergeben.
Ich stelle mir zumindest vor, dass genau das passieren müsste.
Ich bitte Sie mir einen Hinweis zu geben, wie ich weiter verfahren kann. Selbst das einfache Datei von oben kann ich nicht anzeigen. Der Vollständigkeit halber sollte ich noch erwähnen, dass der Internet Explorer ansonsten gut funktioniert.
Sollten Sie aus irgend einem Grund nicht in der Lage sein, mir weiterzuhelfen, wäre ich um eine kurze Rückmeldung dankbar.
Mit freundlichen Grüßen,
Thomas Fischer
-- 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:
Greetings everyone, Is better (faster) to echo all of your html tags and info or better to not use the echo command? Just to make myself clear is an example.
<html><body> or echo "<html><body> Blah Blah ";
Thanks --Mike
attached mail follows:
On Wed, 31 May 2000, Mike Hatcher wrote:
> Greetings everyone, > Is better (faster) to echo all of your html tags and info or better to not > use the echo command? > Just to make myself clear is an example. > > <html><body> > or > echo "<html><body> Blah Blah ";
I usually say it depends on how much html you're talking about. Another issue is that there's a difference (though extremely minute) between echo "<html>" and echo '<html>' (The former is parsed, the latter is not)
So I'd say it's more of a style decision than a speed decision. The speed difference is rarely worth worrying about. I will usually escape to html from a script if I'm going to put out more than two lines of html that doesn't have any PHP embedded in it.
Whatever is most readable to you, go with it.
Matt
attached mail follows:
I use DreamWeaver 3 for my development, and by echoing as little HTML code as possible I am able to do 99% of my design WYSIWYG.
It works great to escape out of PHP in the middle of the while loop for database selects and go back to WYSIWYG for that table row:
... while ($r = mysql_fetch_array($result)) { $VAR1= $r["FIELD1"]; $VAR2= $r["FIELD2"]; %> <tr> <td><% echo $VAR1 %</td> <td><% echo $VAR2 %</td> </tr> <% } ...
and it will automatically make a table with as many rows are as needed to display your data, and still allow you to do all of your table, width, color, font, etc formatting in your editor. I could hand code it as well (and still spend the majority of my time in code editor, not the WYSIWYG), but the WYSIWYG is so fast its not worth it most of the time.
That is all referring to speed of development (a major concern for me, even more so than execution speed), the speed of execution time shouldn't be a big deal except for the largest of sites on equipment that is spread thin. I would rather save time and throw a little more money at the hardware...
HTH, Brian
> Greetings everyone,
> Is better (faster) to echo all of your html tags and info or better to
not
> use the echo command?
> Just to make myself clear is an example.
>
> <html><body>
> or
> echo "<html><body> Blah Blah ";
>
> Thanks
> --Mike
>
>
> --
> 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:
using echo constantly to echo your html is very slow tne cpu expensive...
it would be better to just get out of php for larger blocks of html... but your judgement about how big the block should be to step out of php mode is up to you.
I would suggest somewhere around three or four lines/echos.
TaoX
----- Original Message -----
From: "Brian T. Allen" <brian
purenetfx.com>
To: "Mike Hatcher" <MikeH
KATOLIGHT.COM>; <php3
lists.php.net>
Sent: Wednesday, May 31, 2000 5:45 PM
Subject: Re: [PHP3] Quick Dumb Question.
> I use DreamWeaver 3 for my development, and by echoing as little HTML code
> as possible I am able to do 99% of my design WYSIWYG.
>
> It works great to escape out of PHP in the middle of the while loop for
> database selects and go back to WYSIWYG for that table row:
>
> ...
> while ($r = mysql_fetch_array($result)) {
> $VAR1= $r["FIELD1"];
> $VAR2= $r["FIELD2"];
> %>
> <tr>
> <td><% echo $VAR1 %</td>
> <td><% echo $VAR2 %</td>
> </tr>
> <%
> }
> ...
>
> and it will automatically make a table with as many rows are as needed to
> display your data, and still allow you to do all of your table, width,
> color, font, etc formatting in your editor. I could hand code it as well
> (and still spend the majority of my time in code editor, not the WYSIWYG),
> but the WYSIWYG is so fast its not worth it most of the time.
>
> That is all referring to speed of development (a major concern for me,
even
> more so than execution speed), the speed of execution time shouldn't be a
> big deal except for the largest of sites on equipment that is spread thin.
> I would rather save time and throw a little more money at the hardware...
>
> HTH,
> Brian
>
>
> > Greetings everyone,
> > Is better (faster) to echo all of your html tags and info or better to
> not
> > use the echo command?
> > Just to make myself clear is an example.
> >
> > <html><body>
> > or
> > echo "<html><body> Blah Blah ";
> >
> > Thanks
> > --Mike
> >
> >
> > --
> > 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-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:
"TaoX { Brian Hinson; }" wrote:
> using echo constantly to echo your html is very slow tne cpu expensive... > > it would be better to just get out of php for larger blocks of html... but > your judgement about how big the block should be to step out of php mode is > up to you. > > I would suggest somewhere around three or four lines/echos.
What about if the code is only to be executed IF certain things happen?
Example: only spit out this code if the browser is netscape, and only spit out this code for IE????
Can an if be carried accross broken php blocks?
<?php if($browser == NETSCAPE) { ?>
[hmtl here]
<?php } else { ?>
[alternate html here]
<?php } ?>
attached mail follows:
Justin French wrote: > > "TaoX { Brian Hinson; }" wrote: > > > using echo constantly to echo your html is very slow tne cpu expensive... > > > > it would be better to just get out of php for larger blocks of html... but > > your judgement about how big the block should be to step out of php mode is > > up to you. > > > > I would suggest somewhere around three or four lines/echos. > > What about if the code is only to be executed IF certain things happen? > > Example: only spit out this code if the browser is netscape, and only > spit out this code for IE???? > > Can an if be carried accross broken php blocks? >
Yes it can, in a .php3,.phtml, etc. it will function that way. I use that all the time.
--Larry
attached mail follows:
Hi,
I have a question about how to monitor php application performance. I am running php3 applications developed by ourselves so far. I would like to get better understand its performance characteristic. Is there any tools available for profiling, monitoring, tracing, etc.? I will appreciate any input you may have.
Thanks,
Shennon
attached mail follows:
i've found some test examples (one by rasmus) and they work for the most part, but when i'm dealing with single characters, there begins to appear a discrepancy between the bounding box and the text. i'm wondering whether anyone has written any scripts which can accept input of text, font and size and the box is created with the appropriate space. Of if anyone can point me to some tutorials which might explain the finer points of freetype. i've got so many X and Ys, that i don't remember which is which.
thanks
-- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax
attached mail follows:
Hi all!!
I'm installing PHP 4.0.0 but I don't want to install it like an Apache module, instead I want to install it like a CGI module.
I have the manual, but it talks about installing like an Apache module, also at webmonkey.com
Can somebody provide me an installation guide for PHP like a CGI module?
I have a RPM, but I don't want to use it because maybe it doesn't have support for dBase databases. Or it do???
Thanks in advance --------------------------------------------------------- "El Conocimiento es Poder, y el Poder es Responsabilidad" Proverbio Hacker.
Miguel Guirao Aguilera. ITM. MEXICO.
attached mail follows:
I am in need of a freelance php/html/mysql developer to do some contract work for me. Hours will vary from project to project, typically 5-20 hours per month. Please contact me off-list. Replies to the list will be ignored.
Best Regards,
Joe Kerns joltinjoe.com
attached mail follows:
try
echo "<PRE>"; passthru("rsh remotehost ls /usr/logs"); echo "</PRE>";
system just does the command, passthru echos the command back to the user as it gets the data
david.tansley
acelondon.co.uk wrote:
> Is it possible under php to do a remote shell command. I am trying to get the
> results from a direc' listing on a remote machine. I do not really want to use
> NFS to just get a remote listing.
> I have tried this; but it returns nothing. If I use the same format for a local
> listing it works !.
>
> echo "<PRE>";
> system("rsh remotehost ls /usr/logs");
> echo "</PRE>";
>
> D.T.
> ________________________________________________________________________
>
> CONFIDENTIALITY This e-mail and any attachments are confidential and may
> also be privileged. If you are not the intended recipient(s) please note
> that any distribution, copying or use of this communication or the
> information in it is strictly prohibited.If you are not the named
> recipient(s), please notify the sender immediately and do not disclose
> the contents to another person, use it for any purpose, or store or
> copy the information in any medium.
>
> > ************
>
> --
> 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 thought I read somewhere that php's classes now has the ability to reference a parents function that has been overwritten by an extended class.
example class foo{ function test(){ print("foo"); } }
class bar extends foo{ function test(){ print("bar"); } function bar(){ $this->parent->test(); // This is the line in question. // I think there is a method to // do it but I can't find it. $this->test(); } }
$stuff=new foo;
would output: foobar
please copy my direct address, so I don't have to sift through the digest. Thanks.
-------------------
Cory Friend
friendc
acu.edu
attached mail follows:
I believe the way to do it would be write the function in the derived class as:
function bar() { foo::test(); $this->test(); }
--Vamsi
-----Original Message-----
From: Cory Friend [mailto:friendc
acu.edu]
Sent: Wednesday, May 31, 2000 6:57 PM
To: php3
lists.php.net
Subject: [PHP3] php4 classes
I thought I read somewhere that php's classes now has the ability to reference a parents function that has been overwritten by an extended class.
example class foo{ function test(){ print("foo"); } }
class bar extends foo{ function test(){ print("bar"); } function bar(){ $this->parent->test(); // This is the line in question. // I think there is a method to // do it but I can't find it. $this->test(); } }
$stuff=new foo;
would output: foobar
please copy my direct address, so I don't have to sift through the digest. Thanks.
-------------------
Cory Friend
friendc
acu.edu
-- 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:
Folks,
I was getting beat down by sessions until I figured out what I was doing wrong. I figured I'd pass along this tip: it's all about globals.
This won't work:
-------- function foo() { if (session_is_registered("var")) { return true; } else { $var = "data"; session_register("var"); return false; } return false; } if (foo()) echo $var; --------
But this will:
-------- function foo() { if (session_is_registered("var")) { return true; } else { $GLOBALS["var"] = "data"; session_register("var"); return false; } return false; } if (foo()) echo $var; --------
The only difference is the global. Even though you define the variable and immediately use it, within the same function, you *still* need to make it a global. If you don't do that, you'll end up spending hours the same way that I did. Have fun.
Best, Waldo
attached mail follows:
People with a structured programming background tend to grasp scope quickly. Variables defined within a function are valid only within the scope of that function. Think of it this way, anything inside a box needs to have a string tied to it to reach it from outside the box.
Variable scope is an important concept.
-d
"Waldo L. Jaquith" wrote:
> Folks,
>
> I was getting beat down by sessions until I figured out what I was doing
> wrong. I figured I'd pass along this tip: it's all about globals.
>
> This won't work:
>
> --------
> function foo() {
> if (session_is_registered("var")) {
> return true;
> } else {
> $var = "data";
> session_register("var");
> return false;
> }
> return false;
> }
> if (foo()) echo $var;
> --------
>
> But this will:
>
> --------
> function foo() {
> if (session_is_registered("var")) {
> return true;
> } else {
> $GLOBALS["var"] = "data";
> session_register("var");
> return false;
> }
> return false;
> }
> if (foo()) echo $var;
> --------
>
> The only difference is the global. Even though you define the variable and
> immediately use it, within the same function, you *still* need to make it a
> global. If you don't do that, you'll end up spending hours the same way
> that I did. Have fun.
>
> Best,
> Waldo
>
> --
> 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
-- \\\\\|||||| &%&%&%& 99 little bugs in the code, 99 bugs in the code,
|~|'
|o>
|& fix one bug, compile it again... | \\__/ | /, |& 101 little bugs in the
code.... \ / -' ,
-- |--HUGS---
attached mail follows:
From: "David Ford" <david
kalifornia.com>
To: "Waldo L. Jaquith" <waldo
waldo.net>
> People with a structured programming background tend to grasp scope quickly. > Variables defined within a function are valid only within the scope of that > function. Think of it this way, anything inside a box needs to have a string > tied to it to reach it from outside the box. > > Variable scope is an important concept.
However, in this context (passing a variable _name_ to register it and having to declare it global _also_) scope is _very_ misleading. Since I pass the name, not the data, I might assume that the receiving function does some magic to store the name/data pair. Especially if I don't read the documentation carefully:
"For each encountered variable name, session_register() registers the global variable named by it with the current session."
It may help if you create a block of variables that need to be registered at the very top of your code, outside the functions/classes - that way they're in one place and global in scope. I've always disliked that $GLOBALS[] hack :^)
Cheers,
Mark Charette
sneezy.org
Webmaster, http://www.sneezy.org
attached mail follows:
I tried posting this to the phplib list and got no result...I thought I'd try you helpful people again. Please respond privately as I'm on digest...
I've managed to get everything with my shopping cart working except for two things: the auto clearing of temp files; the 'expired' function.
In order to shop with this shopping cart, one doesn't have to log in. I'm not sure if that is adding to my problems or not or if my two problems are related. I check for the occurance of a session ID on each page - if one is not there, I require the initiation file that includes my cart variables and registers them. I use cookies to set the session id, but have url/get as a back up. I pass the session ID and the current time via each and every url (I pass the time to try and keep old cached pages from showing up).
As soon as I add the following to my session header: $limit=7200; $time_lapsed = (time(void)) - $r; if ($time_lapsed>$limit) { header("Location: /store/expired.php?&sid=".$sess->id."&r=".time(void)); }
Were $r is the time when a user first pulled up a shopping cart page. I get taken to the 'expired' page no matter what my variables are set to. (I have a 'debug' file that is echoing out every variable - it can show a time lapsed of 1 and a time limit if 7200, but I'm still taken to the expired page). Any ideas? I feel that I'm missing something very simple.
Also, the session ID files that are written to the temp directory are never cleared out. Am I supposed to write a script to delete them? I've read through the PHPLIB documention until I'm bleary eyed and can't seem to find anything specific - just references to a 'garbage collection that reaps session records' - but can't seem to figure out how to actually delete the temp files. I am unsetting my cart after a successful order, but still have the session id files in the temp folder.
Any pointers would be appreciated.
___________________________________________________________
miri
miriland.com miri
stigma.com
http://miriland.com/ http://www.stigma.com
attached mail follows:
Paul,
Wouldnt you be better to do something like (i havent any php in front of me)
$user = "markn"; $db = "production"; $password = "foobar";
ora_logon("$user
$db",$password);
The best way to do this is via a prepended script that looks at your host name (via a regex) to decide the $db so you could have web.domain.com, webdev.domain.com and webtest.domain.com.
if($host == "web"){ $db = "production"; }elseif($host == "webdev"){ $db = "dev"; }
etc
This way user can swap between the db for testing etc.
mn
Mark Nold
markn
alverstone.com.au
Systems Consultant
Change is inevitable, except from vending machines.
On Wednesday, 31 May 2000 11:44, Paul Fernandez [SMTP:paul
stromix.com]
wrote:
> Thies,
>
> What you say makes sense.
>
> However, I have a development database and a production database. When I
change the $db designation from
> one to the other, the php script properly addresses the correct database.
>
> In other words, I have been able to SetEnv(oracle_sid,$db) just fine.
>
> Now if we could just find some completed Oracle PHP functions -- I hear
so much about undocumented
> functions. Is there a source somewhere I could download?
>
> thanks
>
> Paul
> San Diego, CA USA
>
> thies
digicol.de wrote:
>
> > On Wed, May 31, 2000 at 10:18:41PM +0800, Mark Nold wrote:
> > > Thies,
> > >
> > > Why is a PHP PutEnv, an Apache SetEnv much worse than having the
environment set before you start?
> > >
> > > It sounds sensible (to do the later not the former) but why would it
be such a crime to use PutEnv?
> > >
> > > Just out of interest :)
> >
> > the oracle-oci is initialized when the module is *loaded*
> > that way you have no chance to get you env varibles set thru
> > SetEnv or PutEnv.
> >
> > got me?
> >
> > >
> > > mn
> > >
> > >
> > >
> > > Mark Nold
> > > markn
alverstone.com.au
> > > Systems Consultant
> > >
> > > Change is inevitable, except from vending machines.
> > >
> > >
> > >
> > >
> > > On Wednesday, 31 May 2000 3:21, thies
digicol.de
[SMTP:thies
digicol.de] wrote:
> > > > On Tue, May 30, 2000 at 11:07:55AM -0700, Paul Fernandez wrote:
> > > > > Hello,
> > > > >
> > > > > I have a script that passes in username, password & sid to
Oracle.
> > > > > Occassionally I get an error saying "invalid username/password."
> > > >
> > > > - what is the exact error-message
> > > > - can you create a tiny (< 20 lines) testscript that will
> > > > show this problem. (maybe using http_load or ab)?
> > > > >
> > > > > After 5 minutes, the same php script can log into Oracle just
fine.
> > > > >
> > > > > Is there a setting in php.ini or apache that is causing this
problem?
> > > >
> > > > usually not, please make sure that you set all needed
> > > > environment variables (ORACLE_HOME, _SID, NLS_LANG etc)
> > > > *before* you start apache and *not* via SetEnv in httpd.conf
> > > > or (even worse) via PutEnv in your script.
> > > >
> > > > tc
> > > >
> > > > >
> > > > > Paul Fernandez
> > > > >
> > > > >
> > > > > --
> > > > > 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
> > > >
> > > > --
> > > >
> > > > Thies C. Arntzen "One Big-Mac, Small Fries and a
Coke!"
> > > > Digital Collections Phone +49 40 235350 Fax +49 40
23535180
> > > > Hammerbrookstr. 93 20097 Hamburg /
Germany
> > > >
> >
> > --
> >
> > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
> > Digital Collections Phone +49 40 235350 Fax +49 40 23535180
> > Hammerbrookstr. 93 20097 Hamburg / Germany
>
>
> --
> 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 installed PHP in this way:
1.- gunzip php-4.0.0.tar.gz 2.- tar xvf php-4.0.0.tar 3.- ./configure --with-dbase --enable-track-vars --with-config-file-path=/root/temp 4.- make 5.- make install 6.- cp php3.ini-dist /root/temp/php3.ini
Thats it!!!
Now what I have to do??? where do i put my PHP scripts??
thanks --------------------------------------------------------- "El Conocimiento es Poder, y el Poder es Responsabilidad" Proverbio Hacker.
Miguel Guirao Aguilera. ITM. MEXICO.
attached mail follows:
Did you use apache web server?? I think you need to edit httpd.conf to enable the php script in apache?? then make a script like this <? phpinfo() ?> and save whatever file you want and put it in web server to see the php information.. "Chicolinux is surfing!" wrote:
> Hi all!!
>
> I installed PHP in this way:
>
> 1.- gunzip php-4.0.0.tar.gz
> 2.- tar xvf php-4.0.0.tar
> 3.- ./configure --with-dbase --enable-track-vars
> --with-config-file-path=/root/temp
> 4.- make
> 5.- make install
> 6.- cp php3.ini-dist /root/temp/php3.ini
>
> Thats it!!!
>
> Now what I have to do??? where do i put my PHP scripts??
>
> thanks
> ---------------------------------------------------------
> "El Conocimiento es Poder, y el Poder es Responsabilidad"
> Proverbio Hacker.
>
> Miguel Guirao Aguilera.
> ITM.
> MEXICO.
>
> --
> 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
-- regards, yuzz System Engineer EmasOnline Dot Com Sdn Bhd Contact No: (Office): +606-3345666 ext: 2174 Email: yuzzEmasOnline.com ICQ No: 39819708 IRC : DalNet #linux #mylinux (BitchX : Keep It To Yourself!)
attached mail follows:
Mark Nold wrote:
> Anybody got any experience (or even a url) > of Australian companies providing web hosting > with PHP and MySQL? (or any db really)
Yep... easy.
I have recommended Labyrinth & Sprint (both owned by Labyrinth in Melbourne) as the preferred ISP (sprint for cheap hosting, labyrinth for hosting with business plans for access) for a few years now. Yes, all my own sites and domains are hosted with them, and no, I don't get a cent for recommending them :)
When they installed php on the servers, I took one look at the simplicity and capability of the code, and new that I'd be with Labyrinth for a while.
They are even going to install the php-as-a-cgi-binary for free-standing work as well.
Currently php3 is installed on both sprint and laby, and I believe php4 will be released after the code has been out there for 6months or so. MySQL is available (i think for an extra $5-10 per month), as is perl and a whole heap of php libraries.
They also have a nice local newsgroup for web developers on laby & sprint for quick answers to questions, and are always open to including extra modules, extra functionality or extra libraries.
I think hosting on Sprint is $250/year, and you have to be a user (just get the cheapest amount of block time and never use it!).
On top of all this, support and customer service is 10000% higher than the big boys, and they are totally commited to high performance, at any cost.
You can contact Pheobe Duckburgh (sales
labyrinth.net.au),
tell 'em I sent you (they'll take a little more notice)
and get the low-down, but I guarantee you won't EVER be
disappointed.
Regards, Justin French
attached mail follows:
I've been using a brilliant company called Immortal Technology in Brisbane, Australia that provides excellent service and facilities, particularly if you're looking for PHP+MySQL hosting. I have several sites hosted there and they've been excellent in accommodating my specialised PHP or MySQL requirements.
You'll find them at http://www.immortal.net.au.
Regards, Chris
-----Original Message-----
From: Justin French [mailto:jfrench
sprint.com.au]
Sent: Thursday, 1 June 2000 10:57 AM
To: markn
alverstone.com.au
Cc: 'php3
lists.php.net'
Subject: Re: [PHP3] Australian PHP + MySQL Hosting
Mark Nold wrote:
> Anybody got any experience (or even a url) > of Australian companies providing web hosting > with PHP and MySQL? (or any db really)
Yep... easy.
I have recommended Labyrinth & Sprint (both owned by Labyrinth in Melbourne) as the preferred ISP (sprint for cheap hosting, labyrinth for hosting with business plans for access) for a few years now. Yes, all my own sites and domains are hosted with them, and no, I don't get a cent for recommending them :)
When they installed php on the servers, I took one look at the simplicity and capability of the code, and new that I'd be with Labyrinth for a while.
They are even going to install the php-as-a-cgi-binary for free-standing work as well.
Currently php3 is installed on both sprint and laby, and I believe php4 will be released after the code has been out there for 6months or so. MySQL is available (i think for an extra $5-10 per month), as is perl and a whole heap of php libraries.
They also have a nice local newsgroup for web developers on laby & sprint for quick answers to questions, and are always open to including extra modules, extra functionality or extra libraries.
I think hosting on Sprint is $250/year, and you have to be a user (just get the cheapest amount of block time and never use it!).
On top of all this, support and customer service is 10000% higher than the big boys, and they are totally commited to high performance, at any cost.
You can contact Pheobe Duckburgh (sales
labyrinth.net.au),
tell 'em I sent you (they'll take a little more notice)
and get the low-down, but I guarantee you won't EVER be
disappointed.
Regards, Justin French
-- 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 all!
Is it possible to compress a string without writing it to a file and then reading the file? We want to compress some text blobs before inserting into a database, and a round trip to a file and back seems unnecessary.
Is there something besides zLib we can use to compress (and uncompress) a string?
Thanks!
Sincerely,
Steven Roussey Network54.com http://network54.com/?pp=e
attached mail follows:
Hey guys!
I have an older version of GD lib (1.3.4) so i am able to use the imagecreatefromgif() function. But here's teh catch... I can run it no problem from a command prompt and it works.. But if i try to run it from the a web page...i get the infamous Fatal error: Call to unsupported or undefined function imagecreatefromgif()
message. What could this be and is there any fix??
thanx
attached mail follows:
I have a php job that needs to happen every 1000 records. Can anyone offer any suggestion on how to do this? I know if recordcount = 1000 but what about 2000, 3000, ........ How do I guarantee that it only runs on the 1000 interval mark?
CDitty
attached mail follows:
Just devide the whatever number of records by 1000 and then see if the
number is 1.0 not 1.5
----- Original Message -----
From: CDitty <mail
redhotsweeps.com>
To: <php3
lists.php.net>
Sent: Wednesday, May 31, 2000 11:04 PM
Subject: [PHP3] divisible by 1000
> I have a php job that needs to happen every 1000 records. Can anyone
offer
> any suggestion on how to do this? I know if recordcount = 1000 but what
> about 2000, 3000, ........ How do I guarantee that it only runs on the
> 1000 interval mark?
>
> CDitty
>
>
> --
> 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:
This I have figured out. But how can I tell if the result is a whole number?
At 10:18 PM 5/31/00 , Pizdyk Haval Poganki , i podavilsia wrote:
>Just devide the whatever number of records by 1000 and then see if the
>number is 1.0 not 1.5
>----- Original Message -----
>From: CDitty <mail
redhotsweeps.com>
>To: <php3
lists.php.net>
>Sent: Wednesday, May 31, 2000 11:04 PM
>Subject: [PHP3] divisible by 1000
>
>
> > I have a php job that needs to happen every 1000 records. Can anyone
>offer
> > any suggestion on how to do this? I know if recordcount = 1000 but what
> > about 2000, 3000, ........ How do I guarantee that it only runs on the
> > 1000 interval mark?
> >
> > CDitty
> >
> >
> > --
> > 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-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:
* CDitty <mail
redhotsweeps.com> [000531 20:05] wrote:
> I have a php job that needs to happen every 1000 records. Can anyone offer
> any suggestion on how to do this? I know if recordcount = 1000 but what
> about 2000, 3000, ........ How do I guarantee that it only runs on the
> 1000 interval mark?
if ($recs != 0 && $rec % 1000 == 0) { foo; }
-- -Alfred Perlstein - [brightwintelcom.net|alfred
freebsd.org] "I have the heart of a child; I keep it in a jar on my desk."
attached mail follows:
Use the modulus operator (%). Modulus returns the remainder portion of integer division. So, if the result of a modulus is zero, there was an even division.
if($somenumber % 1000) { // somenumber was evenly divisible by 1000 }
Michael J. Sheldon Internet Applications Developer Phone: 480.699.1084 http://www.desertraven.com/ PGP Key Available on Request
-----Original Message-----
From: CDitty [mailto:mail
redhotsweeps.com]
Sent: Wednesday, May 31, 2000 20:04
To: php3
lists.php.net
Subject: [PHP3] divisible by 1000
I have a php job that needs to happen every 1000 records. Can anyone offer any suggestion on how to do this? I know if recordcount = 1000 but what about 2000, 3000, ........ How do I guarantee that it only runs on the 1000 interval mark?
CDitty
-- 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:
Dang, that modulus stuff is cool! I could use that a lot.
I was going to suggest if(ereg('000&',$somenumber)) to verify that the number of records ended in 3 0's, but modulus is better. (ereg's aren't my specialty, and that came out of memory space filled with cobwebs, so double check it...)
Brian
> Use the modulus operator (%). Modulus returns the remainder portion of > integer division. So, if the result of a modulus is zero, there was an even > division. > > if($somenumber % 1000) > { > // somenumber was evenly divisible by 1000 > } > > > > I have a php job that needs to happen every 1000 records. Can anyone offer > any suggestion on how to do this? I know if recordcount = 1000 but what > about 2000, 3000, ........ How do I guarantee that it only runs on the > 1000 interval mark? > > CDitty >
attached mail follows:
Hi, I must nt overlooking something but I could not find in the docs / phpbuilder.com the way to solve this :
class foo { var $name ; var $description ; } ;
$f = "file1" ; $$f = [] new foo ;
fill_array_with_something($$f) ;
function fill_array_with_something(&$fx) { $fx[]->name = xxx ; $fx[]->description = "blah blah" ; }
This is a base for a system that will receive some filenames and search them filling arrays of objects. Each file shall have a separate array.
The problem seems to be in the way that I can define an array...
Regards,
mario
attached mail follows:
Folks,
I have a client who needs a group of input pages with forms on them. The flow of the forms is determined by data they fill out on the forms, so I'm trying to use header() to change the flow according to user input. THAT part is working.
The problem I am running into is that after executing a redirect with header(), the new page loads, but the POST variables are gone! Does anyone know how to get around this? There are a *lot* of fields, so I'm not sure passing them with GET in the redirect is practical (and would certainly be ugly).
Please let me know if anyone has any ideas.
Thanks! -J
-- John Rumpelein JMR Technology Corp. Internet Services Consultant Voicemail: 206.374.2367 jmrjmrtech.com http://www.jmrtech.com
- Next message: php3-digest-help
lists.php.net: "php3 Digest 1 Jun 2000 16:59:37 -0000 Issue 1708"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 31 May 2000 16:59:41 -0000 Issue 1706"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]