|
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 29 Mar 2000 05:59:31 -0000 Issue 1574
From: php3-digest-help
lists.php.netDate: Tue Mar 28 2000 - 23:59:31 CST
- Next message: php3-digest-help
lists.php.net: "php3 Digest 29 Mar 2000 17:59:30 -0000 Issue 1575"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 28 Mar 2000 20:33:04 -0000 Issue 1573"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 29 Mar 2000 05:59:31 -0000 Issue 1574
Topics (messages 83458 through 83536):
email and insert into database at the same time
83458 by: carlos cardoso <cardoso
pobox.com>
Installing php4 RC1
83459 by: Randy Jonasz <rjonasz
click2net.com>
[PHP4BETA] Self-referencing variables revisited
83460 by: "NickM" <terado
hotmail.com>
83484 by: Rouvas Stathis <rouvas
di.uoa.gr>
PHP3
83461 by: Gregor Welters <gregor
welters.de>
IsSet() problem
83462 by: Christopher Ditty <CDitty
email.usps.gov>
83463 by: "James Moore" <James
Prospect-enterprises.co.uk>
83467 by: Ron Chmara <ron
opus1.com>
83468 by: Lars Torben Wilson <torben
pinc.com>
83497 by: Francis Smit <francis
oztel.com>
Redirecting on 404 (works with Netscape, but now MSIE)
83464 by: wmphp
getlost.com.au (Warren)
how do I terminate execution of a PHP script
83465 by: "Josh Zeidner" <jmz_phylogenic
hotmail.com>
83466 by: Lars Torben Wilson <torben
pinc.com>
83469 by: "James Moore" <James
Prospect-enterprises.co.uk>
83476 by: "Greg Donald" <webmaster
destiney.com>
2 way encryption / de-encryption question
83470 by: steve1800
iname.com
83472 by: steve1800
iname.com
83474 by: "Mitch Vincent" <mitch
venux.net>
garbage in content of HTTP responses
83471 by: "Stephen Cope" <kimihia
maxnet.co.nz>
array_walk() doesn't work?
83473 by: "Mitch Vincent" <mitch
venux.net>
83478 by: "Mark Roedel" <roedelm
letu.edu>
83485 by: "Mitch Vincent" <mitch
venux.net>
83492 by: "Mark Roedel" <roedelm
letu.edu>
Detecting Flash and saving it to a PHP Var.
83475 by: "John Retro" <john
html.net>
83498 by: "Tim Zickus" <infoz
chesco.com>
Segmentation fault - I need help!
83477 by: Walter Cruz <waltercruz
terra.com.br>
83479 by: Walter Cruz <waltercruz
terra.com.br>
83481 by: "KingKanute" <Kingkanute
kungfuklan.com>
83482 by: "James Moore" <James
Prospect-enterprises.co.uk>
More Array problems.
83480 by: "Mitch Vincent" <mitch
venux.net>
Support base64_encode/decode under Windows
83483 by: "Vladimir Novakovic" <V.Novakovic
ai.sanu.ac.yu>
83489 by: "James Moore" <James
Prospect-enterprises.co.uk>
83506 by: "Vladimir Novakovic" <V.Novakovic
ai.sanu.ac.yu>
safe_mode.c modification
83486 by: Paul Gregg <pgregg-php
niweb.com>
Memory persistence between requests
83487 by: Kevin McEntee <kevin
kmctek.com>
phplib7.2
83488 by: <moebius
ip-solutions.net>
PHP book
83490 by: "Tom Kevich" <php
artcenter.ac>
83494 by: "Manuel Lemos" <mlemos
acm.org>
83499 by: roberto
i-negocios.com
83529 by: "Manuel Lemos" <mlemos
acm.org>
Splitting a line-by-line string
83491 by: "Hans H. Anderson" <me
hansanderson.com>
asp style output?
83493 by: Francis Smit <francis
oztel.com>
Pedigree Database
83495 by: "Manuel Lemos" <mlemos
acm.org>
readfile(http://whatever) not functioning
83496 by: Marcus D Hanwell <linux
cryos.net>
Talking to Oracle (help!)
83500 by: "John Rumpelein" <jmr
jmrtech.com>
Single Select Checkboxes
83501 by: "Rene H. Larsen" <rhl
traceroute.dk>
Oracle problem
83502 by: "John Rumpelein" <jmr
jmrtech.com>
idea for php.net
83503 by: Bill Zeller <billzeller
yahoo.com>
connect php3 with apache
83504 by: "kathryn kasprow" <ngovan5
hotmail.com>
[Á¦¸ñ¾øÀ½]
83505 by: "À±±¤¼·" <aaa1236
hanmail.net>
php and ftp
83507 by: Warren Grant <warren
maplesquare.com>
how to compare variable with null
83508 by: hendry <hendry
mcms.com>
83509 by: "Jason" <jasonc
webpipe.net>
Problem with variables in flash+PHP3
83510 by: Eka Kelana <eka
jwest.telkom.co.id>
download site and JAVA binaries for windows & MySQL question
83511 by: Oldarnie <ecommerce
a-dream.com.au>
PHP3: problem with quote sign in HTML/PHP form
83512 by: Laurent PEAUCELLE <peaucelle
victoire.com>
Is the list server down
83513 by: "Dean, John" <DEANJX
mail.aramco.com.sa>
FW: [PHP3] Is the list server down
83514 by: hendry <hendry
mcms.com>
Does your server use PHP3, a plain language guide.
83515 by: Mike Gifford <mike
openconcept.on.ca>
Secret to strlen
83516 by: CDitty <mail
redhotsweeps.com>
83517 by: Rasmus Lerdorf <rasmus
php.net>
83518 by: CDitty <mail
redhotsweeps.com>
83519 by: Rasmus Lerdorf <rasmus
php.net>
83520 by: CDitty <mail
redhotsweeps.com>
83521 by: Rasmus Lerdorf <rasmus
php.net>
83522 by: CDitty <mail
redhotsweeps.com>
83523 by: Ron Chmara <ron
Opus1.COM>
83524 by: CDitty <mail
redhotsweeps.com>
83525 by: RaTao von J <ratao
globalrede.com>
83526 by: CDitty <mail
redhotsweeps.com>
83527 by: CDitty <mail
redhotsweeps.com>
83528 by: Ron Chmara <ron
Opus1.COM>
83530 by: Francis Smit <francis
oztel.com>
83533 by: Francis Smit <francis
oztel.com>
Does anyone know where have Mysql mailing list
83531 by: Yong Wei <ywei
baan.com>
83532 by: "Ashley M. Kirchner" <ashley
pcraft.com>
Ideas for RTF/PHP3/HTML upload
83534 by: "Jesper Hess Nielsen" <jesper
graffen.dk>
error while compiling php
83535 by: Sam Carleton <activex1
one.net>
use PHP to post a html?
83536 by: "chChen" <s8553105
mail.nchu.edu.tw>
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:
Respondendo "Chris Mason" <chris
net.ai>
> How hard is it to insert the results of a form into a database while emailing them also?
Not hard at all. Just one more line of code.
[]'s
Carlos Cardoso - cardoso
pobox.com
NAS LIVRARIAS: Redes - Curso Basico e Rapido
Breve: FLASH4 - Para Principiantes
==================================
www.carloscardoso.com
Tech Writer, BOFH & Trekker
Linux Reg user # 92301
attached mail follows:
Thank you Kim,
That was the prob!
On Tue, 28 Mar 2000, Kim Shrier wrote:
> Randall Jonasz wrote:
> >
> > Hi everyone,
> >
> > I've just downloaded php4 release candidate 1 and tried to install it as
> > a dso on FreeBSD 3.4 with gd 1.7.3, freetype 1.3.1, and postgres 6.5.3
> > support. Alas I keep getting errors from the configure script
> > complaining it cannot find the libgd files. Yet the path I stipulate
> > after --with-gd is /usr/local/lib which is where the library files
> > reside. If anyone could help me out on this point, it would be greatly
> > appreciated.
> >
> > --
> > Randy Jonasz
> > Software Engineer
> > Click2net Inc.
> > Web: http://www.click2net.com
> > Phone: (905) 271-3550
> >
>
> I believe that if you specify "--with-gd=/usr/local", the configure script
> will append "/lib" for you and properly find the gd libraries.
>
> Kim
> --
> Kim Shrier - principal, Shrier and Deihl - mailto:kim
tinker.com
> Remote Unix Network Admin, Security, Internet Software Development
> Tinker Internet Services - Superior FreeBSD-based Web Hosting
> http://www.tinker.com/
>
Randy Jonasz
Software Engineer
Click2net Inc.
Web: http://www.click2net.com
Phone: (905) 271-3550
"You cannot possibly pay a philosopher what he's worth,
but try your best" -- Aristotle
attached mail follows:
You can't do that in any language I can think of, that is nothing to do with
the language. When you pass a variable to a function the function gets a
copy of the variable unless passed by reference in which case it gets a
pointer, it knows nothing of the name or what goes on in it's namespace. I
mean what when you call debug(2), what is it supposed to calculate for that.
If you want name info with the debug then just do:
debug($var, "var info");
I'm sure in most cases you will know what you are working with anyway
though, how much info are you debugging. I usually have a static string
placed before the variable in my debug function, just so you know that it is
not part of the normal logs.
If it is crucial then at best you could make sure the variable is global and
send the name to debug which will then be able to fetch the data from the
global stack.
Nick
----- Original Message -----
From: "Gary Bickford" <garyb
fxt.com>
To: "Andrei Zmievski" <andrei
ispi.net>
Cc: <php4beta
lists.php.net>; <php3
lists.php.net>
Sent: Tuesday, March 28, 2000 7:21 PM
Subject: [PHP3] Re: [PHP4BETA] Self-referencing variables revisited
> Andrei Zmievski wrote:
>
> > On Tue, 28 Mar 2000, Gary Bickford wrote:
> > > I don't find get_class_name() in the manual yet. Does it also support
> > > arrays and simple objects (not classes)?
> >
> > No, when you call a function like foo($bar), it does not know anything
> > about the name of the variable that was passed, only its value.
>
> Exactly my point. With nameof(), one could do one of the following,
depending on
> the implementation internals of PHP:
>
> <?
> function foo(&$bar) { // Call by reference required
> printf ("%s: %s",nameof($bar), $bar);
> }
> $somevar="toast";
> foo($somevar);
> ?>
>
> which would output "somevar: toast"
>
> or
>
> <?
> function ($barname) {
> global $$barname;
> printf(%s: %s", $barname, $$barname);
> }
>
> $barname=nameof($somevar);
> foo($barname);
> ?>
>
> with the same output
>
>
> --
> 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:
Well, I don't have the solution, but I think that in Prolog you could
reference yourself!
Anyway, it could be implemented in PHP, but with a language
structure/array/class.
My idea is along the lines of $HTTP_POST_VARS array.
I mean you could have a bunch of arrays, like:
$PHP_RUNTIME_VARS, $PHP_RUNTIME_FUNCTIONS, $PHP_RUNTIME_CLASSES.
Arrays are associative, so you could address, for example,
$PHP_RUNTIME_FUNCTIONS['foobar'].
Better yet, the $PHP_RUNTIME_* could be classes so that you can inspect
and modify their values on the fly.
That could lead...to dynamic class generation????
Why should anybody need it, is another question:-) But you could build
nice debuggers with such stuff.
Hmmm, how about generating your code or your class from database stored
text?
Just an idea.
-Stathis.
NickM wrote:
>
> You can't do that in any language I can think of, that is nothing to do with
> the language. When you pass a variable to a function the function gets a
> copy of the variable unless passed by reference in which case it gets a
> pointer, it knows nothing of the name or what goes on in it's namespace. I
> mean what when you call debug(2), what is it supposed to calculate for that.
>
> If you want name info with the debug then just do:
> debug($var, "var info");
> I'm sure in most cases you will know what you are working with anyway
> though, how much info are you debugging. I usually have a static string
> placed before the variable in my debug function, just so you know that it is
> not part of the normal logs.
>
> If it is crucial then at best you could make sure the variable is global and
> send the name to debug which will then be able to fetch the data from the
> global stack.
>
> Nick
>
> ----- Original Message -----
> From: "Gary Bickford" <garyb
fxt.com>
> To: "Andrei Zmievski" <andrei
ispi.net>
> Cc: <php4beta
lists.php.net>; <php3
lists.php.net>
> Sent: Tuesday, March 28, 2000 7:21 PM
> Subject: [PHP3] Re: [PHP4BETA] Self-referencing variables revisited
>
> > Andrei Zmievski wrote:
> >
> > > On Tue, 28 Mar 2000, Gary Bickford wrote:
> > > > I don't find get_class_name() in the manual yet. Does it also support
> > > > arrays and simple objects (not classes)?
> > >
> > > No, when you call a function like foo($bar), it does not know anything
> > > about the name of the variable that was passed, only its value.
> >
> > Exactly my point. With nameof(), one could do one of the following,
> depending on
> > the implementation internals of PHP:
> >
> > <?
> > function foo(&$bar) { // Call by reference required
> > printf ("%s: %s",nameof($bar), $bar);
> > }
> > $somevar="toast";
> > foo($somevar);
> > ?>
> >
> > which would output "somevar: toast"
> >
> > or
> >
> > <?
> > function ($barname) {
> > global $$barname;
> > printf(%s: %s", $barname, $$barname);
> > }
> >
> > $barname=nameof($somevar);
> > foo($barname);
> > ?>
> >
> > with the same output
-- +-----------------------------+ |Rouvas Stathis | |University of Athens | |Department of Informatics | |http://www.di.uoa.gr/~rouvas | |rouvasdi.uoa.gr | +-----------------------------+
attached mail follows:
At 20:37 28.03.2000, =?iso-8859-2?Q?Jan_Ondrou=B9ek_=28=AEokej=29?= wrote: >Help me please with authenticate with header() > >my script >Header("HTTP/1.0 401 Unauthorized"); >Header("WWW-Authenticate: Basic realm=\"some realm\""); > >I want: with reload or with back or forward in my browser -> new auth. dialog. >
when you wan't to have full control over authentication, forget the header-stuff and authenticate via script.
mit freundlichen Grüßen,
Gregor Welters
-----------------------------
Welters PC-Service Grafenberger Allee 81 40237 Düsseldorf Germany
Tel: 0211/9660096 Mobil: 0173/2776469 Fax: 0211/9660093
mailto: gwelters
welters.de look
at: http://www.welters.de
attached mail follows:
if(isset($error_phone_area) || (isset($error_phone_pre) || (isset($error_phone_pre)){
It should be pretty self-explainitory, if not, say so and I'll explain in detail.
Thanks
CDitty
attached mail follows:
> -----Original Message-----
> From: Christopher Ditty [mailto:CDitty
email.usps.gov]
> Sent: 28 March 2000 23:24
> To: php3
> Subject: [PHP3] IsSet() problem
>
>
>
> Can anyone tell me how to correct this line?
>
> if(isset($error_phone_area) || (isset($error_phone_pre) ||
> (isset($error_phone_pre)){
try this (not tested)
if( isset($error_phone_area) || isset($error_phone_pre) || isset($error_phone_pre)) {
-- James Moore PHP UK ..Coming soon> It should be pretty self-explainitory, if not, say so and > I'll explain > in detail. > > Thanks > > 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:
Christopher Ditty wrote: > > Can anyone tell me how to correct this line? > > if(isset($error_phone_area) || (isset($error_phone_pre) || > (isset($error_phone_pre)){ > > It should be pretty self-explainitory, if not, say so and I'll explain > in detail. > > Thanks > > CDitty
o/~ Count, your brackets count them one by one... o/~ > if( isset($error_phone_area) || isset($error_phone_pre) || > isset($error_phone_pre) ){
Works, as would: > if( (isset($error_phone_area)) || (isset($error_phone_pre)) || > (isset($error_phone_pre)) ){
Here's the standard bracket debugging technique: stack them up. if( isset($error_phone_area) || (isset($error_phone_pre) || (isset($error_phone_pre) )
HTH, -Bop
-- Brought to you from boop!, the dual boot Linux/Win95 Compaq Presario 1625 laptop, currently running RedHat 6.1. Your bopping may vary.
attached mail follows:
Christopher Ditty writes: > > Can anyone tell me how to correct this line? > > if(isset($error_phone_area) || (isset($error_phone_pre) || > (isset($error_phone_pre)){ > > It should be pretty self-explainitory, if not, say so and I'll explain > in detail. > > Thanks > > CDitty
First thing is, I think there's a typo since the above is checking $error_phone_pre twice. Second, the parentheses are unbalanced. It looks like you either want:
if( isset( $error_phone_area ) || isset( $error_phone_pre ) || isset( $error_phone_pre ) ) { /* do something */ }
. . .or. . .
if( isset( $error_phone_area ) || ( isset( $error_phone_pre ) || isset( $error_phone_pre ) ) ) { /* do something */ }
I'm not sure what the duplication is trying to do, though...
Cheers,
Torben
-- +----------------------------------------------------------------+ |Torben Wilson <torbenphp.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben
netmill.fi| +----------------------------------------------------------------+
attached mail follows:
Ron Chmara wrote:
> Christopher Ditty wrote: > > > > Can anyone tell me how to correct this line? > > > > if(isset($error_phone_area) || (isset($error_phone_pre) || > > (isset($error_phone_pre)){ > > > > It should be pretty self-explainitory, if not, say so and I'll explain > > in detail. > > > > Thanks > > > > CDitty > > o/~ Count, your brackets count them one by one... o/~ > > if( isset($error_phone_area) || isset($error_phone_pre) || > > isset($error_phone_pre) ){ > > Works, as would: > > if( (isset($error_phone_area)) || (isset($error_phone_pre)) || > > (isset($error_phone_pre)) ){ > > Here's the standard bracket debugging technique: stack them up. > if( > isset($error_phone_area) || > (isset($error_phone_pre) || > (isset($error_phone_pre) > ) > > HTH, > -Bop >
Or better yet if your editor supports bracket matching use that, in vi sit on one bracket in cmd mode and type % this will take you to the matching brace or ring the bell (probably beep) the borland IDE does this too, i.e.. sit just before a bracket and press Alt-] or Alt-[ and it's do the same, I assume more editors do this, it saves loads of debug time.
--Grisly . oo `oO Francis Smit
Knowledge By Design/OzTel Suite 201, 683 George st Sydney 2000 NSW
mailto:francis
kbd.com.au
Tel: +61 2 9212 1399 Fax: +61 2 9212 5727 ___________________________________ m$: How can we stuff you up today?
attached mail follows:
My understanding is that the server has issued a 404, your script runs ok, but the particular browser you mention has received the 404 error header and decided not to display your custom output.
If you modify the header with:
header("HTTP/1.0 200 OK");
each time you want to display valid output, things may go better.
I don't like your idea of using the meta tag to call up the desired content as once again you are relying on the browser to do the right thing. Probably better to do, for example, header("Location: $go"). Though I am a bit hazy on exactly what happens in this case and am very much a novice in these matters, so beware!
Warren
On 28 Mar 2000 09:22:31 -0800, stefenlars
hotmail.com ("Stefen Lars")
wrote:
>I recently wrote the following script which is called when a 404 error
>happens on our Linux server, running Apache and PHP (and MySQL). This script
>redirects the web visitor depending upon which non-existing page he calls.
>Say for example, he called: www.abc.com/blah/prices he is sent to
>http://www.textcontrol.com/order/prices.htm which is the correct page.
>
><script language="php">
>
>$came_from = getenv("REQUEST_URI");
>$go = "http://www.abc.com";
>
>$word[0] = 'prices';
>$word[1] = 'wwwboard';
>$word[2] = 'search';
>
>$url = array
> ('prices' => 'http://www.abc.com/order/prices.htm',
> 'wwwboard'=> 'http://www.abc.com/discussion/list.php3?num=1',
> 'search' => 'http://www.abc.com/discussion/search.php3?num=1');
>
>for ($i = 0; $i < count($word); $i++)
> {
> if (ereg("$word[$i]", $came_from))
> $go = $url[$word[$i]];
> }
> print "<meta HTTP-EQUIV='refresh' CONTENT='0; URL=$go'>";
>
></script>
>
>This works perfectly, with Netscape and I had assumed, as this is
>server-side, the type of client (browser) would be of no importance.
>However, when calling (for example) the non-existing page
>www.abc.com/blah/prices with MSIE 4 and 5 all I see is the usual
>
>The page cannot be found
>The page you are looking for might have been removed, had its name changed,
>or is temporarily unavailable.
>
><SNIP>
>
>HTTP 404 - File not found
>Internet Explorer
>
>i.e. The actual script is not called, and thus the user cannot be redirect.
>
>Would anyone know why MSIE displays its own message page and does not use my
>script? AFAIK Apache's config files are correct with:
>
>ErrorDocument 404 /errors/404.php3
>
>How can I make MSIE call my script on a 404?
>
>Thanks in advance
>
>S
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.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:
hello,
How do I tell the PHP processor to stop processing my script and return the web page as is ( trucated ).
-thanks, Josh Zeidner
______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
attached mail follows:
Josh Zeidner writes: > hello, > > How do I tell the PHP processor to stop processing my script and return > the web page as is ( trucated ). > > -thanks, > Josh Zeidner
The search function on http://www.php.net turns up the following for 'terminate script':
http://www.php.net/manual/html/function.exit.html http://www.php.net/manual/html/function.die.html
-- +----------------------------------------------------------------+ |Torben Wilson <torbenphp.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben
netmill.fi| +----------------------------------------------------------------+
attached mail follows:
> > hello, > > How do I tell the PHP processor to stop processing my script and return > the web page as is ( trucated ). >
I think that youll find exit; does the job nicely see
http://www.php.net/manual/function.exit.php3
for more info
-- James Moore
attached mail follows:
exit;
-----Original Message-----
From: Josh Zeidner [mailto:jmz_phylogenic
hotmail.com]
Sent: Tuesday, March 28, 2000 3:45 PM
To: php3
lists.php.net
Subject: [PHP3] how do I terminate execution of a PHP script
hello,
How do I tell the PHP processor to stop processing my script and return the web page as is ( trucated ).
-thanks, Josh Zeidner
______________________________________________________ Get Your Private, Free Email at http://www.hotmail.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:
Sterling,
These are a superb couple of functions. Returning an encrypted string as charactors from the combined ascii values of the password and the original string is a marvel in simplicity :-)
But, I have found that the encrypted string can grow quite large though... much larger than I may want to pass in the url. I was wondering if you have any ideas on how I could compress the data further.
Here is a single page example on how I might be passing get variables/arrays useing your functions:
<? function Encrypt_data ( $data, $passwd ) { for ( $i = 0, $j = 0; $i < strlen($data); $i++, $j++ ) { $special = "f"; $middle = ord(substr($data,$i,1)) + ord(substr($passwd,$j,1)) + ord($special); if ( $j > strlen($passwd) ) $j=0; $EString .= chr($middle); } return $EString; }
function Decrypt_data ( $data, $passwd ) { for ( $i = 0, $j = 0; $i < strlen($data); $i++, $j++ ) { $special = "f"; $middle = ord(substr( $data, $i, 1 )) - ord(substr( $passwd, $j, 1 )) - ord($special); if ( $j > strlen($passwd) ) $j=0; $EString .= chr($middle); } return $EString; } ?> <html> <head> <title> Encript </title> </head> <body> <?
// Below are some variables I will pass in the url $some_array[]="foo"; $some_array[]="bar"; $variable_one="this"; $variable_two="that";
// I combine all variables into one array to pass $original_data = array($some_array, $variable_one, $variable_two);
// I now serialize original data $pass_data = serialize($original_data);
//I now encrypt it $encrypted = Encrypt_data($pass_data, "password" ); //I now base64_encode it $url_encrypted = base64_encode($encrypted);
printf("<a href=\"%s?passed=%s\">%s</a><br>\n",$PHP_SELF,$url_encrypted,"next page");
if ($passed) { $passed = base64_decode($passed); $decrypted = Decrypt_data($passed, "password"); $passed_original_data = unserialize($decrypted);
reset($passed_original_data); while (list($key, $val) = each($passed_original_data)) { if (is_array($val)){ while (list($key2, $val2) = each($val)){ echo "$key2 => $val2<br>";}} else echo "$key => $val<br>"; } } ?>
</body> </html>
Thanks, Steve
PS: You may have noticed I've added another var ($special) in your function that may make it even more secure :-). Also I don't quite understand how adding together two(2) strings that add up to a value greater than the ascii charactor set actually works. For example: $a = ord("}") + ord("}"); chr($a);
---------------------------------------------------------------- Get your free email from AltaVista at http://altavista.iname.com
attached mail follows:
Sterling,
These are a superb couple of functions. Returning an encrypted string as charactors from the combined ascii values of the password and the original string is a marvel in its simplicity :-)
But, I have found that the encrypted string can grow quite large though... much larger than I may want to pass in the url. I was wondering if you have any ideas on how I could compress the data further.
Here is a single page example on how I might be passing get variables/arrays useing your functions:
<? function Encrypt_data ( $data, $passwd ) { for ( $i = 0, $j = 0; $i < strlen($data); $i++, $j++ ) { $special = "f"; $middle = ord(substr($data,$i,1)) + ord(substr($passwd,$j,1)) + ord($special); if ( $j > strlen($passwd) ) $j=0; $EString .= chr($middle); } return $EString; }
function Decrypt_data ( $data, $passwd ) { for ( $i = 0, $j = 0; $i < strlen($data); $i++, $j++ ) { $special = "f"; $middle = ord(substr( $data, $i, 1 )) - ord(substr( $passwd, $j, 1 )) - ord($special); if ( $j > strlen($passwd) ) $j=0; $EString .= chr($middle); } return $EString; } ?> <html> <head> <title> Encript </title> </head> <body> <?
// Below are some variables I will pass in the url $some_array[]="foo"; $some_array[]="bar"; $variable_one="this"; $variable_two="that";
// I combine all variables into one array to pass $original_data = array($some_array, $variable_one, $variable_two);
// I now serialize original data $pass_data = serialize($original_data);
//I now encrypt it $encrypted = Encrypt_data($pass_data, "password" ); //I now base64_encode it $url_encrypted = base64_encode($encrypted);
printf("<a href=\"%s?passed=%s\">%s</a><br>\n",$PHP_SELF,$url_encrypted,"next page");
if ($passed) { $passed = base64_decode($passed); $decrypted = Decrypt_data($passed, "password"); $passed_original_data = unserialize($decrypted);
reset($passed_original_data); while (list($key, $val) = each($passed_original_data)) { if (is_array($val)){ while (list($key2, $val2) = each($val)){ echo "$key2 => $val2<br>";}} else echo "$key => $val<br>"; } } ?>
</body> </html>
Thanks, Steve
PS: You may have noticed I've added another var ($special) in your function that may make it even more secure :-). Also I don't quite understand how adding together two(2) strings that add up to a value greater than the ascii charactor set actually works. For example: $a = ord("}") + ord("}"); chr($a);
---------------------------------------------------------------- Get your free email from AltaVista at http://altavista.iname.com
attached mail follows:
Have you guys checked out the mcrypt library?
If not, do so!
- Mitch
----- Original Message -----
From: <steve1800
iname.com>
To: phplist <php3
lists.php.net>
Sent: Tuesday, March 28, 2000 5:06 PM
Subject: Re: [PHP3] 2 way encryption / de-encryption question
> Sterling,
>
> These are a superb couple of functions.
> Returning an encrypted string as charactors
> from the combined ascii values of the password and
> the original string is a marvel in its simplicity :-)
>
> But, I have found that the encrypted string can grow
> quite large though... much larger than I may want
> to pass in the url. I was wondering if you have any
> ideas on how I could compress the data further.
>
> Here is a single page example on how I might be
> passing get variables/arrays useing your functions:
>
> <?
> function Encrypt_data ( $data, $passwd )
> {
> for ( $i = 0, $j = 0; $i < strlen($data); $i++, $j++ )
> {
> $special = "f";
> $middle = ord(substr($data,$i,1)) +
> ord(substr($passwd,$j,1)) + ord($special);
> if ( $j > strlen($passwd) ) $j=0;
> $EString .= chr($middle);
> }
> return $EString;
> }
>
> function Decrypt_data ( $data, $passwd )
> {
> for ( $i = 0, $j = 0; $i < strlen($data); $i++, $j++ )
> {
> $special = "f";
> $middle = ord(substr( $data, $i, 1 )) -
> ord(substr( $passwd, $j, 1 )) - ord($special);
> if ( $j > strlen($passwd) ) $j=0;
> $EString .= chr($middle);
> }
> return $EString;
> }
> ?>
> <html>
> <head>
> <title>
> Encript
> </title>
> </head>
> <body>
> <?
>
> // Below are some variables I will pass in the url
> $some_array[]="foo";
> $some_array[]="bar";
> $variable_one="this";
> $variable_two="that";
>
> // I combine all variables into one array to pass
> $original_data = array($some_array, $variable_one, $variable_two);
>
> // I now serialize original data
> $pass_data = serialize($original_data);
>
> file://I now encrypt it
> $encrypted = Encrypt_data($pass_data, "password" );
>
> file://I now base64_encode it
> $url_encrypted = base64_encode($encrypted);
>
> printf("<a
href=\"%s?passed=%s\">%s</a><br>\n",$PHP_SELF,$url_encrypted,"next page");
>
> if ($passed)
> {
> $passed = base64_decode($passed);
> $decrypted = Decrypt_data($passed, "password");
> $passed_original_data = unserialize($decrypted);
>
> reset($passed_original_data);
> while (list($key, $val) = each($passed_original_data))
> {
> if (is_array($val)){
> while (list($key2, $val2) = each($val)){
> echo "$key2 => $val2<br>";}}
> else
> echo "$key => $val<br>";
> }
> }
> ?>
>
> </body>
> </html>
>
> Thanks,
> Steve
>
> PS: You may have noticed I've added another var ($special) in your
function
> that may make it even more secure :-). Also I don't quite understand
> how adding together two(2) strings that add up to a value greater than
> the ascii charactor set actually works.
> For example: $a = ord("}") + ord("}"); chr($a);
>
>
>
>
>
>
> ----------------------------------------------------------------
> Get your free email from AltaVista at http://altavista.iname.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'm having an interesting problem.
HTTP responses read from a socket have garbage around them.
Here's an example:
HTTP/1.1 200 OK Date: Tue, 28 Mar 2000 09:39:10 GMT Server: Apache/1.3.9 (Win32) X-Powered-By: PHP/3.0.15 Transfer-Encoding: chunked Content-Type: text/plain
120 la de dah, here's the content 0
What's happening with these additional pieces? This 120 and 0 aren't supposed to be there!
---- Stephen D C -- Auckland, New Zealand ---- kimihia*writeme.com // http://surf.to/stephenc ===-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=== Because of lamb tariffs the Unabomber will be sending nuclear warheads from Oklahoma to Iraq
attached mail follows:
With PHP version 3.0.15 I'm seeing some strange results trying to use array_walk();
When I call it against an array that has 9000 elements (checked by count() before I call array_walk()) and use a function with array_walk that simple prints "foo", nothing is ever printed, indicating to me that my function isn't even called once (much less for each element in an array).
Would anyone have any ideas for me? :-)
Thanks!
- Mitch
attached mail follows:
> -----Original Message-----
> From: Mitch Vincent [mailto:mitch
venux.net]
> Sent: Tuesday, March 28, 2000 4:12 PM
> To: php3
lists.php.net
> Subject: [PHP3] array_walk() doesn't work?
>
>
> With PHP version 3.0.15 I'm seeing some strange results trying to use
> array_walk();
>
> When I call it against an array that has 9000 elements (checked by count()
> before I call array_walk()) and use a function with array_walk that simple
> prints "foo", nothing is ever printed, indicating to me that my function
> isn't even called once (much less for each element in an array).
>
> Would anyone have any ideas for me? :-)
Hard to say much without seeing the code, but one common cause of this sort of behavior would be if the array isn't visible within the function (either by having been passed as a parameter, or being declared "global").
There's a bit more information on variable scope at
http://www.php.net/manual/language.variables.scope.php
--- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell
attached mail follows:
Hmm?
<begin example from manual> $fruits = array("d"=>"lemon","a"=>"orange","b"=>"banana","c"=>"apple");
function test_alter( &$item1, $key, $prefix ) { $item1 = "$prefix: $item1"; }
function test_print( $item2, $key ) { echo "$key. $item2<br>\n"; }
array_walk( $fruits, 'test_print' ); array_walk( $fruits, 'test_alter', 'fruit' ); array_walk( $fruits, 'test_print' );
<End example from manual>
Why would the array need to be global in the function called by array_walk()? The value of each element is being passed to the function (by reference in my case so the actual value in the array is changed in my function)
Thanks!!
- Mitch
----- Original Message -----
From: Mark Roedel <roedelm
letu.edu>
To: Mitch Vincent <mitch
venux.net>; <php3
lists.php.net>
Sent: Tuesday, March 28, 2000 5:43 PM
Subject: RE: [PHP3] array_walk() doesn't work?
> > -----Original Message-----
> > From: Mitch Vincent [mailto:mitch
venux.net]
> > Sent: Tuesday, March 28, 2000 4:12 PM
> > To: php3
lists.php.net
> > Subject: [PHP3] array_walk() doesn't work?
> >
> >
> > With PHP version 3.0.15 I'm seeing some strange results trying to use
> > array_walk();
> >
> > When I call it against an array that has 9000 elements (checked by
count()
> > before I call array_walk()) and use a function with array_walk that
simple
> > prints "foo", nothing is ever printed, indicating to me that my function
> > isn't even called once (much less for each element in an array).
> >
> > Would anyone have any ideas for me? :-)
>
> Hard to say much without seeing the code, but one common cause of this
sort
> of behavior would be if the array isn't visible within the function
(either
> by having been passed as a parameter, or being declared "global").
>
> There's a bit more information on variable scope at
>
> http://www.php.net/manual/language.variables.scope.php
>
>
> ---
> Mark Roedel | "Blessed is he who has learned to laugh
> Systems Programmer | at himself, for he shall never cease
> LeTourneau University | to be entertained."
> Longview, Texas, USA | -- John Powell
>
>
attached mail follows:
> -----Original Message-----
> From: Mitch Vincent [mailto:mitch
venux.net]
> Sent: Tuesday, March 28, 2000 4:54 PM
> To: Mark Roedel; php3
lists.php.net
> Subject: Re: [PHP3] array_walk() doesn't work?
>
>
> Why would the array need to be global in the function called by
> array_walk()? The value of each element is being passed to the
> function (by reference in my case so the actual value in the
> array is changed in my function)
Well, first-off...I *did* say that my advice was just a guess, and pointed out that I hadn't seen your code yet, right?
You're correct...the array shouldn't need to be visible to the function called by array_walk(). However, it *does* need to be visible to array_walk() itself, and if the array_walk() call is itself inside a function, then you need to account for that.
Any easy way to check would be to try something like an 'echo count($my_array);' just before your array_walk().
--- Mark Roedel (roedelmletu.edu) || "If I were a fraction, my goal Systems Programmer / WebMaster || would be world denomination." LeTourneau University || -- Chris Lipe
attached mail follows:
Anyone have a elegant way of scripting the detection of flash and passing that to a variable in PHP for later use?
####
# # Retro Interactive
#### New Media Threat
# # www.iretro.com
# # retro
iretro.com
attached mail follows:
I use the "tiny flash movie" approach shown at moock.org, and then all you need to do is add the variable in your GetUrl call, i.e. GetURL http://foo.com/bar.html?flash=v4
- Tim
> Anyone have a elegant way of scripting the detection of flash and passing > that to a variable in PHP for later use?
attached mail follows:
Hello,
(sorry for my poor english)
My apache error log is getting filled with messages like: [notice] child pid 5768 exit signal Segmentation fault (11) [notice] child pid 5767 exit signal Segmentation fault (11) [notice] child pid 5769 exit signal Segmentation fault (11) [notice] child pid 5770 exit signal Segmentation fault (11) [notice] child pid 5771 exit signal Segmentation fault (11) ... [notice] child pid 5790 exit signal Segmentation fault (11) ...
And the users (via WWW) get error messages like "Document contains no data", or the page transfer is aborted.
It only happen when any php3 script is called. Here is the server configuration: Apache 1.3.6 PHP 3.0.11
Apache was compiled with suexec enabled and -DBIG_SECURITY_HOLE in $CFLAGS to run as ROOT (I know the risk, but this is a no public machine and have only one user: me).
Can somebody tell me what to do? Where is the problem?
[]'s Walter Cruz
attached mail follows:
James Moore wrote: > > can you post to list your setup, eg do you have pgsql installed or mysql. > also what version of PHP3 are you running, etc > > -- > James Moore
Ok.
PHP 3.0.11 Apache 1.3.6 PostgreSQL 6.4 RH Linux 6.0
[]'s Walter Cruz
attached mail follows:
Nice and easy this is a known bug in PHP 3.0.11 you need to do the following fix
$ cd php-3.0.11/functions $ wget -O pgsql.c http://cvs.php.net/cvsweb.cgi/functions/pgsql.c?rev=1.87
Recompile. It should work fine then.
-- James Moore
attached mail follows:
Nice and easy this is a known bug in PHP 3.0.11 you need to do the following fix
$ cd php-3.0.11/functions $ wget -O pgsql.c http://cvs.php.net/cvsweb.cgi/functions/pgsql.c?rev=1.87
Recompile. It should work fine then.
-- James Moore
attached mail follows:
Hmm, something else interesting that I'm just now noticing.
I'm using exec() to put the output of a certain program into an array, it seems that the array won't take anymore than 9000 elements, I assume this could only be a problem with exec() since the only limitation of the number of elements in array is the memory in the machine (and this machine has 512 megs) -- correct? ..
Is there something else that comes into play with exec() ?
I know the program outputs more than 9000 lines as I can run it on the command line and redirect output to a file and count the lines in the file.
Thanks!
- Mitch
attached mail follows:
My PHP 3.0.14 under Windows does not support base64_encode and base64_decode functions. What I need to do to turn on this functions?
thanks in advance, Vladimir
P.S. I'm thankful to Derek Sivers for the answer about include_path details.
attached mail follows:
> My PHP 3.0.14 under Windows does not support base64_encode and > base64_decode functions. What I need to do to turn on this functions?
These are according to Function_List.txt and the best of my knowledge internal functions within the main exe/module so should not be turnable on or off, are you calling them correctly? are other functions working properly?
Sorry for the LACK of real help
-- James
attached mail follows:
Hi James,
>> My PHP 3.0.14 under Windows does not support base64_encode and >> base64_decode functions. What I need to do to turn on this functions? > These are according to Function_List.txt and the best of my knowledge > internal functions within the main exe/module so should not be turnable > on or off, are you calling them correctly? are other functions working > properly?
My PHP3.INI is look like:
<cut> ;Windows Extensions extension=php3_mysql.dll extension=php3_nsmail.dll extension=php3_calendar.dll extension=php3_dbase.dll extension=php3_filepro.dll extension=php3_gd.dll extension=php3_dbm.dll extension=php3_mssql.dll extension=php3_zlib.dll extension=php3_filepro.dll extension=php3_imap4r2.dll extension=php3_ldap.dll extension=php3_crypt.dll extension=php3_msql2.dll extension=php3_odbc.dll <cut>
Can anyone sent to me some sample with base64_encode/decode?
regards, Vladimir
attached mail follows:
Hi all,
It appears that safe mode is a much neglected aspect of PHP (been using PHP since the FI days). One of the things I need to add to safe mode is the restriction preventing script going above their own current directory (regardless of UID).
To this end I wrote the following code which works perfectly in "standalone" mode (i.e. a .c prog with the call in main()):
#include <stdio.h> #include <stdlib.h>
/* checkDirs * * This function is a TIBUS modification to ensure that PHP scripts cannot * access files outside of its own directory when running in SAFE_MODE. * */
int checkDirs( char *script, char *filename) { char *scriptdir[255], *search[255]; int i=0; int slash=47; int checklength=0, result=1; long pos=0, start=0;
for (i=0;i<255;i++) { scriptdir[i]='\0'; search[i]='\0'; } pos = strrchr(script, slash); i = (pos - (long)script);
printf("1 - script=%s\n filename=%s\n i=%d \n",script,filename,i );
if (i<0 || i>255) return 2;
i++; strncpy(scriptdir,script,i); scriptdir[i] = '\0';
if (i > (int)strlen(filename) ){ return 3; }
result = strncmp( scriptdir, filename, i );
if( result == 0 ) return 0; else return 1; }
The above function goes in the safe_mode.c file and in the checkuid function right after the check to see if it is a URL:
me = getenv("SCRIPT_FILENAME"); if (checkDirs(me, fn) != 0){ php_error(E_WARNING, "SAFE MODE Restriction in effect. You canno t access files outside of the current directory.") ; return(0); }
As I said, in a standalone prog the code works properly, however when I patch it into safe mode it gives a Segmentation fault (when trying to execute PHP). [Tue Mar 28 18:51:32 2000] [notice] child pid 34160 exit signal Segmentation fault (11) [Tue Mar 28 18:51:35 2000] [notice] child pid 34161 exit signal Segmentation fault (11)
Turning safemode off in the php.ini file, it doesn't cause an error, but I obviously then don't have the protection I desire.
Rasmus? anyone?
Regards,
Paul.
-- Email pgregg at tibus.net | T: +44 (0) 1232 424190 | CLUB24 INTERNET | Technical Director | F: +44 (0) 1232 424709 | Free Access | The Internet Business Ltd | W: http://www.tibus.net | www.club24.co.uk |
attached mail follows:
Comrades,
I am looking into PHP after coming from an ASP background.
One of my first tasks was to look into how php implements user specific session data and global application data between http requests. In other words, the equivalent of the ASP Session and Application collections.
I have read the FAQ, browsed the manual, and searched the archived discussions. Most of the session related discussions seem to center on how session data is stored. Phplib seems to use a database and php4 will use a file per session.
All of this research leads me to a more general question. Is there any facility at all for storing data in server memory in such a way that it will persist between requests? I can't believe that disk or database storage will scale well enough for a site that processes 20 million transactions per day.
Besides sessions, I want to be able to create global application caches for frequently accessed items. Let's say that I run a e-commerce site that sells trousers. I may decide to cache the relevant trouser data in memory to reduce the number of database accesses per page. How is this done in php?
Thanks, Kevin
attached mail follows:
Hey All, I think you are having the same problem I did. There is no real "install" as the docs suggest. What happens is simply copying the files to certain locations. HTH,
Harry Hoffman Product Systems Specialist Restaurants Unlimited Inc. 206.634.3082 x. 270
On Tue, 28 Mar 2000, mocha_php wrote:
> try reading the documentation included with it or http://phplib.netuse.de/
>
> At 11:59 AM 3/28/00 +0800, yuzz wrote:
> >hello..
> >how to install phplib7.2.tar.gz ...for u'r info ..i already extract
> >the file ...but donno how ot install it.....
>
>
> --
> 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:
dont buy at Amazon. com
http://www.nowebpatents.org
go there to find out WHY?
----- Original Message -----
From: "paulo henrique castro" <phlc
loreno.net>
To: <php3
lists.php.net>
Sent: Tuesday, March 28, 2000 5:48 AM
Subject: Re: [PHP3] PHP book
>
> >PHP4 Bible with CDROM (T.Converse)
> >PHP3 and PHP4 Functions Essentials(Bradshaw)
> >PHP4 in 24 Hours: Complete Starter Kit with CDROM(B.Schaffner)
>
> Where I can buy this books??
> I can't find this on Amazon..
>
> Tnx
>
>
>
>
> _____________________________________________________
> Paulo Henrique L. de Castro phlc
loreno.net
> UIN: 2280044 +55 61 345-7653
>
> Loreno.net Internet Provider http://www.loreno.net
>
> << chaodegizpontocompontobr >>
>
>
> --
> 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:
Hello paulo,
On 28-Mar-00 11:48:11, you wrote:
>>PHP4 Bible with CDROM (T.Converse) >>PHP3 and PHP4 Functions Essentials(Bradshaw)
I don't think these were published yet.
>>PHP4 in 24 Hours: Complete Starter Kit with CDROM(B.Schaffner)
> Where I can buy this books?? > I can't find this on Amazon..
Look here and you will find not only links to several online bookstores including Amazon.com, Amazon.co.uk and Amazon.de but also other stores. This page comes with reviews of the books that are available.
http://phpclasses.UpperDesign.com/products.html
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 --
attached mail follows:
Quoting Tom Kevich <php
artcenter.ac>:
Yes, please do not buy at Amazon. There are many other online booksellers
> dont buy at Amazon. com
> http://www.nowebpatents.org
> go there to find out WHY?
> ----- Original Message -----
> From: "paulo henrique castro" <phlc
loreno.net>
> To: <php3
lists.php.net>
> Sent: Tuesday, March 28, 2000 5:48 AM
> Subject: Re: [PHP3] PHP book
>
>
> >
> > >PHP4 Bible with CDROM (T.Converse)
> > >PHP3 and PHP4 Functions Essentials(Bradshaw)
> > >PHP4 in 24 Hours: Complete Starter Kit with CDROM(B.Schaffner)
> >
> > Where I can buy this books??
> > I can't find this on Amazon..
> >
> > Tnx
> >
> >
> >
> >
> > _____________________________________________________
> > Paulo Henrique L. de Castro phlc
loreno.net
> > UIN: 2280044 +55 61 345-7653
> >
> > Loreno.net Internet Provider http://www.loreno.net
> >
> > << chaodegizpontocompontobr >>
> >
> >
> > --
> > 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
>
>
solo si
=----------------------------------------------------------------------= Este correo ha sido enviado desde http://correoweb.i-negocios.com
attached mail follows:
Hello Roberto,
Personally, I feel that this anti-Amazon campaign is not properly justified. Amazon innovated. That's why they were granted the patents. If they didn't innovate the patent office would not have granted the patents.
If you don't agree with the patents that were awarded you should have complained with the patent office. Before a patent is awarded there is a comment period. Companies that feel affected by the patents awarded should have complained then.
Anyway, before you make any further comments, read this open letter from Jeff Bezos in which he explains that patents may be enforced case-by-case.
http://www.amazon.com/exec/obidos/subst/misc/patents.html
To me this means that they will only sue direct competitors that are benefiting from the inovations that they patented. I believe they have all the right to do so. If you benefit your business with a inovation from a competitor you are hurting his business at his expense. Patents exist to prevent this.
On 28-Mar-00 21:42:23, you wrote:
>Quoting Tom Kevich <php
artcenter.ac>:
>Yes, please do not buy at Amazon. There are many other online booksellers
>> dont buy at Amazon. com
>> http://www.nowebpatents.org
>> go there to find out WHY?
>> ----- Original Message -----
>> From: "paulo henrique castro" <phlc
loreno.net>
>> To: <php3
lists.php.net>
>> Sent: Tuesday, March 28, 2000 5:48 AM
>> Subject: Re: [PHP3] PHP book
>>
>>
>> >
>> > >PHP4 Bible with CDROM (T.Converse)
>> > >PHP3 and PHP4 Functions Essentials(Bradshaw)
>> > >PHP4 in 24 Hours: Complete Starter Kit with CDROM(B.Schaffner)
>> >
>> > Where I can buy this books??
>> > I can't find this on Amazon..
>> >
>> > Tnx
>> >
>> >
>> >
>> >
>> > _____________________________________________________
>> > Paulo Henrique L. de Castro phlc
loreno.net
>> > UIN: 2280044 +55 61 345-7653
>> >
>> > Loreno.net Internet Provider http://www.loreno.net
>> >
>> > << chaodegizpontocompontobr >>
>> >
>> >
>> > --
>> > 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
>>
>>
>solo si
>=----------------------------------------------------------------------= >Este correo ha sido enviado desde http://correoweb.i-negocios.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
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 --
attached mail follows:
Bradley,
Try the strstr function. It matches a string and automagically pulls everything until the end of the string (the rest of your file in this case). But don't do it line by line, because it's not as effective that way, and you could miss a match that stretches over two lines, try this:
$file = "/some/path/to/file.txt"; $fp = fopen($file,"r");
$filecontents = fread($fp,filesize($file)); $whatisleft = strstr("looking for onions",$filecontents);
fclose($fp);
Hans
On Tue, 28 Mar 2000, Bradley Kieser wrote:
> I just KNOW that PHP can do this in one easy step!
> I can code a loop for this, but it will bug me until I find that
> elegant solution! So, can anyone suggest a way to do the following:
>
> I have a string constructed from the following command:
>
> while ( ! feof( $fd ) )
> $result_line .= fgets( $np, 1024 );
>
> This gives a line-by-line record of the contents of the file (all text).
>
> I am looking for the line that has $search_string in it. What I want, is to
> put that line, and all the lines that follow it, into a string variable.
> Something like:
>
> $result=preg_match( "/^".$search_string."/im", $result_line )
>
> but instead of $result having true/false, it has all the lines following the $search_string
> line as well as that line in it.
>
> I know that someone out there has already done this! :-)
>
> Brad
>
>
> --
> 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
>
>
>
Hans Anderson ~ me
hansanderson.com
PO Box 426, Missoula, MT 59806 | PHP, Search Engines,
(800)397-9116 / (406)549-6524 | SQL databases. Al Gore
http://www.hansanderson.com | lied. *I* invented the
http://www.goofiness.com | Internet. And breathing.
attached mail follows:
Rasmus Lerdorf wrote:
> > in ASP you can aoutput large chunks of text like this > > <% > > if (condition) then > > %> > > dump html here > > dump more html here > > <% > > else > > %> > > dump other stuff here > > <% > > end if > > %> > > > > basically you close the script tag and open it again later and whatever > > is in betwen is outputted. > > I find this very useful in forms which use the same script for > > everything as in if action=="" then output the form html else if > > action="delete" do something else etc > > if I try it in PHP I get a parse error when I return to the script (at > > the <? else ) > > > > how can I avoid doing an echo for each line? it is very tedious, > > especially if you might modify the html a lot. > > <? if(condition) { ?> > HTML > HTML > <? } else { ?> > HTML > HTML > <? } ?> > > OR > > <? if(condition): ?> > HTML > HTML > <? else: ?> > HTML > HTML > <? endif; ?> > > -Rasmus
or if you like try looking at http://www.php.net/manual/control-structures.alternative-syntax.php this tells u we can use the following variant syntax, Personally I prefer the C like stuff Rasmus out lined above.
<?php if ($a == 5): ?> dump html here dump more html here <?php elseif ($a == 6): ?> dump other stuff here <?php else: ?> Dump yet more here <?php endif; ?>
Personally I find this far less nice on the eye than using curly braces "{}", but each to their own taste in such matters.
by the by there are also equivalent syntax's for while's and for's etc:
while (expr): statement ... endwhile;
for (expr1; expr2; expr3): statement; ...; endfor;
switch ($i): case 0: print "i equals 0"; break; case 1: print "i equals 1"; break; case 2: print "i equals 2"; break; default: print "i is not equal to 0, 1 or 2"; endswitch;
--Grisly . oo `oO Francis Smit
Knowledge By Design/OzTel Suite 201, 683 George st Sydney 2000 NSW
mailto:francis
kbd.com.au
Tel: +61 2 9212 1399 Fax: +61 2 9212 5727 ___________________________________ m$: How can we stuff you up today?
attached mail follows:
Hello Ryan,
On 28-Mar-00 03:52:18, you wrote:
>Hi,
>I've been thinking for awhile on a good way to do this, but I guess lack of >experience is my problem and I'm not coming up with anything.
>Using php/mysql I want to create a pedigree database (For those of you that >don't know it's basically a family tree for a dog) where the user can enter >a dog name and when they hit submit it will bring back the dogs parents, the >parents parents, etc... Probably going back 5-10 generations.
>I'm guessing that I want to have at least 2 tables. One table with the >fields dog_id and dog_name. The second table with the fields id, >dog_number, parent_number1, and parent_number2. I don't know if this is, >but I guess I'm looking for the most efficient way to do this..
>The next part is the one I can't even begin to figure out. How I do the DB >query to get my results. I need to come up with an efficient way to get the >dogs parents, get the parents of both grand parents, get the parents of all >the great grand parents, etc...
You need a proper tree structure which is not very easy to map to a relational model, but it is possible. You may want to look into the book "Joe's Celko: SQL for Smarties" that comes with a couple of chapters on how to map tree like structures in to relational tables. It comes with also examples of hairy queries to search, insert and update tree nodes.
Look here for a a list of sites where you may find the book. It will also be reviewed here some time soon:
http://phpclasses.UpperDesign.com/products.html
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 --
attached mail follows:
Hi, I am trying to develop a script which uses data gathered from other pages on the Internet and not on my server. I am trying to use:
$content = readfile("http://cryos.net/index.shtml");
and then analyse the contents of the page. The problem that I am having is that on my machine I get the error message:
Warning: ReadFile("http://cryos.net/index.shtml") - Transport endpoint is not connected in /home/httpd/html/fbt/devel/index.php3 on line 57
This works fine when run from the web server I rent space from, but not on my local development machine. I am using Mandrake 7.0, Apache 1.3.9, PHP 3.0.13 being run as an Apache module. I use pppd to access the Internet on a 56K modem.
I have looked through the manual and can't find any reason why this error should be generated. I haven't had any problems using any other functions at all. I don't know if I need to give Apache some kind of access it doesn't have to inetd or something.
All help would be appreciated.
Marcus D Hanwell
attached mail follows:
Folks,
I'm using PHP as a CGI with a Netscape server under Solaris 2.6.
Compilation goes fine, using --with-oracle. (php_info() shows that this was used during the compile). I can run PHP scripts fine also.
My problem is that NONE of the Oracle-specific functions work, even though it was supposedly compiled in. I am seeing the following error:
Call to unsupported or undefined function ora_logon()
No matter what function I try to call, I get that. Neither the Oracle8 nor the regular Oracle functions work.
If anyone has any idea of how I can fix this, please please PLEASE let me know. I just postponed my vacation until I can finish this project. You'd really make my day.
Thanks, -J
-- John Rumpelein JMR Technology Corp. jmrjmrtech.com http://www.jmrtech.com
attached mail follows:
Tim Thompson <tim
shin.net> writes:
> I just want a person to be able to check one of the boxes as a > choice and not multiple boxes. > > ============ > > <form> > > What kind of animal is it? > <INPUT TYPE=checkbox NAME=PET value=dog> Dog<br> > <INPUT TYPE=checkbox NAME=PET value=cat> cat<br> > <INPUT TYPE=checkbox NAME=PET value=pinguin> Cool Bird<br> > > <input type=submit> > </form>
What you want is radio buttons. Just use type=radio in your example above.
HTH
-- Echelon bait: Craig Livingstone security White Water Ortega jihad $400 million in gold bullion COSCO Honduras explosion class struggle Khaddafi cryptographic spy Cocaine Janet Reno
attached mail follows:
Folks,
Someone's already written back to me on the oracle thing. Apparently this is a fairly common problem.
I just ran a little test. I compiled php-3.0.15 on a machine *without oracle installed* on it using ./configure --with-oracle; make, and it built without complaining. Does anyone else think this might be a little misleading?
OK, just rebuilt it (on the system with oracle) with the ORACLE_HOME path as an argument to --with-oracle, and this doesn't seem to have helped. Any other ideas?
-J
-- John Rumpelein JMR Technology Corp. Internet Services Consultant Voicemail: 206.374.2367 jmrjmrtech.com http://www.jmrtech.com
attached mail follows:
Hi,
I have an idea for php.net. Who should I contact? Who's in charge of the site?
Best Regards, Bill Zeller
__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
attached mail follows:
Hi,
I tried to set up the connection apache with php3, mysql on wind98. Apache is running but did not interpret php3 or perl. I completed these steps as followed:
rename php3.ini-dist to php3.ini and copy to c:\windows take out the command of ; in the extension=php3_mysql.dll take out the command of ; in the browscap=c:\windows\browscap.ini
in apache, add: ScriptAlias /php3/ "c:/php3/" AddType application/x-httpd-php3 .php3 Action application/x-httpd-php3 "/php3/php.exe" DocumentRoot "C:\program Files\Apache Group\Apache\htdocs"
for Perl, I add ScriptAlias /cgi-bin/ "c:\program Files\Apache Group\Apache\cgi-bin" <Directory "c:\program Files\Apache Group\Apache\cgi-bin"> AddHandler cgi-script .cgi
When I posted my test script, it has the 404 error message: "you don't have the access permission on this server"
Usually in UNIX, I must change mode of the file. But, in windows98, do I have to change mode of the file? and How?
Thanks in advance,
MH
PS: Anyone did set up php3, mysql, apache on windows98, please help me.
My email is ngovan3
yahoo.com
Thanks in advance,
MH ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
attached mail follows:
================================================== No. 1 ¿ì¸® ÀÎÅͳÝ, ´ÙÀ½ Æò»ý ¾²´Â ¹«·á E-mail ÁÖ¼Ò ÇѸÞÀÏ³Ý Áö±¸ÃÌ ÇÑ±Û °Ë»ö¼ºñ½º Daum FIREBALL http://www.daum.net
attached mail follows:
chandrasekhar Bandaru wrote: > > Dear Warren, > I have compiled my php(v. 3.0.15) --with-ftp. But I couldn't find any > information in phpinfo() except for a message 'no additional information'. > There were no problems while configuration. > > When I tried to use ftp_connect() I am getting 'unsupported function'. > > I hope your code is ( ftp_connect() )working. I too have same version of > php(ie. 3.0.15). I see confidence in your contributed notes > dated:06-Mar-2000 10:42. > > Looking forward for your solution.
Well I discovered that it worked for me no problem, except that it only works when I run the pages from the browser, commandline ftp commands are not recognized though, so your problem might be connected to apache (assuming you are using that webserver). Did you recompile apache as well when you redid php? As well, ensure you shutdown your apache completely, then restart it (ie don't use apachectl stop and start) so that it rereads the configuration file. I am not sure if you need to check the settings in php.ini as well - I tried some many things I cant remember if I had to change anything there.
Good luck,
--Warren Grant Webmaster Maple Square - http://www.maplesquare.com
attached mail follows:
what the pseusocode is like this
If(this variable or array[] equal to null) then ..... else (){ then..... }
thank you for ur attention
Hendry Sumilo
IT department
Telp:04-6302652
MCMS Penang
hendry
mcms.com
attached mail follows:
if ($thisVar == null) { echo "I'm equal to null!"; }
regards, jason cox
> -----Original Message-----
> From: hendry [mailto:hendry
mcms.com]
> Sent: Tuesday, March 28, 2000 6:41 PM
> To: 'PHP'
> Subject: [PHP3] how to compare variable with null
>
>
> what the pseusocode is like this
>
> If(this variable or array[] equal to null)
> then .....
> else (){
> then.....
> }
>
> thank you for ur attention
>
>
>
> Hendry Sumilo
> IT department
> Telp:04-6302652
> MCMS Penang
> hendry
mcms.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
_______________________________________________________ Site Design, Hosting, and E-Commerce at www.webpipe.net
attached mail follows:
Hello
Anybody knows why I can't send all of these variables from flash4 movie to PHP3 script?
Layer #0: Variable _level0:smax = "-393.6" Variable _level0:smin = "0" Variable _level0:sorigin = "" Movie Clip: Target="" Variable _level0/idmenu/scrollbarcontinuousfeed2:newpos = "-385.55" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/custid:custid = "1231" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/custname:custname = "weeeee" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/bidus:bidus = "sdcasdf"
Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/alamat:alamat = "asdfasdf" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/kodpos:kodpos = "34234"
Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/kota:kota = "asdfasdf" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/telp:telp = "234234" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/fax:fax = "234234" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/karyawan:karyawan = "2352343" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/logo:logo = "adfgsdfg" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/status:status = "sdfgsdfg" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/email:email = "sdfgsdfg" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/subsegmen:subsegmen = "Tabel Aktivitas" Movie Clip: Target="" Variable _level0/idmenu/viewoptions/scrolltarget/segmen:segmen = "Tabel Data Pelanggan"
I use GetURL to call PHP3 script and have tried both GET and POST method. Neither of those two method works. This is my PHP3 script which is supposed to echo back the variables' content:
<html>
<head> <title></title> </head>
<body background="valtxtr.gif">
<p> </p>
<? print("<font face='Arial Rounded MT Bold' color='#8080FF'>Customer ID: $custid</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Customer Name: $custname</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Segmen: $segmen</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Sub segmen: $subsegmen</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Bidang Usaha: $bidus</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Alamat: $alamat</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Kode pos: $kodpos</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Kota: $kota</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>No. Telpon: $telp</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>No. Fax: $fax</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Jumlah Karyawan: $karyawan</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>File Logo: $logo</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Status: $status</font><br>\n"); print("<font face='Arial Rounded MT Bold' color='#8080FF'>Alamat E-Mail: $email</font><br>\n"); ?>
<p><font face="Arial Rounded MT Bold" color="#8080FF"> </font></p> </body> </html>
Any help is appreciated Thank's in advance regards
Eka
attached mail follows:
Hi,
I just went to download PHP4 and noticed binary downloads for windows relating to JAVA.
As a newbie to PHP I was wondering if the JAVA parts were incorporated into the UNIX/LINUX source, and if not, would they be available in the near future?
I am very interested in using JAVA on my website and it would be great if scripting was built in to PHP
I also like to know if that now MySQL access is embedded into PHP is it necessary to compile PHP using "--with-mysql" and what extra benefits this access gives ?
Thanks in advance Oldarnie
attached mail follows:
Hi,
Sorry if my question is a common one.
I have created a HTML/PHP form to feed a MySQL database with some text. When I put the quote sign (') in a form, the corresponding field of the database remains empty.
I use the following line to grab the form content: while (list($name,$value)=each($HTTP_POST_VARS)){ ... It works for all the fields but the ones with a quote sign inside.
Any idea?
Thanks in advance, Laurent
attached mail follows:
Hi everybody, Please, can somebody reply to this post. It seems that either the list server is down or my mail is being blocked Thanks John Dean
attached mail follows:
Jhon Dean want to know why he can't get any mail from php mailing list he asked to send it to php mailing list
Hendry Sumilo
IT department
Telp:04-6302652
MCMS Penang
hendry
mcms.com
> -----Original Message-----
> From: Dean, John [SMTP:DEANJX
mail.aramco.com.sa]
> Sent: Wednesday, March 29, 2000 11:18 AM
> To: hendry
> Subject: RE: [PHP3] Is the list server down
>
> To the list and cc to me if you don't mind. I have not received anything
> from the list from 3 or 4 days now and that is not normal for the PHP list
>
> Thanks a million
> John
>
> -----Original Message-----
> From: hendry [SMTP:hendry
mcms.com]
> Sent: Wednesday, March 29, 2000 6:16 AM
> To: 'Dean, John'
> Subject: RE: [PHP3] Is the list server down
>
> u want to reply to where?
>
> Hendry Sumilo
> IT department
> Telp:04-6302652
> MCMS Penang
> hendry
mcms.com
>
> > -----Original Message-----
> > From: Dean, John [SMTP:DEANJX
mail.aramco.com.sa]
> > Sent: Wednesday, March 29, 2000 11:12 AM
> > To: 'PHP Mailing List'
> > Subject: [PHP3] Is the list server down
> >
> > Hi everybody,
> > Please, can somebody reply to this post. It seems that either the list
> > server is down or my mail is being blocked
> > Thanks
> > John Dean
> >
>
attached mail follows:
This is a simple guide that I created to help folks determine if they have php3 enabled on their server and on their site:
http://www.openconcept.on.ca/guide-php.phtml
-- Mike A. Gifford OpenConcept Consulting MikeOpenConcept.On.Ca http://Www.Openconcept.On.Ca Web Design, Hosting, Graphic Design & Site Promotion Featured Site --> http://www.Airdiv-Cupe.Org
attached mail follows:
Is there a secret to strlen()? As you can see below, if the password is less than 4 or greater than 10, generate an error. For some reason, it seems to be skipping this spot. Any ideas?
if(!isset($email_error)){ if(strlen($password) > "3" && strlen($password) < "11"){ $error = "1"; $error_password_length = "<font color='#FF0000'>Passwords must be longer the 4 chars & less than 10 chars.</font><br>"; } }
Thanks
CDitty
ps....Thanks to all who answered my IsSet() question earlier. Was a simple misspelling.
attached mail follows:
Why are your numbers quoted?
On Tue, 28 Mar 2000, CDitty wrote:
> Is there a secret to strlen()? As you can see below, if the password is
> less than 4 or greater than 10, generate an error. For some reason, it
> seems to be skipping this spot. Any ideas?
>
>
>
> if(!isset($email_error)){
> if(strlen($password) > "3" && strlen($password) < "11"){
> $error = "1";
> $error_password_length = "<font color='#FF0000'>Passwords must be longer
> the 4 chars & less than 10 chars.</font><br>";
> }
> }
>
>
>
> Thanks
>
> CDitty
>
> ps....Thanks to all who answered my IsSet() question earlier. Was a simple
> misspelling.
>
>
> --
> 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:
Shouldn't they be?
At 02:27 PM 3/28/00 , Rasmus Lerdorf wrote:
>Why are your numbers quoted?
>
>On Tue, 28 Mar 2000, CDitty wrote:
>
> > Is there a secret to strlen()? As you can see below, if the password is
> > less than 4 or greater than 10, generate an error. For some reason, it
> > seems to be skipping this spot. Any ideas?
> >
> >
> >
> > if(!isset($email_error)){
> > if(strlen($password) > "3" && strlen($password) < "11"){
> > $error = "1";
> > $error_password_length = "<font color='#FF0000'>Passwords must be
> longer
> > the 4 chars & less than 10 chars.</font><br>";
> > }
> > }
> >
> >
> >
> > Thanks
> >
> > CDitty
> >
> > ps....Thanks to all who answered my IsSet() question earlier. Was a
> simple
> > misspelling.
> >
> >
> > --
> > 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:
> Shouldn't they be?
Of course not.
>
> At 02:27 PM 3/28/00 , Rasmus Lerdorf wrote:
> >Why are your numbers quoted?
> >
> >On Tue, 28 Mar 2000, CDitty wrote:
> >
> > > Is there a secret to strlen()? As you can see below, if the password is
> > > less than 4 or greater than 10, generate an error. For some reason, it
> > > seems to be skipping this spot. Any ideas?
> > >
> > >
> > >
> > > if(!isset($email_error)){
> > > if(strlen($password) > "3" && strlen($password) < "11"){
> > > $error = "1";
> > > $error_password_length = "<font color='#FF0000'>Passwords must be
> > longer
> > > the 4 chars & less than 10 chars.</font><br>";
> > > }
> > > }
> > >
> > >
> > >
> > > Thanks
> > >
> > > CDitty
> > >
> > > ps....Thanks to all who answered my IsSet() question earlier. Was a
> > simple
> > > misspelling.
> > >
> > >
> > > --
> > > 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 uncommitted them and still no go. Any other ideas?
Chris
At 02:27 PM 3/28/00 , Rasmus Lerdorf wrote:
>Why are your numbers quoted?
>
>On Tue, 28 Mar 2000, CDitty wrote:
>
> > Is there a secret to strlen()? As you can see below, if the password is
> > less than 4 or greater than 10, generate an error. For some reason, it
> > seems to be skipping this spot. Any ideas?
> >
> >
> >
> > if(!isset($email_error)){
> > if(strlen($password) > "3" && strlen($password) < "11"){
> > $error = "1";
> > $error_password_length = "<font color='#FF0000'>Passwords must be
> longer
> > the 4 chars & less than 10 chars.</font><br>";
> > }
> > }
> >
> >
> >
> > Thanks
> >
> > CDitty
> >
> > ps....Thanks to all who answered my IsSet() question earlier. Was a
> simple
> > misspelling.
> >
> >
> > --
> > 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:
You have a logic problem elsewhere in your script then.
On Tue, 28 Mar 2000, CDitty wrote:
> Just uncommitted them and still no go. Any other ideas?
>
> Chris
>
> At 02:27 PM 3/28/00 , Rasmus Lerdorf wrote:
> >Why are your numbers quoted?
> >
> >On Tue, 28 Mar 2000, CDitty wrote:
> >
> > > Is there a secret to strlen()? As you can see below, if the password is
> > > less than 4 or greater than 10, generate an error. For some reason, it
> > > seems to be skipping this spot. Any ideas?
> > >
> > >
> > >
> > > if(!isset($email_error)){
> > > if(strlen($password) > "3" && strlen($password) < "11"){
> > > $error = "1";
> > > $error_password_length = "<font color='#FF0000'>Passwords must be
> > longer
> > > the 4 chars & less than 10 chars.</font><br>";
> > > }
> > > }
> > >
> > >
> > >
> > > Thanks
> > >
> > > CDitty
> > >
> > > ps....Thanks to all who answered my IsSet() question earlier. Was a
> > simple
> > > misspelling.
> > >
> > >
> > > --
> > > 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:
Strange though, everything was working fine until I added this.
At 02:37 PM 3/28/00 , Rasmus Lerdorf wrote:
>You have a logic problem elsewhere in your script then.
>
>On Tue, 28 Mar 2000, CDitty wrote:
>
> > Just uncommitted them and still no go. Any other ideas?
> >
> > Chris
> >
> > At 02:27 PM 3/28/00 , Rasmus Lerdorf wrote:
> > >Why are your numbers quoted?
> > >
> > >On Tue, 28 Mar 2000, CDitty wrote:
> > >
> > > > Is there a secret to strlen()? As you can see below, if the
> password is
> > > > less than 4 or greater than 10, generate an error. For some
> reason, it
> > > > seems to be skipping this spot. Any ideas?
> > > >
> > > >
> > > >
> > > > if(!isset($email_error)){
> > > > if(strlen($password) > "3" && strlen($password) < "11"){
> > > > $error = "1";
> > > > $error_password_length = "<font color='#FF0000'>Passwords
> must be
> > > longer
> > > > the 4 chars & less than 10 chars.</font><br>";
> > > > }
> > > > }
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > > CDitty
> > > >
> > > > ps....Thanks to all who answered my IsSet() question earlier. Was a
> > > simple
> > > > misspelling.
> > > >
> > > >
> > > > --
> > > > 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 wrote: > > Shouldn't they be?
If password is less than "elf" and greater than "drei".... (Elf and drei are german for 3, 11 )... that may be making the *number* 3 into a text field holding a *letter* character of "3"... > At 02:27 PM 3/28/00 , Rasmus Lerdorf wrote: > >Why are your numbers quoted? > > > >On Tue, 28 Mar 2000, CDitty wrote: > > > > > Is there a secret to strlen()? As you can see below, if the password is > > > less than 4 or greater than 10, generate an error. For some reason, it > > > seems to be skipping this spot. Any ideas? > > > if(!isset($email_error)){ > > > if(strlen($password) > "3" && strlen($password) < "11"){
If password is greater than "blue" and less than "green", error.
> > > $error = "1";
> > > $error_password_length = "<font color='#FF0000'>Passwords must be
> > longer
> > > the 4 chars & less than 10 chars.</font><br>";
> > > }
> > > }
> > >
> > >
> > >
> > > Thanks
> > >
> > > CDitty
> > >
> > > ps....Thanks to all who answered my IsSet() question earlier. Was a
> > simple
> > > misspelling.
> > >
> > >
> > > --
> > > 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
> >
>
> --
> 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:
Understood. Never thought of it that way.
At 10:39 PM 3/28/00 , Ron Chmara wrote: >CDitty wrote: > > > > Shouldn't they be? > >If password is less than "elf" and greater than "drei".... >(Elf and drei are german for 3, 11 )... that may be making >the *number* 3 into a text field holding a *letter* character of "3"... >
attached mail follows:
hi, do:
On 29-Mar-2000 CDitty wrote: > Is there a secret to strlen()? As you can see below, if the password is > less than 4 or greater than 10, generate an error. For some reason, it > seems to be skipping this spot. Any ideas? > > > > if(!isset($email_error)){ > if(strlen($password) > "3" && strlen($password) < "11"){
if((strlen($password) < 4) OR (strlen($password)) > 10){
> $e