RE: [PHP] Stripping single quotes

2001-07-28 Thread Matt Stone

Darn, it still 'aint working. Ok, let's say $fldemail contains
o\'[EMAIL PROTECTED]
I then run these:
$fldemail == stripslashes($fldemail);
$fldemail == ereg_replace(',,$fldemail);
And I get o\'[EMAIL PROTECTED] ... damn.

Any ideas? Thanks,

Matt Stone

-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 28 July 2001 2:15 PM
To: Matt Stone
Cc: PHP list
Subject: Re: [PHP] Stripping single quotes


Matt,

Try ereg_replace:-

$fldemail == ereg_replace(',,$fldemail);

Chris


Matt Stone wrote:

 Hi all,
 I am trying to validate some email addresses before they are entered into
 the database.
 The problem is, some thick or malicious people are entering single quotes
 into their email addresses.
 I need to strip out all these single quotes but a little ole' str_replace
 doesn't seem to be working.
 Here it is:

 $fldemail == str_replace(',,$fldemail);

 Nice and basic :)
 Can anyone please enlighten me on this?
 Thanks in advance,

 Matt Stone

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] doubt regarding mysql php

2001-07-28 Thread Balaji Ankem



Hi dearest friend,
 can we update the same row immediately 
after selection.

please see the following code at line number 29 it is giving 
error.

code


?php

 // Connect to 
MySQL

 $connection = mysql_connect( 
'localhost', 'balaji', 'pingpong' 
) or die ( 'Unable to 
connect to server.' );

 // Select database on MySQL 
server

 mysql_select_db( 'imac' 
) or die ( 'Unable to select 
database.' );

 // Formulate the query (inv_tag will 
come by post method

 $sql1 = "SELECT * FROM inventory 
WHERE inv_tag = '$inv_tag'";

 // Execute the query and put results 
in $result

 $result1 = mysql_query( $sql1 
) or die ( 'Unable to select 
the data from inventory.' );

 if ( $result1 
) {

 //change the status of the inventory item in inventory 
table

 $sql2="UPDATE 
inventory SET inv_status="assigned" where inv_tag='$inv_tag' "; // This is 
line number 29.

 $result2 = 
mysql_query( $sql2 
) 
or die ( 'Unable to execute query for upadation of inventory table.' 
);

$sql3 = "insert into status 
values('$inv_name','$inv_type','$inv_tag','$issued_to','$issued_by','$issue_date')";

 $result3 = mysql_query( $sql3 
) 
or die ( 'Unable to execute query for insertion in to status table.' 
);

 }

 else 
{

 // header( 'WWW-Authenticate: Basic 
realm="Private"' ); // header( 'HTTP/1.0 401 
Unauthorized' ); echo '$inv_tag does not 
exist'; exit;

 }

 ?

please inform if any errors.

Thanks in advance.

Regards
-Balaji

The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail  notify us immediately at [EMAIL PROTECTED] 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Re: [PHP] doubt regarding mysql php

2001-07-28 Thread Werner Stuerenburg

Line 29:

$sql2=UPDATE inventory SET inv_status=assigned where inv_tag='$inv_tag' ;

will give a php error - it should read either

$sql2=UPDATE inventory SET inv_status='assigned' where inv_tag='$inv_tag' ;

or

$sql2=UPDATE inventory SET inv_status=\assigned\ where inv_tag='$inv_tag' ;

to be syntactically correct in php.


Balaji Ankem schrieb am Samstag, 28. Juli 2001, 10:41:21:

 Hi dearest friend,
 can we update the same row immediately after selection.

 please see the following code at line number 29 it is giving error.

 code
 

 ?php


   // Connect to MySQL

  $connection = mysql_connect( 'localhost', 'balaji', 'pingpong' )
  or die ( 'Unable to connect to server.' );

  // Select database on MySQL server

  mysql_select_db( 'imac' )
  or die ( 'Unable to select database.' );

  // Formulate the query (inv_tag will come by post method

  $sql1 = SELECT * FROM inventory WHERE inv_tag = '$inv_tag';

  // Execute the query and put results in $result

  $result1 = mysql_query( $sql1 )
  or die ( 'Unable to select the data from inventory.' );


  if ( $result1 )
  {

 //change the status of the inventory item in inventory table

 $sql2=UPDATE inventory SET inv_status=assigned where inv_tag='$inv_tag' 
;  // This is line number 29.

 $result2 = mysql_query( $sql2 )
or die ( 'Unable to execute query for upadation of inventory 
table.' );

   $sql3 = insert into status 
values('$inv_name','$inv_type','$inv_tag','$issued_to','$issued_by','$issue_date');

  $result3 = mysql_query( $sql3 )
or die ( 'Unable to execute query for insertion in to status 
table.' );


   }

  else
  {

  // header( 'WWW-Authenticate: Basic realm=Private' );
  // header( 'HTTP/1.0 401 Unauthorized' );
   echo '$inv_tag does not exist';
   exit;

}


   ?


 please inform if any errors.

 Thanks in advance.

 Regards
 -Balaji


-- 
Herzlich
Werner Stuerenburg

_
ISIS Verlag, Teut 3, D-32683 Barntrup-Alverdissen
Tel 0(049) 5224-997 407 · Fax 0(049) 5224-997 409
http://pferdezeitung.de



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] regarding password in mysql?

2001-07-28 Thread Balaji Ankem



Hi dearest friends,

 while insertion of 
an employee number and password i am inserting like

insert into employee 
values('$empid',PASSWORD('$passwd'));

how to decrypt it while comparision during login.

Thanks in advance

Regards
-Balaji

The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail  notify us immediately at [EMAIL PROTECTED] 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP] How to make a cookie never expire in PHP?

2001-07-28 Thread Joel

Hi Everyone,

I can use cookies with PHP but I can't make the cookie last forever.
I can set the cookie to expire for upto 1 hour.
This is the code :
setcookie(bookmarks,cookievalue,time()+3600);
That would make the cookie expire after an hour.

How do I make the cookie not expire at all?
If I don't mention any expiration time, the cookie expires as soon
as quit the browser. Can I use date instead of time? If yes, then in
which format should I specify the date?

Thanks,
--
Joel Agnel
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




php-general Digest 28 Jul 2001 12:10:28 -0000 Issue 782

2001-07-28 Thread php-general-digest-help


php-general Digest 28 Jul 2001 12:10:28 - Issue 782

Topics (messages 60019 through 60037):

Re: substr question...
60019 by: Ryan Fischer

FORCING A PHP OUTPUT TO BE CACHED
60020 by: Randy Johnson

Re: [PHP-DEV] Passing JavaScript variables to PHP
60021 by: Markus Fischer

Re: Please Please Plaaeee
60022 by: Ben Bleything

auto refresh in every five seconds.
60023 by: Mark Lo
60024 by: Matt Greer

Stripping single quotes
60025 by: Matt Stone
60026 by: Chris Fry
60032 by: Matt Stone

PHP on win2k/Weblogic?
60027 by: Rory O'Connor

Adding scripts
60028 by: Tim Thorburn
60029 by: Chris Fry

install PHP --with-java on FreeBSD.  No luck.
60030 by: SlowPork

Re: Dumping fields.
60031 by: Dell Coleman

doubt regarding mysql  php
60033 by: Balaji Ankem
60034 by: Simon Robson
60035 by: Werner Stuerenburg

regarding password in mysql?
60036 by: Balaji Ankem

How to make a cookie never expire in PHP?
60037 by: Joel

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--



You wrote:
 I am trying to receive file names but can't quite figure out the
proper  substr to do it:

 jeff.dat
 jeffrey.dat
 chris.dat
 tom.dat

 I want to receive the name to the left of the .dat

 Jeff

$file = array(jeff.dat, jeffrey.dat, chris.dat, tom.dat);
for($i=0; $icount($file); $i++){
eregi(^(.*)\.dat$, $file[$i], $ary);
$filename = $ary[1];
// Do something with $filename
print $filenamebr\n;
}

HTH!  :)

--
 -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/






Is it possible to force a confirmation page that is displayed via a post
operation to be cached so it will not rerun the script when somebody hits
the refresh button?   I am hoping it is easy as using a header   thanks
in advance


Randy





On Fri, Jul 27, 2001 at 04:31:51PM -0500, Craig Gardner wrote : 
 Is there any way to pass JavaScript variables to PHP?

This doesn't belong in here; this list is for the development OF
php and _not_ WITH. Ask at [EMAIL PROTECTED]

- Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0




There are a wealth of available scripts at other websites...
www.hotscripts.com for instance... I find it unlike at this point that
anybody will send you anything... Just go there, or to SourceForge, and
you'll find all you need.

Ben

-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 27, 2001 5:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Please Please Plaaeee

Can everybody please send me a simple script they have made it doesnt
matter what, i just need some material to learn from, i learn better
hands on.


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666







Hi,

I would like to know how to do a auto refresh in every five seconds.

Thanks

Mark






- Original Message -
From: Mark Lo [EMAIL PROTECTED]
To: php general [EMAIL PROTECTED]
Sent: Friday, July 27, 2001 10:40 PM
Subject: [PHP] auto refresh in every five seconds.


 Hi,

 I would like to know how to do a auto refresh in every five
seconds.

This isn't php, and javascript can surely do this. But this will also do
it...

META HTTP-EQUIV=Refresh
content=X;URL=http://www.website.com/index.html;

Where X is the number of seconds between refreshes, and set the url to
itself. Place this within the head.

Matt







Hi all,
I am trying to validate some email addresses before they are entered into
the database.
The problem is, some thick or malicious people are entering single quotes
into their email addresses.
I need to strip out all these single quotes but a little ole' str_replace
doesn't seem to be working.
Here it is:

$fldemail == str_replace(',,$fldemail);

Nice and basic :)
Can anyone please enlighten me on this?
Thanks in advance,

Matt Stone





Matt,

Try ereg_replace:-

$fldemail == ereg_replace(',,$fldemail);

Chris


Matt Stone wrote:

 Hi all,
 I am trying to validate some email addresses before they are entered into
 the database.
 The problem is, some thick or malicious people are entering single quotes
 into their email addresses.
 I need to strip out all these single quotes but a little ole' str_replace
 doesn't seem to be working.
 Here it is:

 $fldemail == str_replace(',,$fldemail);

 Nice and basic :)
 Can anyone please enlighten me on this?
 Thanks in advance,

 Matt Stone

 --
 PHP General Mailing 

[PHP] Re: How to make a cookie never expire in PHP?

2001-07-28 Thread Jonas Delfs

Joel [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 I can use cookies with PHP but I can't make the cookie last forever.

No - because it can't be done.

 I can set the cookie to expire for upto 1 hour.
 This is the code :
 setcookie(bookmarks,cookievalue,time()+3600);
 That would make the cookie expire after an hour.

Yes.

 How do I make the cookie not expire at all?

You can't. The closest you get to never is x years.

 If I don't mention any expiration time, the cookie expires as soon
 as quit the browser. Can I use date instead of time?

No. Setcookie requires a the time to expire in seconds:
setcookie(bookmarks,cookievalue,time()+3600*24*30*12*10); // This cookie
will expire after 10 years.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Session Tracking Problem

2001-07-28 Thread Khuram Latif

Hi All,
I have a problem in session tracking,

After checking User name and password from database, I register a
session as

session_register(User_name);

For next page authentication, at the top of every page i check

if ($HTTP_SESSION_VARS[User_name] != )
{
// Display Page Contents
}
else
{
echo Invalid User;
}

$HTTP_SESSION_VARS[User_name] is returning empty value in most of the
location especially at Middle East after even registering the session
values.

Please fix the problem.

Regards,
khuram latif


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP on win2k/Weblogic?

2001-07-28 Thread Andrew Brampton

I think you can use ActivePerl  PHP on that type of webserver.
I personally haven't tried installing on there, but ActivePerl has
instructions for installing on weblogic, and PHP can run as a exe so
hopefully weblogic can do that...

Andrew
- Original Message -
From: Rory O'Connor [EMAIL PROTECTED]
To: PHP list [EMAIL PROTECTED]
Sent: Saturday, July 28, 2001 4:33 AM
Subject: [PHP] PHP on win2k/Weblogic?


 I have been using PHP/MySQL to build alot of little utilities (like form
 mailers, contact DBs etc.) for my sites on linux and freebsd, but I just
 got a client requiring a win2k server running WebLogic (for JSP
 purposes).  Can I even install PHP in that environment and if so, would
 it conflict with the JSP servlets?  I would love to figure out a way to
 leverage the PHP utilities i've built and tested.

 If not, would ActiveState Perl be usable in that setup?  if I can't use
 PHP, perl would be the next best thing.  Worst case scenario is I have
 to bite the bullet and try to figure out JSP and re-build the utilities
 with that.

 Thanks!

 providing the finest in midget technology

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] MS Passport type script.

2001-07-28 Thread Matt Kaufman

How would I go about creating a MS Passport type script for use on several different 
sites - and only having to let the user login on one main place?

All the sites would be on the same server.

Thanks,
Matt Kaufman



RE: [PHP] regarding password in mysql?

2001-07-28 Thread Don Read


On 28-Jul-2001 Balaji Ankem wrote:
 Hi dearest friends,
 
 while insertion of an employee number and password i am inserting
 like
 
 insert into employee values('$empid',PASSWORD('$passwd'));
 
 how to decrypt it while comparision during login.
 


You don't.
  select id from employee where id='$usrid' and passwd=PASSWORD('$usrpass') ;

If you get a record back, the password matched.

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] regarding password in mysql?

2001-07-28 Thread Negrea Mihai



   Hi dearest friends,

   while insertion of an employee number and password i am inserting
 like

   insert into employee values('$empid',PASSWORD('$passwd'));

   how to decrypt it while comparision during login.

   Thanks in advance

   Regards
   -Balaji

- you get the password from the user login into $loginpasswd;
- you do a select * from employee where empid = \$empid\ AND passwd = 
PASSWORD(\$loginpassword\) 
if the result is empty the login is incorrect

-- 
Negrea Mihai
web: http://negrea.sio.net
email: [EMAIL PROTECTED]
phone: +4093612495
ICQ: 102093534

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php date

2001-07-28 Thread Michael Hall

Do you mean something like:

$date = date(Y-m-d);
echo $date;

Mick


On Sat, 28 Jul 2001, colin wrote:
 can anyone give me a work around for a PHP date function when used in
 conjunction with a PHP include.
 The code inside the include is printed but I do not know how to echo the
 date as the document has already been parsed once.
 Any help would be appreciated. Please reply to [EMAIL PROTECTED]
 many thanks
 Colin
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Michael Hall
mulga.com.au
[EMAIL PROTECTED]
ph/fax (+61 8) 8953 1442
ABN 94 885 174 814

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mkdir

2001-07-28 Thread Michael Hall

This type of problem usually turns out to be a permissions issue.
Can Apache/nobody write to the parent directory?

Mick

On Sat, 28 Jul 2001, Jerry Lake wrote:
 when using mkdir
 I cant seem to make subdirectories
 ?
 $oldumask = umask(0); 
 mkdir('test/test', 0777);
 umask($oldumask);
 ?
 
 is there any way to do this ?
 
 Jerry Lake 
 Interface Engineering Technician
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Michael Hall
mulga.com.au
[EMAIL PROTECTED]
ph/fax (+61 8) 8953 1442
ABN 94 885 174 814

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Stripping single quotes

2001-07-28 Thread Michael Hall

I'd have a look at those double equals signs ... I think they should be single:

$fldemail = stripslashes($fldemail);
$fldemail = ereg_replace(',,$fldemail);

Mick

On Sat, 28 Jul 2001, Matt Stone wrote:
 Darn, it still 'aint working. Ok, let's say $fldemail contains
 o\'[EMAIL PROTECTED]
 I then run these:
 $fldemail == stripslashes($fldemail);
 $fldemail == ereg_replace(',,$fldemail);
 And I get o\'[EMAIL PROTECTED] ... damn.
 
 Any ideas? Thanks,
 
 Matt Stone
 
 -Original Message-
 From: Chris Fry [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 28 July 2001 2:15 PM
 To: Matt Stone
 Cc: PHP list
 Subject: Re: [PHP] Stripping single quotes
 
 
 Matt,
 
 Try ereg_replace:-
 
 $fldemail == ereg_replace(',,$fldemail);
 
 Chris
 
 
 Matt Stone wrote:
 
  Hi all,
  I am trying to validate some email addresses before they are entered into
  the database.
  The problem is, some thick or malicious people are entering single quotes
  into their email addresses.
  I need to strip out all these single quotes but a little ole' str_replace
  doesn't seem to be working.
  Here it is:
 
  $fldemail == str_replace(',,$fldemail);
 
  Nice and basic :)
  Can anyone please enlighten me on this?
  Thanks in advance,
 
  Matt Stone
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 --
 
 Chris Fry
 Quillsoft Pty Ltd
 Specialists in Secure Internet Services and E-Commerce Solutions
 10 Gray Street
 Kogarah
 NSW  2217
 Australia
 
 Phone: +61 2 9553 1691
 Fax: +61 2 9553 1692
 Mobile: 0419 414 323
 eMail: [EMAIL PROTECTED]
 http://www.quillsoft.com.au
 
 You can download our Public CA Certificate from:-
 https://ca.secureanywhere.com/htdocs/cacert.crt
 
 **
 
 This information contains confidential information intended only for
 the use of the authorised recipient.  If you are not an authorised
 recipient of this e-mail, please contact Quillsoft Pty Ltd by return
 e-mail.
 In this case, you should not read, print, re-transmit, store or act
 in reliance on this e-mail or any attachments, and should destroy all
 copies of them.
 This e-mail and any attachments may also contain copyright material
 belonging to Quillsoft Pty Ltd.
 The views expressed in this e-mail or attachments are the views of
 the author and not the views of Quillsoft Pty Ltd.
 You should only deal with the material contained in this e-mail if
 you are authorised to do so.
 
 This notice should not be removed.
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Michael Hall
mulga.com.au
[EMAIL PROTECTED]
ph/fax (+61 8) 8953 1442
ABN 94 885 174 814

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mkdir

2001-07-28 Thread mike cullerton

On Sat, 28 Jul 2001, Jerry Lake wrote:

 when using mkdir
 I cant seem to make subdirectories
 ?
 $oldumask = umask(0);
 mkdir('test/test', 0777);
 umask($oldumask);
 ?
 
 is there any way to do this ?

does the first test directory already exist? you may need to make them in
two steps. i believe mkidir has a switch to force it to create any needed
directories along the way.

 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Drop Down Menu

2001-07-28 Thread Manu Verhaegen

I have the following question : if i make a selection in the drop down menu 
and click on submit button then the color will send to form2.php
I want not click on the submit button
i make a selection in the drop down menu then the color will send automatic
to form2.php, how can I do this


form method=POST action=form2.php
  tdselect size=1 name=color
  optionblue/option
  optionlicht/option
  optionred/option
  optionyellow/option
/select/td
input type=submit value=Next name=Go
/form



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] url to link

2001-07-28 Thread bill

I thought my regexps were up to snuff until they processed this url:

http:[EMAIL PROTECTED]

Anybody have a regexp that can parse for both http  mailto links and
turn that into an http link -without- turning it also into a mailto
link?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Question about PHP.net Web site and e-mail lists

2001-07-28 Thread Greg Brooks

Hello all... PHP newbie here looking for advice.

I'd like to set up a page with virtually identical functionality to the
PHP.net's list sign-up page. I'm assuming qmail/ezmlm, and may want to also
add checkboxes that allow users to choose between HTML and ASCII delivery.

Can someone tell me who maintains that page for php.net? I'm assuming that
starting with their .php page is going to save me a lot of work.

Thanks,
Greg Brooks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Free webspace with PHPMysql support

2001-07-28 Thread Minardi boy

Is there any reliable provider who offers free webspace with php and Mysql
support?
Cheers
RJ



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Session Tracking Problem

2001-07-28 Thread Richard Baskett

You need to make sure you do a session_start at the beginning of each page
example:

First Page:
?
   session_name(login);
   session_start();
   session_register(Email);
   session_register(Password);
?
HTML

Other Pages:
?
   session_name(login);
   session_start();
?
HTML

 Hi All,
 I have a problem in session tracking,
 
 After checking User name and password from database, I register a
 session as
 
 session_register(User_name);
 
 For next page authentication, at the top of every page i check
 
 if ($HTTP_SESSION_VARS[User_name] != )
 {
 // Display Page Contents
 }
 else
 {
 echo Invalid User;
 }
 
 $HTTP_SESSION_VARS[User_name] is returning empty value in most of the
 location especially at Middle East after even registering the session
 values.
 
 Please fix the problem.
 
 Regards,
 khuram latif
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Question about PHP.net Web site and e-mail lists

2001-07-28 Thread Kurt Lieber

You do know that you can see the source of any page on PHP.net's site,
right?  Just click on the show source link in the bottom navigation
bar on any page.  For instance, the source to the page you mention is
at:

http://www.php.net/source.php?url=/support.php

hth


--kurt

 -Original Message-
 From: Greg Brooks [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, July 28, 2001 8:58 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Question about PHP.net Web site and e-mail lists
 
 
 Hello all... PHP newbie here looking for advice.
 
 I'd like to set up a page with virtually identical 
 functionality to the PHP.net's list sign-up page. I'm 
 assuming qmail/ezmlm, and may want to also add checkboxes 
 that allow users to choose between HTML and ASCII delivery.
 
 Can someone tell me who maintains that page for php.net? I'm 
 assuming that starting with their .php page is going to save 
 me a lot of work.
 
 Thanks,
 Greg Brooks
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: 
 [EMAIL PROTECTED] To contact the list 
 administrators, e-mail: [EMAIL PROTECTED]
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: url to link

2001-07-28 Thread Matthias Winkelmann


This uses just one expression (and that is a fast preg_ insteat of ereg) for
both, mailto: and http: links (and news:, too):

$text =
preg_replace('#(^|[^\=]{1})(http://|ftp://|mailto:|news:)([^\s]+)([\s\n
]|$)#sm',\\1a href=\2\\3\\\
target=\\\blank\\\u\\2\\3/u/a\\4,$text);

ciao,

matt

--
s o m e o n   GmbH
Community Software  Service

Elberfelder Str. 8Tel. +49 (0)2104 171337
40822 Mettmann  Fax  +49 (0)2104 171 339
Germany

[EMAIL PROTECTED]   http://someon.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] list all included files

2001-07-28 Thread Michael Mehlmann

Hi!

this is half OT :-[
I want to list all files, that are included in my script with include() or
require().

I am convinced I can do this in Linux with some command, that listes all
files, that have been accessed the last xxx hours or minutes or seconds ... (and
this would be exactly what I need!)

thanks
Michi

-- 
GMXler aufgepasst - jetzt viele 11 New WebHosting Pakete ohne
Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
http://puretec.de/index.html?ac=OM.PU.PU003K00717T0492a


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] doing a task, like a program running forever

2001-07-28 Thread Augusto Cesar Castoldi

Hi.

I'm heard about a php function that works with apache and It can be run
fovrever an example:

I want that each hour my script gets the weather of a site (like yahoo) 
and write to a txt file.

how can I do that?

thanks.

Augusto


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] GD library

2001-07-28 Thread Manu Verhaegen

I want to install the GD library for PHP
I seek libpng and zlib and jpeg-6b can you help me

Greetings,
Manu Verhaegen


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] GD library

2001-07-28 Thread Clayton Dukes

www.boutell.com


- Original Message - 
From: Manu Verhaegen [EMAIL PROTECTED]
To: 'Php-General (E-mail) [EMAIL PROTECTED]
Sent: Saturday, July 28, 2001 12:51 PM
Subject: [PHP] GD library


 I want to install the GD library for PHP
 I seek libpng and zlib and jpeg-6b can you help me
 
 Greetings,
 Manu Verhaegen
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Free webspace with PHPMysql support

2001-07-28 Thread Joel

http://www.portland.co.uk/
They provide free PHP and MySQL although their forums are the
only options for quick support
--
Joel Agnel.


Sign up for our Free Weekly Newsletter that delivers
Cool Sites directly to you by e-mail. You'll have Fun!
Click Here : http://www.siteskool.com/sites/


Minardi Boy [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Is there any reliable provider who offers free webspace with php and Mysql
 support?
 Cheers
 RJ





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Free webspace with PHPMysql support

2001-07-28 Thread Jonas Delfs

Minardi Boy [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Is there any reliable provider who offers free webspace with php and Mysql
 support?

In my opinion no reliable exists.
You get what you pay for. If you pay a lot, you get a lot. If you pay
nothing, you get nothing.

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: list all included files

2001-07-28 Thread Jonas Delfs

Michael Mehlmann [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 I want to list all files, that are included in my script with include() or
 require().

get_reqiured_files() and get_included_files() ?

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: list all included files

2001-07-28 Thread Jonas Delfs

Jonas Delfs [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

  I want to list all files, that are included in my script with include()
or
  require().

 get_reqiured_files() and get_included_files() ?

I forgot to mention that you only need get_included_files() if you're
running php4.0.4+

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Free webspace with PHPMysql support

2001-07-28 Thread Owen Rudge

 Is there any reliable provider who offers free webspace with php and Mysql
 support?

If you're in the UK and don't mind using their ISP for at least an hour a
month, UKLinux (www.uklinux.net) is a great provider.

--
Owen Rudge
http://www.owenrudge.co.uk/
http://www.gamearchive.uk.tt/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: crate mysql table command

2001-07-28 Thread Jonas Delfs

Jeremy Zawodny [EMAIL PROTECTED] skrev i en meddelelse
news:[EMAIL PROTECTED]...

  I would like to know the syntax to create mysql table using php.
  Please help, I have searched the php manual, but couldn't find any
  helpful hint.

 PHP doesn't care which database you use, so you won't find it there.
 It's a programming language---that's all.

Actually, it's a scripting language - but you made your point. :)

--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk

Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] doing a task, like a program running forever

2001-07-28 Thread Marty Landman

At 01:31 pm 7/28/01 -0300, Augusto Cesar Castoldi wrote:

I want that each hour my script gets the weather of a site (like yahoo)
and write to a txt file.

Hi Augusto.

first write the script to accomplish this function. If you're on a Unix 
type server you can then use the crontab function to have the program run 
once an hour. You could have the output from that program go to a file.

Then for the webpage that serves up that data you can read the contents of 
the file the hourly program has created. BTW, you should make sure you're 
doing this in a way that Yahoo (for example) finds acceptable usage, e.g. 
by contacting them first for permission to post their data to your site.

Marty

Face 2 Interface Web Solutions
Website Creation Made SIMPL(tm)
http://face2interface.com/Demo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] weird caching problem

2001-07-28 Thread Matt Greer

I'm calling an image through a php file, but when I make changes to the
image, I can't get them to show. For some reason the old image is getting
cached somewhere, and none of the standard remedies are working (refreshing,
deleting cache, etc). What does work is changing the value of $icon and then
reflecting that change in my code. But that's not ideal for what I'm doing.
Any ideas?

Here's how I'm calling the image in php:

?php
//image.php

{
// some mysql stuff
}

if ($icon == 'a') header(Location:
http://www.rcnchicago.com/~tortus/goombaw.gif;);
else header(Location: http://www.rcnchicago.com/~tortus/goombab.gif;);

?

Thanks,

Matt


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Emailing files

2001-07-28 Thread Kyle Smith

Ok i know this is a reheheheally simple question but can someone please send me the 
code for an upload file box which can only have gifs and jpgs uploaded so i may add it 
to a fanart section for my site


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





[PHP] Oh and addition to Emailing Files

2001-07-28 Thread Kyle Smith

Also how do i make it so that when it sends the email the picture is an attatchment?


-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





Re: [PHP] Oh and addition to Emailing Files

2001-07-28 Thread B. van Ouwerkerk

At 22:15 28-7-01 -0700, Kyle Smith wrote:
Also how do i make it so that when it sends the email the picture is an 
attatchment?

I just don't get it anymore. First you ask about uploading files and now 
about sending files as attachment?? And this second (this) mail is supposed 
to make something clear??

Please explain what you want to do. Upload or send them via e-mail.. You 
subject is emailing files..

Browsing a few PHP helpsites should make everything more clear. Both 
subject can be found on that kind of website..

Bye,


B.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Drop Down Menu

2001-07-28 Thread Michael J. Seely

You need to do something like this:
With a little PHP work you can make the menu content and url links data driven.


HTML
HEAD
TITLEPage Title/TITLE

SCRIPT LANGUAGE = JavaScript!--- //hide script from old browsers
function MakeArray()
 {
 this.length = MakeArray.arguments.length
 for (var i = 0; i this.length; i++)
 this[i+1] = MakeArray.arguments[i]
 }

var url = new MakeArray(pg0.htm, pg1.htm, pg2.htm, pg3.htm);

function jumpPage(form)
{
 i = form.SelectMenu.selectedIndex;
 if (i == 0) return;
 window.location.href = url[i+1];
 }
//end hiding contents ---
/SCRIPT
/HEAD

BODY BGCOLOR=WHITE

TABLE BGCOLOR=#D0D0D0 BORDER=0  CELLSPACING=0
CELLPADDING=5 BORDERCOLOR=WHITE WIDTH=100%
TRTD

FORM ACTION= METHOD=POST

TABLE BORDER=0
TRTDFONT FACE=Verdana, Arial, Helvetica, San-Serif SIZE=+1
B #160;Menu Options #160; /B/FONT/TD/TR/TABLE
FONT FACE=Verdana, Arial, Helvetica, San-Serif B
A HREF=pg0.htmBack/A #160; #160;
SELECT NAME=SelectMenu onchange=jumpPage(this.form)
OPTION SELECTEDSelect Section #160; #160; #160; #160; #160;
OPTIONPage 1
OPTIONPage 2
OPTIONPage 3
/SELECT

/FORM

/TDTD ALIGN=RIGHT VALIGN=TOP
FONT SIZE=-2 FACE=Sans-serif2/1/2001/FONT/TD/TR/TABLE
/BODY
/HTML




I have the following question : if i make a selection in the drop down menu
and click on submit button then the color will send to form2.php
I want not click on the submit button
i make a selection in the drop down menu then the color will send automatic
to form2.php, how can I do this


form method=POST action=form2.php
   tdselect size=1 name=color
   optionblue/option
   optionlicht/option
   optionred/option
   optionyellow/option
 /select/td
input type=submit value=Next name=Go
/form



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Michael Seely  408-777-9949




 


[PHP] Sessions Question

2001-07-28 Thread Jeff Oien

Hope I can explain this. I want to have scripts that will automatically refresh
a page entered by the user. So a form will have URL to refresh, seconds to
refresh and title of page. I want the page to continually refresh every X seconds.

I think I would need two pages that go back and forth between each other.
Here is what I have for the first script/page after the form. I don't know what
to do after this on the second page in order to pass the variables on to it.

Thanks for any help.
Jeff Oien

-

?
session_start();
session_register($refresh);
session_register($seconds);
session_register($title);
if (!$refresh || !$seconds) {
echo Please choose a URL to Refresh and Seconds to Refresh.;
}
print html
head
meta http-equiv=\refresh\ content=\$seconds;url=refresh1.php\
title$title/title
/head
frameset cols=\100%\ rows=\100%\
frame name=\Frame 1\ src=\$refresh\ scrolling=\auto\
noframes
If you can see this message you are using a browser that is incapable of displaying
frames./noframes
/frameset
/html;
?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mail() a list favorite

2001-07-28 Thread Jon Yaggie

ok please ignore my rather ongoing stupidity.  I briefly scanned my manual and didnt 
find this.  so figured since everyone here should be experts on this function with so 
many questions asked. . 
Does this require a specific mail server e.g. sendmail?




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





RE: [PHP] Stripping single quotes

2001-07-28 Thread Matt Stone

Thanks for your help everyone, I feel pretty embarrassed to have made a
mistake like that! :o

-Original Message-
From: Bojan Gajic [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 29 July 2001 12:44 AM
To: Matt Stone
Subject: Re: [PHP] Stripping single quotes



you are not assigning stripslashes($fldemail) to the $fldemail, you are
maching
them. use '=' instead of  '= ='

hth,
bojan


Matt Stone wrote:

 Darn, it still 'aint working. Ok, let's say $fldemail contains
 o\'[EMAIL PROTECTED]
 I then run these:
 $fldemail == stripslashes($fldemail);
 $fldemail == ereg_replace(',,$fldemail);
 And I get o\'[EMAIL PROTECTED] ... damn.

 Any ideas? Thanks,

 Matt Stone

 -Original Message-
 From: Chris Fry [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 28 July 2001 2:15 PM
 To: Matt Stone
 Cc: PHP list
 Subject: Re: [PHP] Stripping single quotes

 Matt,

 Try ereg_replace:-

 $fldemail == ereg_replace(',,$fldemail);

 Chris

 Matt Stone wrote:

  Hi all,
  I am trying to validate some email addresses before they are entered
into
  the database.
  The problem is, some thick or malicious people are entering single
quotes
  into their email addresses.
  I need to strip out all these single quotes but a little ole'
str_replace
  doesn't seem to be working.
  Here it is:
 
  $fldemail == str_replace(',,$fldemail);
 
  Nice and basic :)
  Can anyone please enlighten me on this?
  Thanks in advance,
 
  Matt Stone
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --

 Chris Fry
 Quillsoft Pty Ltd
 Specialists in Secure Internet Services and E-Commerce Solutions
 10 Gray Street
 Kogarah
 NSW  2217
 Australia

 Phone: +61 2 9553 1691
 Fax: +61 2 9553 1692
 Mobile: 0419 414 323
 eMail: [EMAIL PROTECTED]
 http://www.quillsoft.com.au

 You can download our Public CA Certificate from:-
 https://ca.secureanywhere.com/htdocs/cacert.crt

 **

 This information contains confidential information intended only for
 the use of the authorised recipient.  If you are not an authorised
 recipient of this e-mail, please contact Quillsoft Pty Ltd by return
 e-mail.
 In this case, you should not read, print, re-transmit, store or act
 in reliance on this e-mail or any attachments, and should destroy all
 copies of them.
 This e-mail and any attachments may also contain copyright material
 belonging to Quillsoft Pty Ltd.
 The views expressed in this e-mail or attachments are the views of
 the author and not the views of Quillsoft Pty Ltd.
 You should only deal with the material contained in this e-mail if
 you are authorised to do so.

 This notice should not be removed.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] automatic deallocation

2001-07-28 Thread Erick Calder

I've searched through the manuals and newsgroups but haven't found an
answer.  maybe someone on this list can tell me whether PHP will
automatically de-allocate filehandles and database connections upon script
termination?  i.e. do I always need to call fclose() and mysql_close()
before the script ends when I've called fsockopen() and mysql_connect()?

thx - e


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] END block

2001-07-28 Thread Erick Calder

is there an equivalent to Perl's END block? i.e some way to automatically
run certain code when a page is about to end?

1k thx - e


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] END block

2001-07-28 Thread Philip Murray

Hi Erick, 

It's all in the manual...

http://php.net/manual/en/function.register-shutdown-function.php

Cheers

 -  -- -  -   -
Philip Murray - [EMAIL PROTECTED]
http://www.open2view.com - Open2View.com
- -  -- -   -

- Original Message - 
From: Erick Calder [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Sunday, July 29, 2001 3:50 PM
Subject: [PHP] END block


 is there an equivalent to Perl's END block? i.e some way to automatically
 run certain code when a page is about to end?
 
 1k thx - e
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] VERY URGENT

2001-07-28 Thread edwardnike louis

Mr. Robert Harvesy,
5 – 8 Milton Obote,
Avenue BLED
Kinshasha,
Congo – Zaire,
 
 Sir,
 
I got your contact from the Internet and I know that
this letter will come to you as a big surprise but
don’t ignore it. The profit will not only be for you
but for generations, this matter is very  important 
and  needs utmost  trust  and  confidence.
 
I  am  Mr. Robert Harvesy, a business consultant
and a close confidant  of former most powerful
first family in Zaire, now Democratic Republic  of
Congo.
  
The former first lady told me that they have lost
their oil wells and their gold mines have been shut
down and confiscated by the new government and
they don’t want to loose their cash again.
 
The family wishes to move out of the country the sum
of US$168 million  [ one hundred and sixty eight
million United states Dollars]  she wants to nvestthe 
aforementioned  sum  in  viable  businesses 
overseas.
  
My client does not wish to place this fund with
established financial institutions in the family's
name for security reasons.  It is her desire that
thedeal be handled as quietly as possible without
possibility of any leakage to the public or
government.  She has therefore instructed and
empowered me to look for a reliable foreigner who
can arrange and receive this money in his account
overseas and assist to invest the fund properly for
the
family.
  
If you know that you are capable and have the
facilities to handle this large amount or knows a
trusted friend or organizations who can handle this
project in strict confidence, my client is willing
to give you and such entity  25%  of  the total sum 
received on behalf of the family for overseas
investments.
 
To  act  as  a fund  manager  for my  client  and 
her  family  in overseas  I  shall  release  the  sum 
of  US$168 million [one hundred and sixty eight
million]  to you  if  you  meet  my  requirements. 
The  money  is  available  in  cash  in  a  safe 
trunk deposited with a security company,  and  upon  a
 favorable  response  from you,  I  shall  let  you 
know  how you shall receive it.
  
Your  commission  shall  be   25% of  the  total 
sum,  and  an  annual  10%  of  theafter  tax  returns
 on  investment  for  the first five  years. 
Thereafter,  the  terms  shall  bevaried.
  
Sir,  if  you  are  capable  and reliable,  reach 
me  by  email address soonest.
  
Best  regards,

Robert Harvesy
 


___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sessions Question

2001-07-28 Thread Rasmus Lerdorf

 session_register($refresh);
 session_register($seconds);
 session_register($title);

You probably want to remove the $ signs in the above.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]