|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Mon Oct 22 2001 - 15:58:55 CDT
php-general Digest 22 Oct 2001 20:58:55 -0000 Issue 950
Topics (messages 71806 through 71869):
unset Cookies
71806 by: Michael.Thanry.Artemisinternational.fr
71814 by: Christian Kuhtz
71818 by: Andrey Hristov
Re: ezmlm response
71807 by: Din Web Udbyder
MessageBox in PHP?
71808 by: Silvia Mahiques
71809 by: _lallous
71810 by: Fatih Ustundag
71848 by: Mike Frazer
Re: Thick arc with PHP
71811 by: _lallous
Funny thing with variables
71812 by: Niklas Lampén
71815 by: Tomy Wagner
71827 by: Niklas Lampén
validating form data...
71813 by: Toke Herkild
71816 by: nicolas costes
71817 by: Toke Herkild
71819 by: Andrey Hristov
71821 by: Miles Thompson
71823 by: Simba Pangeti
71825 by: Toke Herkild
71847 by: Mike Frazer
language question
71820 by: David Otton
71833 by: Christian Reiniger
HTTP Authentication
71822 by: Wilbert Enserink
71826 by: Stig-rjan Smelror
Re: Error on session_start()
71824 by: Dave Watkinson
format date
71828 by: Caleb Carvalho
Re: [PHP-DB] variable operators in queries
71829 by: Rick Emery
php code to fax
71830 by: Glenn Antoine
71856 by: Jerry Lake
71859 by: Chris Carbaugh
DATE FORMAT ISSUES
71831 by: Beeman
71832 by: _lallous
71836 by: Beeman
71840 by: Rasmus Lerdorf
71842 by: Beeman
71843 by: Rasmus Lerdorf
71845 by: Beeman
PHP on fu!$#
ing PWS
71834 by: German Benzano
71837 by: Sam Masiello
Getting session to work
71835 by: Sean LeBlanc
71839 by: Sean LeBlanc
Re: php hosting
71838 by: Andrew Chase
Re: Forms and Netscape -- spacing problem -- Help!
71841 by: Andrew Chase
Html email
71844 by: Benny
What attribute is used ... when a session will expire?
71846 by: Jason Caldwell
Re: Update onBlur or onChange
71849 by: Mark
Copying to network drive (Win32)
71850 by: Ville Mattila
71863 by: Mark
Logic/method question...
71851 by: Jeff Lewis
71855 by: Mike Frazer
Print statements , syntax , usage, etc
71852 by: Ricardo Fitzgerald
71853 by: Papp Gyozo
71854 by: CC Zona
*** I want a swanky icon in the address bar, like major sites (e.g. php.net, google.com)...
71857 by: Robin McKenzie
71858 by: Kurt Lieber
PHP3 file upload
71860 by: rpruitt.mid-tn.com
Re: This is my second work :)
71861 by: Robin McKenzie
syntax for checking if string contains something
71862 by: Peter
str_replace binary safe??
71864 by: heinisch.creaction.de
71867 by: DL Neil
71869 by: Oliver Heinisch
Session control issue
71865 by: Gaylen Fraley
Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output
71866 by: Philippe Conor
PHP4-Windows98-PWS
71868 by: Yim Lee
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hello everyone!
Is there a way to unset or expire a cookie which was not set by my pages?
Michael
attached mail follows:
Michael Thanry wrote:
>
> Hello everyone!
>
> Is there a way to unset or expire a cookie which was not set by my pages?
Overriding an existing cookie with setcookie()and 1 sec expiry should do the
trick.
attached mail follows:
Depends on that if the cookie is set on your server or not.
If it is set on your server and the cookie_domain is set to /, that means ->
every script from the server has right to access it, if the path is more
restrictive you cannot access it.
And of course if the cookie is from another domain -> no chance because of
browser restrictive policy about cookies.
-- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.comOn Monday 22 October 2001 08:07 am, you wrote: > Michael Thanry wrote: > > Hello everyone! > > > > Is there a way to unset or expire a cookie which was not set by my pages? > > Overriding an existing cookie with setcookie()and 1 sec expiry should do > the trick.
attached mail follows:
Will you please stop sending your mail to us immidiately -and we would not accept you can't find our e-mail address in your databse - because how can you send e-mail to us on this e-mail account if you don't have it in your database???? STOP IT AND DO IT NOW! Regards Frank Mikkelsen
----- Original Message -----
From: <php-general-help
lists.php.net>
To: <info
dkwo.dk>
Sent: Monday, October 22, 2001 11:38 AM
Subject: ezmlm response
> Hi! This is the ezmlm program. I'm managing the
> php-general
lists.php.net mailing list.
>
> I'm working for my owner, who can be reached
> at php-general-owner
lists.php.net.
>
> Acknowledgment: The address
>
> info
dkwo.dk
>
> was not on the php-general mailing list when I received
> your request and is not a subscriber of this list.
>
> READ THIS ENTIRE MESSAGE TO FIND OUT HOW TO UNSUBSCRIBE YOURSELF IF YOU
> ARE SUBSCRIBED WITH A DIFFERENT MAILING ADDRESS.
>
> If you're subscribed to the digest form of the mailing list, make sure
> you're sending your unsubscribe request to the "-digest-unsubscribe"
> address.
>
> If you unsubscribe, but continue to receive mail, you're subscribed
> under a different address than you currently use. Please look at the
> header for:
>
> 'Return-Path: <php-general-return-1234-user=host.dom
lists.php.net>'
>
> The unsubscribe address for this user would be:
> 'php-general-unsubscribe-user=host.dom
lists.php.net'.
> Just mail to that address, substituting user=host.dom for the real
> values, reply to the confirmation request, and you should receive a message
> that you're off the list.
>
> For some mail programs, you need to make the headers visible to
> see the return path:
>
> For Eudora 4.0, click on the "Blah blah ..." button.
> For PMMail, click on "Window->Show entire message/header".
>
> If this still doesn't work, I'm sorry to say that I can't help you.
> Please FORWARD a list message together with a note about what you're
> trying to achieve and a list of addresses that you might be subscribed
> under to my owner:
>
> php-general-owner
lists.php.net
>
> who will take care of it. My owner is a little bit slower than I am,
> so please be patient.
>
>
> --- Administrative commands for the php-general list ---
>
> I can handle administrative requests automatically. Please
> do not send them to the list address! Instead, send
> your message to the correct command address:
>
> For help and a description of available commands, send a message to:
> <php-general-help
lists.php.net>
>
> To subscribe to the list, send a message to:
> <php-general-subscribe
lists.php.net>
>
> To remove your address from the list, just send a message to
> the address in the ``List-Unsubscribe'' header of any list
> message. If you haven't changed addresses since subscribing,
> you can also send a message to:
> <php-general-unsubscribe
lists.php.net>
>
> or for the digest to:
> <php-general-digest-unsubscribe
lists.php.net>
>
> For addition or removal of addresses, I'll send a confirmation
> message to that address. When you receive it, simply reply to it
> to complete the transaction.
>
> If you need to get in touch with the human owner of this list,
> please send a message to:
>
> <php-general-owner
lists.php.net>
>
> Please include a FORWARDED list message with ALL HEADERS intact
> to make it easier to help you.
>
> --- Enclosed is a copy of the request I received.
>
> Return-Path: <info
dkwo.dk>
> Received: (qmail 84737 invoked from network); 22 Oct 2001 09:38:37 -0000
> Received: from unknown (HELO dns1.host2000.dk) (64.39.31.249)
> by pb1.pair.com with SMTP; 22 Oct 2001 09:38:37 -0000
> Received: from fm (62.214.16.111) by SERVER249 (MailMax 4. 7. 1. 4) with ESMTP id 44171560 for php-general-uc.1003741541.ehpfeaonkmonedcaocai-info=dkwo.dk
lists.php.net; Mon, 22 Oct 2001 11:53:38 +0200 WDT
> Message-ID: <008201c15add$b571f060$2904fe0a
fm>
> From: "Din Web Udbyder" <info
dkwo.dk>
> To: <php-general-uc.1003741541.ehpfeaonkmonedcaocai-info=dkwo.dk
lists.php.net>
> References: <1003741541.75072.ezmlm
lists.php.net>
> Subject: Sv: confirm unsubscribe from php-general
lists.php.net
> Date: Mon, 22 Oct 2001 11:41:20 +0200
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 5.00.2615.200
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
>
>
> ----- Original Message -----=20
> From: <php-general-help
lists.php.net>
> To: <info
dkwo.dk>
> Sent: Monday, October 22, 2001 11:05 AM
> Subject: confirm unsubscribe from php-general
lists.php.net
>
>
> > Hi! This is the ezmlm program. I'm managing the
> > php-general
lists.php.net mailing list.
> >=20
> > I'm working for my owner, who can be reached
> > at php-general-owner
lists.php.net.
> >=20
> > To confirm that you would like
> >=20
> > info
dkwo.dk
> >=20
> > removed from the php-general mailing list, please send an empty reply=20
> > to this address:
> >=20
> > =
> php-general-uc.1003741541.ehpfeaonkmonedcaocai-info=3Ddkwo.dk
lists.php.n=
> et
> >=20
> > Usually, this happens when you just hit the "reply" button.
> > If this does not work, simply copy the address and paste it into
> > the "To:" field of a new message.
> >=20
> > or click here:
> > =
> mailto:php-general-uc.1003741541.ehpfeaonkmonedcaocai-info=3Ddkwo.dk
list=
> s.php.net
> >=20
> > PLEASE NOTE: I haven't checked whether your address is currently
> > on the mailing list. To see what address you used to subscribe,
> > look at the messages you are receiving from the mailing list. Each
> > message has your address hidden inside its return path; for
> > example, mary
xdd.ff.com receives messages with return path:
> > <php-general-return-<number>-mary=3Dxdd.ff.com
lists.php.net.
> >=20
> > Some mail programs are broken and cannot handle long addresses. If you
> > cannot reply to this request, instead send a message to
> > <php-general-request
lists.php.net> and put the entire address listed =
> above
> > into the "Subject:" line.
> >=20
> >=20
> > --- Administrative commands for the php-general list ---
> >=20
> > I can handle administrative requests automatically. Please
> > do not send them to the list address! Instead, send
> > your message to the correct command address:
> >=20
> > For help and a description of available commands, send a message to:
> > <php-general-help
lists.php.net>
> >=20
> > To subscribe to the list, send a message to:
> > <php-general-subscribe
lists.php.net>
> >=20
> > To remove your address from the list, just send a message to
> > the address in the ``List-Unsubscribe'' header of any list
> > message. If you haven't changed addresses since subscribing,
> > you can also send a message to:
> > <php-general-unsubscribe
lists.php.net>
> >=20
> > or for the digest to:
> > <php-general-digest-unsubscribe
lists.php.net>
> >=20
> > For addition or removal of addresses, I'll send a confirmation
> > message to that address. When you receive it, simply reply to it
> > to complete the transaction.
> >=20
> > If you need to get in touch with the human owner of this list,
> > please send a message to:
> >=20
> > <php-general-owner
lists.php.net>
> >=20
> > Please include a FORWARDED list message with ALL HEADERS intact
> > to make it easier to help you.
> >=20
> > --- Enclosed is a copy of the request I received.
> >=20
> > Return-Path: <info
dkwo.dk>
> > Received: (qmail 75058 invoked from network); 22 Oct 2001 09:05:38 =
> -0000
> > Received: from unknown (HELO dns1.host2000.dk) (64.39.31.249)
> > by pb1.pair.com with SMTP; 22 Oct 2001 09:05:38 -0000
> > Received: from fm (62.214.16.111) by SERVER249 (MailMax 4. 7. 1. 4) =
> with ESMTP id 24411560 for php-general-unsubscribe
lists.php.net; Mon, =
> 22 Oct 2001 11:20:41 +0200 WDT
> > Message-ID: <001c01c15ad9$1b6520e0$2904fe0a
fm>
> > From: "DKWO" <info
dkwo.dk>
> > To: <php-general-unsubscribe
lists.php.net>
> > Subject:=20
> > Date: Mon, 22 Oct 2001 11:08:24 +0200
> > MIME-Version: 1.0
> > Content-Type: text/plain;
> > charset=3D"iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> > X-Priority: 3
> > X-MSMail-Priority: Normal
> > X-Mailer: Microsoft Outlook Express 5.00.2615.200
> > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
> >=20
> >=20
> >=20
> >=20
>
>
attached mail follows:
Hi!, How can I make a messagebox in PHP to print errors or warning (such as in VB or VC++)?. Is it possible?
Silvia Mahiques
attached mail follows:
you can use JavaScript to do that... <script> alert('your message goes here'); </script>
embed this in your HTML source code.
it is not possible to do so in PHP since it is server side.
"Silvia Mahiques" <mahiques
posta.unizar.es> wrote in message
news:005101c15aec$9ccac280$1a9cd29b
tscpc6...
Hi!,
How can I make a messagebox in PHP to print errors or warning (such as in VB
or VC++)?. Is it possible?
Silvia Mahiques
attached mail follows:
But you can write javascript code with php like this:
if ($err) { echo "<html><body>" echo "<script>\n"; echo "alert('ERRORR');\n"; echo "</script>\n"; echo "</body></html>\n"; exit(); }
-----Original Message-----
From: _lallous [mailto:elias_bachaalany
yahoo.com]
Sent: Monday, October 22, 2001 3:20 PM
To: php-general
lists.php.net
Subject: [PHP] Re: MessageBox in PHP?
you can use JavaScript to do that... <script> alert('your message goes here'); </script>
embed this in your HTML source code.
it is not possible to do so in PHP since it is server side.
"Silvia Mahiques" <mahiques
posta.unizar.es> wrote in message
news:005101c15aec$9ccac280$1a9cd29b
tscpc6...
Hi!,
How can I make a messagebox in PHP to print errors or warning (such as in VB
or VC++)?. Is it possible?
Silvia Mahiques
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Or shorten your code:
put the Javascript into a separate file, then use
if ($err) { include("/javascript/file/path/here"); }
Use it over and over again via this method.
"Fatih Ustundag" <fatih
yore.com.tr> wrote in message
news:NEBBKJOEILFNKPEPIGFOOEIOEIAA.fatih
yore.com.tr...
> But you can write javascript code with php
> like this:
>
> if ($err)
> {
> echo "<html><body>"
> echo "<script>\n";
> echo "alert('ERRORR');\n";
> echo "</script>\n";
> echo "</body></html>\n";
> exit();
> }
>
> -----Original Message-----
> From: _lallous [mailto:elias_bachaalany
yahoo.com]
> Sent: Monday, October 22, 2001 3:20 PM
> To: php-general
lists.php.net
> Subject: [PHP] Re: MessageBox in PHP?
>
>
> you can use JavaScript to do that...
> <script>
> alert('your message goes here');
> </script>
>
> embed this in your HTML source code.
>
> it is not possible to do so in PHP since it is server side.
>
> "Silvia Mahiques" <mahiques
posta.unizar.es> wrote in message
> news:005101c15aec$9ccac280$1a9cd29b
tscpc6...
> Hi!,
> How can I make a messagebox in PHP to print errors or warning (such as in
VB
> or VC++)?. Is it possible?
>
> Silvia Mahiques
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
try this:
ImageSetThickness()
"Ville Mattila" <ville.mattila
pilotmedia.fi> wrote in message
news:009801c15a31$e7f56140$0100a8c0
ville...
Hi there,
How it would be possible to draw a "thich" arc with PHP & GD? You can see a picture here about thing I mean: http://www.pilotmedia.fi/xfiles/circle.jpg
ImageArc -function is just what I need, but it makes all arcs only 1 pixel width.
Any ideas?
Cheers, - Ville
attached mail follows:
What causes this: I have a page getting variable $BackLink with string "http://www.domain.com/my_page.php4". I accidentaly wrote <?=~$BackLink?> and what I got out was "—‹‹ÅÐЈˆˆÑ™–‘“ž‘›š‡‹ŒÑœ’Й™š šŽŠšŒ‹ ™‘‹Ñ—Ë". What causes this? What does that ~ sign do before a variable? Niklas Lampén
attached mail follows:
rtfm :o)))) http://www.php.net/manual/en/language.operators.bitwise.php
Wagner Tomy Web Developer Editus Luxembourg S.A.
----- Original Message -----
From: "Niklas Lampén" <niklas.lampen
publico.fi>
To: "Php-General" <php-general
lists.php.net>
Sent: Monday, October 22, 2001 1:59 PM
Subject: [PHP] Funny thing with variables
> What causes this: > > I have a page getting variable $BackLink with string "http://www.domain.com/my_page.php4. > I accidentaly wrote <?=~$BackLink?> and what I got out was "—‹‹ÅÐЈˆˆÑ™– ‘“ž‘›š‡‹ŒÑœ’Й™š šŽŠšŒ‹ ™‘‹Ñ—Ë". What causes this? What does that ~ sign do before a variable? > > > Niklas Lampén >
attached mail follows:
F... read it and got it! ;) I had no idea what to look for..
Niklas
P.S. Thanks
-----Original Message-----
From: Tomy Wagner [mailto:tomy.wagner
luxweb.lu]
Sent: 22. lokakuuta 2001 15:16
To: Niklas Lampén; Php-General
Subject: Re: [PHP] Funny thing with variables
rtfm :o)))) http://www.php.net/manual/en/language.operators.bitwise.php
Wagner Tomy Web Developer Editus Luxembourg S.A.
----- Original Message -----
From: "Niklas Lampén" <niklas.lampen
publico.fi>
To: "Php-General" <php-general
lists.php.net>
Sent: Monday, October 22, 2001 1:59 PM
Subject: [PHP] Funny thing with variables
> What causes this: > > I have a page getting variable $BackLink with string "http://www.domain.com/my_page.php4. > I accidentaly wrote <?=~$BackLink?> and what I got out was > "—‹‹ÅÐЈˆˆÑ™– ‘“ž‘›š‡‹ŒÑœ’Й™š šŽŠšŒ‹ ™‘‹Ñ—Ë". What causes this? What does that ~ sign do before a variable? > > > Niklas Lampén >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I've made a script which ought to validate if there is data in the fields or not... but it doesn't seem to work...
the validation is following: if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){ do stuff ... }
But even if I submit an empty form it executes "do stuf..." I have tried to put an empty space into the $Name and $Message test but that doesn't seem to do any difference either...
attached mail follows:
hellorghh !!!
I think that :
if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){ do stuff ... }
...should be better . (&&, not "and")
"Toke Herkild" <cafe
hodclub.dk> a crit dans le message news:
20011022115945.45960.qmail
pb1.pair.com...
> I've made a script which ought to validate if there is data in the fields
or
> not... but it doesn't seem to work...
>
> the validation is following:
> if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){
> do stuff ...
> }
>
> But even if I submit an empty form it executes "do stuf..."
> I have tried to put an empty space into the $Name and $Message test but
that
> doesn't seem to do any difference either...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
(- Nayco.
//\ nayco
netcourrier.com
v_/_ http://nayco.free.fr
attached mail follows:
Nope, wasn't that... And it should not do any difference using 'and', 'AND' or '&&' as they do the same thing...
Nicolas Costes : > hellorghh !!! > > I think that : > > if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){ > do stuff ... > } > > ...should be better . (&&, not "and") > >
attached mail follows:
&& and "and" are same except that they stay at different levels in the precedence table. But if the programmer is skilled he will never write code which depends on the precedence table but put brackets here and there, everywhere they are needed.
-- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.comOn Monday 22 October 2001 08:19 am, you wrote: > hellorghh !!! > > I think that : > > if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){ > do stuff ... > } > > ...should be better . (&&, not "and") > > > "Toke Herkild" <cafe
hodclub.dk> a crit dans le message news: > 20011022115945.45960.qmail
pb1.pair.com... > > > I've made a script which ought to validate if there is data in the fields > > or > > > not... but it doesn't seem to work... > > > > the validation is following: > > if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){ > > do stuff ... > > } > > > > But even if I submit an empty form it executes "do stuf..." > > I have tried to put an empty space into the $Name and $Message test but > > that > > > doesn't seem to do any difference either... > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net > > For additional commands, e-mail: php-general-help
lists.php.net > > To contact the list administrators, e-mail: php-list-admin
lists.php.net > > (- Nayco. > //\ nayco
netcourrier.com > v_/_ http://nayco.free.fr
attached mail follows:
Divide and conquer ....
Have you tried it one function at a time -- e.g. if (email_is_valid($Email) { do stuff ...
also, what values do these tests return? have you echoed the values?
HTH - Miles
At 02:07 PM 10/22/01 +0200, Toke Herkild wrote:
>I've made a script which ought to validate if there is data in the fields or
>not... but it doesn't seem to work...
>
>the validation is following:
>if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){
> do stuff ...
>}
>
>But even if I submit an empty form it executes "do stuf..."
>I have tried to put an empty space into the $Name and $Message test but that
>doesn't seem to do any difference either...
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
hi miles , this should work for you!!!!!!!!!
if (!eregi("^([a-z0-9_]|\\-|\\.)+
(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$",
$email))
{
echo " <B>Please go back and fill in a VALID e-mail address</B>
exit; }
thanks simba
-----Original Message-----
From: Miles Thompson [mailto:milesthompson
ns.sympatico.ca]
Sent: 22 October 2001 14:36
To: php-general
lists.php.net
Subject: Re: [PHP] validating form data...
Divide and conquer ....
Have you tried it one function at a time -- e.g. if (email_is_valid($Email) { do stuff ...
also, what values do these tests return? have you echoed the values?
HTH - Miles
At 02:07 PM 10/22/01 +0200, Toke Herkild wrote:
>I've made a script which ought to validate if there is data in the fields
or
>not... but it doesn't seem to work...
>
>the validation is following:
>if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){
> do stuff ...
>}
>
>But even if I submit an empty form it executes "do stuf..."
>I have tried to put an empty space into the $Name and $Message test but
that
>doesn't seem to do any difference either...
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/01
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/01
attached mail follows:
Very embaressing.... The error where not in my if-statement... but in what I did later on in the else-clause... so boys and girls... remember you do not set variables like this: $Var = = "Avariable"; // Doesn't work..... (slap me!) the correct is : $Var = "Avariable";
Sorry for vasting your time... And Thanks for all the help... Toke.
"Toke Herkild" <cafe
hodclub.dk> skrev i en meddelelse
news:20011022115945.45960.qmail
pb1.pair.com...
> I've made a script which ought to validate if there is data in the fields
or
> not... but it doesn't seem to work...
>
> the validation is following:
> if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){
> do stuff ...
> }
>
> But even if I submit an empty form it executes "do stuf..."
> I have tried to put an empty space into the $Name and $Message test but
that
> doesn't seem to do any difference either...
>
>
attached mail follows:
To verify the existence of both a name and message, try a test similar to the following:
if ((email_is_valid($email)) && (strlen($name) > 0) && (strlen($name) > 0)) { ... }
I've found that using "" in a conditional block tends to be a bit buggy. strlen() seems to be pretty solid for verifying the existence of text in a variable.
Mike Frazer
"Toke Herkild" <cafe
hodclub.dk> wrote in message
news:20011022115945.45960.qmail
pb1.pair.com...
> I've made a script which ought to validate if there is data in the fields
or
> not... but it doesn't seem to work...
>
> the validation is following:
> if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){
> do stuff ...
> }
>
> But even if I submit an empty form it executes "do stuf..."
> I have tried to put an empty space into the $Name and $Message test but
that
> doesn't seem to do any difference either...
>
>
attached mail follows:
why does this work:
foreach ($table as $row) list ($a, $b) = $row;
but this doesn't?
foreach ($table as list ($a, $b));
it seems to me that the two are equivalent.
attached mail follows:
On Monday 22 October 2001 14:28, David Otton wrote: > why does this work: > > foreach ($table as $row) > list ($a, $b) = $row; > > but this doesn't? > > foreach ($table as list ($a, $b));
because the correct syntax is foreach ($table as $key => $val) { ... }
RTFM :)
BTW: overwriting $a, $b in each iteration isn't particularly useful...
-- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/)Those who will not reason, are bigots, those who cannot, are fools, and those who dare not, are slaves.
- George Gordon Noel Byron (1788-1824), [Lord Byron]
attached mail follows:
Hi all,
is it possible to do a HTTP Authentication with my own loginform instead of using the ugly pop up window?
regards,
Wilbert
attached mail follows:
Wilbert Enserink wrote:
> Hi all, > > > is it possible to do a HTTP Authentication with my own loginform instead of > using the ugly pop up window? > > > regards, > > Wilbert >
With a lot of thought, yes. You need to consider a few factors before you start.
Security: Checking the IP address of the user. Performance: to DB or not to DB, that is the question! Security again: what kind of password algoritm are you going to use.
And so on and so forth.
I wish you the best of luck. I made such a script just a month ago :)
-- Stig-rjan Smelror SystemutviklerLinux Communications AS Sandakerveien 48b Box 1801 - Vika N-0123 Oslo, Norway
tel. +47 22 09 28 80 fax. +47 22 09 28 81 http://www.lincom.no/
attached mail follows:
You've probably got an
echo $something_or_other
line before calling the header() function.
If not, have you included or required a file? If there's a blank line (or more than one blank line) at the bottom of your included or required file that is considered output to the browser.
Header() MUST be the vert first thing sent to the browser.
Hope this puts you on the right track
Dave
-----Original Message-----
From: Zavier Sheran [mailto:aaaweb
zavier.net]
Sent: 19 October 2001 23:13
To: php-general
lists.php.net
Subject: [PHP] Error on session_start()
When I try to start a session or authenticate with HTTP headers, I get the following error:
Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php:1) in /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php on line 1
It always says the headers were already sent. What could be the cause?
It happens on my dev server (Win32, PHP 4.06) and on my ISP's virtual server (FreeBSD, PHP 4.04)
-Zavier
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi all,
i would like a simple way to get date field formatted from my little sybase,
for some reason the output of it is showing the wrong date example "Jan 1 1900 12:00:00:000AM"
thanks
Caleb Carvalho Application Engineer LoadRunner/APM ----------------------------------------------------------------------------------------- Enterprise Testing and Performance Management Solutions ----------------------------------------------------------------------------------------- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
Is the the EXACT code you used? If it is, I can see why it failed. You're trying to assign the text to "sql" not "$sql". sql="SELECT * FROM poeple WHERE age $Date_operator 20";
If, in fact, you are assigning to $sql, then print out $sql to ensure it contains what you expect it to contain.
-----Original Message-----
From: Sander Peters [mailto:S.Peters
Visionnet.nl]
Sent: Friday, October 19, 2001 5:22 PM
To: php-db
lists.php.net; php-general
lists.php.net
Subject: [PHP-DB] variable operators in queries
Hello,
Is it possible to put variable operators in queries? I tried this (the real variable comes from a form)
$Date_Operator =(">=");
sql="SELECT * FROM poeple WHERE age $Date_operator 20"; $result_id = mysql_query($sql);
It doesn't work like this. I also tried:
sql="SELECT * FROM poeple WHERE age \"$Date_operator\" 20" $result_id = mysql_query($sql);
it didn't work either.
Or should I use a have to make a IF-Then construction?
If $Date_Operator == (">=") then { sql="SELECT * FROM poeple WHERE age >= 20" } etc...
Can anybody help me with this?
Thanks in advance!
-- Met vriendelijke groet / With Greetings,Sander Peters
site: http://www.visionnet.nl/ email: mailto:s.peters
visionnet.nl webmail: mailto:sanderpeters
yahoo.com
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe
lists.php.net For additional commands, e-mail: php-db-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I am working on a project that will require the ability to take input from a web interface and then fax the content out to some of the members. If anyone has had any experience with a similar project, I would greatly appreciate any assistance.
Thanks in advance, Glenn
attached mail follows:
I could be wrong, but it would seem easiest to have an an email to fax gateway and use your php to send mail
Regards,
Jerry Lake Interface Engineering Technician
-----Original Message-----
From: Glenn Antoine [mailto:rantoine
esysdesign.com]
Sent: Monday, October 22, 2001 6:39 AM
To: php-general
lists.php.net
Subject: [PHP] php code to fax
I am working on a project that will require the ability to take input from a web interface and then fax the content out to some of the members. If anyone has had any experience with a similar project, I would greatly appreciate any assistance.
Thanks in advance, Glenn
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Check out phpfax.sourceforge.net
This is a project I have pretty much abandoned, and never even posted the code. I have had some people interested in it though, and would like to give the code to the community, I just never found the time.
Drop me a line if your interested, and I'll do my best to gather the code into a tarball and post it.
Chris
On Mon, 22 Oct 2001, Glenn Antoine wrote:
> Date: Mon, 22 Oct 2001 08:38:42 -0500
> To: php-general
lists.php.net
> From: Glenn Antoine <rantoine
esysdesign.com>
> Reply-To: rantoine
esysdesign.com
> Subject: [PHP] php code to fax
>
> I am working on a project that will require the ability to take input
> from a web interface and then fax the content out to some of the
> members. If anyone has had any experience with a similar project, I
> would greatly appreciate any assistance.
>
> Thanks in advance,
> Glenn
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
attached mail follows:
I have inserted the date into MySQL using now() in the query. However, when I retrieve the using MySQL_Date_Format in the query the time is always wrong. on the other hand, if I format the date using Date() in PHP it always makes the date DEC 31 1969 at 700PM. Please Help
attached mail follows:
maybe you have in your database a DATE field instead of DATETIME field?
"Beeman" <dbh3
mac.com> wrote in message
news:20011022134511.14775.qmail
pb1.pair.com...
> I have inserted the date into MySQL using now() in the query. However,
when
> I retrieve the using MySQL_Date_Format in the query the time is always
> wrong. on the other hand, if I format the date using Date() in PHP it
always
> makes the date DEC 31 1969 at 700PM. Please Help
>
>
attached mail follows:
No it is definitely a DATETIME and the date and time are correct in the
database, but when I try to format and display them the date is correct but
the time is not
"_lallous" <elias_bachaalany
yahoo.com> wrote in message
news:20011022140057.21068.qmail
pb1.pair.com...
> maybe you have in your database a DATE field instead of DATETIME field?
>
> "Beeman" <dbh3
mac.com> wrote in message
> news:20011022134511.14775.qmail
pb1.pair.com...
> > I have inserted the date into MySQL using now() in the query. However,
> when
> > I retrieve the using MySQL_Date_Format in the query the time is always
> > wrong. on the other hand, if I format the date using Date() in PHP it
> always
> > makes the date DEC 31 1969 at 700PM. Please Help
> >
> >
>
>
attached mail follows:
Are you retrieving it using MySQL's UNIX_TIMESTAMP() function? PHP's date() function needs a unix timestamp to work with.
-Rasmus
On Mon, 22 Oct 2001, Beeman wrote:
> No it is definitely a DATETIME and the date and time are correct in the
> database, but when I try to format and display them the date is correct but
> the time is not
> "_lallous" <elias_bachaalany
yahoo.com> wrote in message
> news:20011022140057.21068.qmail
pb1.pair.com...
> > maybe you have in your database a DATE field instead of DATETIME field?
> >
> > "Beeman" <dbh3
mac.com> wrote in message
> > news:20011022134511.14775.qmail
pb1.pair.com...
> > > I have inserted the date into MySQL using now() in the query. However,
> > when
> > > I retrieve the using MySQL_Date_Format in the query the time is always
> > > wrong. on the other hand, if I format the date using Date() in PHP it
> > always
> > > makes the date DEC 31 1969 at 700PM. Please Help
> > >
> > >
> >
> >
>
>
>
>
attached mail follows:
Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am
using date("M d, Y g:ia",$myrow["creation_datetime"]) at the end of a printf
statement but the date comes back as Dec 31 1969 7:00pm for all entries.
When the date was inserted I used now() in the insert statement.
"Rasmus Lerdorf" <rasmus
php.net> wrote in message
news:Pine.LNX.4.33.0110220906420.17431-100000
rasmus.php.net...
> Are you retrieving it using MySQL's UNIX_TIMESTAMP() function? PHP's
> date() function needs a unix timestamp to work with.
>
> -Rasmus
>
> On Mon, 22 Oct 2001, Beeman wrote:
>
> > No it is definitely a DATETIME and the date and time are correct in the
> > database, but when I try to format and display them the date is correct
but
> > the time is not
> > "_lallous" <elias_bachaalany
yahoo.com> wrote in message
> > news:20011022140057.21068.qmail
pb1.pair.com...
> > > maybe you have in your database a DATE field instead of DATETIME
field?
> > >
> > > "Beeman" <dbh3
mac.com> wrote in message
> > > news:20011022134511.14775.qmail
pb1.pair.com...
> > > > I have inserted the date into MySQL using now() in the query.
However,
> > > when
> > > > I retrieve the using MySQL_Date_Format in the query the time is
always
> > > > wrong. on the other hand, if I format the date using Date() in PHP
it
> > > always
> > > > makes the date DEC 31 1969 at 700PM. Please Help
> > > >
> > > >
> > >
> > >
> >
> >
> >
> >
>
attached mail follows:
> Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am > using date("M d, Y g:ia",$myrow["creation_datetime"]) at the end of a printf > statement but the date comes back as Dec 31 1969 7:00pm for all entries. > When the date was inserted I used now() in the insert statement.
You should be doing:
select UNIX_TIMESTAMP(creation_datetime) as foo
date("M d, Y g:ia",$myrow['foo'])
-Rasmus
> "Rasmus Lerdorf" <rasmus
php.net> wrote in message
> news:Pine.LNX.4.33.0110220906420.17431-100000
rasmus.php.net...
> > Are you retrieving it using MySQL's UNIX_TIMESTAMP() function? PHP's
> > date() function needs a unix timestamp to work with.
> >
> > -Rasmus
> >
> > On Mon, 22 Oct 2001, Beeman wrote:
> >
> > > No it is definitely a DATETIME and the date and time are correct in the
> > > database, but when I try to format and display them the date is correct
> but
> > > the time is not
> > > "_lallous" <elias_bachaalany
yahoo.com> wrote in message
> > > news:20011022140057.21068.qmail
pb1.pair.com...
> > > > maybe you have in your database a DATE field instead of DATETIME
> field?
> > > >
> > > > "Beeman" <dbh3
mac.com> wrote in message
> > > > news:20011022134511.14775.qmail
pb1.pair.com...
> > > > > I have inserted the date into MySQL using now() in the query.
> However,
> > > > when
> > > > > I retrieve the using MySQL_Date_Format in the query the time is
> always
> > > > > wrong. on the other hand, if I format the date using Date() in PHP
> it
> > > > always
> > > > > makes the date DEC 31 1969 at 700PM. Please Help
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
>
>
>
>
attached mail follows:
That worked. Thanks a lot... You rock
-Beeman
"Rasmus Lerdorf" <rasmus
php.net> wrote in message
news:Pine.LNX.4.33.0110220925070.17431-100000
rasmus.php.net...
> > Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am
> > using date("M d, Y g:ia",$myrow["creation_datetime"]) at the end of a
printf
> > statement but the date comes back as Dec 31 1969 7:00pm for all entries.
> > When the date was inserted I used now() in the insert statement.
>
> You should be doing:
>
> select UNIX_TIMESTAMP(creation_datetime) as foo
>
> date("M d, Y g:ia",$myrow['foo'])
>
> -Rasmus
>
> > "Rasmus Lerdorf" <rasmus
php.net> wrote in message
> > news:Pine.LNX.4.33.0110220906420.17431-100000
rasmus.php.net...
> > > Are you retrieving it using MySQL's UNIX_TIMESTAMP() function? PHP's
> > > date() function needs a unix timestamp to work with.
> > >
> > > -Rasmus
> > >
> > > On Mon, 22 Oct 2001, Beeman wrote:
> > >
> > > > No it is definitely a DATETIME and the date and time are correct in
the
> > > > database, but when I try to format and display them the date is
correct
> > but
> > > > the time is not
> > > > "_lallous" <elias_bachaalany
yahoo.com> wrote in message
> > > > news:20011022140057.21068.qmail
pb1.pair.com...
> > > > > maybe you have in your database a DATE field instead of DATETIME
> > field?
> > > > >
> > > > > "Beeman" <dbh3
mac.com> wrote in message
> > > > > news:20011022134511.14775.qmail
pb1.pair.com...
> > > > > > I have inserted the date into MySQL using now() in the query.
> > However,
> > > > > when
> > > > > > I retrieve the using MySQL_Date_Format in the query the time is
> > always
> > > > > > wrong. on the other hand, if I format the date using Date() in
PHP
> > it
> > > > > always
> > > > > > makes the date DEC 31 1969 at 700PM. Please Help
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
>
attached mail follows:
How do I run *.php on PWS I download php4, edit php.ini & reg and NOTHING! Please someone HELP ME! My OS is Win 98 & PWS 4.0
(Sorry by my poor English, I speak spanish 8o(
/////Grmn//////
German Benzano
gbenzano
adinet.com.uy
Montevideo - Uruguay
attached mail follows:
I am going to make the assumption that you did not download the installer from the following URL (only the zip package)..
http://www.php.net/downloads.php
If you downloaded both the zip package and the installer and are still having a problem, please post the error message(s) that you are receiving.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 X289
smasiello
synacor.com
----- Original Message -----
From: "German Benzano" <gbenzano
adinet.com.uy>
To: <php-general
lists.php.net>
Sent: Monday, October 22, 2001 11:19 AM
Subject: [PHP] PHP on fu!$#
ing PWS
> How do I run *.php on PWS
> I download php4, edit php.ini & reg and NOTHING!
> Please someone HELP ME!
> My OS is Win 98 & PWS 4.0
>
> (Sorry by my poor English, I speak spanish 8o(
>
> /////Grmn//////
> German Benzano
> gbenzano
adinet.com.uy
> Montevideo - Uruguay
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I'm trying to use my own session handler. I tried several examples before trying it out on my local box. It worked, and I don't know why it didn't work on the other. Here are the setups:
My local box (where it works): OS: Windows 2000 PHP 4.0.6 Apache 1.3.x
I didn't even have to set the handler setting from "files" to "user", and it worked.
Original box (where it does not work) OS: FreeBSD 4.4 PHP 4.0.6 Apache 1.3.22
The session value basically doesn't get changed at all. No errors get printed, just no change in session value. The example I ended up finally using is the one described here: http://www.phpbuilder.com/columns/ying20000602.php3
BTW, the "vanilla" session handler is not working under the FreeBSD setup, either. This is the target platform, so I really need to figure this out....
Please, any and all help is appreciated!!!
attached mail follows:
I wanted to add some more details:
Apache on Windows 2000 box is 1.3.20 Database connection to MySQL IS working, so that's not the problem.
-----Original Message-----
From: Sean LeBlanc [mailto:sleblanc
amivisions.com]
Sent: Monday, October 22, 2001 9:53 AM
To: php-general
lists.php.net
Subject: [PHP] Getting session to work
I'm trying to use my own session handler. I tried several examples before trying it out on my local box. It worked, and I don't know why it didn't work on the other. Here are the setups:
My local box (where it works): OS: Windows 2000 PHP 4.0.6 Apache 1.3.x
I didn't even have to set the handler setting from "files" to "user", and it worked.
Original box (where it does not work) OS: FreeBSD 4.4 PHP 4.0.6 Apache 1.3.22
The session value basically doesn't get changed at all. No errors get printed, just no change in session value. The example I ended up finally using is the one described here: http://www.phpbuilder.com/columns/ying20000602.php3
BTW, the "vanilla" session handler is not working under the FreeBSD setup, either. This is the target platform, so I really need to figure this out....
Please, any and all help is appreciated!!!
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
They've been mentioned on the list before, but I had a great experience with Cedant.com. Apache, PHP4, MySQL, and shell access via SSH (and the ability to compile your own software in a /home/youraccount/bin directory).
I hosted a site with them for a few months earlier this year before taking the plunge and hosting on a dedicated Linux box at home, and found their support staff to be knowledgeable and responsive. Their basic account is $12.95/month for up to a gig of traffic, and they have an extensive web control panel.
-Andy
P.S. I don't work for Cedant or know anyone who works there, etc., etc.,.. I'm just a happy customer :)
> -----Original Message-----
> From: Heidi Belal [mailto:hmbelal
yahoo.com]
> Sent: Saturday, October 20, 2001 1:29 PM
> To: Php
> Subject: [PHP] php hosting
>
> Anybody know of good reliable hosting that supports
> php, and has a control panel to go with it?
> thanks,
> Heidi
attached mail follows:
It's almost certainly not W3C compliant, but if your form is inside a table (I know, I know - you're not supposed to use tables for layout) you can hide the <FORM> tags outside the <TD> tags of the cell containing the form: E.G.:
<table> <tr> <form action='somescript.php'> <td> <input type='text' name='input1'><br> <input type='submit'> </td> </form> </tr> </table>
I've never had a problem with this workaround in IE/Netscape 4.x as long as the tags are nested correctly. Not sure about Lynx/Konqueror/Opera.
I try whenever possible to follow the W3C's standards, but inconsistent browser implementation of HTML and CSS usually gets in the way. :P
> -----Original Message-----
> Subject: Re: Forms and Netscape -- spacing problem -- Help!
> > form tag in NS (4x - 6x) there is some additional space >
attached mail follows:
Please help me. I have problem with html email. I send email to 3 email
address : xxx
yahoo.com, xxx
eudoramail.com and xxx
xxx.com.
The email client for yahoo & eudoramail is their web. And for the last destination, the email client is ms outlook.
The html email for yahoo & eudoramail are well received. But for the last destination the ms outlook display the wrong result like encrypted text. Below is my code and the result in ms outlook.
My code :
$s_to = 'xxx
xxx.com';
$s_subject = 'Subject xxx';
$s_headers = "From: me
xxx.com\r\n";
$s_headers .= "MIME-Version: 1.0\r\n";
$s_boundary = uniqid("id");
$s_headers .= "Content-Type: multipart/alternative" .
"; boundary = $s_boundary\r\n\r\n";
$s_headers .= "This is a MIME encoded message.\r\n\r\n";
$s_headers .= "--$s_boundary\r\n" . $s_headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n";
$s_headers2 = chunk_split(base64_encode("bla...<b>bla...</b>"bla..."));
$s_headers = $s_headers.$s_headers2.'--'.$s_boundary.'--';
mail ($s_to, $s_subject,"", $s_headers);
Result in ms outlook :
Return-Path: <xxx
xxx.com>
Delivered-To: xxx
xxx.com
Received: (qmail 2773 invoked by uid 252); 22 Oct 2001 23:35:00 -0000
Date: 22 Oct 2001 23:35:00 -0000
Message-ID: <20011022233500.27735.qmail
xxx.com>
To: xxx
xxx.com
Subject: Subject xxx
From: mailserver
xxx.com
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary = id3bd4ad2486465
This is a MIME encoded message.
--id3bd4ad2486465 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: base64
PGZvbnQgZmFjZT0iVmVyZGEhlbHZldGljYSwgc2Fucy1zZXJpZiIgc2l6ZT0i
aXY+PC9mb250C90cj48L3RhYmxlPg==
--id3bd4ad2486465--
Regards;
Benny.
attached mail follows:
Just curious --
What system attribute is used to help in determining when a session file will be "cleaned up (GTC)" or in other words, deleted? Is it the delete time calculated based on the file's "CREATED" or "MODIFIED" time?
Thanks
Jason
jason
thinkingman.org
attached mail follows:
On Mon, 22 Oct 2001 00:33:39 -0700, KING OGNAJD wrote: >Helo: > >Im working on a form that Id like to have a feature that adds your >total >as items are selected. Currently, Ive got some javascript doing the >job but >it only works in ie, and besides, Id rather use php if possible. > >The current prototype form lives at >http://www.seatthole.com/order2.php > >Can anyone tell me if theres a way to update the total at the >bottom of the >page in realtime as the user makes changes? > >Thanks... > >Django >
the problem is from using 'this' from inside the input tag, netscape don't like this. take it out and use document.forms[0].inputname
it will work.
-- Mark, maggeletmminternet.com on 10/22/2001
attached mail follows:
Hi there,
Referring to one question I sent here over a month ago, I'd like to get back with subject: I need to copy a image file from the server box to another computer in our local network. All computers have WinNT 4.1 on it (also the server box PHP & Apache running) expect that file server where the file should be copied to (it's Sun Unix etc). But as I told before, the copy can be executed fine in Windows Explorer, no problems, but when trying to do the copy via PHP it won't success.
I tried the copy also with exec() and passthru() -functions: "cmd /c copy file.jpg x:\\path\\destifile.jpg". No error message appear, only text "0 files copied" (from Windows itself). If I execute the same command from Start->Run, it will success without problems.
First idea is that maybe there is some mess with user privileges? PHP is a module of Apache and Apache is running as a Windows' system service. Is Apache so running as a "nobody" user or something? How could I get same privileges for my PHP script as the logged user? (I am unable to modify privileges in the Sun box)
Hmm... That's all. Maybe little bit confused explanation but hope that you got the point ;)
Cheers, - Ville
.................................................................
Ville Mattila
Ikaalinen, Finland
ville.mattila
pilotmedia.fi
www.pilotmedia.fi
attached mail follows:
On Mon, 22 Oct 2001 20:11:32 +0300, Ville Mattila wrote: >Hi there, > >Referring to one question I sent here over a month ago, I'd like to >get back with subject: >I need to copy a image file from the server box to another computer >in our local network. All computers have WinNT 4.1 on it (also the >server box PHP & Apache running) expect that file server where the >file should be copied to (it's Sun Unix etc). But as I told before, >the copy can be executed fine in Windows Explorer, no problems, but >when trying to do the copy via PHP it won't success. > >I tried the copy also with exec() and passthru() -functions: "cmd /c >copy file.jpg x:\\path\\destifile.jpg". No error message appear, >only text "0 files copied" (from Windows itself). If I execute the >same command from Start->Run, it will success without problems.
try using an absolute path for the first file
attached mail follows:
It's not really, but kind of, a PHP question. I mean it is being written in PHP :)
I am putting together a search feature for our classified ads and there are about 4000 each day. Now I am bulding a query to search by newspaper, date, and keywords. One last thing is categories.
Curious how others would handle this...on the search screen (and on the site) we have broken down the classified codes into about 8-10 main groups (stuff like Merchandise, Transportation, Services etc).
Now the problem is this: in the database, each ad goes in with it's class code which matches up with the actual category. So instead of just Merchandise we have sub categories like Christmas Trees.
There are close to 1500 class codeas and when I build this I need to allow the user to select just one of the 8-10 codes and have the program return everything.
Will I need to do something like:
if $selection="Merchandise" then { select all ads where code="2" AND code="5" AND code="123" AND code="567" etc etc }
Jeff
attached mail follows:
You could try using a separate file for configuration that uses arrays for each catgeory:
$merchandise = new Array( 1, 2, 6, 23, ... );
Then have it run a foreach loop:
foreach ($merchandise as $tempVar) { $queryConditions .= "AND code '$tempvar'"; }
You need to obviously work with it a little more, but this would be a very helpful method to use. It would allow you to add a new code to the config file without having to go digging really deep through your script. Just use include() to get the config into your script.
Mike
"Jeff Lewis" <jeff
hyrum.net> wrote in message
news:004301c15b1d$b9f7ab80$76a1a8c0
LEWISJCIT...
It's not really, but kind of, a PHP question. I mean it is being written in
PHP :)
I am putting together a search feature for our classified ads and there are about 4000 each day. Now I am bulding a query to search by newspaper, date, and keywords. One last thing is categories.
Curious how others would handle this...on the search screen (and on the site) we have broken down the classified codes into about 8-10 main groups (stuff like Merchandise, Transportation, Services etc).
Now the problem is this: in the database, each ad goes in with it's class code which matches up with the actual category. So instead of just Merchandise we have sub categories like Christmas Trees.
There are close to 1500 class codeas and when I build this I need to allow the user to select just one of the 8-10 codes and have the program return everything.
Will I need to do something like:
if $selection="Merchandise" then { select all ads where code="2" AND code="5" AND code="123" AND code="567" etc etc }
Jeff
attached mail follows:
Hi,
'm new to php, but not to programming, I'm having problems using a simple print statement :
*print '<td width="25%" bgcolor="#FcaF00"><b><font face="Tahoma, Verdana, Arial, Sans Serif">Ref:</font><b/></td>';* *print '<td width="25%" bgcolor="#FFFF00"><b><font face="Tahoma, Verdana, Arial, Sans Serif">$reference</font><b/></td>';*
the problem is with the output, the table is fine but the variable $reference otputs it's name $reference instead of it's value i.e. 345. I'm getting mad because I know this has to be some kind of syntax error but I tried exchanging quotes for double quotes, adding parenthesis and stuff like that and I couldn't figure out what the prob is ...
Regards, Rick
Right the output shows Ref:$reference
attached mail follows:
hello,
please read about strings more in the the manual:
http://www.php.net/manual/en/language.types.string.php
Variable aren't parsed in strings enclosed by single quotes ''.
----- Original Message -----
From: "Ricardo Fitzgerald" <axis
movinet.com.uy>
To: <php-general
lists.php.net>
Sent: Monday, October 22, 2001 6:54 PM
Subject: [PHP] Print statements , syntax , usage, etc
Hi,
'm new to php, but not to programming, I'm having problems using a simple print statement :
*print '<td width="25%" bgcolor="#FcaF00"><b><font face="Tahoma, Verdana, Arial, Sans Serif">Ref:</font><b/></td>';* *print '<td width="25%" bgcolor="#FFFF00"><b><font face="Tahoma, Verdana, Arial, Sans Serif">$reference</font><b/></td>';*
the problem is with the output, the table is fine but the variable $reference otputs it's name $reference instead of it's value i.e. 345. I'm getting mad because I know this has to be some kind of syntax error but I tried exchanging quotes for double quotes, adding parenthesis and stuff like that and I couldn't figure out what the prob is ...
Regards, Rick
Right the output shows Ref:$reference
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
In article <yam8695.501.1988579648
correo.movinet.com.uy>,
axis
movinet.com.uy (Ricardo Fitzgerald) wrote:
> *print '<td width="25%" bgcolor="#FcaF00"><b><font face="Tahoma, Verdana, > Arial, Sans Serif">Ref:</font><b/></td>';* > *print '<td width="25%" bgcolor="#FFFF00"><b><font face="Tahoma, Verdana, > Arial, Sans Serif">$reference</font><b/></td>';* > > the problem is with the output, the table is fine but the variable $reference > otputs it's name $reference instead of it's value i.e. 345. I'm getting mad > because I know this has to be some kind of syntax error but I tried > exchanging quotes for double quotes, adding parenthesis and stuff like that > and I couldn't figure out what the prob is ...
Re-try the double quotes. Variable expansion is available within double quotes. It is not within single quotes.
-- CC
attached mail follows:
Anyone out there know how to set the icon that is shown in the address bar, to the left of the URL?
It's also used in the favourites pane.
I know this isn't really the right place to make this post, but I figured that there are so many experienced programmers out there writing websites, that someone would have come across this before...
Regards, Robin
attached mail follows:
Um...this isn't php related and I already get a ton of email....could we keep things on-topic?
that said, check out www.favicon.com -- it should have the info you need.
--kurt
On Monday 22 October 2001 11:37, you wrote: > Anyone out there know how to set the icon that is shown in the address bar, > to the left of the URL? >
attached mail follows:
This is from the manual --
<?php
function is_uploaded_file($filename) { if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { $tmp_file = dirname(tempnam('', '')); } $tmp_file .= '/' . basename($filename); }
if (is_uploaded_file($userfile)) { copy($userfile, "file.test"); } else { echo "<br>Possible file upload attack: filename '$userfile_name'."; } ?>
This uploads the file into the correct temp directory, it recognizes the filename, etc., but it won't copy it. I only can achieve the error message. I need to use PHP3 for this, I'm obviously missing something.
Thanks, Robert
attached mail follows:
Philip,
I don't really see the problem with Arash's post.
If people want to help him out with critique, then that's their option. This board is hardly swamped with similar postings, is it?
Robin Mckenzie
"Philip Olson" <philip
cornado.com> wrote in message
news:Pine.BSF.4.10.10110150632510.35831-100000
localhost...
> Hi Arash-
>
> It's not a good idea to ask php lists for a website critique, imagine if
> all list members did that! Please consider other means in evaluating your
> sites.
>
> Sure it may have worked in the past but that's a bad precedent to set.
> Members of these lists are helpful, sometimes too helpful ;-)
>
> Regards,
> Philip Olson
>
>
> On Mon, 15 Oct 2001, Arash Dejkam wrote:
>
> > Hi,
> >
> > Some of you may remeber my first serious work (www.saharafilm.org) which
I
> > introduced here for critic, and I received very useful replies from you.
> >
> > This is my second : http://www.dejkam.com
> > It have much more different things to be criticised on it.
> >
> > hope to learn good tips from you like my previous experience :)
> >
> > Thanks
> > Arash Dejkam
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
attached mail follows:
Hi,
I was just going through my PHP book and I noticed that there was a way to check whether or not a form was filled out after pressing "submit".
Things worked okay when I used the form checking method of just checking if a particular field was filled in.
for example if ($email =="")
checks if the $email variable was inputted by the user.
However I was wondering how can I refine it so that it will also check if
the $email variable contains an '
' sign?
Thanks.
Peter
attached mail follows:
Hi folks, following problem appeared on PHP 3.0.16 on LINUX I have a binary file, where I want to replace some letters I do the following: $filename = "xyz.sdc"; $fd = fopen( $filename, "r+b" ); // also tried "r" $x=filesize( $filename ); // this shows the correct filesize 22528 byte $contents = fread( $fd, $x ); fclose( $fd ); $y=strlen($contents); // The first mistake $y = 32956 byte echo "BEFORE<br>".$contents; $contents=str_replace("UUUUUU","123456", $contents); echo "AFTER<br>".$contents;
It seems, that php converts HEX 00 00 to HEX 5C 30 just when it reads the data in memory because at the BEFORE echo the data will be shown as \0 (hex 00 00 ). The filesize will be correct when I save the str_replaced text and the text will be cahnged correct. Any idea, where this comes from??
Thanks in advance Oliver
attached mail follows:
> Hi folks, > following problem appeared on PHP 3.0.16 on LINUX > I have a binary file, where I want to replace some letters > I do the following: > $filename = "xyz.sdc"; > $fd = fopen( $filename, "r+b" ); // also tried "r" > $x=filesize( $filename ); // this shows the correct filesize 22528 byte > $contents = fread( $fd, $x ); > fclose( $fd ); > $y=strlen($contents); // The first mistake $y = 32956 byte > echo "BEFORE<br>".$contents; > $contents=str_replace("UUUUUU","123456", $contents); > echo "AFTER<br>".$contents; > > It seems, that php converts HEX 00 00 to HEX 5C 30 just when it reads the > data in > memory because at the BEFORE echo the data will be shown as \0 (hex 00 00 ). > The filesize will be correct when I save the str_replaced text and the text > will be cahnged > correct. > Any idea, where this comes from??
Oliver,
Let's start with the fopen(), where the mode expression might be causing problems - should it be "rb"? http://www.php.net/manual/en/function.fopen.php
If the 'binary' component hasn't been recognised it might explain the "first mistake". The ensuing problems may even stem from there...
Regards, =dn
attached mail follows:
At 22.10.01 21:36, you wrote: > > > Hi folks, > > following problem appeared on PHP 3.0.16 on LINUX > > I have a binary file, where I want to replace some letters > > I do the following: > > $filename = "xyz.sdc"; > > $fd = fopen( $filename, "r+b" ); // also tried "r" > > $x=filesize( $filename ); // this shows the correct filesize 22528 byte > > $contents = fread( $fd, $x ); > > fclose( $fd ); > > $y=strlen($contents); // The first mistake $y = 32956 byte > > echo "BEFORE<br>".$contents; > > $contents=str_replace("UUUUUU","123456", $contents); > > echo "AFTER<br>".$contents; > > > > It seems, that php converts HEX 00 00 to HEX 5C 30 just when it reads the > > data in > > memory because at the BEFORE echo the data will be shown as \0 (hex 00 > 00 ). > > The filesize will be correct when I save the str_replaced text and the > text > > will be cahnged > > correct. > > Any idea, where this comes from?? >Let's start with the fopen(), where the mode expression might be causing >problems - should it be "rb"? >http://www.php.net/manual/en/function.fopen.php > >If the 'binary' component hasn't been recognised it might explain the >"first mistake". >The ensuing problems may even stem from there...
Thanks DLNeil, I tried "rb" "r" "r+b"(C-style) always the same :( Any other suggestions ?
attached mail follows:
I am experiencing a problem of trying to run several variants of the same code and keep the sessions separate. Here is the scenario.
I am launching all of this from a CMS. So, the CMS displays a page that has 3 links on it. Link 1 is version A of an application, Link 2 version B, etc. The three links are all the same application but different builds, in essence. They all have the same session control code. They each launch a new window, but the session variables are staying in the pool for each link, which is not acceptable. When I call Link1 and then I call Link2, they need to have an independent pool (session). I have tried to unregister, destroy, unset, to no avail.
Is there a way, or am I out of luck? Hard coding is not an option, as the code has to be standard across all platforms and releases.
-- Gaylen gfraley5earthlink.net http://www.gaylenandmargie.com PHP KISGB v2.1 Guestbook http://www.gaylenandmargie.com/phpwebsite
attached mail follows:
hi, I have tryed .cphp in that way there's no conflict
I have searched on the net and I've found others persons that have that problem but I've found no answer :(
Bye, Philippe
Andrey Hristov writes:
> Try to change your script's extension to .cgi instead of .php . It _may_ help.
>
> --
> Andrey Hristov
> Web Developer
> Icygen Corporation
> BUILDING SOLUTIONS
> http://www.icygen.com
>
> On Monday 22 October 2001 04:15 am, you wrote:
>> Hi,
>> You're right Dave
>>
>> But nobody had already used PHP with CGI and with Apache ???
>>
>> I searched on the net, but I've found no documentation on this problem
>>
>> Bye
>> Philippe
>>
>> Dave Goodrich writes:
>> > Nope it fails when he removes the line. It fails on me as well, I tried
>> > it. Also note I did say that the ouput of phpinfo() was correct. The
>> > output showed the page had been handled by the php cgi binary, not the
>> > module.
>> >
>> > The module has a large config line and several extensions
>> > configured in, the cgi binary was compiled with nothing but "./configure"
>> > and the info page confirms this.
>> >
>> > So it seems Apache is handling everything correct, the page gets passed
>> > to the proper php binary, and the result is correctly served back to the
>> > client.
>> >
>> > DAve
>> >
>> > On Sun, Oct 21, 2001 at 12:18:07PM -0500, Brian Mauter wrote:
>> >> Seems to me that the problems is that you have two instances of PHP
>> >> going at the same time. The first is the one compiled into Apache and
>> >> the second is the cgi module. My bet is that the PHP compiled into
>> >> Apache is catching it first (maybe you told all .cgi files to be parsed
>> >> by the PHP parser?). In that case, the first line would be treated as
>> >> HTML output, not PHP. This would be the reason you get that line in all
>> >> of your scripts. Here's a test: remove that line from your file and
>> >> then try it. If it continues to work, I would seriously suspect that
>> >> the built-in Apache-PHP parser is handling your .cgi files.
>> >>
>> >> -Brian
>> >>
>> >> -----Original Message-----
>> >> From: Dave Goodrich [mailto:dave
pixelhammer.com]
>> >>
>> >> * snip
>> >> info.cgi
>> >> #!/usr/local/bin/php
>> >> <?php
>> >> phpinfo();
>> >> ?>
>> >
>> > --
>> > My other computer is your Windows machine...
>> >
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>> > For additional commands, e-mail: php-general-help
lists.php.net
>> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe
lists.php.net
> For additional commands, e-mail: php-install-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Looking for help. I tried to install PHP4 on Windows 98 with PWS, following the manual on www.php.net Windows installation section. It dit NOT work, maybe something unclear. If you know, would you get me some help? Thanks
COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]