Re: [PHP] timout in mail script

2003-03-25 Thread W. Enserink
Hi ernest,


I don't think it is looping, cause I also tried it with 10 and 100 and 250
emails. No problems there...!

regards Wilbert

- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Wilbert Enserink [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 12:30 PM
Subject: Re: [PHP] timout in mail script


 At 12:24 25.03.2003, Wilbert Enserink spoke out and said:
 [snip]
 I have this script sending 1000 personalized emails.
 However when I press the start button in my browser so the script starts
 mailing I get no response for a long time from the script. Most of the
time
 I don't get any response. When I retrieve all the emails I just sent (to
 myself, using 1000 aliases), I retrieve e.g. 1396 emails.
 
 Anybody knows how this is possible? Is it possible that the script is
 adressed again by the browser, so the whole mailing process starts again?
 [snip]

  From what you've said it looks as if your script is running in an endless
 loop. You may debug it by _not_ actually sending the mail, but echoing the
 mail() command to the browser, together with the vital variables you need.


 --
O Ernest E. Vogelsinger
(\) ICQ #13394035
 ^ http://www.vogelsinger.at/

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Threading objects

2003-03-12 Thread W. Enserink
i'm not sure what you want. But you have created objects here in $a,$b and
$c.
If you want to order them in a special way you have to write the
functionality of course. I think you have to do this before the object is
created because you define the variables 10,5,1 before the objects are
created. Once the objects are created they themselves don't know nothing
form each other. So th eparent object has to control this, or in your case a
'parent piece of script'.

You can use $a,$b,and $c as regular,ordinary variables.  further on.

hope it helped,

Wilbert

- Original Message -
From: Kris [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 12:18 PM
Subject: [PHP] Threading objects


 I want to be able to thread objects. I'm not really sure at all where to
 start. but I want a script where multiple objects are being processed at
the
 same time.
 I have an example php script

 ?

 $a = new sleeper();
 $b = new sleeper();
 $c = new sleeper();

 $a-sleepFor(10);
 $b-sleepFor(5);
 $c-sleepFor(1);

 class sleeper {

  function sleepFor($num) {
   sleep($num);
   echo sorry I was a sleep for $num \r\n;
  }

 }

 ?

 I want so object $c would print then object $b then object $a as the
 sleeping time is less and less.
 Does that make sense? Please ask if you don't understand

 Thanks for any help you can offer what so ever.

 Kris




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Message Board Question

2003-03-11 Thread W. Enserink
maybe use mysql to retrieve only 5 records.

$query=select * from table limit [1,5]; //search in the mysql manual to be
sure!

this limit thing you can make variable

$limit_thing_max=5;
$limit_thing_min=$pagenumber*$limit_thing_max;
$query = select * from table limit [$limit_thing_min,$limit_thing_max];

on the page numbers and previous and next button you assign a variable on
the url like  a href=http://pageurl.php?pagenumber=3page 3/a

it's just 1 idea of many I suppose. be sure to catch all boundary
conditions.


Wilbert




- Original Message -
From: conbud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 11:31 AM
Subject: [PHP] Message Board Question


 Hi, this is kind of a complex question, Im making a message board, now I
 dont want list, lets say, all 25 messages on the same page. I would like
 to have - previous 1 2 3 next - type of links and only list 5 messages
 per page and every time a user clicks the next, previous, or one of the
 page number links it will list the next 5 messages that havn't been
 listed yet. Could someone show me how to do this or at least point me in
 the correct direction ? The data is all stored in a MySQL database.

 Thanks,

 --
 Conbud [EMAIL PROTECTED]
 Graphic  Web Design Using Open Source Technology
 --


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php_mcrypt.dll

2003-02-21 Thread W. Enserink
hi Daniel,

AFAIK there are not many people with a good working mcrypt dll, if any at
all. In the past there have been more people asking for this, but I can't
remember something came out of it. So if you have one please let the group
know, many will be very interested. If you want to you can download the
original code yourself together with a C comipiler and cookbake your own
dll for windows

regards Wilbert










- Original Message -
From: Daniel Guerrier [EMAIL PROTECTED]
To: php user group [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 6:12 AM
Subject: [PHP] php_mcrypt.dll


 I'm trying to use the mcrypt function on winXP using
 php 4.3.1 and IIS 5.  First the dll would not load but
 I got past that by placing the libmcrypt.dll in my
 system32.  Now it loads but when I try to use mcrypt I
 get

 Warning: mcrypt_encrypt(): Module initialization
 failed in
 E:\IIS\wwwroot\savehiphop\admin\access\encrypt.php on
 line 6

 I don't think it's the code, it's pretty simple.
 $key = longencrytionkey;
 $text = danny;
 echo($text . br);

 $newtext = mcrypt_encrypt(MCRYPT_BLOWFISH,$key,
 $text, ecb);
 echo($newtext);


 How do I get mycryt extension to work properly on
 windows?


 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mr. jason wong kind attention

2003-02-21 Thread W. Enserink
hey david,


should she apologize to you know?? for apologizing twice?:-)
I'm sorry if offended anyone with this mail.


regards Wilbert

(counting down: 3 hrs to weekend)



- Original Message - 
From: David T-G [EMAIL PROTECTED]
To: PHP General list [EMAIL PROTECTED]
Cc: DIKSHA NEEL [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 1:56 PM
Subject: Re: [PHP] mr. jason wong kind attention



- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php_mcrypt.dll

2003-02-21 Thread W. Enserink
ah thx Jason for the tips.
I'll go and have a look immediately.


Wilbert

- Original Message -
From: Jason Sheets [EMAIL PROTECTED]
To: W. Enserink [EMAIL PROTECTED]
Cc: Daniel Guerrier [EMAIL PROTECTED]; php user group
[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 3:15 PM
Subject: Re: [PHP] php_mcrypt.dll


 The DLL is being provided already, there is no need to compile your own
 for windows.  Windows users interested in using mcrypt can download the
 required dll files at
 http://ftp.proventum.net/pub/php/win32/misc/mcrypt/

 This is noted in the manual at http://www.php.net/mcrypt

 Jason
 On Fri, 2003-02-21 at 01:41, W. Enserink wrote:
  hi Daniel,
 
  AFAIK there are not many people with a good working mcrypt dll, if any
at
  all. In the past there have been more people asking for this, but I
can't
  remember something came out of it. So if you have one please let the
group
  know, many will be very interested. If you want to you can download the
  original code yourself together with a C comipiler and cookbake your
own
  dll for windows
 
  regards Wilbert
 
 
 
 
 
 
 
 
 
 
  - Original Message -
  From: Daniel Guerrier [EMAIL PROTECTED]
  To: php user group [EMAIL PROTECTED]
  Sent: Friday, February 21, 2003 6:12 AM
  Subject: [PHP] php_mcrypt.dll
 
 
   I'm trying to use the mcrypt function on winXP using
   php 4.3.1 and IIS 5.  First the dll would not load but
   I got past that by placing the libmcrypt.dll in my
   system32.  Now it loads but when I try to use mcrypt I
   get
  
   Warning: mcrypt_encrypt(): Module initialization
   failed in
   E:\IIS\wwwroot\savehiphop\admin\access\encrypt.php on
   line 6
  
   I don't think it's the code, it's pretty simple.
   $key = longencrytionkey;
   $text = danny;
   echo($text . br);
  
   $newtext = mcrypt_encrypt(MCRYPT_BLOWFISH,$key,
   $text, ecb);
   echo($newtext);
  
  
   How do I get mycryt extension to work properly on
   windows?
  
  
   __
   Do you Yahoo!?
   Yahoo! Tax Center - forms, calculators, tips, more
   http://taxes.yahoo.com/
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
 
  -
  Pas de Deux
  Van Mierisstraat 25
  2526 NM Den Haag
  tel 070 4450855
  fax 070 4450852
  http://www.pdd.nl
  [EMAIL PROTECTED]
  -
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] money - done

2003-01-09 Thread W. Enserink
Hi All


thx for all replies about how to make money. The trick
http://www.php.net/manual/en/function.number-format.php did it for me!

regards Wilbert




- Original Message -
From: Danny Shepherd [EMAIL PROTECTED]
To: Wilbert Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 09, 2003 11:48 AM
Subject: Re: [PHP] money


 http://www.php.net/manual/en/function.number-format.php

 - Original Message -
 From: Wilbert Enserink [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 09, 2003 10:44 AM
 Subject: [PHP] money


 Hi all,



 I'm busy making a swebstore. I have troubles with the format of money.

 I wanrt to display amounts like 2 products a ? 6,25 = ? 12,50


 Whatever I try I can't get the comma there (it's showing a point . and
it
 doesn't display the second number behind the comma i.e. 12.5

 Anybody knows how to make me my money? :-)

 regards Wilbert




 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] catching a robot or spider - asking too

2002-11-20 Thread W. Enserink
check out the url for aother big list of user agents.
I guess the only way to catch a robot is to use this list and compate them
to the incoming user agent and then do your thingie.

http://www.browserlist.browser.org/browser_mappings_list_big.html

regards Wilbert


- Original Message -
From: Steve Vernon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 11:18 PM
Subject: Re: [PHP] catching a robot or spider - asking too


 From what I think I heard on another group was that it dosent matter what
 stylesheet you use, it will just read the file, getting words and
following
 links. Cant remember where I read this, think it was a forum, and they
were
 argueing about robots and whether they follow links specified in
JavaScript.

 One person said he was going to do a link to a page which only robots will
 follow, say do it on a 1*1 pixel so no chance of a user to follow it. And
on
 that page do list of keywords as most robots ignore to many keywords in
meta
 tags. This would mean doing the limit robot meta tags to only the home
page
 and the robot page.

 So you could do a page with your links on, that is linked from the home
page
 but hard to click on! And do the meta tags on other pages to stop robots.

 Could work?!

 Love,

 Steve
 XX





   does anybody know a way to make a distinction
   between robots and users?
   should I use the user agent? Or is this not a safe method.
   If the visitor is a spider/robot I want to include some script
   containing extra URL's for the robot.
 
  I am very interested too in this, as I received visits from a site with
a
  rather strange user agent (well, at least, that I did not expect) on a
web
  site of mine. The user agent was something like
 
  SurveyBot/2.2 a href=\'http://www.whois.sc\'Whois Source/a
 
  I really don't know how I should generate my pages in this case, what
kind
  of stylesheet I should include to make the page correct (if I even have
 to).
 
  Anyway, the real question behind is :
 
  Is there a good way to handle the user agent info?
 
 
  Vincent Vandemeulebrouck
  http://www.leguerriersorde.com/
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] magic_quotes_gpc

2002-10-14 Thread W. Enserink

Hi John,



that sounds like a great solution for me!! thanx. Can you tell me a bit more
about this solution.

Can I just place the htaccess file in the root of my site? And do I have to
include this file in my php scripts?


thx .alot.  Wilbert


- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Wilbert Enserink' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 9:47 AM
Subject: RE: [PHP] magic_quotes_gpc


 If you're on apache, you can use an .htaccess file

 php_value magic_quotes_gpc 1

 otherwise change it in php.ini or program for both settings...

 ---John Holmes...

  -Original Message-
  From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 14, 2002 3:40 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] magic_quotes_gpc
 
  Hi all,
 
  I have a quetion on magic_quotes_gpc.
  The php.ini file on my test servers shows that magic_quotes_gpc=On.
  The php.ini file on the production server shows that
 magic_quotes_gpc=Off.
  == I know this is a strange thing:-(
 
  So you guess what happened: all the scripts I have don't function
 well.
  All input fields got escaped in the test environment but don't get
 escaped
  in the real environment. So when I input the name o'brien you gueass
 what
  happens.
 
  My Q: Is there a way to set the value for magic_quotes_gpc ?? Or is
 there
  another solution. Or should I adjust all my scripts and use
  addslashes/stripslashes each time I put something into mysql
 databaseor
  retrieve something from the db.
 
  I searched the manual but I could only find info about retrieving the
  value of get_magic_quotes_gpc and stuff about setting the value for
  set_magic_quotes, but there is no such a thing for
 set_magic_quotes_gpc.
 
 
  Any help on this would be largelly appreciated!
 
  Wilbert Enserink
 
 
  -
  Pas de Deux
  Van Mierisstraat 25
  2526 NM Den Haag
  tel 070 4450855
  fax 070 4450852
  http://www.pdd.nl
  [EMAIL PROTECTED]
  -

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread W. Enserink

thx Jason,


now I understand the use of aliases in select queries.
Good ID:-)


Wilbert

- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 04, 2002 11:38 AM
Subject: Re: [PHP] mysql/php how to retrieve the right column with 2 columns
of the same name


 On Thursday 04 July 2002 17:23, Wilbert Enserink wrote:
  Hi all,
 
 
  I have to tables A and B.
  They boyh have a column with the same name.
 
  Now, I wrote this MySQL statement performing a left join.
  This results in a data set with rows consisting of 2 columns of the same
  name, in which the date is stored when the record was last altered. This
  column is called last_altered.
 
  Later on in my script I'm calling the value of this column with php.
  $query=select * from tblA LEFT JOIN ;
  $resultID=mysql_query($query);
  while ($result_row=mysql_fetch_array($resultID))
  {
  echo $result_row[column with the same name];
  }
 
  Well, this works without any php or mysql errors, but it is giving me
the
  data back of that column wich I don't wanna have...It returns the
  last_altered date of tblB in stead of tblA. A solution might be te
  exclude the second column (the wrong one) from the select statement in
the
  query. This is a MySQL adjustement. Anybody knows how this can be done??

 Try to limit your select statement, instead of SELECT *, use

 SELECT colA,
colB,
tablA.samenamecolA,
tablB.samenamecolA, etc

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 Love is the process of my leading you gently back to yourself.
 -- Saint Exupery
 */


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] session vars and frames

2002-06-28 Thread W. Enserink

hmmm, i'm not passing anything around, at least not on purpose.


Wilbert


- Original Message -
From: Justin French [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Friday, June 28, 2002 11:14 AM
Subject: Re: [PHP] session vars and frames


 Are you passing the session ID around in the URL, or in cookies?

 Justin French


 on 28/06/02 6:28 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote:

  hi all,
 
 
  I'm registering if people are logged in. The login page is situated in
the
  mainFrame.
  Now in my leftFrame I want to put the status (i.e. you are logged in as
  .)
 
  When people are succesfully logged in I register their name as
  session_register('session_loginname');
  I then refresh the leftFrame.
  In the page to be displayed in the leftFrame  I put:
 
  ?php if (!isset($session_loginname))
  {
  echo you are not a member;
  }
  else
  {
  echo login: $session_loginname;
  }
  ?
 
 
  However, my leftFrame page keeps on displaying you are not a member So
I was
  wondering: is there something with sessionvariables and frames which I
don't
  know??
  If anybody has any ideas I would be happy to hear them.
 
 
  regards
 
  Wilbert
 
 
  -
  Pas de Deux
  Van Mierisstraat 25
  2526 NM Den Haag
  tel 070 4450855
  fax 070 4450852
  http://www.pdd.nl
  [EMAIL PROTECTED]
  -


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] sessions and temporary tables

2002-06-18 Thread W. Enserink

ok, that's clear, thx.
but  still, I'm not closing any connection AFAIK.
at least not explicitly. are there then other ways which cause the closing
of this connection?

thx Wilbert




- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 18, 2002 11:31 AM
Subject: Re: [PHP] sessions and temporary tables


 On Tuesday 18 June 2002 17:21, Wilbert Enserink wrote:

  i have this problem:

  My Q: howcome mySQL is not able to find this temporary  table
anymore
  It seems to have destroyed this table when leaving the search.php page,
but
  that's a rather odd idea, cause I thought it maintained while the
session
  was still active...

 Well sessions have nothing to do with MySQL tables (temporary or
otherwise).
 The reason why your table doesn't exist anymore is probably because temp
 tables are only there for the duration of a particular mysql connection.
Once
 the connection is closed the table is automatically purged.

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 If you refuse to accept anything but the best you very often get it.
 */


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] session variables in OOP....

2002-06-14 Thread W. Enserink

Hi all,


Nick: thx for the tip, it removed the error, and might further be a good
idea: except:
do you know if I can declare session variables and use them in between the
output buffer statements
like this: (i tried it but it doesn't seem to work)??

greetings Wilbert


include (class.basepage.php);
ob_start();//start the outputbuffering
$object= new basepage; //object basepage which determines which HTML
to output (due to queries and calcultaions)
session_register($variable);
$extra_variable=$variable+1;
echo $extra_variable;
ob_get_contents();//show the buffer
ob_end_flush() ;//clear the buffer




- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 1:59 PM
Subject: Re: [PHP] session variables in OOP


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then Wilbert Enserink declared
  I hope you understand my problem and have some tips for me. Below is
some code snippets I'm using:

 Actually it's a little tricky to understand ;-)
 Have you considered output buffering?
 - --
 Nick Wilson //  www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE9Cdq/HpvrrTa6L5oRAqmzAJ99bcz64l6/lfcIqLz4iGKlTLeJHQCeOmsH
 e0lahzjczcVE3aFql/+G6+M=
 =Fl/c
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] storing html in a db

2002-06-10 Thread W. Enserink

hi all,


i was wondering,

i'm making a php page. this php page is outputting a very lot of html to a
browser.
is it also possible to capture this html code and store it in a database?
so later on i can retrieve a full html page without the dynamic elements in
it

thx Wilbert


- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] storing html in a db

2002-06-10 Thread W. Enserink

thx great tip:-)



- Original Message -
From: Jared Boelens [EMAIL PROTECTED]
To: W. Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 9:41 PM
Subject: RE: [PHP] storing html in a db


 You might consider using output buffering in order to accomplish that
goal.

 http://www.php.net/manual/en/ref.outcontrol.php

 You could buffer the entire page and store the buffer into the DB at the
end
 of the page load.

 -Jared

 -Original Message-
 From: W. Enserink [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 10, 2002 3:35 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] storing html in a db


 hi all,


 i was wondering,

 i'm making a php page. this php page is outputting a very lot of html to a
 browser.
 is it also possible to capture this html code and store it in a
database?
 so later on i can retrieve a full html page without the dynamic elements
in
 it

 thx Wilbert


 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] function return

2002-05-28 Thread W. Enserink

Hi all,


I have a Q about functions. My function should return 2 values. What syntax
should I use and how do I call these values outside the function? Are these
values returned as en array or something?


this is what I have now,
-
function myFunction($some_vars)
{
 $max=count($some_vars);
 $some_value=($max/2);
 return($some_value  $max);
}

$var1=should be the value of  $some_value
$var2=should be the value of $max


thx. Wilbert

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] session.save_path

2002-05-23 Thread W. Enserink

thx John. That did the trick for me!

regards Wilbert


- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Wilbert Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, May 22, 2002 8:18 PM
Subject: Re: [PHP] session.save_path


 You have to set the session.save_path to a path on your machine that PHP
can
 write session files to. You can make a temp folder in your C: drive and
then
 set the path to c:/temp or c:\\temp or create and set it to any other
folder
 you want. Make sure (if you're using NTFS) that user IUSR_computer_name
 has permission to read/write to the directory you specify.

 ---John Holmes...

 - Original Message -
 From: Wilbert Enserink [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 22, 2002 12:09 PM
 Subject: [PHP] session.save_path


 Hi all,

 I'm trying to install php/apache with phptriad. This worked fine,
 however when I'm using session variables the thing goes nuts:

 Warning: open(/tmp\sess_d22b57336449f89ad54b974794dd53f4, O_RDWR) failed:
m
 (2) in C:\apache\htdocs\dm\wwwtest\phpincludes\session\session.php on line
2

 Warning: open(/tmp\sess_d22b57336449f89ad54b974794dd53f4, O_RDWR) failed:
m
 (2) in Unknown on line 0

 Warning: Failed to write session data (files). Please verify that the
 current setting of session.save_path is correct (/tmp) in Unknown on line
0

 --
 This is how my phpinfo() sees it:



   session.save_handler
  files files
   session.save_path
  /tmp /tmp
   session.serialize_handler
  php php
   session.use_cookies
  On On


 Does anybody have any idea what to do. Should I adjust php.ini?? And where
 should this directory /tmp  be located?? cause it's not on my
harddisk--
 so this might be the error. (i'm on winXP BTW)


 well, thx for all info!

 regards Wilbert

 -
 Pas de Deux
 Van Mierisstraat 25
 2526 NM Den Haag
 tel 070 4450855
 fax 070 4450852
 http://www.pdd.nl
 [EMAIL PROTECTED]
 -

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] security

2002-04-22 Thread W. Enserink

thx Jason. I found it!
regards!


- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 11:29 AM
Subject: Re: [PHP] security


 On Monday 22 April 2002 17:16, Wilbert Enserink wrote:

  I'm building a site where customers can store their personal
information.
  I'm thinking of storing their creditcardno's also. Can you give me some
  general tips with regard to security. What is the way to go here?

 This has been discussed in some depth within the last month or so.
Searching
 the archives for credit card should yield some results. You may also
want
 to search the php-db archives as well.

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 Let the machine do the dirty work.
 -- Elements of Programming Style, Kernighan and Ritchie
 */

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] db design with large amount of data (?)

2002-04-12 Thread W. Enserink

Hi all,


i'm currently busy with db design. Since I have not worked with these
amounts of content data I have a few questions.


I have 2 tables: a table filled with records about products (currently 2200
records) (tblProducts)
The next table is a table with pictures referring to product_ID's. (tblPics)
(3600 records).
Some products have more than 1 picture. I'm on apache server with mySql db.


Now about my db design question:

can I better use 1 table (the tblProducts) where I store PictureNames in 1
field, seperated by commas or whatever or should I use the tblPics as a
lookup table.

The advantages to use tblPics as a lookup are quite clear, but each time I
want to show the pics belonging to a certain product I have to query the
lookuptable with it's 3600 records. Does this consume a lot of time?? Or
isn't 3600 records (with 8 columns) a lot.



Thanx for your opinion

Wilbert Enserink

- 
Pas de Deux 
Van Mierisstraat 25 
2526 NM Den Haag 
tel 070 4450855 
fax 070 4450852 
http://www.pdd.nl 
[EMAIL PROTECTED] 
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php