|
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 Aug 13 2001 - 19:19:36 CDT
php-general Digest 14 Aug 2001 00:19:36 -0000 Issue 814
Topics (messages 62412 through 62521):
Test
62412 by: i_union
email newsletter with MySQL - help please!
62413 by: Herman Pijpers
62418 by: Richard Baskett
Results of survey I asked
62414 by: Gerry Kirk
Having trouble with PHP exec function calling CGI program
62415 by: Tony Frasketi
62426 by: Lara J. Fabans
62438 by: scott [gts]
How to get the query string?
62416 by: Tamas Bucsu
62423 by: Renze Munnik
62424 by: Taylor, Stewart
62476 by: Don Read
62486 by: Rasmus Lerdorf
Site Stats/Server Logs
62417 by: ReDucTor
62421 by: Tim
Interbase lob field on the web
62419 by: alex.tesi
Re: Mail()
62420 by: Mahmoud Kassem
62422 by: Michael Geier, CDM Systems Admin
62432 by: Mahmoud Kassem
62447 by: Michael Geier, CDM Systems Admin
62471 by: Mahmoud Kassem
Question about grant user right to MySql
62425 by: Jack
62434 by: René Moonen
new one is it ??
62427 by: Mark Lo
62428 by: Tyler Longren
62429 by: Tim
62436 by: scott [gts]
62439 by: Scott Brown
62441 by: hari_bhr
62442 by: scott [gts]
62444 by: Ezra Nugroho
62449 by: Mark Roedel
62467 by: Tim
62472 by: billfarr.ages.com
62475 by: David Price
URL Rewrite Problems...
62430 by: Brendan P. Caulfield
62431 by: Tyler Longren
The secrecy of PHP code
62433 by: James Shaker
62435 by: Tyler Longren
62437 by: scott [gts]
62473 by: ~~~i LeoNid ~~
variable variables and eval
62440 by: William Bailey
OOP message board
62443 by: hassan el forkani
session_start() part II
62445 by: Aniceto Lopez
62446 by: Renze Munnik
62452 by: Richard Baskett
Re: Reliable PHP web hosts
62448 by: Dan Pierce
62455 by: Dan Pierce
62465 by: Jan Wilson
Re: IE double download
62450 by: Bill Rausch
session_start() part III
62451 by: Aniceto Lopez
62453 by: Renze Munnik
62456 by: Richard Baskett
general digest unreadable
62454 by: FOTOPROP International
ucwords Except 'The' 'And' etc?
62457 by: Jeff Oien
62459 by: Boget, Chris
62461 by: Richard Baskett
62477 by: Steve Edberg
62492 by: Mark Maggelet
62503 by: Jeff Oien
session_questions() part IV
62458 by: Aniceto Lopez
Using PHP to log into a site
62460 by: Brandon Orther
Re: charset win1251
62462 by: BRACK
62463 by: Maxim Derkachev
ICMP Ping
62464 by: James Crowley
62493 by: Henrik Hansen
autoconf bugs
62466 by: Daniel Adams
Re: [PHP-GTK] autoconf bugs
62468 by: Markus Fischer
62469 by: Daniel Adams
62470 by: Markus Fischer
Problem with Error/Mail/something...
62474 by: Chris Cocuzzo
PHP and Apache
62478 by: Jay Paulson
62479 by: Rasmus Lerdorf
62498 by: Jay Paulson
62499 by: Rasmus Lerdorf
problems sorting an associative array...
62480 by: Ben Rigby
UPDATE syntax
62481 by: Gerard Samuel
62483 by: Tyler Longren
62484 by: Don Read
62485 by: scott [gts]
62489 by: Gerard Samuel
62500 by: Steve Werby
figured it out!
62482 by: Ben Rigby
auto_prepend_file
62487 by: lolodev
inserting a remote html file
62488 by: Minardi boy
PHP's equivalent to Net::SSLeay?
62490 by: Brandon Orther
large external script to include in many pages
62491 by: Web Manager
62494 by: scott [gts]
62495 by: Henrik Hansen
62511 by: Web Manager
62520 by: Chris Lee
Starting Interbase on RH Linux
62496 by: Todd Cary
Storing Credit Card Numbers, etc.
62497 by: Christopher Raymond
62516 by: Miles Thompson
How give a 'timed' online quiz?
62501 by: Tom Henry
62504 by: Daniel Adams
62506 by: Mark Maggelet
62507 by: Philip Hallstrom
cropping a string
62502 by: Tom Carter
62505 by: Chris Lee
Need advice on building website registration system!
62508 by: sunny AT wde
cgi and module?
62509 by: Daniel Adams
62512 by: Rasmus Lerdorf
How to stop images preloading in netscape?
62510 by: Seb Frost
62513 by: Mark Maggelet
62515 by: Kelly Corkill
Using a receiving a cookie with cURL?
62514 by: Brandon Orther
Connecting to a SSL site?
62517 by: Brandon Orther
62518 by: Jason Murray
Problem with Zend Optimizer
62519 by: Richard Kurth
Question about sessions
62521 by: Chris Kay
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:
hi all
I'm new in this forum and this is a only test message if you recieved it please only reply this message
thsnks in advance
_________________________________________________________
Do You Yahoo!?
Get your free
yahoo.com address at http://mail.yahoo.com
attached mail follows:
Being a rather new to php I find myself completely stuck on a script which
is possibly a piece of cake for most of you:
I want to set up a weekly ezine. Both email addresses and news articles will
be retrieved from two separate MySQL tables called "subscribers" and
"newsarticles".
I put together the following script but it doesn't work the way I want it
to:
<?php
$listquery = "SELECT emailaddress FROM subscribers";
$listresult = mysql_query($listquery);
while($listrow = mysql_fetch_array($listresult))
{
$newsquery = "SELECT * FROM newsarticles";
$newsresult = mysql_query($newsquery);
while($newsrow = mysql_fetch_array($newsresult))
{
$message = $newsrow[article];
}
$recipient = $listrow[emailaddress];
$subject = "Welcome to my ezine";
$mailheaders = "From: Herman.Pijpers
infonomics.nl\n";
$mailheaders .= "Reply-To: herman.pijpers
infonomics.nl";
mail($recipient, $subject, $message, $mailheaders);
}
echo ("The message has been sent</p>");
?>
That's it. A message IS being sent to all subscribers, but somehow, this message only contains the latest newsarticle in the database in stead of the whole array. What am I doing wrong?
Any help in this will be greatly appreciated!
Best,
Herman
attached mail follows:
Try something like:
<?php
$listquery = "SELECT emailaddress FROM subscribers";
$listresult = mysql_query($listquery);
$newsquery = "SELECT * FROM newsarticles";
$newsresult = mysql_query($newsquery);
while($listrow = mysql_fetch_array($listresult)) {
$newsrow = mysql_fetch_array($newsresult))
$message = $newsrow[article];
$recipient = $listrow[emailaddress];
$subject = "Welcome to my ezine";
$mailheaders = "From: Herman.Pijpers
infonomics.nl\n";
$mailheaders .= "Reply-To: herman.pijpers
infonomics.nl";
mail($recipient, $subject, $message, $mailheaders);
}
echo ("The message has been sent</p>");
?>
if it works, which it should, and you would like to know why, please email
me and Ill explain it ;)
> Being a rather new to php I find myself completely stuck on a script which
> is possibly a piece of cake for most of you:
>
> I want to set up a weekly ezine. Both email addresses and news articles will
> be retrieved from two separate MySQL tables called "subscribers" and
> "newsarticles".
>
> I put together the following script but it doesn't work the way I want it
> to:
>
>
> <?php
>
> $listquery = "SELECT emailaddress FROM subscribers";
> $listresult = mysql_query($listquery);
> while($listrow = mysql_fetch_array($listresult))
> {
> $newsquery = "SELECT * FROM newsarticles";
> $newsresult = mysql_query($newsquery);
> while($newsrow = mysql_fetch_array($newsresult))
> {
> $message = $newsrow[article];
> }
>
> $recipient = $listrow[emailaddress];
> $subject = "Welcome to my ezine";
> $mailheaders = "From: Herman.Pijpers
infonomics.nl\n";
> $mailheaders .= "Reply-To: herman.pijpers
infonomics.nl";
>
> mail($recipient, $subject, $message, $mailheaders);
> }
>
> echo ("The message has been sent</p>");
>
>
> ?>
>
> That's it. A message IS being sent to all subscribers, but somehow, this
> message only contains the latest newsarticle in the database in stead of the
> whole array. What am I doing wrong?
>
> Any help in this will be greatly appreciated!
>
> Best,
> Herman
>
>
> --
> 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:
Earlier, I asked some questions about what you use in developing PHP
applications. First, the questions, and then the answers:
Questions
1. Code libraries used:
a) Metabase (for database abstraction)
b) PHPLib
c) PEAR
d) BinaryCloud
e) other
2. What code editor do you use?
3. How many are using templates, and if so, are you using a template
framework:
a) PHPLib
b) Smarty
c) other?
Answers (number of respondents in brackets)
1. adodb (1)
BinaryCloud (1)
A mixture of PEAR's database abstraction, PHPLIB's template class
and my own libraries and classes (1)
2. UltraEdit (1), DreamWeaver 4 (2), AceHTML4 Pro from visicom.com (1),
Homesite (2), vim (1), FrontPage (1), PHPCoder http://www.phpide.de (2),
emacs (1), TextPad (1), ConTEXT (1), EditPlus (1)
3. Smarty (1)
Summary: not a huge statistical sample, but interestingly there were hardly
any duplicate responses. Also, it seems using published templates and code
libraries is not that popular, i.e. most people are writing their own code
from scratch.
Gerry
attached mail follows:
Hello list members
I'm a newbie and having trouble with the EXEC function call from a PHP
script. I've submitted this problem to the list last week but so far no
response. And I still haven't figured it out. So here goes again.
PHP EXEC function seems to work ok for executing shell commands like 'ls
-al' etc.
but when I execute the following PHP web page code...
----------------------------------
$basedir = '/mnt/web/xxx/myplace';
$cdir = $basedir . '/cgibin';
$cmd = "cd $cdir;pwd;perl -w myscript.cgi";
echo "cmd: $cmd<br>";
$result = exec($cmd,$arr,$status);
echo "status: $status [$result]<br>";
----------------------------------
The cgi program has been chmod'ed to 755 so it can run from a webpage
and the cgi program runs fine when _not_ called from the PHP script.
I get a status code of 155. Can someone please explain what this error
code means!
Thanks in advance
Tony Frasketi
attached mail follows:
Hi, Tony,
I'm a "middlebie", and I have the same problem. From the archives, I found
the following
suggestions from Richard Lynch:
Does it work perfectly from the command line if you su to "nobody" (or
whomever PHP runs as) before you execute it?
Is it world executable?
Does it access resources such as PGP key-rings that "nobody" can/cannot
access?
Are you sure you have the path correct?
In my case, the answer is yes to all of the above (except for su'ing to
nobody since I
can't do that on this client's server). I've also discovered that it's
usually a path/permission
problem unless the server was built in 'safe mode' in which case, no script
can be called.
I added in `date`; to see if I could execute anything & nothing happened,
so I fear this.
Now all I need to do is read up on suid in the PHP manual. Thankfully,
this is just a tool
for the client, and not something the world will see.
Any other suggestions?
Lara
----- Original Message -----
From: "Tony Frasketi" <webmaster
spacecovers.com>
To: <php-general
lists.php.net>
Sent: Monday, August 13, 2001 6:08 AM
Subject: [PHP] Having trouble with PHP exec function calling CGI program
> Hello list members
> I'm a newbie and having trouble with the EXEC function call from a PHP
> script. I've submitted this problem to the list last week but so far no
> response. And I still haven't figured it out. So here goes again.
>
> PHP EXEC function seems to work ok for executing shell commands like 'ls
> -al' etc.
>
> but when I execute the following PHP web page code...
>
> ----------------------------------
> $basedir = '/mnt/web/xxx/myplace';
> $cdir = $basedir . '/cgibin';
>
> $cmd = "cd $cdir;pwd;perl -w myscript.cgi";
> echo "cmd: $cmd<br>";
> $result = exec($cmd,$arr,$status);
> echo "status: $status [$result]<br>";
> ----------------------------------
>
> The cgi program has been chmod'ed to 755 so it can run from a webpage
> and the cgi program runs fine when _not_ called from the PHP script.
>
>
> I get a status code of 155. Can someone please explain what this error
> code means!
>
> Thanks in advance
> Tony Frasketi
>
> --
> 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:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
it could be that the webserver chroot()'s to some "secure" path,
and thus your script cannot find `date`.
perhaps all you have to do is to copy the binaries
that you need into the "safe" directory (if you can
first find out where the server is chroot()ing to)
if you think that your server is doing this,
read up on "sandboxing", it might help you get a better
picture of what's going on.
> -----Original Message-----
> From: Lara J. Fabans [mailto:lara
lodestone-sw.com]
> Subject: Re: [PHP] Having trouble with PHP exec function calling CGI
>
> Hi, Tony,
>
> I added in `date`; to see if I could execute anything & nothing happened,
> so I fear this.
> Now all I need to do is read up on suid in the PHP manual. Thankfully,
> this is just a tool
> for the client, and not something the world will see.
>
> Any other suggestions?
>
> Lara
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO3fnh8aXTGgZdrSUEQJRDACfdgGqeflDgZwq195fCsXnnDEUwNYAnjoR
Z6MO47A8h5YdcECWy9ANrJdb
=WoFm
-----END PGP SIGNATURE-----
attached mail follows:
hi guys,
I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work:
for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){
echo "$a. ".$HTTP_POST_VARS[$a]."<br>";
}
Please help
Tamas Bucsu
attached mail follows:
On Mon, Aug 13, 2001 at 03:06:48PM +0200, Tamas Bucsu wrote:
> hi guys,
>
> I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work:
>
> for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){
> echo "$a. ".$HTTP_POST_VARS[$a]."<br>";
> }
>
> Please help
>
> Tamas Bucsu
For the complete query-string: $HTTP_SERVER_VARS{"QUERY_STRING"}
Eg.: http://www.some-domain.com/index.php?one=xxx&two=yyy
$HTTP_SERVER_VARS{"QUERY_STRING"}: "one=xxx&two=yyy";
But you can also use:
$HTTP_GET_VARS{"one"} and $HTTP_GET_VARS{"two"}, etc:
$HTTP_GET_VARS{"one"}: "xxx";
$HTTP_GET_VARS{"two"}: "yyy";
Or you can use:
$one and $two, etc.
$one: "xxx"
$two: "yyy"
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
foreach ($HTTP_POST_VARS as $key=>$value) { echo "$key = $value"; }
-Stewart
-----Original Message-----
From: Tamas Bucsu [mailto:ta.bucsu
orion-infotech.com]
Sent: 13 August 2001 14:07
To: php-general
lists.php.net
Subject: [PHP] How to get the query string?
hi guys,
I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work:
for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){ echo "$a. ".$HTTP_POST_VARS[$a]."<br>"; }
Please help
Tamas Bucsu
attached mail follows:
On 13-Aug-2001 Tamas Bucsu wrote: > hi guys, > > I'd like to get the query string the browser sends to the script. The > problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an > associative array I can't use numbers to point to the elements of this > array. This piece of code does not work: > > for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){ > echo "$a. ".$HTTP_POST_VARS[$a]."<br>"; > } > > Please help > > Tamas Bucsu
while (list ($k, $v) = each($HTTP_POST_VARS)) { echo "$k ==> $v <BR>\n"; }
Regards,
-- Don Read dreadtexas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.
attached mail follows:
> > I'd like to get the query string the browser sends to the script. The > > problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an > > associative array I can't use numbers to point to the elements of this > > array. This piece of code does not work: > > > > for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){ > > echo "$a. ".$HTTP_POST_VARS[$a]."<br>"; > > } > > > > Please help > > > > Tamas Bucsu > > while (list ($k, $v) = each($HTTP_POST_VARS)) { > echo "$k ==> $v <BR>\n"; > }
or
foreach($HTTP_POST_VARS as $k=>$v) { echo "$k ==> $v <BR>\n"; }
-Rasmus
attached mail follows:
what are some good things for analyising server logs?!? I currently have Wusage, is there any better?!? :D - James "ReDucTor" Mitchell
attached mail follows:
I'm rather fond of Webalizer.
- Tim
On 13 Jul 2001 23:07:46 +1000, ReDucTor wrote:
> what are some good things for analyising server logs?!?
> I currently have Wusage, is there any better?!? :D
> - James "ReDucTor" Mitchell
>
>
> --
> 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 have a problem printing a lob field containing an image. The database i use is Interbase 6.0 I have a blob/lob field with a gif image inside an i like to print this image on the web. Can you help me?
Bye Alessandro
attached mail follows:
I tried using the ini_set() but did not affect .. Can you tell me the commands I should use?
- for the .htaccess : I only few knowledge about using .htaccess, so can you tell me what to write in the .htaccess file ?
Thanks Mahmoud
-----Original Message-----
From: Maxim Maletsky [mailto:maxim
japaninc.com]
Sent: Monday, August 13, 2001 12:03 PM
To: 'Mahmoud Kassem'; karthik
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
Try using .htaccess or ini_set() - perhaps this will help you when on shared server.
regards, Maxim Maletsky
-----Original Message-----
From: Mahmoud Kassem [mailto:mahmoud
abkareno.com]
Sent: Monday, August 13, 2001 4:12 PM
To: karthik
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
THe same .. did not make a difference ..
for php.ini settings : I am on a virtual hosting .. so I do not have access to the php.ini file
-----Original Message-----
From: karthik [mailto:karthik
ccipl.com]
Sent: Friday, July 13, 2001 9:43 AM
To: Mahmoud Kassem
Subject: Re: [PHP] Mail()
Hi
Try
mail("$emailto_owner"."<".$emailto.">",$subject,$message,$headers);
It worked for me when i had a similar problem. And do check the settings in php.ini for mails.
Karthik.
----- Original Message -----
From: "Mahmoud Kassem" <mahmoud
abkareno.com>
To: "ReDucTor" <sjdtmv
tpg.com.au>
Cc: <php-general
lists.php.net>
Sent: Monday, August 13, 2001 12:04 PM
Subject: RE: [PHP] Mail()
> I have the arrows
> my code is :
>
> $headers .= "Return-Path: <errors
abkareno.com>\n";
> $headers .= "Errors-To: <errors
abkareno.com>\n";
> $headers .= "X-Sender: Abkareno <webmaster
abkareno.com>\n";
> $headers .= "From: \"".$fname." ".$lname."\" <".$emailfrom.">\n";
> $headers .= "Reply-To: ".$fname." ".$lname." <".$emailfrom.">\n";
> $headers .= "Content-Type: text/html; charset=iso-8859-1\n";
> $headers .= "X-Mailer: Abkareno\n";
> $headers .= "X-Authenticated-IP: [".$REMOTE_ADDR."]\n";
> if ($prom == 1) {
> $headers .= "X-Priority: 2\n";
> $headers .= "Importance: High\n\n";
>
> mail("$emailto_owner"."<".$emailto.">","$subject","$message","$headers");
>
>
> and still I get the email from NO BODY <nobody
servername.com>
> -----Original Message-----
> From: ReDucTor [mailto:sjdtmv
tpg.com.au]
> Sent: Monday, August 13, 2001 9:25 AM
> To: Mahmoud Kassem; php-general
lists.php.net
> Subject: Re: [PHP] Mail()
>
>
> >From : Your Name <user
domain.com>
>
> make sure you have the arrow things around it...
>
> thats in your headers...
> ----- Original Message -----
> From: "Mahmoud Kassem" <mahmoud
abkareno.com>
> To: <php-general
lists.php.net>
> Sent: Monday, August 13, 2001 4:20 PM
> Subject: [PHP] Mail()
>
>
> > How can force my From: instead of the nobody
servername ?
> >
>
>
>
> --
> 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
attached mail follows:
your MTA is setting the envelope, not your script.
if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag.
-----Original Message-----
From: Mahmoud Kassem [mailto:mahmoud
abkareno.com]
Sent: Monday, August 13, 2001 1:34 AM
To: ReDucTor
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
I have the arrows my code is :
$headers .= "Return-Path: <errors
abkareno.com>\n";
$headers .= "Errors-To: <errors
abkareno.com>\n";
$headers .= "X-Sender: Abkareno <webmaster
abkareno.com>\n";
$headers .= "From: \"".$fname." ".$lname."\" <".$emailfrom.">\n";
$headers .= "Reply-To: ".$fname." ".$lname." <".$emailfrom.">\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "X-Mailer: Abkareno\n";
$headers .= "X-Authenticated-IP: [".$REMOTE_ADDR."]\n";
if ($prom == 1) {
$headers .= "X-Priority: 2\n";
$headers .= "Importance: High\n\n";
mail("$emailto_owner"."<".$emailto.">","$subject","$message","$headers");
and still I get the email from NO BODY <nobody
servername.com>
-----Original Message-----
From: ReDucTor [mailto:sjdtmv
tpg.com.au]
Sent: Monday, August 13, 2001 9:25 AM
To: Mahmoud Kassem; php-general
lists.php.net
Subject: Re: [PHP] Mail()
>From : Your Name <user
domain.com>
make sure you have the arrow things around it...
thats in your headers...
----- Original Message -----
From: "Mahmoud Kassem" <mahmoud
abkareno.com>
To: <php-general
lists.php.net>
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()
> How can force my From: instead of the nobody
servername ?
>
-- 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 said before I do not have access to the php.ini I am on a virtual Hosting ...
-----Original Message-----
From: Michael Geier, CDM Systems Admin [mailto:mgeier
cdmsports.com]
Sent: Monday, August 13, 2001 4:43 PM
To: Mahmoud Kassem; ReDucTor
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
your MTA is setting the envelope, not your script.
if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag.
-----Original Message-----
From: Mahmoud Kassem [mailto:mahmoud
abkareno.com]
Sent: Monday, August 13, 2001 1:34 AM
To: ReDucTor
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
I have the arrows my code is :
$headers .= "Return-Path: <errors
abkareno.com>\n";
$headers .= "Errors-To: <errors
abkareno.com>\n";
$headers .= "X-Sender: Abkareno <webmaster
abkareno.com>\n";
$headers .= "From: \"".$fname." ".$lname."\" <".$emailfrom.">\n";
$headers .= "Reply-To: ".$fname." ".$lname." <".$emailfrom.">\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "X-Mailer: Abkareno\n";
$headers .= "X-Authenticated-IP: [".$REMOTE_ADDR."]\n";
if ($prom == 1) {
$headers .= "X-Priority: 2\n";
$headers .= "Importance: High\n\n";
mail("$emailto_owner"."<".$emailto.">","$subject","$message","$headers");
and still I get the email from NO BODY <nobody
servername.com>
-----Original Message-----
From: ReDucTor [mailto:sjdtmv
tpg.com.au]
Sent: Monday, August 13, 2001 9:25 AM
To: Mahmoud Kassem; php-general
lists.php.net
Subject: Re: [PHP] Mail()
>From : Your Name <user
domain.com>
make sure you have the arrow things around it...
thats in your headers...
----- Original Message -----
From: "Mahmoud Kassem" <mahmoud
abkareno.com>
To: <php-general
lists.php.net>
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()
> How can force my From: instead of the nobody
servername ?
>
-- 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:
rather than be rude about it, try reading the whole message and then looking through the PHP documentation.
http://www.php.net/manual/en/function.ini-set.php =================================================== ini_set (PHP 4 >= 4.0RC1)
ini_set -- Set the value of a configuration option Description
string ini_set (string varname, string newvalue)
Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.
Not all the available options can be changed using ini_set(). Below is a table with a list of all PHP options (as of PHP 4.0.5-dev), indicating which ones can be changed/set and at what level. ===================================================
-----Original Message-----
From: Mahmoud Kassem [mailto:mahmoud
abkareno.com]
Sent: Monday, August 13, 2001 9:40 AM
To: Michael Geier, CDM Systems Admin
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
I said before I do not have access to the php.ini I am on a virtual Hosting ...
-----Original Message-----
From: Michael Geier, CDM Systems Admin [mailto:mgeier
cdmsports.com]
Sent: Monday, August 13, 2001 4:43 PM
To: Mahmoud Kassem; ReDucTor
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
your MTA is setting the envelope, not your script.
if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag.
-----Original Message-----
From: Mahmoud Kassem [mailto:mahmoud
abkareno.com]
Sent: Monday, August 13, 2001 1:34 AM
To: ReDucTor
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
I have the arrows my code is :
$headers .= "Return-Path: <errors
abkareno.com>\n";
$headers .= "Errors-To: <errors
abkareno.com>\n";
$headers .= "X-Sender: Abkareno <webmaster
abkareno.com>\n";
$headers .= "From: \"".$fname." ".$lname."\" <".$emailfrom.">\n";
$headers .= "Reply-To: ".$fname." ".$lname." <".$emailfrom.">\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "X-Mailer: Abkareno\n";
$headers .= "X-Authenticated-IP: [".$REMOTE_ADDR."]\n";
if ($prom == 1) {
$headers .= "X-Priority: 2\n";
$headers .= "Importance: High\n\n";
mail("$emailto_owner"."<".$emailto.">","$subject","$message","$headers");
and still I get the email from NO BODY <nobody
servername.com>
-----Original Message-----
From: ReDucTor [mailto:sjdtmv
tpg.com.au]
Sent: Monday, August 13, 2001 9:25 AM
To: Mahmoud Kassem; php-general
lists.php.net
Subject: Re: [PHP] Mail()
>From : Your Name <user
domain.com>
make sure you have the arrow things around it...
thats in your headers...
----- Original Message -----
From: "Mahmoud Kassem" <mahmoud
abkareno.com>
To: <php-general
lists.php.net>
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()
> How can force my From: instead of the nobody
servername ?
>
-- 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:
Sorry ..
I read the doc. and I tried sendmail_from and _path but did not affect also I tried to use a seperate function (directly through Sendmail) but did not work (I did not get any emails)
-----Original Message-----
From: Michael Geier, CDM Systems Admin [mailto:mgeier
cdmsports.com]
Sent: Monday, August 13, 2001 6:12 PM
To: Mahmoud Kassem
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
rather than be rude about it, try reading the whole message and then looking through the PHP documentation.
http://www.php.net/manual/en/function.ini-set.php =================================================== ini_set (PHP 4 >= 4.0RC1)
ini_set -- Set the value of a configuration option Description
string ini_set (string varname, string newvalue)
Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.
Not all the available options can be changed using ini_set(). Below is a table with a list of all PHP options (as of PHP 4.0.5-dev), indicating which ones can be changed/set and at what level. ===================================================
-----Original Message-----
From: Mahmoud Kassem [mailto:mahmoud
abkareno.com]
Sent: Monday, August 13, 2001 9:40 AM
To: Michael Geier, CDM Systems Admin
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
I said before I do not have access to the php.ini I am on a virtual Hosting ...
-----Original Message-----
From: Michael Geier, CDM Systems Admin [mailto:mgeier
cdmsports.com]
Sent: Monday, August 13, 2001 4:43 PM
To: Mahmoud Kassem; ReDucTor
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
your MTA is setting the envelope, not your script.
if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag.
-----Original Message-----
From: Mahmoud Kassem [mailto:mahmoud
abkareno.com]
Sent: Monday, August 13, 2001 1:34 AM
To: ReDucTor
Cc: php-general
lists.php.net
Subject: RE: [PHP] Mail()
I have the arrows my code is :
$headers .= "Return-Path: <errors
abkareno.com>\n";
$headers .= "Errors-To: <errors
abkareno.com>\n";
$headers .= "X-Sender: Abkareno <webmaster
abkareno.com>\n";
$headers .= "From: \"".$fname." ".$lname."\" <".$emailfrom.">\n";
$headers .= "Reply-To: ".$fname." ".$lname." <".$emailfrom.">\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "X-Mailer: Abkareno\n";
$headers .= "X-Authenticated-IP: [".$REMOTE_ADDR."]\n";
if ($prom == 1) {
$headers .= "X-Priority: 2\n";
$headers .= "Importance: High\n\n";
mail("$emailto_owner"."<".$emailto.">","$subject","$message","$headers");
and still I get the email from NO BODY <nobody
servername.com>
-----Original Message-----
From: ReDucTor [mailto:sjdtmv
tpg.com.au]
Sent: Monday, August 13, 2001 9:25 AM
To: Mahmoud Kassem; php-general
lists.php.net
Subject: Re: [PHP] Mail()
>From : Your Name <user
domain.com>
make sure you have the arrow things around it...
thats in your headers...
----- Original Message -----
From: "Mahmoud Kassem" <mahmoud
abkareno.com>
To: <php-general
lists.php.net>
Sent: Monday, August 13, 2001 4:20 PM
Subject: [PHP] Mail()
> How can force my From: instead of the nobody
servername ?
>
-- 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:
Sorry, all, but i couldn't fine any Mysql News group around, so i sent this message here, as i found php got a close relationship with mysql.
could someone pls tell me how i can grant a user to logon to the database from any computer around the office?
i had read a book and the book told me to type this command:
Grant all on samp.* to username
% IDENTIFIED BY "password"
The book said that the % is stand for the user can logon to the system at any computer! But i think mysql server take the % as a invaild character.
Could somone pls tell me if there is another way to Grant the permission to a user which he can login to the system from any computer?
Thx
Jack
jack
nedcor.com
attached mail follows:
Try these links for MySQL news:
http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive)
Best Regards
René
Jack wrote:
> Sorry, all, but i couldn't fine any Mysql News group around, so i sent this
> message here, as i found php got a close relationship with mysql.
>
> could someone pls tell me how i can grant a user to logon to the database
> from any computer around the office?
>
> i had read a book and the book told me to type this command:
>
> Grant all on samp.* to username
% IDENTIFIED BY "password"
>
> The book said that the % is stand for the user can logon to the system at
> any computer!
> But i think mysql server take the % as a invaild character.
>
> Could somone pls tell me if there is another way to Grant the permission to
> a user which he can login to the system from any computer?
>
> Thx
>
> Jack
> jack
nedcor.com
>
> --
> 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:
208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a HTTP/1.0" 400 333 - "-" "-"
attached mail follows:
No, that's the rather old one. That would be CR1.
Tyler Longren
Captain Jack Communications
tyler
captainjack.com
www.captainjack.com
On Mon, 13 Aug 2001 22:27:06 +0800
"Mark Lo" <mark
3dsources.com> wrote:
> 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET
>
/default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
>
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
>
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
>
NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%
> u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a
> HTTP/1.0" 400 333 - "-" "-"
>
>
>
> --
> 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:
Boy that looks familiar...my (apache) logs are full of 'em.
I wonder if we can make a PHP script called default.ida that sends back a big chunk of data and causes the worm to get a buffer overflow? :) :)
- Tim (glad I don't run IIS :)
On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote: > 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET > /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN > NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% > u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a > HTTP/1.0" 400 333 - "-" "-"
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
what about something like this ? (just configure apache to have PHP handle *.ida files)
<? // this is so our script won't time out set_time_limit(0);
// how many bytes of junk to generate $jsize = 1024 * 10; // how many times to print $junk $jout = 1;
// generate some random junk $n = 0; while ($n++ < $jsize) { $junk .= chr( rand(1,200) ); }
$i = 0; while ( $i++ < $jout ) { print $junk; }
?>
> -----Original Message-----
> From: Tim [mailto:infoz
earthlink.net]
> Subject: Re: [PHP] new one is it ??
>
>
> Boy that looks familiar...my (apache) logs are full of 'em.
>
> I wonder if we can make a PHP script called default.ida that sends back
> a big chunk of data and causes the worm to get a buffer overflow? :) :)
>
> - Tim (glad I don't run IIS :)
>
> On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote:
> > 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET
> > /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> > NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> > NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> > NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%
> > u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a
> > HTTP/1.0" 400 333 - "-" "-"
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO3fmM8aXTGgZdrSUEQKRAgCgrGf+r6Fma17L39tEVp8lwanC+FwAoJlz l7k1s47s8EdDHnM+jLZzDuL2 =z2GG -----END PGP SIGNATURE-----
attached mail follows:
Unfortunately, you're punishing the infected person, rather than the instigator of the worm.
I've read of people developing perl scriptlets that basically hold the connection open as long as possible by fooling the other side into thinking that it's got a host it's infecting... thereby slowing down the propagation of the worm. The numbers I saw indicated that with version 1 of the worm, and it's 100 threads, holding a connection as long as possible before timing out (which is what, 5 minutes?) slows the propagation of the worm 265,000%
But (personally) I dont think it's appropriate to lash back against an
infected machine (though a quick "why dont you patch your
#(*)( machines"
to the network owner has been known to occur on occasion when I get hit by
many many servers within a given netblock).
> -----Original Message-----
> From: scott [gts] [mailto:scott
graphictype.com]
> Sent: Monday, August 13, 2001 10:38 AM
> To: php
> Subject: RE: [PHP] new one is it ??
>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> what about something like this ?
> (just configure apache to have PHP handle *.ida files)
>
> <?
> // this is so our script won't time out
> set_time_limit(0);
>
> // how many bytes of junk to generate
> $jsize = 1024 * 10;
> // how many times to print $junk
> $jout = 1;
>
> // generate some random junk
> $n = 0;
> while ($n++ < $jsize) {
> $junk .= chr( rand(1,200) );
> }
>
> $i = 0;
> while ( $i++ < $jout ) {
> print $junk;
> }
>
> ?>
>
> > -----Original Message-----
> > From: Tim [mailto:infoz
earthlink.net]
> > Subject: Re: [PHP] new one is it ??
> >
> >
> > Boy that looks familiar...my (apache) logs are full of 'em.
> >
> > I wonder if we can make a PHP script called default.ida
> that sends back
> > a big chunk of data and causes the worm to get a buffer
> overflow? :) :)
> >
> > - Tim (glad I don't run IIS :)
> >
> > On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote:
> > > 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET
> > >
> /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NNNNNNNNNNNNNN
> > >
> NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NNNNNNNNNNNNNN
> > >
> NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NNNNNNNNNNNNNN
> > >
> NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u909
> 0%u6858%ucbd3%
> > >
> u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0
> 000%u00=a
> > > HTTP/1.0" 400 333 - "-" "-"
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBO3fmM8aXTGgZdrSUEQKRAgCgrGf+r6Fma17L39tEVp8lwanC+FwAoJlz
> l7k1s47s8EdDHnM+jLZzDuL2
> =z2GG
> -----END PGP SIGNATURE-----
>
>
> --
> 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:
get MS Patches from
http://www.digitalisland.com/codered/
----- Original Message -----
From: Mark Lo <mark
3dsources.com>
To: <redhat-list
redhat.com>; php general <php-general
lists.php.net>
Sent: Monday, August 13, 2001 7:57 PM
Subject: new one is it ??
> 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET
> /d
efault.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NN
NNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%
> u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a
> HTTP/1.0" 400 333 - "-" "-"
>
>
>
>
> _______________________________________________
> Redhat-list mailing list
> Redhat-list
redhat.com
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_________________________________________________________
Do You Yahoo!?
Get your free
yahoo.com address at http://mail.yahoo.com
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
you could, of course, throw a few sleep() stmnts in there to get the script to output a few bytes every few seconds and keep the connection active... :-)
> -----Original Message-----
> From: Scott Brown [mailto:scott-brown
home.com]
> Subject: RE: [PHP] new one is it ??
>
>
> Unfortunately, you're punishing the infected person, rather than the
> instigator of the worm.
>
> I've read of people developing perl scriptlets that basically hold the
> connection open as long as possible by fooling the other side into thinking
> that it's got a host it's infecting... thereby slowing down the propagation
> of the worm. The numbers I saw indicated that with version 1 of the worm,
> and it's 100 threads, holding a connection as long as possible before timing
> out (which is what, 5 minutes?) slows the propagation of the worm 265,000%
>
> But (personally) I dont think it's appropriate to lash back against an
> infected machine (though a quick "why dont you patch your
#(*)( machines"
> to the network owner has been known to occur on occasion when I get hit by
> many many servers within a given netblock).
>
> > -----Original Message-----
> > From: scott [gts] [mailto:scott
graphictype.com]
> > Sent: Monday, August 13, 2001 10:38 AM
> > To: php
> > Subject: RE: [PHP] new one is it ??
> >
> >
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > what about something like this ?
> > (just configure apache to have PHP handle *.ida files)
> >
> > <?
> > // this is so our script won't time out
> > set_time_limit(0);
> >
> > // how many bytes of junk to generate
> > $jsize = 1024 * 10;
> > // how many times to print $junk
> > $jout = 1;
> >
> > // generate some random junk
> > $n = 0;
> > while ($n++ < $jsize) {
> > $junk .= chr( rand(1,200) );
> > }
> >
> > $i = 0;
> > while ( $i++ < $jout ) {
> > print $junk;
> > }
> >
> > ?>
> >
> > > -----Original Message-----
> > > From: Tim [mailto:infoz
earthlink.net]
> > > Subject: Re: [PHP] new one is it ??
> > >
> > >
> > > Boy that looks familiar...my (apache) logs are full of 'em.
> > >
> > > I wonder if we can make a PHP script called default.ida
> > that sends back
> > > a big chunk of data and causes the worm to get a buffer
> > overflow? :) :)
> > >
> > > - Tim (glad I don't run IIS :)
> > >
> > > On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote:
> > > > 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET
> > > >
> > /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> > NNNNNNNNNNNNNN
> > > >
> > NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> > NNNNNNNNNNNNNN
> > > >
> > NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> > NNNNNNNNNNNNNN
> > > >
> > NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u909
> > 0%u6858%ucbd3%
> > > >
> > u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0
> > 000%u00=a
> > > > HTTP/1.0" 400 333 - "-" "-"
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
> >
> > iQA/AwUBO3fmM8aXTGgZdrSUEQKRAgCgrGf+r6Fma17L39tEVp8lwanC+FwAoJlz
> > l7k1s47s8EdDHnM+jLZzDuL2
> > =z2GG
> > -----END PGP SIGNATURE-----
> >
> >
> > --
> > 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-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
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO3foz8aXTGgZdrSUEQITGQCgwxmL0KexmBSj+FBC4uyv6XXhr30AoJie j67nEMhjOm2Jh8w4tLaofCSq =CpO9 -----END PGP SIGNATURE-----
attached mail follows:
That's code red atack. Apache will be ok.
At 10:27 PM 8/13/2001 +0800, Mark Lo wrote:
>208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET
>/default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
>NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
>NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
>NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%
>u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=a
>HTTP/1.0" 400 333 - "-" "-"
>
>
>
>
>_______________________________________________
>Redhat-list mailing list
>Redhat-list
redhat.com
>https://listman.redhat.com/mailman/listinfo/redhat-list
Ezra Nugroho Web/Database Application Specialist Goshen College ITS Phone: (219) 535-7706
"Don't be humble, you're not that great." -- Golda Meir
attached mail follows:
> -----Original Message-----
> From: Tim [mailto:infoz
earthlink.net]
> Sent: Monday, August 13, 2001 9:38 AM
> To: Mark Lo
> Cc: php general
> Subject: Re: [PHP] new one is it ??
>
>
> Boy that looks familiar...my (apache) logs are full of 'em.
>
> I wonder if we can make a PHP script called default.ida that
> sends back a big chunk of data and causes the worm to get a
> buffer overflow? :) :)
I rather liked this approach that I saw posted in another list:
http://www.klippan.seths.se/default.phps
(Does some hostname/whois lookups on the infected server and attempts to email some people who might be able to do something about it.)
--- 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:
That's pretty cool. Alas, the 'whois' part of the code doesn't work properly (at least on my system).
- Tim
On 13 Aug 2001 10:21:45 -0500, Mark Roedel wrote: > I rather liked this approach that I saw posted in another list: > > http://www.klippan.seths.se/default.phps > > (Does some hostname/whois lookups on the infected server and attempts to > email some people who might be able to do something about it.)
attached mail follows:
Way cool... with a bit of work, one could query ARIN, RIPE, and APNIC until an answer was received (that's what I'm modifying it to do) else die. With the timeout set to "forever", what would we care if it takes a few extra seconds to go spy-out a potential (would-be-if-we-were-running-IIS)intruder.
The author made a really nifty framework and left it pretty easy to modify. I already swiped a copy (thanks, Mark!!) and am having a ball adding my own "bends" to it.
Tim, the part that does the WHOIS query is only querying RIPE. I'm modifying mine to loop through a known set of authorities (right now, the three I mentioned above) and to set a flag ($IGotIt or something I can test afterward with "if ( $IGotIt ) { yaddayadda }"), and to quit looking when it gets a reasonable answer.
If I get it working before anyone else (doubtful, I'm still a bit slow with PHP and I'm also at work), I'd be more than happy to share.
CY'all, Bill
-----Original Message-----
From: Tim [mailto:infoz
earthlink.net]
Sent: Monday, August 13, 2001 1:16 PM
To: Mark Roedel
Cc: Mark Lo; php general
Subject: RE: [PHP] new one is it ??
That's pretty cool. Alas, the 'whois' part of the code doesn't work properly (at least on my system).
- Tim
On 13 Aug 2001 10:21:45 -0500, Mark Roedel wrote: > I rather liked this approach that I saw posted in another list: > > http://www.klippan.seths.se/default.phps > > (Does some hostname/whois lookups on the infected server and attempts to > email some people who might be able to do something about it.)
-- 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:
Well, you could send the junk data to micro$oft instead.
-----Original Message-----
From: Scott Brown [mailto:scott-brown
home.com]
Sent: Monday, August 13, 2001 7:52 AM
To: 'scott [gts]'; php-general
lists.php.net
Subject: RE: [PHP] new one is it ??
Unfortunately, you're punishing the infected person, rather than the instigator of the worm.
I've read of people developing perl scriptlets that basically hold the connection open as long as possible by fooling the other side into thinking that it's got a host it's infecting... thereby slowing down the propagation of the worm. The numbers I saw indicated that with version 1 of the worm, and it's 100 threads, holding a connection as long as possible before timing out (which is what, 5 minutes?) slows the propagation of the worm 265,000%
But (personally) I dont think it's appropriate to lash back against an
infected machine (though a quick "why dont you patch your
#(*)( machines"
to the network owner has been known to occur on occasion when I get hit by
many many servers within a given netblock).
> -----Original Message-----
> From: scott [gts] [mailto:scott
graphictype.com]
> Sent: Monday, August 13, 2001 10:38 AM
> To: php
> Subject: RE: [PHP] new one is it ??
>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> what about something like this ?
> (just configure apache to have PHP handle *.ida files)
>
> <?
> // this is so our script won't time out
> set_time_limit(0);
>
> // how many bytes of junk to generate
> $jsize = 1024 * 10;
> // how many times to print $junk
> $jout = 1;
>
> // generate some random junk
> $n = 0;
> while ($n++ < $jsize) {
> $junk .= chr( rand(1,200) );
> }
>
> $i = 0;
> while ( $i++ < $jout ) {
> print $junk;
> }
>
> ?>
>
> > -----Original Message-----
> > From: Tim [mailto:infoz
earthlink.net]
> > Subject: Re: [PHP] new one is it ??
> >
> >
> > Boy that looks familiar...my (apache) logs are full of 'em.
> >
> > I wonder if we can make a PHP script called default.ida
> that sends back
> > a big chunk of data and causes the worm to get a buffer
> overflow? :) :)
> >
> > - Tim (glad I don't run IIS :)
> >
> > On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote:
> > > 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] "GET
> > >
> /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NNNNNNNNNNNNNN
> > >
> NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NNNNNNNNNNNNNN
> > >
> NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
> NNNNNNNNNNNNNN
> > >
> NNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u909
> 0%u6858%ucbd3%
> > >
> u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0
> 000%u00=a
> > > HTTP/1.0" 400 333 - "-" "-"
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBO3fmM8aXTGgZdrSUEQKRAgCgrGf+r6Fma17L39tEVp8lwanC+FwAoJlz
> l7k1s47s8EdDHnM+jLZzDuL2
> =z2GG
> -----END PGP SIGNATURE-----
>
>
> --
> 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
attached mail follows:
Hello Everyone,
I have recently written a script to change htpasswd via a web interface. The script is running fine, but all of the variables (by default) are being sent in the url. I have not called any of the URL functions, so I am not exactly sure why this is happening. Is there something in the php.ini or at compile time which is enabling this. The problem ends up being that passwords are sent in plain text in the url!
Help!
Brendan
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
You forgot to add a method=POST into your <form> tag.
Tyler Longren
Captain Jack Communications
tyler
captainjack.com
www.captainjack.com
On Mon, 13 Aug 2001 09:35:39 -0500
"Brendan P. Caulfield" <brendan1431
hotmail.com> wrote:
> Hello Everyone,
>
> I have recently written a script to change htpasswd via a web interface.
>
> The script is running fine, but all of the variables (by default) are
> being
> sent in the url. I have not called any of the URL functions, so I am
> not
> exactly sure why this is happening. Is there something in the php.ini
> or at
> compile time which is enabling this. The problem ends up being that
> passwords are sent in plain text in the url!
>
> Help!
>
> Brendan
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
>
>
> --
> 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:
Greetings,
How safe is the code written in PHP? For instance, if I have an equation or some algorithm with some constants for calculations and I code them in PHP for use on a website are they safe from being viewed or taken?
Thanks
James
attached mail follows:
The only real way to see the php code is if you don't have the webserver set to parse the code...then it will just be displayed on the page (or downloaded). If you're really paranoid, you can get a tool to encrypt your php code. There's some free ones, but here's a costly one that I know of: www.zend.com
Tyler Longren
Captain Jack Communications
tyler
captainjack.com
www.captainjack.com
On Mon, 13 Aug 2001 07:43:17 -0700
"James Shaker" <james
vartek-corp.com> wrote:
>
> Greetings,
>
> How safe is the code written in PHP? For instance, if I have an
> equation or
> some algorithm with some constants for calculations and I code them in
> PHP
> for use on a website are they safe from being viewed or taken?
>
>
> Thanks
>
> James
>
>
> --
> 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:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
they are kinda safe if the webserver is the only way that your files can be viewed.... if people can log into the machine, they could just view the plaintext of your PHP script.
hint: security thru obscurity is not secure.
> -----Original Message-----
> From: James Shaker [mailto:james
vartek-corp.com]
> Subject: [PHP] The secrecy of PHP code
>
> Greetings,
>
> How safe is the code written in PHP? For instance, if I have an equation or
> some algorithm with some constants for calculations and I code them in PHP
> for use on a website are they safe from being viewed or taken?
>
> Thanks
> James
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO3fmwMaXTGgZdrSUEQLANQCg5dnsmDdp9rouyXmk1Wuy7/NHd3YAoIBs A2zlBYvpjbk/K35h54V97r/x =+Sy4 -----END PGP SIGNATURE-----
attached mail follows:
On Mon, 13 Aug 2001 09:43:56 -0500 impersonator of tyler
captainjack.com
(Tyler Longren) planted &I saw in php.general:
>The only real way to see the php code is if you don't have the webserver >set to parse the code...then it will just be displayed on the page (or >downloaded). If you're really paranoid, you can get a tool to encrypt >your php code. There's some free ones, but
Puting aside paranoid part, do you mean decrypting script by another script, everytime it needs running? What "free ones" you are talking about, beside not-free zend compiler? There are en(de)crypting functions in php itself, i believe.
-- ReGards, i leonid
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi All,
i have come across a strange problem with variable variables. Basicly i'm doing the following and its not working:
$section = 'data["SITE"][0]["NAME"][0]'; $pData = 'My Site.'; ${sprintf('$%s', $section)}.=$pData;
but it is not working. But if i do this:
eval('$'.$section.'.="'.addslashes($pData).'";');
it works and all is well. I don't really want to use eval() and just wanted to see if anybody has any ideas why the above doesn't work.
Thanks, William.
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv
iQA/AwUBO3foS639EoU2VrU1EQIPZgCcCg643+F0xDUXdsBSYAYInFStaJ0An2ID AKL4hMIktbRsQpyVgkoeKsDo =w0ei -----END PGP SIGNATURE-----
attached mail follows:
hi
does anybody know of a message board written in OOP style?
thanks for helping; regards
attached mail follows:
ok, let's have this in the right place in a file named startsesion.php i.e.
session_start(); session_name("mysesion"); session_register("myvar"); $myvar = "whatever";
a SID is generated autmaticaly
I've been trying to echo the values of the var defined and the SID generated in another php file
<?php echo ($sesionvar); ?> not working <?php echo ($HTTP_SESSION_VARS["myvar"] ); ?> not working <?php echo ($GLOBALS[$sesionvar]); ?> not working <?php echo session_name(); ?> not working
<?php echo ($PHPSESSID); ?> not working
how can I get this values?
thanks, gracias
attached mail follows:
On Mon, Aug 13, 2001 at 04:57:08PM +0200, Aniceto Lopez wrote: > ok, let's have this in the right place > in a file named startsesion.php i.e. > > session_start(); > session_name("mysesion"); > session_register("myvar"); > $myvar = "whatever"; > > a SID is generated autmaticaly > > > I've been trying to echo the values of the var defined > and the SID generated in another php file > > <?php echo ($sesionvar); ?> not working > <?php echo ($HTTP_SESSION_VARS["myvar"] ); ?> not working > <?php echo ($GLOBALS[$sesionvar]); ?> not working > <?php echo session_name(); ?> not working > > <?php echo ($PHPSESSID); ?> not working > > how can I get this values? > > thanks, gracias
Did you use session_start() in the file where you try to output data from the session?
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
On the second page before the html tag write:
<? session_name(mysession); session_start(); ?>
and then go ahead and echo your $myvar;
> ok, let's have this in the right place
> in a file named startsesion.php i.e.
>
> session_start();
> session_name("mysesion");
> session_register("myvar");
> $myvar = "whatever";
>
> a SID is generated autmaticaly
>
>
> I've been trying to echo the values of the var defined
> and the SID generated in another php file
>
> <?php echo ($sesionvar); ?> not working
> <?php echo ($HTTP_SESSION_VARS["myvar"] ); ?> not working
> <?php echo ($GLOBALS[$sesionvar]); ?> not working
> <?php echo session_name(); ?> not working
>
> <?php echo ($PHPSESSID); ?> not working
>
> how can I get this values?
>
> thanks, gracias
>
>
>
>
> --
> 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:
Does anyone have any experience with www.linuxwebhost.com or www.addr.com?
Dan Pierce Web Developer Saturn Systems
-----Original Message-----
From: Pere Vineta [mailto:Pere
PowerAcDc.com]
Sent: Monday, August 13, 2001 3:53 AM
To: php-general
lists.php.net
Subject: RE: Reliable PHP web hosts
I'm quite happy with SiteTurn. You can check them out through www.siteturn.com
Pere
attached mail follows:
They're one of the cheapest I've found so far. I'm looking for a host that will allow me to have multiple mySQL databases without charging me extra. linuxwebhost.com allows as many as your disk space allows.
Dan Pierce Web Developer Saturn Systems
-----Original Message-----
From: Gonyou, Austin [mailto:austin
coremetrics.com]
Sent: Monday, August 13, 2001 10:23 AM
To: 'dpierce
saturnsys.com'
Subject: RE: [PHP] RE: Reliable PHP web hosts
Linuxwebhost isn't too bad. They're prices are getting a bit high I think now..but the cheap package is still well worth it.
-- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: austincoremetrics.com
> -----Original Message----- > From: Dan Pierce [mailto:dpierce
saturnsys.com] > Sent: Monday, August 13, 2001 10:10 AM > To: php-general
lists.php.net > Subject: [PHP] RE: Reliable PHP web hosts > > Does anyone have any experience with www.linuxwebhost.com or > www.addr.com? > > Dan Pierce > Web Developer > Saturn Systems > > -----Original Message----- > From: Pere Vineta [mailto:Pere
PowerAcDc.com] > Sent: Monday, August 13, 2001 3:53 AM > To: php-general
lists.php.net > Subject: RE: Reliable PHP web hosts > > I'm quite happy with SiteTurn. You can check them out through > www.siteturn.com > > Pere > > > > > -- > 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:
* Dan Pierce <dpierce
saturnsys.com> [010813 09:24]:
> Does anyone have any experience with www.linuxwebhost.com or www.addr.com?
I have been using linuxwebhost for most of my websites during the past year. I am generally satisfied, though I have been waiting for a reply from tech support on some questions I had about PHP support. It could be that they don't really know ;-)
-- Jan Wilson, SysAdmin _/*]; corocombtl.net Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com & linux.bz Reg. Linux user #151611 |_/ Network, SQL, Perl, HTML
attached mail follows:
>I read that IE first read the headers fully ( including the file ) and then >ask it again for opening while Netscape read the file only once.
This description matches what I've seen. Here's what I've come up with that seems to work for IE and Netscape on Windows and Mac.
//$y is the full pathname of the file ... $x = stat( "$y" ); header( "Accept-Ranges: bytes" ); header( "Content-Length: " . $x[7] ); header( "Connection: close" );
$a = basename( $y ); if( strpos($a,':') ) $a = substr( $a,0,strpos($a,':') );
if( strpos($y,'.') ) $z = substr( $y,strrpos($y,'.') ); // get suffix else $z = 0; if( $z ) { if( strpos($z,':') ) $z = substr( $z,1,strpos($z,':')-1 ); else $z = substr( $z,1 ); header( "Content-Type: " . FindMime($z) ); // FindMime is my function } else { header( "Content-Type: application/octet-stream" ); }
readfile( "$y" ); exit;
-- Bill Rausch, Software Development, Unix, Mac, Windows Numerical Applications, Inc. 509-943-0861 billnumerical.com
attached mail follows:
I guess Renze, I have to use session_start() in the file where I want to output data from the session
All this questions about session are generated because I want to control the acces to some of the web pages in a site so only accesible to registered visitors.
Ok name user and password are stored in a db (mysql), after password verification sesion is started, temporal storage of some values (PHPSESSID i.e.) and I guess in the begining of every restricted page this temporal info shoul be checked to make the page visible or not but if the visitor closes the browser the sesion is over, session_destroy is this necessary?
thanks
remind me to invite you to have a beer next time you come to barcelona
attached mail follows:
On Mon, Aug 13, 2001 at 05:39:47PM +0200, Aniceto Lopez wrote: > I guess Renze, I have to use session_start() in the file where > I want to output data from the session > > All this questions about session are generated because I want > to control the acces to some of the web pages in a site so only > accesible to registered visitors. > > Ok name user and password are stored in a db (mysql), after > password verification sesion is started, temporal storage of some > values (PHPSESSID i.e.) and I guess in the begining of every > restricted page this temporal info shoul be checked to make the > page visible or not but if the visitor closes the browser the sesion is > over, session_destroy is this necessary? > > thanks > > remind me to invite you to have a beer next time you come to barcelona
Yes, indeed, you do have to use session_start() on each page you want to use the session-info. And no, you don't need session_destroy() when the user closes the browser. The session is ended automatically then. And btw, how would you detect whether or not someone has closed his browser?
Hope this was an answer to your question...
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
When you named your session by using session_name(mysession) you renamed your session from PHPSESSID to mysession. You do not need to destroy each session when someone closes the browser out. If you do not, the persons session will be stored in a temp folder on the php server and once in awhile php will go in and clean up that directory for you. So as long as the person comes back to the site using the same sessionid number before php cleans up the directory then you'll have access to the same information. If you want access to the same information all the time, use cookies, the majority of people allow cookies so you're pretty safe.
I hope that all made sense :)
Rick
> I guess Renze, I have to use session_start() in the file where
> I want to output data from the session
>
> All this questions about session are generated because I want
> to control the acces to some of the web pages in a site so only
> accesible to registered visitors.
>
> Ok name user and password are stored in a db (mysql), after
> password verification sesion is started, temporal storage of some
> values (PHPSESSID i.e.) and I guess in the begining of every
> restricted page this temporal info shoul be checked to make the
> page visible or not but if the visitor closes the browser the sesion is
> over, session_destroy is this necessary?
>
> thanks
>
> remind me to invite you to have a beer next time you come to barcelona
>
>
>
> --
> 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:
Dear PHP friends
I received the first general digest newsletters but am unable to read it properly. I receive an empty message with a txt file (index) and a big number of files with extension ezm attached. What I have to do to receive the digest in a proper format? Im using Microsoft Outlook Express 5.
Thank for help
Detlev
attached mail follows:
Is there a prewritten function for capitalizing the first letter of each word in a string except for the common words you wouldn't want to capitalize in a title? Like
Come Learn the Facts From an Industry Leader
Thanks. Jeff Oien
attached mail follows:
> Is there a prewritten function for capitalizing the first > letter of each word in a string except for the common > words you wouldn't want to capitalize in a title? Like > Come Learn the Facts From an Industry Leader
None that I've seen. But it wouldn't be hard to write a function that takes a string, passes that string to ucwords() and then you can run through a pre-defined array and just do an ereg_replace() on those words you want to remain lowercase...
Or something like that...
Chris
attached mail follows:
http://www.php.net/manual/en/function.ucwords.php
You can read all about the limit of this function, but this is the closest thing to what you're looking for.
Rick
> Is there a prewritten function for capitalizing the first letter of each > word in a string except for the common words you wouldn't want > to capitalize in a title? Like > > Come Learn the Facts From an Industry Leader > > Thanks. > Jeff Oien
attached mail follows:
Something like this, perhaps (untested):
function smart_ucwords($String) {
$ExceptionList = array('the', 'an', 'a'); # should all be in lowercase
$String = ucwords(strtolower(ltrim($String))); # LINE A
foreach ($ExceptionList as $Word) { $String = eregi_replace("[[:space:]]+$Word[[:space:]]+", $Word, $String); }
return $String; # LINE B
}
This will leave the exception word capitalized if it is the first word in the $String (as it should be), or if it is the last work in the $String (unlikely). If you want to handle cases where the exception word comes at the end of the string, just replace LINE A above with
$String = ucwords(strtolower($String)).' ';
and LINE B with
return rtrim($String);
Of course, there will be exceptions that are near-impossible to programmatically determine, eg; 'Dr. Martin van Hooten Hears a Who'
in this case, van should be lower case, since it isn't referring to a medium-capacity box-like automobile, tennis shoe brand, or naval vanguard.
-steve
At 11:07 AM -0500 8/13/01, Boget, Chris <Chris.Boget
wild.net> wrote:
> > Is there a prewritten function for capitalizing the first
>> letter of each word in a string except for the common
>> words you wouldn't want to capitalize in a title? Like
>> Come Learn the Facts From an Industry Leader
>
>None that I've seen.
>But it wouldn't be hard to write a function that takes a
>string, passes that string to ucwords() and then you can
>run through a pre-defined array and just do an ereg_replace()
>on those words you want to remain lowercase...
>
>Or something like that...
>
>Chris
-- +------ Factoid: Of the 100 largest economies in the world, 51 are ------+ | Steve Edberg University of California, Davis | | sbedbergucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +--- corporations ------ http://www.ips-dc.org/reports/top200text.htm ---+
attached mail follows:
>Something like this, perhaps (untested):
I needed this too so I just tested it.
>function smart_ucwords($String) >{ > > $ExceptionList = array('the', 'an', 'a'); # should all be in >lowercase > > $String = ucwords(strtolower(ltrim($String))); # LINE A > > foreach ($ExceptionList as $Word) > { > $String = eregi_replace("[[:space:]]+$Word[[:space:]]+", >$Word, $String); > }
this line should be more like: $String = eregi_replace("([[:space:]]+)".$Word."([[:space:]]+)", "\\1".$Word."\\2", $String);
> return $String; # LINE B > >}
thanks! - Mark
attached mail follows:
Fabulous. Thanks to Steve and Mark. Exactly what I needed. Jeff Oien
> >Something like this, perhaps (untested): > > I needed this too so I just tested it. > > >function smart_ucwords($String) > >{ > > > > $ExceptionList = array('the', 'an', 'a'); # should all be in > >lowercase > > > > $String = ucwords(strtolower(ltrim($String))); # LINE A > > > > foreach ($ExceptionList as $Word) > > { > > $String = eregi_replace("[[:space:]]+$Word[[:space:]]+", > >$Word, $String); > > } > > > this line should be more like: > $String = eregi_replace("([[:space:]]+)".$Word."([[:space:]]+)", > "\\1".$Word."\\2", $String); > > > return $String; # LINE B > > > >} > > thanks! > - Mark >
attached mail follows:
Renze asked: "how would you detect whether or not someone has closed his browser? (session is over then)"
Do I realy need to know this to let or not a registered user navigate some restricted web pages?
Aniceto Lopez
attached mail follows:
Hello, I am looking for a way to have my script log into a site that use an html form to enter the username and password. Then after it has logged in I need to emulate a form ussing sockets or curl. If you have done this or have an idea how I could do this, thanks ahead of time for the info. Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
attached mail follows:
Hi Maxim,
You are probably only one in this mailing list with experiance of work with russian language in PHP, I have another qwestion concerning Opera and textarea - I can't make Opera to accept cyrillic text in textareas, I mean I can type in Russian but can't insert russian text (tried various formats) into textarea in Opera. I have Russian Opera 5.12 and russificated Windows ME in settings of Opera all fonts are cyrillic, I have already 4 years experianse of working with Opera but actually never knew that it has such problem =(( I'm mostly worried about visitours of my site who use Opera, they will not be able to save data in database because they will have this prob with textarea. By the way texarea is working wonderfully with IE. and I tried to add different charsets and lang variables to textarea HTML-tag didn't work any way.
Youri
attached mail follows:
Hello BRACK,
Monday, August 13, 2001, 8:12:42 PM, you wrote: B> You are probably only one in this mailing list with experiance of B> work with russian language in PHP, I have another qwestion B> concerning Opera and textarea - I can't make Opera to accept B> cyrillic text in textareas
I'm sorry, but I haven't much experience with Opera browsers. If you read Russian, try to search cooler.emax.ru - there were a lot of articles concerning Opera and its russificarion.
-- Best regards, Maxim Derkachev mailto:max.derkachevbooks.ru System administrator & programmer, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru
attached mail follows:
Hi, Is there any way to send an ICMP ping (or packet) from PHP? (without using exec("ping")!!)
Regards,
- James
Editor, VB Web
==================
Web - http://www.vbweb.co.uk
Email - james
vbweb.co.uk
ICQ# - 60612011
Fax - +44(0)8707052859
==================
attached mail follows:
james
vbweb.co.uk (James Crowley) wrote:
> Hi, > Is there any way to send an ICMP ping (or packet) from PHP? > (without using exec("ping")!!)
use sockets
-- Henrik Hansen
attached mail follows:
Anyone know why I get this when I run buildconf for php or phpgtk on redhat 7.1? I have autoconf 2.13
autoconf: Undefined macros: ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP
- Dan
--
attached mail follows:
What libtool version are you using ?
libtool --version
- Markus
On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote :
> Anyone know why I get this when I run buildconf for php or phpgtk on
> redhat 7.1? I have autoconf 2.13
>
> autoconf: Undefined macros:
> ***BUG in Autoconf--please report*** AC_LANG_PUSH
> ***BUG in Autoconf--please report*** AC_LANG_POP
> ***BUG in Autoconf--please report*** AC_LANG_PUSH
> ***BUG in Autoconf--please report*** AC_MSG_NOTICE
> ***BUG in Autoconf--please report*** AC_LANG_POP
> ***BUG in Autoconf--please report*** AC_LANG_PUSH
> ***BUG in Autoconf--please report*** AC_LANG_POP
>
> - Dan
> --
>
>
> --
> PHP GTK Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-gtk-unsubscribe
lists.php.net
> For additional commands, e-mail: php-gtk-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischerguru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend-
attached mail follows:
1.4b
On Mon, 13 Aug 2001, Markus Fischer wrote:
> What libtool version are you using ?
>
> libtool --version
>
> - Markus
>
> On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote :
> > Anyone know why I get this when I run buildconf for php or phpgtk on
> > redhat 7.1? I have autoconf 2.13
> >
> > autoconf: Undefined macros:
> > ***BUG in Autoconf--please report*** AC_LANG_PUSH
> > ***BUG in Autoconf--please report*** AC_LANG_POP
> > ***BUG in Autoconf--please report*** AC_LANG_PUSH
> > ***BUG in Autoconf--please report*** AC_MSG_NOTICE
> > ***BUG in Autoconf--please report*** AC_LANG_POP
> > ***BUG in Autoconf--please report*** AC_LANG_PUSH
> > ***BUG in Autoconf--please report*** AC_LANG_POP
> >
> > - Dan
> > --
> >
> >
> > --
> > PHP GTK Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-gtk-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-gtk-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
--
attached mail follows:
There it is.
You need 1.4 .
No trailing a or b or whatsoever.
- Markus
On Mon, Aug 13, 2001 at 01:20:50PM -0400, Daniel Adams wrote :
> 1.4b
>
> On Mon, 13 Aug 2001, Markus Fischer wrote:
>
> > What libtool version are you using ?
> >
> > libtool --version
> >
> > - Markus
> >
> > On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote :
> > > Anyone know why I get this when I run buildconf for php or phpgtk on
> > > redhat 7.1? I have autoconf 2.13
> > >
> > > autoconf: Undefined macros:
> > > ***BUG in Autoconf--please report*** AC_LANG_PUSH
> > > ***BUG in Autoconf--please report*** AC_LANG_POP
> > > ***BUG in Autoconf--please report*** AC_LANG_PUSH
> > > ***BUG in Autoconf--please report*** AC_MSG_NOTICE
> > > ***BUG in Autoconf--please report*** AC_LANG_POP
> > > ***BUG in Autoconf--please report*** AC_LANG_PUSH
> > > ***BUG in Autoconf--please report*** AC_LANG_POP
> > >
> > > - Dan
> > > --
> > >
> > >
> > > --
> > > PHP GTK Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-gtk-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-gtk-help
lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
> --
-- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischerguru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend-
attached mail follows:
hey-
I wrote this form checker/mailer for my website. I feel like I may have written it wrong, however there are a few things I wanted to ask about. I think I may be having a problem with how I'm checking if the mail was sent, or maybe something with the if statement to see if the submit button was pressed. Maybe it's a problem with the way I'm using variables in all of my functions, I have no idea...I'm getting a 500 error pretty much all the time, except when the page first loads, in which case the action is set to 1 and it works fine, but after that, nothing works...can someone help figure out what's wrong?
-chris here's the code-- <? include("/home/fplg/lib/functions.php");
echo "starting page<br>"; if(!isset($action)) { $action = 1; } echo "finished isset action if<br>";
echo "starting if for submit check<br>";
if($submit) {
file://$action = 2;
echo "inside if<br>";
$match = ereg("^[^
]+
[^
]+\.[^
\.]+$", $sender);
echo "set match to ereg<br>";
echo "entering mailto if<br>"; if(!isset($mailto)) { echo "inside mailto if<br>"; array_push($error_fields, "Mail To Field(select name from list"); $action = 3; }
echo "entering sender if<br>"; if(!isset($sender)) { echo "inside sender if<br>"; array_push($error_fields, "From Field(fill in your email address)"); $action = 3; } echo "else statement for sender if<br>"; else { echo "entering match if<br>"; if(!match) { echo "inside match if<br>"; array_push($error_fields, "Invalid Email Address(please reenter your email address)"); $action = 3; } echo "done with match if<br>"; }
echo "entering subject if<br>"; if(!isset($subject)) { echo "inside subject if<br>"; array_push($error_fields, "Empty Subject(please fill in the subject field for your message)"); $action = 3; }
echo "entering body if<br>"; if(!isset($body)) { echo "inside body if<br>"; array_push($error_fields, "Empty Body field(please type some text in your for message)"); $action = 3; }
echo "entering if for empty error fields array<br>"; if(empty($error_fields)) { echo "inside empty array if<br>"; $send_to = $people[$mailto]; $sender = chop($sender); $subject = chop($subject); $body = chop($body); $body = htmlspecialchars($body); $mail_headers = ''; $mail_headers .= "From:$sender\r\n"; $mail_headers .= "Reply-to:$sender\r\n"; }
echo "entering else for empty array<br>"; else { echo "inside else<br>"; $action = 3; }
echo "entering if for mail<br>"; if(!mail($send_to,$subject,$body,$mail_headers)) { echo "inside mail if<br>"; $action = 4; }
} echo "outside of submit if<br>";
echo "entering switch statement<br>"; switch($action) { case 1: echo "in case 1<br>"; header_start("FPLG: CONTACT US!"); display_form(); break; case 2: echo "in case 2<br>"; header_start("FPLG: Mail status."); display_conf(); break; case 3: echo "in case 3<br>"; header_start("FPLG: Form error."); display_error($error_fields); display_form(); break; case 4: echo "in case 4<br>"; header_start("FPLG: Sending Error."); display_m_err(); break; }
echo "outside of switch<br>";
function display_form() { global $send_to,$sender,$subject,$body; ?> <center> <form method="POST" action="contact.php"> <table width="692" cellspacing="1" cellpadding="0"> <tr align="center"> <td colspan="2" bgcolor="#ff6600"> <font size="2" face="verdana" color="#ffffff"> </td> </tr> <tr align="center"> <td width="35%" bgcolor="#808080" valign="top"> <font face="verdana" size="2" color="#ffffff">To:</font><br> <select name="mailto" size="1" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle; scrollbar-arrow-color:#ffffff; scrollbar-base-color:#808080; scrollbar-Highlight-Color:#ffffff"> <option selected>Select from this list</option> <option value="band">Band</option> <option value="booking">Booking</option> <option value="jamie">Jamie Balmer</option> <option value="chris">Chris Cocuzzo</option> <option value="jared">Jared Salavatore</option> <option value="max">Max Baehr</option> <option value="ben">Ben Brenner</option> <option value="marcus">Marcus Sholar</option> </select> <br><br><br><br> <font face="verdana" size="2" color="#ffffff">From(email address):</font><br> <input type="text" name="sender" size="30" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> <br><br> <font face="verdana" size="2" color="#ffffff">Subject</font><br> <input type="text" name="subject" size="30" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> </td> <td width="65%" bgcolor="#808080"> <font face="verdana" size="2" color="#ffffff">Enter text of message in box below:</font><br> <textarea name="body" cols="68" rows="16" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: left; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> </textarea> <br><br> </td> </tr> <tr align="center" valign="middle"> <td colspan="2" bgcolor="#ff6600" align="center" valign="middle"> <input type="submit" name="submit" value="Submit" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> <input type="reset" value="Reset" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> <input type="hidden" name="action" value="2"> </td> </tr> </table> </form> </center> <?php }
function display_conf() { global $send_to,$subject; ?> <center> <table width="692" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <font size="2" face="verdana,arial" color="WHITE"> Your message, '<?php echo $subject;?>' has been delivered to <?php echo $send_to;?>.<br> Expect a response back within the next couple of days.<br><br><br><br> <a href="/index.php?page=home" class="hov1">Click here to go back to the home page</a> </font> </td> </tr> </table> </center> <?php }
function display_error($error_fields) { global $send_to,$sender,$subject,$body; ?> <center> <form method="POST" action="contact.php"> <table width="692" cellspacing="1" cellpadding="0"> <tr align="center"> <td colspan="2" bgcolor="#ff6600" align="center"> <font size="2" face="verdana" color="#ffffff"> The following form fields are blank/have errors:<br> <?php foreach($error_fields As $error) { echo "$error<br>"; } ?> Please correct your errors in resubmit. </font> </td> </tr> <tr align="center"> <td width="35%" bgcolor="#808080" valign="top"> <font face="verdana" size="2" color="#ffffff">To:</font><br> <select name="mailto" size="1" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle; scrollbar-arrow-color:#ffffff; scrollbar-base-color:#808080; scrollbar-Highlight-Color:#ffffff"> <option selected>Select from this list</option> <option value="band">Band</option> <option value="booking">Booking</option> <option value="jamie">Jamie Balmer</option> <option value="chris">Chris Cocuzzo</option> <option value="jared">Jared Salavatore</option> <option value="max">Max Baehr</option> <option value="ben">Ben Brenner</option> <option value="marcus">Marcus Sholar</option> </select> <br><br><br><br> <font face="verdana" size="2" color="#ffffff">From(email address):</font><br> <input type="text" name="sender" size="30" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> <br><br> <font face="verdana" size="2" color="#ffffff">Subject</font><br> <input type="text" name="subject" size="30" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> </td> <td width="65%" bgcolor="#808080"> <font face="verdana" size="2" color="#ffffff">Enter text of message in box below:</font><br> <textarea name="body" cols="68" rows="16" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: left; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> </textarea> <br><br> </td> </tr> <tr align="center" valign="middle"> <td colspan="2" bgcolor="#ff6600" align="center" valign="middle"> <input type="submit" name="submit" value="Submit" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> <input type="reset" value="Reset" style="BACKGROUND-COLOR: rgb(0,0,0); BORDER-BOTTOM: rgb(255,255,255) 1px solid; BORDER-LEFT: rgb(255,255,255) 1px solid; BORDER-RIGHT: rgb(255,255,255) 1px solid; BORDER-TOP: rgb(255,255,255) 1px solid; COLOR: rgb(255,255,255); FLOAT: none; FONT-FAMILY: verdana; FONT-SIZE: 8pt; LETTER-SPACING: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 0px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; TEXT-ALIGN: center; TEXT-INDENT: 0px; VERTICAL-ALIGN: middle"> <input type="hidden" name="action" value="2"> </td> </tr> </table> </form> </center> <?php }
function display_m_err() {
global $mailto;
?>
<center>
<table width="692" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<font size="2" face="verdana,arial" color="WHITE">
There was a problem with sending your message to <?php echo
$mailto;?><br><br>
Please contact: webmaster
fplg.net and notify us of the problem.
<br><br><br><br>
<a href="/index.php?page=home" class="hov1">Click here to go back to
the home page</a>
</font>
</td>
</tr>
</table>
</center>
<?php
}
?>
attached mail follows:
hello everyone-
I was wondering if any of you had a problem compiling Apache 1.3.20 with mod_php4? Because I can compile, make, make install for redhat 7.1 for php 4.0.6. When I run my configure script for apache i have --activate-module=src/modules/php4/libmodphp.a as one of the lines in the script. I run my script and everything works fine. Then I try to run make and i get some errors when it gets to the php part. Here's what it says:
===> src/modules/php4 gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX -DUSE_EXP AT -I../../lib/expat-lite `../../apaci` mod_php4.c mod_php4.c:28:18: zend.h: No such file or directory mod_php4.c:29:17: php.h: No such file or directory mod_php4.c:30:27: php_variables.h: No such file or directory mod_php4.c:47:21: php_ini.h: No such file or directory mod_php4.c:48:25: php_globals.h: No such file or directory mod_php4.c:49:18: SAPI.h: No such file or directory mod_php4.c:50:22: php_main.h: No such file or directory mod_php4.c:52:26: zend_compile.h: No such file or directory mod_php4.c:53:26: zend_execute.h: No such file or directory mod_php4.c:54:28: zend_highlight.h: No such file or directory mod_php4.c:55:25: zend_indent.h: No such file or directory mod_php4.c:57:39: ext/standard/php_standard.h: No such file or directory make[4]: *** [mod_php4.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/home/updates/apache_1.3.20/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/home/updates/apache_1.3.20' make: *** [build] Error 2
I'm not too sure where apache is looking for these files but i've tried copying each one of these files to the /home/updates/apache_1.3.20/src directory but it still can't find them.
Is there any way to get this to work?
Thanks, Jay
attached mail follows:
> I was wondering if any of you had a problem compiling Apache 1.3.20 with > mod_php4? Because I can compile, make, make install for redhat 7.1 for php > 4.0.6. When I run my configure script for apache i > have --activate-module=src/modules/php4/libmodphp.a as one of the lines in > the script. I run my script and everything works fine. Then I try to run > make and i get some errors when it gets to the php part. Here's what it > says:
This is a FAQ and a big fat note in the INSTALL file as well. It is supposed to be: --activate-module=src/modules/php4/libphp4.a
-Rasmus
attached mail follows:
yeah i've tried that too and i still get the same error(s)
>From: Rasmus Lerdorf <rasmus
php.net>
>To: Jay Paulson <jpaulson
lbjs.com>
>CC: PHP <php-general
lists.php.net>
>Subject: Re: [PHP] PHP and Apache
>Date: Mon, 13 Aug 2001 12:07:39 -0700 (PDT)
>
> > I was wondering if any of you had a problem compiling Apache 1.3.20 with
> > mod_php4? Because I can compile, make, make install for redhat 7.1 for
>php
> > 4.0.6. When I run my configure script for apache i
> > have --activate-module=src/modules/php4/libmodphp.a as one of the lines
>in
> > the script. I run my script and everything works fine. Then I try to
>run
> > make and i get some errors when it gets to the php part. Here's what it
> > says:
>
>This is a FAQ and a big fat note in the INSTALL file as well. It is
>supposed to be: --activate-module=src/modules/php4/libphp4.a
>
>-Rasmus
>
>
>--
>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
>
>
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
attached mail follows:
Then you didn't follow the steps in the INSTALL file exactly. Go back and start over. This stuff has been tested thousands of times. It works.
-Rasmus
On Mon, 13 Aug 2001, Jay Paulson wrote:
> yeah i've tried that too and i still get the same error(s)
>
>
> >From: Rasmus Lerdorf <rasmus
php.net>
> >To: Jay Paulson <jpaulson
lbjs.com>
> >CC: PHP <php-general
lists.php.net>
> >Subject: Re: [PHP] PHP and Apache
> >Date: Mon, 13 Aug 2001 12:07:39 -0700 (PDT)
> >
> > > I was wondering if any of you had a problem compiling Apache 1.3.20 with
> > > mod_php4? Because I can compile, make, make install for redhat 7.1 for
> >php
> > > 4.0.6. When I run my configure script for apache i
> > > have --activate-module=src/modules/php4/libmodphp.a as one of the lines
> >in
> > > the script. I run my script and everything works fine. Then I try to
> >run
> > > make and i get some errors when it gets to the php part. Here's what it
> > > says:
> >
> >This is a FAQ and a big fat note in the INSTALL file as well. It is
> >supposed to be: --activate-module=src/modules/php4/libphp4.a
> >
> >-Rasmus
> >
> >
> >--
> >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
> >
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
attached mail follows:
hi. any help would be mych appreciated! i'm trying to sort an associative array, but when i do, the key is converted into a number (it should be a string). ie:
$email_array["test
email.com"]=1;
$email_array["test2
email.com"]=4;
$email_array["test3
email.com"]=10;
rsort ($email_array);
i'm trying to sort by the value and then echo out the key and value together, but when i do, the key is always a number, rather than the email address that i wanted. any ideas??
thanks, ben
attached mail follows:
I have a database with 5 columns and cols 1,2,3 & 5 are filled. I want to insert into 4 and change 5. Could I use an UPDATE command to do this.. Here is what I have ==>
$query = "UPDATE mpn_asklee (Reply, Post) VALUES ('$Reply[$i]', '$post[$i]') WHERE ID = '$counts'"; $result = mysql_query($query);
If Im talking jibberish, let me know..
attached mail follows:
yeah...jibberish. Should be this: UPDATE mpn_asklee SET reply='$Reply[$i]', Post='$post[$i]' WHERE ID='$counts'"
On Mon, 13 Aug 2001 15:20:17 -0400
Gerard Samuel <trini0
optonline.net> wrote:
> I have a database with 5 columns and cols 1,2,3 & 5 are filled. I want
> to insert into 4 and change 5. Could I use an UPDATE command to do
> this.. Here is what I have ==>
>
> $query = "UPDATE mpn_asklee (Reply, Post) VALUES
> ('$Reply[$i]', '$post[$i]') WHERE ID = '$counts'";
> $result = mysql_query($query);
>
> If Im talking jibberish, let me know..
>
>
> --
> 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:
On 13-Aug-2001 Gerard Samuel wrote: > I have a database with 5 columns and cols 1,2,3 & 5 are filled. I want > to insert into 4 and change 5. Could I use an UPDATE command to do > this.. Here is what I have ==> > > $query = "UPDATE mpn_asklee (Reply, Post) VALUES > ('$Reply[$i]', '$post[$i]') WHERE ID = '$counts'"; > $result = mysql_query($query); >
UPDATE mpn_asklee SET Reply='$Reply[$i]', Post='$post[$i]' WHERE ...
Regards,
-- Don Read dreadtexas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
try this syntax:
UPDATE table SET col=value, col2=value2 ... WHERE ID=$id;
> -----Original Message-----
> From: Gerard Samuel [mailto:trini0
optonline.net]
> Sent: Monday, August 13, 2001 3:20 PM
> To: PHP
> Subject: [PHP] UPDATE syntax
>
>
> I have a database with 5 columns and cols 1,2,3 & 5 are filled. I want
> to insert into 4 and change 5. Could I use an UPDATE command to do
> this.. Here is what I have ==>
>
> $query = "UPDATE mpn_asklee (Reply, Post) VALUES
> ('$Reply[$i]', '$post[$i]') WHERE ID = '$counts'";
> $result = mysql_query($query);
>
> If Im talking jibberish, let me know..
>
>
> --
> 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
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO3gpWsaXTGgZdrSUEQIQhQCg2bPek8JQFQYtMsl0+ltUrYu1jVAAmwf4 FQP9++hgdLDuHup2v7aUij5n =B6jL -----END PGP SIGNATURE-----
attached mail follows:
Thanks for telling me that I was talking jibberish :)
OK it worked, but now I have to figure out why its only updating the first row..... Ill be back if I cant figure it out.
Thanks all
Tyler Longren wrote:
> yeah...jibberish. Should be this:
> UPDATE mpn_asklee SET reply='$Reply[$i]', Post='$post[$i]' WHERE
> ID='$counts'"
>
>
>
> On Mon, 13 Aug 2001 15:20:17 -0400
> Gerard Samuel <trini0
optonline.net> wrote:
>
>
>>I have a database with 5 columns and cols 1,2,3 & 5 are filled. I want
>>to insert into 4 and change 5. Could I use an UPDATE command to do
>>this.. Here is what I have ==>
>>
>>$query = "UPDATE mpn_asklee (Reply, Post) VALUES
>> ('$Reply[$i]', '$post[$i]') WHERE ID = '$counts'";
>>$result = mysql_query($query);
>>
>>If Im talking jibberish, let me know..
>>
>>
>>--
>>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:
"Gerard Samuel" <trini0
optonline.net> wrote:
> OK it worked, but now I have to figure out why its only updating the
> first row.....
<snip> > Tyler Longren wrote: > > yeah...jibberish. Should be this: > > UPDATE mpn_asklee SET reply='$Reply[$i]', Post='$post[$i]' WHERE > > ID='$counts'" </snip>
If each row has a unique value for ID then it will only update a single row. When in doubt what is happening store the SQL statement in a var like $sql and then echo $sql to the screen to check it over, pasting into database commandline to test results if necessary.
-- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/
attached mail follows:
figured it out. i had to use: array_multisort ($email_array,SORT_DESC); thanks, ben
Ben Rigby wrote:
> hi.
> any help would be mych appreciated!
> i'm trying to sort an associative array, but when i do, the key is
> converted into a number (it should be a string). ie:
>
> $email_array["test
email.com"]=1;
> $email_array["test2
email.com"]=4;
> $email_array["test3
email.com"]=10;
> rsort ($email_array);
>
> i'm trying to sort by the value and then echo out the key and value
> together, but when i do, the key is always a number, rather than the
> email address that i wanted. any ideas??
>
> thanks,
> ben
attached mail follows:
recetly i ask about running automatically a page after each request page.
response is auto_prepend_file, auto_append_file,
but how can i prepend file is the same for all php.ini
but how can i do this with my provider , and how can i have a auto_prepend_file different to another web site?
(my english is no correct !)
attached mail follows:
Hello I wanted the user to choose certain html files (one or more) via a checkbox and then insert them into the new php site. The checkbox thing is okay but I keep recieveing errors on the php site Could you help me? *** <html> <body> Here is your required information <?php if ($choice=="arlberg") { include ("C:\\inetpub\\wwwroot\\page1.html"); } if ($choice=="paznauntal") { include ("C:\\inetpub\\wwwroot\\page2.html"); } if ($choice=="otztal") { include ("C:\\inetpub\\wwwroot\\page3.html"); } else { echo ("Please select a Skiing resort"); } ?> </body> </html> ***
I hope I didn't make you more experienced people sigh too much
Thanks RJ
attached mail follows:
Hello, I have a cgi script that logins to a site and then emulates a form POST. The script uses Net::SSLeay and was wondering if there is soemthing equvilent to it? Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon
webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------
attached mail follows:
Hello,
I am testing a new DHTML code for navigation menus. I plan to use it throughout my web pages made with PHP. The script is about 600 lines long!
Beside making a :
define (script1, "" . "" . "" . "");
and calling the script1 name in my PHP pages...
this will be very, very long, is there a another way to create a kind of variable ($myscript == 600 lines of the DHTML) that I could simply call out in all my pages. Something like a <script src="../myscript.js">
The define approach doesn't seem to be very appropriate for a very long text inclusion...
Thanks!
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Marc Andre Paquin
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
here docs also work good for big blocks of text (although interpolation will occur, which you might not want)
$mytext = <<<EOT
blah blah blah
EOT;
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.hered oc
> -----Original Message-----
> From: Web Manager [mailto:web
inter-resa.com]
> Sent: Monday, August 13, 2001 3:53 PM
> To: php-general
lists.php.net
> Subject: [PHP] large external script to include in many pages
>
>
> Hello,
>
> I am testing a new DHTML code for navigation menus. I plan to use it
> throughout my web pages made with PHP. The script is about 600 lines
> long!
>
> Beside making a :
>
> define (script1, "" .
> "" .
> "" .
> "");
>
> and calling the script1 name in my PHP pages...
>
> this will be very, very long, is there a another way to create a kind of
> variable ($myscript == 600 lines of the DHTML) that I could simply call
> out in all my pages. Something like a <script src="../myscript.js">
>
> The define approach doesn't seem to be very appropriate for a very long
> text inclusion...
>
> Thanks!
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Marc Andre Paquin
>
> --
> 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
-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO3gxtsaXTGgZdrSUEQIzHQCg1Ivtu/+SNFKuirQTcWXPZnVIPS4An30v 1nznfGe0KiMu3y/kvg70v82k =Lmgl -----END PGP SIGNATURE-----
attached mail follows:
web
inter-resa.com (Web Manager) wrote:
> Hello, > > I am testing a new DHTML code for navigation menus. I plan to use it > throughout my web pages made with PHP. The script is about 600 lines > long! > > Beside making a : > > define (script1, "" . > "" . > "" . > ""); > > and calling the script1 name in my PHP pages... > > this will be very, very long, is there a another way to create a kind of > variable ($myscript == 600 lines of the DHTML) that I could simply call > out in all my pages. Something like a <script src="../myscript.js">
I would go with the script tag if I were you.
-- Henrik Hansen
attached mail follows:
Henrik Hansen wrote:
>
> web
inter-resa.com (Web Manager) wrote:
>
> > Hello,
> >
> > I am testing a new DHTML code for navigation menus. I plan to use it
> > throughout my web pages made with PHP. The script is about 600 lines
> > long!
> >
> > Beside making a :
> >
> > define (script1, "" .
> > "" .
> > "" .
> > "");
> >
> > and calling the script1 name in my PHP pages...
> >
> > this will be very, very long, is there a another way to create a kind of
> > variable ($myscript == 600 lines of the DHTML) that I could simply call
> > out in all my pages. Something like a <script src="../myscript.js">
>
> I would go with the script tag if I were you.
>
> --
> Henrik Hansen
Hello,
well, I can't... I have HTML code (image tags) in the DHTML script and this can not be in a .js file...
Thanks for your input!
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Marc Andre Paquin
attached mail follows:
putting something like <script src="../myscript.js"> isnt really going to speed things up at all. the browser will still have to open myscript.js and read all 600 lines from there. if you ask me on GET / HTTP/1.1 call is faster then two. I would just include_once('../myscript.html'); in the file you want it to be in. maybe Ive missunderstood. correct me if so.
--Chris Lee lee
mediawaveonline.com
"Web Manager" <web
inter-resa.com> wrote in message news:3B78516F.9257D44A
inter-resa.com... > Henrik Hansen wrote: > > > > web
inter-resa.com (Web Manager) wrote: > > > > > Hello, > > > > > > I am testing a new DHTML code for navigation menus. I plan to use it > > > throughout my web pages made with PHP. The script is about 600 lines > > > long! > > > > > > Beside making a : > > > > > > define (script1, "" . > > > "" . > > > "" . > > > ""); > > > > > > and calling the script1 name in my PHP pages... > > > > > > this will be very, very long, is there a another way to create a kind of > > > variable ($myscript == 600 lines of the DHTML) that I could simply call > > > out in all my pages. Something like a <script src="../myscript.js"> > > > > I would go with the script tag if I were you. > > > > -- > > Henrik Hansen > > > Hello, > > well, I can't... I have HTML code (image tags) in the DHTML script and > this can not be in a .js file... > > Thanks for your input! > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Marc Andre Paquin
attached mail follows:
I am new to Linux and I have installed RH 7.1 along with Apache, PHP, and Interbase 6.0. I can start Apache, but how do I start Interbase?
Todd
-- Todd Cary Ariste Software toddaristesoftware.com
attached mail follows:
PHP Fellows:
Thanks for taking the time to look at this.
I'm new to PHP and to e-commerce. Needless to say, I've done a lot of studying over the last few weeks and I'm ready to dive in head first!
I'll be building an e-commerce site and I'll be using PHP. I'd like customers to have the option of saving their information so that they don't have to enter it each time they purchase -- much like Buy.com does or like Amazon.com's One-Click feature.
This means that the customer will be storing information like one or more credit cards, shipping addresses, billing addresses, etc.
I'm planing on storing all information in flat files so that I don't have the additional expense of using MySQL (My ISP is charging 24.95/month extra for MySQL service).
So the question is: How can I store each customer's information safely? Can I use .htaccess and .htpasswd to help me out? Or don't they even apply?
My intention is to store the user's password encoded with md5 or something and also to develop my own cipher for disguising the credit card numbers as well.
Any suggestions?
Thanks,
Christopher Raymond
------------------------------------------------------ O A S I S N E T W O R K S ------------------------------------------------------
INTERACTIVE FLASH MEDIA PRODUCTION HTML & JAVASCRIPT WEB SITE DEVELOPMENT MACINTOSH TROUBLESHOOTING, REPAIR & NETWORKING
------------------------------------------------------ WEB: http://www.oasisnetworks.com PHONE: 612.706.0767
attached mail follows:
Christopher,
1. $25.00 / mth is trivial for the security and speed a database provides (And you can do development work on your own machine, start paying only when you move it to production.) 2. Your database can be, and probably will be in a web hosting environment, protected with a username and password. 3. MySQL, I believe, has a proprietary encryption scheme you can use for credit card numbers 3a Given that, you can double encrypt if you wish, using both your own and MySQL's mechanism. 4. MySQL gives you good granularity in terms of permissions; who can enter/retrieve information. 5. Flat files are much slower to access, as every search for data requires a sequential read. 6. Give serious consideration to using 3rd party payment agencies; then you don't have the responsibility and liability of storing the cc number. You get $$ faster, too. 7. Have you looked at the various shopping cart script/packages implemented in PHP? 8. Does your ISP provide SSL so that cc info isn't transmitted in the clear? 9. Some people split the credit card number between two tables as well. 10. Databases are relational, your application doesn't have to know how the storage of data is structured. This isn't the case with flat files.
Well, a bunch of thoughts. I'd be very partial to using a database.
Regards - Miles Thompson
At 03:38 PM 8/13/01 -0500, Christopher Raymond wrote: >PHP Fellows: > >Thanks for taking the time to look at this. > >I'm new to PHP and to e-commerce. Needless to say, I've done a lot of >studying over the last few weeks and I'm ready to dive in head first! > >I'll be building an e-commerce site and I'll be using PHP. I'd like >customers to have the option of saving their information so that they don't >have to enter it each time they purchase -- much like Buy.com does or like >Amazon.com's One-Click feature. > >This means that the customer will be storing information like one or more >credit cards, shipping addresses, billing addresses, etc. > >I'm planing on storing all information in flat files so that I don't have >the additional expense of using MySQL (My ISP is charging 24.95/month extra >for MySQL service). > >So the question is: How can I store each customer's information safely? Can >I use .htaccess and .htpasswd to help me out? Or don't they even apply? > >My intention is to store the user's password encoded with md5 or something >and also to develop my own cipher for disguising the credit card numbers as >well. > >Any suggestions? > > >Thanks, > >Christopher Raymond
attached mail follows:
Hi
Could someone steer me in the right direction for this one - I can't seem to see the forest for the trees.
I want to be able to show the user a set of _quiz_ questions - and almost simultaneously (that part's not critical bit) start a _timer_ for the quiz session.
The critical bit is that if the preset "time allowed" expires -- I need to interrupt the user, capture their answer up to that point in time, and send them to the examiner.
Of course if they finish inside the time limit by submitting the quiz form - we would just kill the session.
SO - how do I interrupt the user after a set period of time????
Thanks for any/all clues for this one. Tom
attached mail follows:
Sounds like you could use javascript rather than php for this one. Or you could try using an http refresh after a certain number of seconds. - Dan
On Mon, 13 Aug 2001, Tom Henry wrote:
> Hi > > Could someone steer me in the right direction for this one - I can't > seem to see the forest for the trees. > > I want to be able to show the user a set of _quiz_ questions - and > almost simultaneously (that part's not critical bit) start a _timer_ for > the quiz session. > > The critical bit is that if the preset "time allowed" expires -- I need > to interrupt the user, capture their answer up to that point in time, > and send them to the examiner. > > Of course if they finish inside the time limit by submitting the quiz > form - we would just kill the session. > > SO - how do I interrupt the user after a set period of time???? > > > Thanks for any/all clues for this one. > Tom > > >
--
attached mail follows:
On Mon, 13 Aug 2001 17:06:37 -0400 (EDT), Daniel Adams
(danno
wpi.edu) wrote:
>Sounds like you could use javascript rather than php for this one.
>Or you
>could try using an http refresh after a certain number of seconds.
> - Dan
yeah but an http refresh won't post the form. you could try javascript or java but if it were me I'd play around with ming's flash functions and try to create a timer that shows how much time is left, and when time is up calls javascript:form.submit()
>On Mon, 13 Aug 2001, Tom Henry wrote:
>
>> Hi
>>
>> Could someone steer me in the right direction for this one - I
>>can't
>> seem to see the forest for the trees.
>>
>> I want to be able to show the user a set of _quiz_ questions - and
>> almost simultaneously (that part's not critical bit) start a
>>_timer_ for
>> the quiz session.
>>
>> The critical bit is that if the preset "time allowed" expires -- I
>>need
>> to interrupt the user, capture their answer up to that point in
>>time,
>> and send them to the examiner.
>>
>> Of course if they finish inside the time limit by submitting the
>>quiz
>> form - we would just kill the session.
>>
>> SO - how do I interrupt the user after a set period of time????
>>
>>
>> Thanks for any/all clues for this one.
>> Tom
>>
>>
>>
>
>--
>
>
>--
>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 would use javascript... have javascript sleep for the time period,
then switch a hidden variable to indicate they didn't finish, then
submit the form.
It's not bullet proof in that I could just turn javascript off on my
machine, but it works...
-philip
In article <3B784270.8000208
businesswebs.com>,
Tom Henry <tomhenry
businesswebs.com> wrote:
>
>Hi
>
>Could someone steer me in the right direction for this one - I can't
>seem to see the forest for the trees.
>
>I want to be able to show the user a set of _quiz_ questions - and
>almost simultaneously (that part's not critical bit) start a _timer_ for
>the quiz session.
>
>The critical bit is that if the preset "time allowed" expires -- I need
>to interrupt the user, capture their answer up to that point in time,
>and send them to the examiner.
>
>Of course if they finish inside the time limit by submitting the quiz
>form - we would just kill the session.
>
>SO - how do I interrupt the user after a set period of time????
>
>
>Thanks for any/all clues for this one.
>Tom
>
>
>--
>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 all
I was wondering if anyone had found a solution to the problem of cropping a string to a certain length...however a certain length based upon the actual "size" of it. By this I don't mean after n characters, or even after m words (have a function for this already)... what I'm looking for is function that will take a string and crop it down to a length dependant upon its size, ie. it would treat a w different to a l (apologies to those reading this on a monospaced client). I'm guessing such a function would take type of font (say, serif ot times) and the desired length in "standard" characters and then compare the string, translating each character into a length comparative with the standard character.
I appreciate tha because of the nature of the medium that it becomes difficult to control how things appear on browsers, and that it would be nigh on impossible to make an *exact* function, all I'm looking for is something rough and ready which is better then counting chars.
TIA, Tom
attached mail follows:
function truncate($string, $size) { $new_string = substr($string, 0, $size);
$new_string = explode(' ', $new_string); array_pop($new_string); $new_string = implode(' ', $new_string);
return $new_string; }
this function can defn be improved apon. all this does is trims the string to the spec length and takes the last word (or pastial word) off.
you might want to take a look at wordwrap() too, probably not what your looking for though.
--Chris Lee lee
mediawaveonline.com
"Tom Carter" <subs
roundcorners.com> wrote in message news:01ea01c1243c$36fd1d40$0a00a8c0
bjorn... > hi all > > I was wondering if anyone had found a solution to the problem of cropping a > string to a certain length...however a certain length based upon the actual > "size" of it. By this I don't mean after n characters, or even after m words > (have a function for this already)... what I'm looking for is function that > will take a string and crop it down to a length dependant upon its size, ie. > it would treat a w different to a l (apologies to those reading this on a > monospaced client). I'm guessing such a function would take type of font > (say, serif ot times) and the desired length in "standard" characters and > then compare the string, translating each character into a length > comparative with the standard character. > > I appreciate tha because of the nature of the medium that it becomes > difficult to control how things appear on browsers, and that it would be > nigh on impossible to make an *exact* function, all I'm looking for is > something rough and ready which is better then counting chars. > > TIA, Tom >
attached mail follows:
Hi all!
I'm trying to build a registration system for a community site that I'm building, and was wondering if people could give me advice or tell me about problems they've been having??
I'm planning to let people register with a username and password (encrypted), and then make them login with that, and thus putting a cookie on their machine. If the cookie is detected the next time, they don't have to login, but if it isn, then they do.
Sounds pretty simple??
Any advice?
TIA!
sunny
____________________________________________________________
Do You Yahoo!?
Get your free
yahoo.co.uk address at http://mail.yahoo.co.uk
or your free
yahoo.ie address at http://mail.yahoo.ie
attached mail follows:
Is there any way to use the --with-apxs and make the cgi version in the make? - Dan
--
attached mail follows:
> Is there any way to use the --with-apxs and make the cgi version in the > make?
Nope, you need to do two separate builds. One using --with-apxs and one without.
-Rasmus
attached mail follows:
I have a php page which generates a page of thumbnails from a database. In internet explorer all of the layout loads first, and the thumbnails appear one by one as they are downloaded. Netscape however seems to insist on downloading all images before displaying the page. This makes it appear very slow. How can I prevent this behaviour?
cheers,
seb
attached mail follows:
On Mon, 13 Aug 2001 23:16:35 +0100, Seb Frost (seb
raceshoot.com)
wrote:
>I have a php page which generates a page of thumbnails from a
>database. In
>internet explorer all of the layout loads first, and the thumbnails
>appear
>one by one as they are downloaded. Netscape however seems to insist
>on
>downloading all images before displaying the page. This makes it
>appear
>very slow. How can I prevent this behaviour?
>
>cheers,
>
>seb
use lowsrc and a low-res image.
- Mark
attached mail follows:
Define the height and width for each graphic, otherwise how does the browser know how to draw the screen? With height/width netscape will allocate space for the missing images and fill them in as the files complete, without - it waits until all are done before drawing to the screen.
MSIE gets around that by redrawing as it learns each images characteristics after completing each image download.
On Mon, 13 Aug 2001, Mark Maggelet wrote:
> Date: Mon, 13 Aug 2001 15:27:59 -0700
> From: Mark Maggelet <maggelet
mminternet.com>
> To: seb
raceshoot.com, php-general
lists.php.net
> Subject: Re: [PHP] How to stop images preloading in netscape?
>
> On Mon, 13 Aug 2001 23:16:35 +0100, Seb Frost (seb
raceshoot.com)
> wrote:
> >I have a php page which generates a page of thumbnails from a
> >database. In
> >internet explorer all of the layout loads first, and the thumbnails
> >appear
> >one by one as they are downloaded. Netscape however seems to insist
> >on
> >downloading all images before displaying the page. This makes it
> >appear
> >very slow. How can I prevent this behaviour?
> >
> >cheers,
> >
> >seb
>
> use lowsrc and a low-res image.
>
> - Mark
>
>
> --
> 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
>
Kelly
303-444-1671 Boulder, Colorado
attached mail follows:
Hello, I need to login to a site that requires you to have cookies. Can cURL receive and accept cookies? Thank you,
Brandon Orther
attached mail follows:
How would I use curl to connect to a https on port 443?
attached mail follows:
> How would I use curl to connect to a https on port 443?
Just tell curl to hit https:// instead of http:// - but you'll need the SSL-enabled curl.
Jason
-- Jason Murray jasonmmelbourneit.com.au Web Developer, Melbourne IT "Work now, freak later!"
attached mail follows:
I just upgraded my PHP to version 4.6 and add the version of Zend Optimizer that is supposed to be compatible with this version of php. But I can not get it to work it seams it can not find the file libm.so.5 on the server. I know for a fact it is on the server. This is the error I get
Failed loading /usr/local/include/php/Zend/zendoptimizer.so: libm.so.5: cannot open shared object file: No such file or directory
I also ran the ldd Command and I get this
ldd /usr/local/include/php/Zend/zendoptimizer.so /lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40033000) libm.so.5 => not found libdl.so.1 => /lib/libdl.so.1 (0x40038000) libc.so.6 => /lib/libc.so.6 (0x4003b000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) What can I do to get this working
Best regards,
Richard
mailto:rkurth
pacifier.com
attached mail follows:
I have a mysql/php db/website that uses session, (i am new to sessions). My question is that the session works and all but i notice that it writes alot of sess_*************** files in the /tmp directory.
Do i need to purge these weekly so it wont use tooo much room or are these spose to delete them selves.?
Maybe someone has come accross this before and fixed it?
------------------------------------------------------------------------
Chris Kay - Tech Support - IDEAL Internet
email: chriskay
ideal.net.au phone: +61 2 4628 8888 fax: +61 2 4628 8890
------------------------------------------------------------------------
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]