[PHP] Re: Problem with mktime()

2002-05-20 Thread Jim Winstead
Johannes Tyra <[EMAIL PROTECTED]> wrote: >$startDate['Jungfrau'] = mktime (0, 0, 0, 08, 24, > 2000); >$startDate['Waage'] = mktime (0, 0, 0, 09, 24, > 2000); > > but with 'Jungfrau' AND 'Waage' something is wrong!! numbers with a leading zero are in octal form

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Jim Winstead
Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > Are you afraid of someone embedding PHP in a .jpg file? That's not really > an issue as your web server is probably configured to only serve up PHP as > .php files. Likewise, your web server config is likely such that any .jpg > file is served up as co

[PHP] Re: Done w/ PHP - VB or C# ?

2002-05-15 Thread Jim Winstead
Phil Schwarzmann <[EMAIL PROTECTED]> wrote: > Any thoughts on this? What are the pros and cons of both? i think you should not waste our time with such a discussion, perhaps by taking it to a relevant forum. if you don't want to use php, that's your problem. this list/newsgroup is for discussing

[PHP] Re: pow() vs. float when doing match.

2002-04-24 Thread Jim Winstead
Scott Fletcher <[EMAIL PROTECTED]> wrote: > Thanks! That's explain it! One other question. Is the even number a > stable release and the odd number an unstable release? Just like the Red > Hat Linux or Perl as an example. Does that apply to PHP? nope. (this just happened to be broken in 4.1.

[PHP] Re: pow() vs. float when doing match.

2002-04-24 Thread Jim Winstead
Scott Fletcher <[EMAIL PROTECTED]> wrote: >There is the calculation errors for the floating point, so I checked the > PHP website. On that website, the function webpage, pow(). It said that > "In PHP 4.0.6 and earlier pow() always returned a float, and did not issue > warnings.". So, there

[PHP] Re: difference between $foo and isset($foo)

2002-04-18 Thread Jim Winstead
Norman Zhang <[EMAIL PROTECTED]> wrote: > Right? if ($foo) means variable exists and can be null. Whereas, isset($foo) > means that the value in $foo cannot be null? you've got it backwards. 'if (isset($foo))' tests that the variable has been set to some value, possibly including false or null. '

Re: FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Jim Winstead
Matt Friedman <[EMAIL PROTECTED]> wrote: > In regards to the above, under what circumstances might you have > to create a separate lock file? Is this an OS issue? Is it an issue when > concurrency is high? The manual says "you may have to"; I am looking for > some clarification as to when exactly

[PHP] Re: How to check for a php-extension?

2002-04-04 Thread Jim Winstead
Duncan <[EMAIL PROTECTED]> wrote: > i wrote a script, which uses the IMAP-extension. But if s.o. uses it > on a machine, which doesn't support IMAP functions, i get an error > message. How can i prevent this error: > > Fatal error: Call to undefined function: imap_open() in > /home/test/public_

[PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread Jim Winstead
John Clarke <[EMAIL PROTECTED]> wrote: > Any ideas why this would be happening? because 2002-03-31 is 25 hours long in your time zone? http://www.dstc.qut.edu.au/DST/marg/daylight.html jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: header() and frames

2002-03-06 Thread Jim Winstead
Alan McFarlane <[EMAIL PROTECTED]> wrote: > header("location: index.php; target: _top"); header("Location: index.php"); header("Window-target: _top"); jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data from service into array

2002-03-06 Thread Jim Winstead
On Wed, Mar 06, 2002 at 06:02:15PM -0600, Craig Westerman wrote: > Would you explain what this line does? > >$out[$m[1]] = $m[2]; it assigns an entry to the output array. $m is populated by preg_match (where it was passed as the third argument) with the entire match in $m[0], the first paren

Re: [PHP] data from service into array

2002-03-06 Thread Jim Winstead
Craig Westerman <[EMAIL PROTECTED]> wrote: > I'm just now trying to learn PHP. I don't know ANYTHING about XML. I don't > even have any XML reference books yet. I did create a PHP script that is > usable (see below), but there has to be a more efficient way to do it with > PHP. I'll hunt up your p

[PHP] Re: Need help with a PHP script

2002-03-03 Thread Jim Winstead
Php <[EMAIL PROTECTED]> wrote: > function Authorize() { global $HTTP_POST_VARS; > $username = $HTTP_POST_VARS['username']; > $password = $HTTP_POST_VARS['password']; > echo "T".$username.$password; > } (insert the line above.) jim -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: using PHP to access another site - stock quotes ??

2002-02-23 Thread Jim Winstead
Pax <[EMAIL PROTECTED]> wrote: > I am developing site that needs to have stock quotes retrieved and > placed into the database. Perhaps someone know if there is a site that > would supply me with quotes? - I just do not want to do it manually :-(( http://www.google.com/search?q=php%20stock%20quot

[PHP] Re: fork?

2002-02-23 Thread Jim Winstead
Paul Roberts <[EMAIL PROTECTED]> wrote: > how do i do two things at the same time, i'm thinking of the > equivalent of fork in perl you need to enable the pcntl extension, and then you can use pcntl_fork (http://php.net/pcntl_fork). you may also be able to use the 'ticks' mechanism (http://www.ph

[PHP] Re: uploading files | how to avoid submitting twice?

2002-02-23 Thread Jim Winstead
Andy <[EMAIL PROTECTED]> wrote: > Is there a way to redirect imediatelly to a waiting page? I tryed to > redirect, but somehow the server is first uploading the file before > something else happens. unfortunately, no. one thing you can do is use javascript to pop up a small window in your form's

[PHP] Re: how to build an array

2002-02-22 Thread Jim Winstead
Jtjohnston <[EMAIL PROTECTED]> wrote: > Where/How do I start in building a new array? ".=" doesn't work: > > $authors .= explode(";", $mydata->KW); '.=' doesn't work because that does a string append. you just want: $authors = explode(";", $mydata->KW); then you can sort the array using sor

[PHP] Re: Displaying image from MySql DB

2002-02-22 Thread Jim Winstead
Reginald Mullin <[EMAIL PROTECTED]> wrote: > Now I understand why I'm getting the error. What I'd like to know is how to > get around it? Basically what I want is the image in the DB to be displayed > like any regular image would be on an HTML page, i.e. src="imageGoesHere" height="x" width="x

[PHP] Re: using sendtohost on a secure site

2002-02-20 Thread Jim Winstead
In php.general Jeremy Reed <[EMAIL PROTECTED]> wrote: > Is great for posting results to a regular http site. But what I need to do > is post to a secure site (https). I looked through some of the php > documentation and couldn't find anything about manually encrypting the data > to send or anyth

[PHP] Re: textarea form input converting < and > to < >

2002-02-20 Thread Jim Winstead
Byron Albert <[EMAIL PROTECTED]> wrote: > I have a few forms that are used to input html. We have run into a > problem of < and > getting turned into < and > when you hit > submit, Or if you hit submit more than once. I have attached a sample > form. The major problem here is that some times w

[PHP] Re: question

2002-02-20 Thread Jim Winstead
Matthew Berwald <[EMAIL PROTECTED]> wrote: > Do you know of any method/package out there that I > could install on my linux machine that will all me to > print data to a printer? Thanks for the help. $lp = popen("lpr", "w"); fwrite($lp, "stuff to print"); pclose($lp); this uses the unix-standar

Re: [PHP] crypt/Password

2002-02-03 Thread Jim Winstead
Phil <[EMAIL PROTECTED]> wrote: > Thanx, sounds like the way to go. > Still curious though whether there is anyway at all to get the original > password back to the user? not without storing it unencrypted or cracking the password with a dictionary attack. as you said, the php crypt() function an

[PHP] Re: Newbie: Question about filesize()

2002-01-31 Thread Jim Winstead
Manuel Ritsch <[EMAIL PROTECTED]> wrote: > $file_s = filesize($file); you want $file_s = filesize("images/$file"). jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

[PHP] Re: Using the fsockopen ()-function

2002-01-24 Thread Jim Winstead
Bj?rne <[EMAIL PROTECTED]> wrote: > When I'm using the code below, the page that is returned is all white. What > to do? Am I doing anything wrong? the page you are requesting from www.php.net (/page.php) does not exist, and will cause a redirect to the search page. so all you should be getting

[PHP] Re: Time Zone Offset?

2002-01-13 Thread Jim Winstead
Marvin Sanders <[EMAIL PROTECTED]> wrote: > I'm using the PHP date() function on my site, but since my hosting company > (Pair Networks) is on the East Coast and I'm on the West Coast, everything > shows as three hours later (for most of my visitors, anyway). Pair tells me > there's no setting I c

[PHP] Re: Can't get accurate day of year

2002-01-05 Thread Jim Winstead
Hugh Danaher <[EMAIL PROTECTED]> wrote: > Hello All and Happy New Year. > I have a simple routine to get the year, date and the day of year. > Year and date come out correctly but the day of year is one less than > the date. It being January, it's easy to see the error. The only > thing I can f

[PHP] [ADMIN] spam protection for lists.php.net lists

2001-12-11 Thread Jim Winstead
as some of you may have noticed over the last few days, a new method of spam protection has been implemented on lists.php.net. if you post to one of the lists.php.net lists (via mail or the news server at news.php.net) from a mail address that is not subscribed to the mailing list, you will recei

Re: [PHP] do..while(0) not staying true

2001-03-07 Thread Jim Winstead
trick question, right? 0 is false. you want do { ... } while(1); jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] any way to count subscribers to PHP lists?

2001-03-03 Thread Jim Winstead
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Hi, I'm wondering if there's an ezmlm equivalent of the "lists-full" > command for majordomo. That command returns data like the following > (from the PostgreSQL list): no ezmlm equivalent that i'm aware of, but here's the subscription

Re: [PHP-CVS] cvs: php3 / php3.ini-dist

2001-02-11 Thread Jim Winstead
figure it out. :) jim On Sun, Feb 11, 2001 at 01:32:58AM -0800, Rasmus Lerdorf wrote: > Hrm.. When was this changed in PHP 3? It used to be on by default. And > it is on by default in PHP 4. > > -Rasmus > > On Sat, 10 Feb 2001, Jim Winstead wrote: > > > jimw

[PHP-CVS] cvs: php3 / ChangeLog

2001-02-10 Thread Jim Winstead
jimwSat Feb 10 11:45:34 2001 EDT Modified files: /php3 ChangeLog Log: document change Index: php3/ChangeLog diff -u php3/ChangeLog:1.855 php3/ChangeLog:1.856 --- php3/ChangeLog:1.855Sun Dec 17 16:09:44 2000 +++ php3/ChangeLog Sat Feb 10 1

[PHP-CVS] cvs: php3 / php3.ini-dist

2001-02-10 Thread Jim Winstead
jimwSat Feb 10 11:43:58 2001 EDT Modified files: /php3 php3.ini-dist Log: we claim php3.ini documents the defaults, but magic_quotes_gpc defaults to off unless --enable-magic-quotes is used in compiling Index: php3/php3.ini-dist diff -u php3/php3.ini

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-27 Thread Jim Winstead
jimwSat Jan 27 17:53:56 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: give zak access to phpweb Index: CVSROOT/avail diff -u CVSROOT/avail:1.58 CVSROOT/avail:1.59 --- CVSROOT/avail:1.58 Fri Jan 26 18:25:48 2001 +++ CVSROOT/avail Sat

Re: [PHP] Zend hit (Encoder price)

2001-01-25 Thread Jim Winstead
please, please take this discussion elsewhere. if you have questions for the zend guys about their pricing and want to lecture them on what you think the right pricing is, there are a number of message boards on their site that are more suitable. if you want to explore alternatives to the zend c

[PHP-CVS] cvs: php4 /ext/standard credits.c

2001-01-22 Thread Jim Winstead
nt_table_row(1, "Alexander Aulbach, Stig Bakken, Rasmus Lerdorf, Egon Schmid, Zeev Suraski, Lars Torben Wilson, Jim Winstead"); + php_info_print_table_row(1, "Jouni Ahto, Alexander Aulbach, Stig +Bakken, Rasmus Lerdorf, Egon Schmid, Zeev Suraski, Lars Torben Wilson, Jim Win

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-22 Thread Jim Winstead
jimwMon Jan 22 15:43:37 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: give david hedbor access to phpdoc cvs Index: CVSROOT/avail diff -u CVSROOT/avail:1.51 CVSROOT/avail:1.52 --- CVSROOT/avail:1.51 Mon Jan 22 12:31:22 2001 +++ CVSROOT/av

[PHP-CVS] cvs: CVSROOT / avail

2001-01-22 Thread Jim Winstead
jimwMon Jan 22 12:31:22 2001 EDT Modified files: /CVSROOTavail Log: add goba to phpweb list Index: CVSROOT/avail diff -u CVSROOT/avail:1.50 CVSROOT/avail:1.51 --- CVSROOT/avail:1.50 Sun Jan 21 09:29:24 2001 +++ CVSROOT/avail Mon Jan 22 12:31:22 2

[PHP-CVS] cvs: CVSROOT / gen_acl_file.m4

2001-01-22 Thread Jim Winstead
jimwMon Jan 22 12:30:41 2001 EDT Modified files: /CVSROOTgen_acl_file.m4 Log: add goba to phpweb list Index: CVSROOT/gen_acl_file.m4 diff -u CVSROOT/gen_acl_file.m4:1.50 CVSROOT/gen_acl_file.m4:1.51 --- CVSROOT/gen_acl_file.m4:1.50Sun Jan 21 09:

[PHP-CVS] cvs: CVSROOT / commitinfo loginfo

2001-01-21 Thread Jim Winstead
jimwSun Jan 21 18:12:51 2001 EDT Modified files: /CVSROOTcommitinfo loginfo Log: the generated manuals are now gone from cvs, so enable cvs emails from phpweb/manual again Index: CVSROOT/commitinfo diff -u CVSROOT/commitinfo:1.10 CVSROOT/commitinfo:1.1

[PHP-CVS] cvs: CVSROOT / checkoutlist

2001-01-12 Thread Jim Winstead
jimwFri Jan 12 13:52:15 2001 EDT Modified files: /CVSROOTcheckoutlist Log: should check out cvs_acls file into CVSROOT Index: CVSROOT/checkoutlist diff -u CVSROOT/checkoutlist:1.6 CVSROOT/checkoutlist:1.7 --- CVSROOT/checkoutlist:1.6Sun Jan 7 20:51

Re: [PHP]

2001-01-12 Thread Jim Winstead
In article , [EMAIL PROTECTED] wrote: > when was http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.3&r2=1.4 http://cvs.php.net/viewcvs.cgi/php3/language-scanner.lex.diff?r1=1.6&r2=1.7 jim -- PHP General Mailing List (http://

[PHP-CVS] cvs: CVSROOT / cvs_acls

2001-01-11 Thread Jim Winstead
jimwThu Jan 11 13:36:30 2001 EDT Modified files: /CVSROOTcvs_acls Log: no need to be noisy when access is allowed Index: CVSROOT/cvs_acls diff -u CVSROOT/cvs_acls:1.2 CVSROOT/cvs_acls:1.3 --- CVSROOT/cvs_acls:1.2Sun Jan 7 21:20:42 2001 +++ CVSR