Re: [PHP] var_dump() results

2008-01-13 Thread T.Lensselink

Europus wrote:

It's pretty much the same. With var_dump(), values from the first row
of the table are iterated twice, the script is not looping through and
reporting all 2100 rows. Grossly similar behavior was observed with
print_r() and echo: while different data was reported by each, the
loop wouldn't loop. The first row was reported once (or twice) and
that was the end of that. I've tried foreach() also, same-same. It
doesn't loop, it just reports the first row.


It doesn't loop through all rows because you use mysql_fetch_row. Wich 
does exactly
what it's name tells you. It fetches one single row. So instead of 
looping through the
whole result set. You are looping through every cell off the result set. 
You're probably

better of using mysql_fetch_array().


Here's my code:

?php

//connect to db
$link = mysql_pconnect('$host', '$login', '$passwd');
if (!$link) {
die('Unable to connect : ' . mysql_error());
}
// make $table the current db
$db_selected = mysql_select_db('$table', $link);
if (!$db_selected) {
die ('Unable to select $table : ' . mysql_error());
}

//get column data
$sql= SELECT column2, column3 FROM $table;
$result = mysql_query($sql);
$row = mysql_fetch_row($result);

//loop through to display results
for($i=0; $i  count($row); $i++){
var_dump($row);
echo br /br /;
?

Ulex



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



Re: [PHP] var_dump() results

2008-01-13 Thread T.Lensselink

Europus wrote:

T.Lensselink wrote:

It doesn't loop through all rows because you use mysql_fetch_row. 
Wich does exactly what it's name tells you. It fetches one single row.


Doh! Yes I'm brand new at PHP, though I've been doing HTML/CSS forever.
That doesn't seem to mean much to a PHP/MySQL installation.

Everybody has to start somewhere :)



So instead of looping through the
whole result set. You are looping through every cell off the result 
set. You're probably better of using mysql_fetch_array().


I made that change, now it reports the 1st row 4 times and never
gets on to the 2nd or subsequent rows. What the ???

Can you show some code?


Ulex





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



Re: [PHP] var_dump() results

2008-01-13 Thread T.Lensselink

Europus wrote:

Actually, it doesn't exactly iterate the 1st row 4 times, it's a bit
more convoluted.

The table as 4 columns:
1 - int, primary, auto-incrementer
2 - varchar() values
3 - varchar() values
4 - varchar() values

and 2100 rows. The return is 4 rows of this:

array(4) {
[0]=  string(11) col_1_row_1_data [col_1]=  string(11) 
col_1_row_1_data
[1]=  string(13) col_2_row_1_data [col_2]=  string(13) 
col_2_row_1_data }


This is way beyond my ken, but I want to learn so I'll keep plugging
at it. Tips  suggestions are welcome

Ulex

Yes well looking at the starting code i realise i forgot something. 
Sorry for that.

When doing mysql_fetch_array or mysql_fetch_row you get only one row.
So what you want to do is loop through the result set:

$result = mysql_query($sql);

//loop through to display results
while ($row = mysql_fetch_array($result)) {
   var_dump($row);
   echo br /br /;
}

P.s. Please reply to the list also :)

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



Re: [PHP] is_dir reading a folder with a space in the name?

2007-02-08 Thread T.Lensselink
:) You are right about the robustness part..

The directory i made by hand. So no need to create and remove it with
code. And using a test suit to show this simple example seems like a bit
of overkill to me. Just wanted to show directories with spaces
function properly when used with is_dir().


Roman Neuhauser wrote:
 # [EMAIL PROTECTED] / 2007-02-08 16:14:57 +0100:
 Like Roman said. I also don't see this behaviour.
 Although my test is a lot more simple :)
  
 It's not complete:
 
 ?php
 $dir = test dir;
 
 mkdir($dir);
  
 if (is_dir($dir)) {
 echo It's a dir :);
 }
 
 rmdir($dir);
 
 
 But even with those two calls, your and my tests aren't on the same
 level of robustness.  Sure, the OP didn't ask for tests of *any*
 robustness, I'm just saying that the increased verbosity gives the test
 properties your test does not have.
 



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



Re: [PHP] Max File Upload Size

2006-11-12 Thread T.Lensselink
Have a look on this page for all the ini settings..
It will also say if it is changeable

http://nl2.php.net/manual/en/ini.php#ini.list


Tom Chubb wrote:
 This is a really stupid question, but I've not been able to find an
 answer for it.
 I have always thought that your max upload size is limited to the
 value in the php.ini file.
 However I recently changed a site to a new server which had problems
 with memory on one of the image resizing scripts.
 I managed to work around it by inserting one line at the start of the
 problem script:
 
 ini_set(memory_limit,32M);
 
 Can a similar thing be done with the upload_max_filesize?
 
 Assuming that it can't, what is a good workaround? Using FTP within a
 script?
 This is for uploading an audio file, typically 4MB.
 Thanks in advance,
 
 Tom
 

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



Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
 Hi all, maybe slightly off list but I AM using php and Sablotron to
 generate
 xslt.

 I have a live poker games feed that takes the following format:

 ?xml version=1.0 encoding=utf-8?xmlfeed
 tournament
 tid10035522/tid
 nameTexas Holdem/name
 gameTexas Holdem Poker/game
 buyin5/buyin
 entryfee0.5/entryfee
 currencyUSD/currency
 stateRunning/state
 players110/players
 blindstructureNormal NL 1/blindstructure
 typeRegular/type
 limitNo Limit/limit
 starttime2006-04-24T07:00:00/starttime
 /tournament

 tournament
 tid10035126/tid
 nameTexas Holdem/name
 gameTexas Holdem Poker/game
 buyin20/buyin
 entryfee2/entryfee
 currencyUSD/currency
 stateRunning/state
 players79/players
 blindstructureNormal NL 1/blindstructure
 typeRegular/type
 limitNo Limit/limit
 starttime2006-04-24T08:00:00/starttime
 /tournament

 etc etc

 and all I want to do is output the first THREE tournament elements and no
 more. I realise XSLT has no general repetition mechanism but does anyone
 know how I would do this? Thanks in advance, and to my Dutch friend, I
 meant
 it when I said lovely baby.

 --
 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css)

 look out for project karma, our new venture, coming soon!


Not tested but have no resources for it right now...

xsl:for-each select=tournament/[position()  4]
xsl:value-of select=tid/
/xsl:for-each

or:

xsl:for-each select=tournament/
xsl:if test=position()  4
xsl:value-of select=tid/
/xsl:if
/xsl:for-each

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



Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
 And I used this:

 xsl:template name=results

 xsl:for-each select=tournament
 xsl:if test=position()  4
 table id=top3table cellspacing=0
 tr class=oddthTid/thtdxsl:value-of
 select=tid //td/tr
 trthType/thtdxsl:value-of select=name
 //td/tr
 tr class=oddthGame/thtdxsl:value-of
 select=game //td/tr
 trthBuy-In/thtd$xsl:value-of select=buyin
 //td/tr
 tr class=oddthStatus/thtdxsl:value-of
 select=state //td/tr
 trthPlayers/thtdxsl:value-of select=players
 //td/tr
 tr class=oddthDate / Time/thtdxsl:value-of
 select=starttime //td/tr
 /table
 hr /
 /xsl:if
 /xsl:for-each
 /xsl:template

 On 03/05/06, Dave Goodchild [EMAIL PROTECTED] wrote:

 Thanks for our help. Tried both methods and I get this:

 *Warning*: Sablotron error on line 31: XML parser error 4: not
 well-formed
 (invalid token) in
 */home/stevemas/public_html/dg/xslt/xslt_processor.php*on line
 *14*


 On 03/05/06, T.Lensselink [EMAIL PROTECTED] wrote:
 
   Hi all, maybe slightly off list but I AM using php and Sablotron to
   generate
   xslt.
  
   I have a live poker games feed that takes the following format:
  
   ?xml version= 1.0 encoding=utf-8?xmlfeed
   tournament
   tid10035522/tid
   nameTexas Holdem/name
   gameTexas Holdem Poker/game
   buyin5/buyin
   entryfee0.5/entryfee
   currencyUSD/currency
   stateRunning/state
   players110/players
   blindstructureNormal NL 1/blindstructure
   typeRegular/type
   limitNo Limit/limit
   starttime2006-04-24T07:00:00/starttime
   /tournament
  
   tournament
   tid10035126/tid
   nameTexas Holdem/name
   gameTexas Holdem Poker/game
   buyin20/buyin
   entryfee2/entryfee
   currencyUSD/currency
   stateRunning/state
   players79/players
   blindstructureNormal NL 1/blindstructure
   typeRegular/type
   limitNo Limit/limit
   starttime2006-04-24T08:00:00/starttime
   /tournament
  
   etc etc
  
   and all I want to do is output the first THREE tournament elements
 and
  no
   more. I realise XSLT has no general repetition mechanism but does
  anyone
   know how I would do this? Thanks in advance, and to my Dutch friend,
 I
 
   meant
   it when I said lovely baby.
  
   --
   http://www.web-buddha.co.uk
  
   dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml,
  css)
  
   look out for project karma, our new venture, coming soon!
  
 
  Not tested but have no resources for it right now...
 
  xsl:for-each select=tournament/[position()  4]
  xsl:value-of select=tid/
  /xsl:for-each
 
  or:
 
  xsl:for-each select=tournament/
  xsl:if test=position()  4
  xsl:value-of select=tid/
  /xsl:if
  /xsl:for-each
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 


 --

 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css)

 look out for project karma, our new venture, coming soon!




 --
 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css)

 look out for project karma, our new venture, coming soon!



Sorry for the bad code... Made a small test scenario..

php
?php
$xml = '?xml version=1.0 encoding=utf-8?
xmlfeed
tournament
tid10035522/tid
nameTexas Holdem/name
gameTexas Holdem Poker/game
buyin5/buyin
entryfee0.5/entryfee
currencyUSD/currency
stateRunning/state
players110/players
blindstructureNormal NL 1/blindstructure
typeRegular/type
limitNo Limit/limit
starttime2006-04-24T07:00:00/starttime
/tournament

tournament
tid10035126/tid
nameTexas Holdem/name
gameTexas Holdem Poker/game
buyin20/buyin
entryfee2/entryfee
currencyUSD/currency
stateRunning/state
players79/players
blindstructureNormal NL 1/blindstructure
typeRegular/type
limitNo Limit/limit
starttime2006-04-24T08:00:00/starttime
/tournament
/xmlfeed';

$domXmlObj  = domxml_open_mem($xml);
$domXsltObj = domxml_xslt_stylesheet_file('./test.xsl');
$domTranObj = $domXsltObj-process($domXmlObj);

echo $domXsltObj-result_dump_mem($domTranObj);
?

xsl:
?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/

xsl:for-each select=xmlfeed/tournament
  xsl:if test=not(position() = 4)
table id=top3table cellspacing=0
tr class=oddthTid/thtdxsl:value-of
select=tid //td/tr
trthType/thtdxsl:value-of select=name
//td/tr
tr class=oddthGame/thtdxsl:value-of
select=game //td/tr
trthBuy-In/thtd$xsl:value-of select=buyin
//td/tr

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
 Thank you very much for your generous and prompt help. The stylesheet I am
 now using looks like this:

 ?xml version=1.0 encoding=ISO-8859-1?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:template match=/xmlfeed

 html
 head
 titleResults of XSL transformation/title
 style type=text/css media=Screen
 @import url(games_output.css);
 /style
 script type=text/javascript src=master.js/script
 script type=text/javascript src=scroller.js/script
 /head
 body
 div id=top3
 xsl:call-template name=results/
 /div
 /body
 /html
 /xsl:template

 xsl:template name=results
  xsl:for-each select=tournament
  xsl:if test=not(position() = 4)
   table id=top3table cellspacing=0
 tr class=oddthTid/thtdxsl:value-of select=tid
 //td/tr
trthType/thtdxsl:value-of
 select=name//td/tr
tr class=oddthGame/thtdxsl:value-of
 select=game //td/tr
trthBuy-In/thtd$xsl:value-of
 select=buyin//td/tr
tr
 class=oddthStatus/thtdxsl:value-ofselect=state //td/tr
trthPlayers/thtdxsl:value-of
 select=players//td/tr
tr class=oddthDate / Time/thtdxsl:value-of
 select=starttime //td/tr
/table
hr /
  /xsl:if
  /xsl:for-each
 /xsl:template
 /xsl:stylesheet

 ...but I get this:

 *Warning*: Sablotron error on line 31: XML parser error 4: not well-formed
 (invalid token) in
 */home/stevemas/public_html/dg/xslt/xslt_processor.php*on line
 *14

 ...I have included your positioning syntax and am using this method, could
 you point out where I am going wrong (as I use the Sablotron processor I
 am
 not using those DOM functions). Many thanks.
 *
 On 03/05/06, T.Lensselink [EMAIL PROTECTED] wrote:

  And I used this:
 
  xsl:template name=results
 
  xsl:for-each select=tournament
  xsl:if test=position()  4
  table id=top3table cellspacing=0
  tr class=oddthTid/thtdxsl:value-of
  select=tid //td/tr
  trthType/thtdxsl:value-of select=name
  //td/tr
  tr class=oddthGame/thtdxsl:value-of
  select=game //td/tr
  trthBuy-In/thtd$xsl:value-of
 select=buyin
  //td/tr
  tr class=oddthStatus/thtdxsl:value-of
  select=state //td/tr
  trthPlayers/thtdxsl:value-of
 select=players
  //td/tr
  tr class=oddthDate /
 Time/thtdxsl:value-of
  select=starttime //td/tr
  /table
  hr /
  /xsl:if
  /xsl:for-each
  /xsl:template
 
  On 03/05/06, Dave Goodchild [EMAIL PROTECTED] wrote:
 
  Thanks for our help. Tried both methods and I get this:
 
  *Warning*: Sablotron error on line 31: XML parser error 4: not
  well-formed
  (invalid token) in
  */home/stevemas/public_html/dg/xslt/xslt_processor.php*on line
  *14*
 
 
  On 03/05/06, T.Lensselink [EMAIL PROTECTED] wrote:
  
Hi all, maybe slightly off list but I AM using php and Sablotron
 to
generate
xslt.
   
I have a live poker games feed that takes the following format:
   
?xml version= 1.0 encoding=utf-8?xmlfeed
tournament
tid10035522/tid
nameTexas Holdem/name
gameTexas Holdem Poker/game
buyin5/buyin
entryfee0.5/entryfee
currencyUSD/currency
stateRunning/state
players110/players
blindstructureNormal NL 1/blindstructure
typeRegular/type
limitNo Limit/limit
starttime2006-04-24T07:00:00/starttime
/tournament
   
tournament
tid10035126/tid
nameTexas Holdem/name
gameTexas Holdem Poker/game
buyin20/buyin
entryfee2/entryfee
currencyUSD/currency
stateRunning/state
players79/players
blindstructureNormal NL 1/blindstructure
typeRegular/type
limitNo Limit/limit
starttime2006-04-24T08:00:00/starttime
/tournament
   
etc etc
   
and all I want to do is output the first THREE tournament
 elements
  and
   no
more. I realise XSLT has no general repetition mechanism but does
   anyone
know how I would do this? Thanks in advance, and to my Dutch
 friend,
  I
  
meant
it when I said lovely baby.
   
--
http://www.web-buddha.co.uk
   
dynamic web programming from Reigate, Surrey UK (php, mysql,
 xhtml,
   css)
   
look out for project karma, our new venture, coming soon!
   
  
   Not tested but have no resources for it right now...
  
   xsl:for-each select=tournament/[position()  4]
   xsl:value-of select=tid/
   /xsl:for-each
  
   or:
  
   xsl:for-each select=tournament/
   xsl:if test=position()  4
   xsl:value-of select=tid

Re: [PHP] Searching and getting values out of array maps

2006-05-03 Thread T.Lensselink
 Hi all,
 I'm kind of new with PHP. I work alot with another language called Lasso,
 reminds kind of PHP but not the same.
 I trying to search after a desired value within an array map (think you
 call
 it like that in PHP) and to get the value out as well.

 Is this possible in any way? Like to show you how it works in Lasso while
 I'm talking about.

 Could look like this:

 ?LassoScript

 var: 'colors'=(map: 'red'='#ff',
 'green'='#00ff00','blue'='#ff');
 output: $clors-(find: 'blue');

 ?

 The result you get is #ff.

 Can you do something like this with PHP. Would help me alot if anyone
 could
 help me out a bit.

 Thanks in advance // Jonas

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




$colors = array(
  'red' = '#ff',
  'green' = 'X00ff00',
  'blue' = '#ff'
   );
echo $colors['blue'];

// or:

$val = 'blue';

if (array_key_exists($val, $colors)) {
   echo $colors[$val];
}

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



Re: [PHP] Re: php mysql problem

2006-05-02 Thread T.Lensselink
 This is my database now...I will use the item_id for the order but what if
 I
 want to change item_id 3 to item id 1? How can I push all the items down
 one
 place? How can I delete any gaps when items are deleted.


 CREATE TABLE `board_papers` (
   `id` int(4) NOT NULL auto_increment,
   `doc_date` varchar(10) NOT NULL default '-00-00',
   `article_type` enum('agenda','minutes','paper') NOT NULL default
 'agenda',
   `fileName` varchar(50) NOT NULL default '',
   `fileSize` int(4) NOT NULL default '0',
   `fileType` varchar(50) NOT NULL default '',
   `content` blob NOT NULL,
   `item_id` int(10) default NULL,
   PRIMARY KEY  (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;





 Ross [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

 Just say I have a db

 CREATE TABLE `mytable` (
  `id` int(4) NOT NULL auto_increment,
 `fileName` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;


 when I add items they go id 1,2,3 etc. Whn I delete them gaps appear. 1,
 3, 7. I need to know

 (a) when items are removed how can I sort the database to all the gaps
 are
 take out 1, 3, 7 becomes 1,2,3

 (b) allow the ids to be changed so the items can change position in the
 list. If I change id 3 to id 1 then everything else shifts down.

 If anyone has seen the amazon dvd rental list where you can swap dvd to
 the top of the list and delete this is what I am trying to achive with
 php/mysql.

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



Really can't imagine why you wanna do something like this. What's the use
in reordering a database. It's just a database. you can sort it in any way
you like.. gaps or not.. Sounds to me the sorting is only done on screen.

This is pretty easy done with PHP not in the database itself.

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



Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
A blade? come on :)

Seems to me it's just an error in : /home/friend/public_html/process1.php
line 158 that mangles up your email output. Try and fix this undefined
constant.

 Hi all - I am attempting to solve some maddening behaviour that has me
 totally stumped and before I take a blade to my throat I thought I would
 pick the brains of the group/hive/gang.

 I am working on a viral marketing application that uses multipart emails
 to
 notify entrants of their progress in the 'game'. I have a demo version
 which
 works fine, and the current rebranded version was also fine until the
 client
 asked for some changes then POW!

 I will try and define the issue as simply as I can. I am passing 11
 arguments to a function called sendSantaMail (don't ask) and as a sanity
 check I have called mail() to let me know the values just before they are
 passed in to the function. I get this result:

 Values to be passed to sendSantaMail:

 Friend Name: Treyt
 Friend Email: [EMAIL PROTECTED]
 Sender Name: Bull Sykes
 Sender Email: [EMAIL PROTECTED]
 Prize ID: 1
 Nominator ID: 2555004452133557e4d
 Nominee ID: 851355445213355cc6f
 Chain ID: CHAIN824452133561a8d

 - this is all good and correct. I also call mail from the receiving
 function
 to check the actual values received by the function and I get this:

 Values sent into sendSantaMail function:

 Friend Name: [EMAIL PROTECTED]
 Friend Email: Look what you may have won!
 Sender Name: 8 Use of undefined constant prize - assumed 'prize'
 Sender Email: 158
 Sender Email: /home/friend/public_html/process1.php
 [EMAIL PROTECTED]Prize: 1
 Subject: 158
 Nominator ID: 33238744520f5235b85
 Nominee ID: 96658244520f524bb19
 Chain ID: CHAIN84644520f525a56f

 What is happening? I have checked the order of values being passed in and
 the function prototype and they match in the correct order, there are no
 default values. I have been trying to solve this for two days and am
 particularly concerned that somewhere along the way the sender email value
 becomes the script name.

 Any ideas on this black Friday?







 --
 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css)

 look out for project karma, our new venture, coming soon!


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



Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Well there is an undefined constant prize somewhere.. well it's just a
notice but it really looks like the problem.. Try setting
error_reporting(0) and see if it runs...

 process1.php only has 64 lines.

 On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:

 A blade? come on :)

 Seems to me it's just an error in :
 /home/friend/public_html/process1.php
 line 158 that mangles up your email output. Try and fix this undefined
 constant.

  Hi all - I am attempting to solve some maddening behaviour that has me
  totally stumped and before I take a blade to my throat I thought I
 would
  pick the brains of the group/hive/gang.
 
  I am working on a viral marketing application that uses multipart
 emails
  to
  notify entrants of their progress in the 'game'. I have a demo version
  which
  works fine, and the current rebranded version was also fine until the
  client
  asked for some changes then POW!
 
  I will try and define the issue as simply as I can. I am passing 11
  arguments to a function called sendSantaMail (don't ask) and as a
 sanity
  check I have called mail() to let me know the values just before they
 are
  passed in to the function. I get this result:
 
  Values to be passed to sendSantaMail:
 
  Friend Name: Treyt
  Friend Email: [EMAIL PROTECTED]
  Sender Name: Bull Sykes
  Sender Email: [EMAIL PROTECTED]
  Prize ID: 1
  Nominator ID: 2555004452133557e4d
  Nominee ID: 851355445213355cc6f
  Chain ID: CHAIN824452133561a8d
 
  - this is all good and correct. I also call mail from the receiving
  function
  to check the actual values received by the function and I get this:
 
  Values sent into sendSantaMail function:
 
  Friend Name: [EMAIL PROTECTED]
  Friend Email: Look what you may have won!
  Sender Name: 8 Use of undefined constant prize - assumed 'prize'
  Sender Email: 158
  Sender Email: /home/friend/public_html/process1.php
  [EMAIL PROTECTED]Prize: 1
  Subject: 158
  Nominator ID: 33238744520f5235b85
  Nominee ID: 96658244520f524bb19
  Chain ID: CHAIN84644520f525a56f
 
  What is happening? I have checked the order of values being passed in
 and
  the function prototype and they match in the correct order, there are
 no
  default values. I have been trying to solve this for two days and am
  particularly concerned that somewhere along the way the sender email
 value
  becomes the script name.
 
  Any ideas on this black Friday?
 
 
 
 
 
 
 
  --
  http://www.web-buddha.co.uk
 
  dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml,
 css)
 
  look out for project karma, our new venture, coming soon!
 





 --
 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css)

 look out for project karma, our new venture, coming soon!


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



Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Hey Dave,

Besides from example two being the correct way to call array elements. I
think it has something todo with error reporting. It's the only thing that
comes to mind right now. Maybe you demo server doesn't echo notices...
Maybe i'm wrong .. it's friday and my brain don't work that good :)

p.s.
plz reply to the list :)

 Hmmm...

 In the demo version the script accesses the $_GET array - an example
 value:

 $data[email]

 ..which works fine in the demo app. If I quote all the values thus in the
 new version:

 $data['email']

 ..the arguments appear in the correct order. I understand the second
 format
 is better to disambiguate constants but the former format works fine for
 the
 demo version. Any reason for the discrepancy?

 On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:

 Well there is an undefined constant prize somewhere.. well it's just a
 notice but it really looks like the problem.. Try setting
 error_reporting(0) and see if it runs...

  process1.php only has 64 lines.
 
  On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:
 
  A blade? come on :)
 
  Seems to me it's just an error in :
  /home/friend/public_html/process1.php
  line 158 that mangles up your email output. Try and fix this
 undefined
  constant.
 
   Hi all - I am attempting to solve some maddening behaviour that has
 me
   totally stumped and before I take a blade to my throat I thought I
  would
   pick the brains of the group/hive/gang.
  
   I am working on a viral marketing application that uses multipart
  emails
   to
   notify entrants of their progress in the 'game'. I have a demo
 version
   which
   works fine, and the current rebranded version was also fine until
 the
   client
   asked for some changes then POW!
  
   I will try and define the issue as simply as I can. I am passing 11
   arguments to a function called sendSantaMail (don't ask) and as a
  sanity
   check I have called mail() to let me know the values just before
 they
  are
   passed in to the function. I get this result:
  
   Values to be passed to sendSantaMail:
  
   Friend Name: Treyt
   Friend Email: [EMAIL PROTECTED]
   Sender Name: Bull Sykes
   Sender Email: [EMAIL PROTECTED]
   Prize ID: 1
   Nominator ID: 2555004452133557e4d
   Nominee ID: 851355445213355cc6f
   Chain ID: CHAIN824452133561a8d
  
   - this is all good and correct. I also call mail from the receiving
   function
   to check the actual values received by the function and I get this:
  
   Values sent into sendSantaMail function:
  
   Friend Name: [EMAIL PROTECTED]
   Friend Email: Look what you may have won!
   Sender Name: 8 Use of undefined constant prize - assumed 'prize'
   Sender Email: 158
   Sender Email: /home/friend/public_html/process1.php
   [EMAIL PROTECTED]Prize: 1
   Subject: 158
   Nominator ID: 33238744520f5235b85
   Nominee ID: 96658244520f524bb19
   Chain ID: CHAIN84644520f525a56f
  
   What is happening? I have checked the order of values being passed
 in
  and
   the function prototype and they match in the correct order, there
 are
  no
   default values. I have been trying to solve this for two days and
 am
   particularly concerned that somewhere along the way the sender
 email
  value
   becomes the script name.
  
   Any ideas on this black Friday?
  
  
  
  
  
  
  
   --
   http://www.web-buddha.co.uk
  
   dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml,
  css)
  
   look out for project karma, our new venture, coming soon!
  
 
 
 
 
 
  --
  http://www.web-buddha.co.uk
 
  dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml,
 css)
 
  look out for project karma, our new venture, coming soon!
 

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




 --
 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css)

 look out for project karma, our new venture, coming soon!


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



Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Maybe show some code... Think some error inside a class / function causes
that no output is send...

 Thanks - now the parameters reach the function intact but the mailer still
 does not work. Basically, the form is a self-reloader. If the form has
 been
 submitted and the data validated (including emails sent) it displays a
 thank
 you message. Otherwise it shows the starter form.

 All that happens when I submit is a white page - no errors (display_errors
 is on and error reporting set to the default level) and no html. Nada.
 When
 I try and view source I am given the browser re-post warning.

 On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:

 Hey Dave,

 Besides from example two being the correct way to call array elements. I
 think it has something todo with error reporting. It's the only thing
 that
 comes to mind right now. Maybe you demo server doesn't echo notices...
 Maybe i'm wrong .. it's friday and my brain don't work that good :)

 p.s.
 plz reply to the list :)

  Hmmm...
 
  In the demo version the script accesses the $_GET array - an example
  value:
 
  $data[email]
 
  ..which works fine in the demo app. If I quote all the values thus in
 the
  new version:
 
  $data['email']
 
  ..the arguments appear in the correct order. I understand the second
  format
  is better to disambiguate constants but the former format works fine
 for
  the
  demo version. Any reason for the discrepancy?
 
  On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:
 
  Well there is an undefined constant prize somewhere.. well it's just
 a
  notice but it really looks like the problem.. Try setting
  error_reporting(0) and see if it runs...
 
   process1.php only has 64 lines.
  
   On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:
  
   A blade? come on :)
  
   Seems to me it's just an error in :
   /home/friend/public_html/process1.php
   line 158 that mangles up your email output. Try and fix this
  undefined
   constant.
  
Hi all - I am attempting to solve some maddening behaviour that
 has
  me
totally stumped and before I take a blade to my throat I thought
 I
   would
pick the brains of the group/hive/gang.
   
I am working on a viral marketing application that uses
 multipart
   emails
to
notify entrants of their progress in the 'game'. I have a demo
  version
which
works fine, and the current rebranded version was also fine
 until
  the
client
asked for some changes then POW!
   
I will try and define the issue as simply as I can. I am passing
 11
arguments to a function called sendSantaMail (don't ask) and as
 a
   sanity
check I have called mail() to let me know the values just before
  they
   are
passed in to the function. I get this result:
   
Values to be passed to sendSantaMail:
   
Friend Name: Treyt
Friend Email: [EMAIL PROTECTED]
Sender Name: Bull Sykes
Sender Email: [EMAIL PROTECTED]
Prize ID: 1
Nominator ID: 2555004452133557e4d
Nominee ID: 851355445213355cc6f
Chain ID: CHAIN824452133561a8d
   
- this is all good and correct. I also call mail from the
 receiving
function
to check the actual values received by the function and I get
 this:
   
Values sent into sendSantaMail function:
   
Friend Name: [EMAIL PROTECTED]
Friend Email: Look what you may have won!
Sender Name: 8 Use of undefined constant prize - assumed 'prize'
Sender Email: 158
Sender Email: /home/friend/public_html/process1.php
[EMAIL PROTECTED]Prize: 1
Subject: 158
Nominator ID: 33238744520f5235b85
Nominee ID: 96658244520f524bb19
Chain ID: CHAIN84644520f525a56f
   
What is happening? I have checked the order of values being
 passed
  in
   and
the function prototype and they match in the correct order,
 there
  are
   no
default values. I have been trying to solve this for two days
 and
  am
particularly concerned that somewhere along the way the sender
  email
   value
becomes the script name.
   
Any ideas on this black Friday?
   
   
   
   
   
   
   
--
http://www.web-buddha.co.uk
   
dynamic web programming from Reigate, Surrey UK (php, mysql,
 xhtml,
   css)
   
look out for project karma, our new venture, coming soon!
   
  
  
  
  
  
   --
   http://www.web-buddha.co.uk
  
   dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml,
  css)
  
   look out for project karma, our new venture, coming soon!
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
  --
  http://www.web-buddha.co.uk
 
  dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml,
 css)
 
  look out for project karma, our new venture, coming soon!
 

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




 --
 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css

Re: [PHP] Help!

2006-04-28 Thread T.Lensselink
Without code it is hard to give an indication... Try and match php.ini's..
Anyway i go home now. Maybe in the evening have some time to think.. Or
maybe some other bright mind on the list has an idea..

goodluck,

Thijs

 I would do but there are 5000+ lines and no indication of where the error
 is
 occurring. I have just copied the demo version into the same dir and it
 works fine - and that version calls the same classes (includes).

 On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:

 Maybe show some code... Think some error inside a class / function
 causes
 that no output is send...

  Thanks - now the parameters reach the function intact but the mailer
 still
  does not work. Basically, the form is a self-reloader. If the form has
  been
  submitted and the data validated (including emails sent) it displays a
  thank
  you message. Otherwise it shows the starter form.
 
  All that happens when I submit is a white page - no errors
 (display_errors
  is on and error reporting set to the default level) and no html. Nada.
  When
  I try and view source I am given the browser re-post warning.
 
  On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:
 
  Hey Dave,
 
  Besides from example two being the correct way to call array
 elements.
 I
  think it has something todo with error reporting. It's the only thing
  that
  comes to mind right now. Maybe you demo server doesn't echo
 notices...
  Maybe i'm wrong .. it's friday and my brain don't work that good :)
 
  p.s.
  plz reply to the list :)
 
   Hmmm...
  
   In the demo version the script accesses the $_GET array - an
 example
   value:
  
   $data[email]
  
   ..which works fine in the demo app. If I quote all the values thus
 in
  the
   new version:
  
   $data['email']
  
   ..the arguments appear in the correct order. I understand the
 second
   format
   is better to disambiguate constants but the former format works
 fine
  for
   the
   demo version. Any reason for the discrepancy?
  
   On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:
  
   Well there is an undefined constant prize somewhere.. well it's
 just
  a
   notice but it really looks like the problem.. Try setting
   error_reporting(0) and see if it runs...
  
process1.php only has 64 lines.
   
On 28/04/06, T.Lensselink [EMAIL PROTECTED] wrote:
   
A blade? come on :)
   
Seems to me it's just an error in :
/home/friend/public_html/process1.php
line 158 that mangles up your email output. Try and fix this
   undefined
constant.
   
 Hi all - I am attempting to solve some maddening behaviour
 that
  has
   me
 totally stumped and before I take a blade to my throat I
 thought
  I
would
 pick the brains of the group/hive/gang.

 I am working on a viral marketing application that uses
  multipart
emails
 to
 notify entrants of their progress in the 'game'. I have a
 demo
   version
 which
 works fine, and the current rebranded version was also fine
  until
   the
 client
 asked for some changes then POW!

 I will try and define the issue as simply as I can. I am
 passing
  11
 arguments to a function called sendSantaMail (don't ask) and
 as
  a
sanity
 check I have called mail() to let me know the values just
 before
   they
are
 passed in to the function. I get this result:

 Values to be passed to sendSantaMail:

 Friend Name: Treyt
 Friend Email: [EMAIL PROTECTED]
 Sender Name: Bull Sykes
 Sender Email: [EMAIL PROTECTED]
 Prize ID: 1
 Nominator ID: 2555004452133557e4d
 Nominee ID: 851355445213355cc6f
 Chain ID: CHAIN824452133561a8d

 - this is all good and correct. I also call mail from the
  receiving
 function
 to check the actual values received by the function and I get
  this:

 Values sent into sendSantaMail function:

 Friend Name: [EMAIL PROTECTED]
 Friend Email: Look what you may have won!
 Sender Name: 8 Use of undefined constant prize - assumed
 'prize'
 Sender Email: 158
 Sender Email: /home/friend/public_html/process1.php
 [EMAIL PROTECTED]Prize: 1
 Subject: 158
 Nominator ID: 33238744520f5235b85
 Nominee ID: 96658244520f524bb19
 Chain ID: CHAIN84644520f525a56f

 What is happening? I have checked the order of values being
  passed
   in
and
 the function prototype and they match in the correct order,
  there
   are
no
 default values. I have been trying to solve this for two days
  and
   am
 particularly concerned that somewhere along the way the
 sender
   email
value
 becomes the script name.

 Any ideas on this black Friday?







 --
 http://www.web-buddha.co.uk

 dynamic web programming from Reigate, Surrey UK (php, mysql,
  xhtml,
css)

 look out for project karma, our new venture, coming soon!

   
   
   
   
   
--
http://www.web

Re: [PHP] list noise [WAS: How to find img tag and get src of image]

2006-04-25 Thread T.Lensselink
Don't know about the postgre list. But answers to such questions can
easilly be found on the web. Just use google or RTFM. I answered because i
like to help. Hope it was helpfull :) But i can also understand the
laughter/frsustration. Don't take it to personal.

They just encourage you to RTFM. Best practise and best way to learn. Let
them help with real problems and not something you can easily find
yourself.
This list is great!

grt,
Thijs



 On Mon April 24 2006 9:54 pm, Paul Novitski wrote:
 Rushed, grumpy defender of the underdog,

 Paul

For those of you who are making a joke out of my question, glad to have
given you all a laugh.  I want to thank everyone else for being so nice
 and
helpful to beginners.

Lisa


 I am not an active participant in this list. But I learn a lot just
 reading
 the messages. I also read messages in pgsql-general@postgresql.org .
 There,
 even stupid, unresearched questions get serious answers with just gentle
 nudges.

 Just follow this thread. The question was:

 Quote:
 Subject: to know

 Message:
 hello guys,
 what do u think about the near future of postgre?
 what is the latest version of postgre? and how it differ from the oldone?
 who is the leading person on postgre?
 Unquote

 http://archives.postgresql.org/pgsql-general/2006-04/msg01018.php

 Have a look at the replies. A study in good manners.

 Best regards,


 Ma Sivakumar


 --
 Integrated Management Tools for leather industry
 --
 http://www.leatherlink.net

 Ma Siva Kumar,
 BSG LeatherLink (P) Ltd,
 IT Solutions for Leather Industry,
 Chennai - 600087
 Tel : +91 44 55191757

 --
 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



Re: [PHP] PHP Standard style of writing your code

2006-04-25 Thread T.Lensselink
 Hi,
 I see everyone has its own way of writing the code. If there is 10
 programmers working on same thing, it would be good if they would have
 same style of writing the PHP code.

 So, my question is: Is there anything what would define standard style
 of writing PHP code?

 Thanks,
 Martin

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



Read the PEAR coding standards : http://pear.php.net/manual/en/standards.php
Think coding style is personal for everybody.

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



Re: [PHP] How to find img tag and get src of image

2006-04-24 Thread T.Lensselink
Use preg_match_all

Think this will work. But i'm for sure no regular expresion guru :)

preg_match_all(/src=(.*)\040/i, $Text, $Result);
print_r($Result);

Gr,
Thijs

 Hi everybody!
 I want to get src of image  form a $text, I have a below text

 $Text = table border=1 cellpadding=3% cellspacing=3% width=100%
trtd width=20%
  img align=middle border=0 id=userupload/78/Autumn.jpg
 src=userupload/78/Autumn.jpg onClick=javascript:ViewImage(this.id);
 width=100 height=100 
 /td
td/td/tr   /table
   /td
   td class=frame2_middle_right/td
  /tr
  tr
   td class=frame2_bottom_left/td
  td class=frame2_bottom_center
  /td

 --
 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



Re: [PHP] Error when compiling PHP from source on Mac OS X 10.4 server

2006-04-05 Thread T.Lensselink
Maybe try to configure with the direct path to the apache source files...

--with-apxs=/path/to/apache/bin/apxs

Frank Arensmeier said:
 Hello.

 I try to compile PHP 4.4.2 from source on Mac OS X 10.4 server but I
 am getting error messages. The the install configuration runs just
 fine using the following options:

 ./configure
 --prefix=/usr/local/php
 --with-config-file-path=/usr/local/php/lib
 --with-apxs --with-iconv=/usr/local/php
 --with-zlib=/usr
 --with-mysql
 --enable-cgi
 --with-gd
 --with-png-dir=/usr/local/php
 --with-freetype-dir=/usr/local/php
 --with-t1lib=/usr/local/php
 --with-jpeg-dir=/sw
 --with-tiff-dir=/usr/local/php
 --with-curl=/usr/local/php
 --with-mcrypt=/usr/local/php
 --with-mhash=/usr/local/php
 --with-expat-dir=/usr/local/php
 --with-gettext=/usr/local/php
 --with-dom=/usr/local/php
 --with-dom-xslt=/usr/local/php
 --with-dom-exslt=/usr/local/php
 --with-xslt-sablot=/usr/local/php
 --enable-xslt
 --with-ldap
 --with-xmlrpc
 --with-xml
 --with-iodbc
 --enable-sockets
 --enable-trans-sid
 --enable-exif
 --enable-wddx
 --enable-ftp
 --enable-mbstring
 --with-mime-magic

 I might also add that the current PHP installed on the server is the
 one from entropy.ch. This install would be absolutely perfect for my
 needs, except the fact that PDFlib is compiled directly into PHP. I
 do not want pdfLIB compiled into PHP, because I like to update PDFlib
 to 6.0.3.

 The make command fires always an error saying that In file included
 from /path/to/php/source/sapi/apache/sapi_apache.c:24: followed by
 ten or more lines saying ... error: httpd.h: No such file or
 directory and last line: make: [sapi/apache/sapi_apache.lo) Error 1.

 I also tried a very basic install of PHP:
 ./configure --with-apxs

 but the error remains. Looking into the file sapi_apache.lo I saw
 that it wants some source files from the Apache distribution, right?
 I tried to just copy those files into the same directory as
 sapi_apache.lo is in but then I get other error messages.

 I am not that familiar with compiling from source so please be
 patient with me.

 Google was not my friend...

 What can I do?

 Regards,
 frank

 --
 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



Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread T.Lensselink
[EMAIL PROTECTED] wrote:
 Hi,
 I'm working on the script that has to read csv file (51 column an a little
 bit over 3000 rows) with products and store the info in DB.
 Script works fine while I tested on csv files up to 200 records.
 And, when I tried to upload REAL data I got this.
 PHP: Fatal error: Allowed memory size of 8388608 bytes exhausted ...

 On google I found as a solution to put
 ini_set(memory_limit,12M);
 on the top of the script, except allowed memory size wasn't 8m then 12m
 bytes.
 I tried with 16M and it worked :)

 My question is how far I can go with increasing? Where is the limit?
 Why is not 24M as default in php.ini?

 Thanks!

 -afan

   
I think 16m should be enough in most cases..

Would like to see the script. Try to avoid reading large files in once
file() file_get_contents0.
Use fopen en fgets. I work with txt files over 40 m and hardly get 1 m
of memory usage.

You could also try to run the program with the unix nice command. Just
don't think
increasing is a solution. What if you get a 300 m csv file? Well just my
2 cents.

Thijs

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



Re: [PHP] PEAR::SOAP on Windows not working

2006-03-20 Thread T.Lensselink
Peter Lauri said:
 Hi,

 I have been searching for directions of how to get PEAR::SOAP to work on
 my
 Windows Machine, but without success. I have downloaded the package and
 unzipped it to a subfolder to my main web folder.

 This is my error message:

 --
 Warning: main(HTTP/Request.php): failed to open stream: No such file or
 directory in C:\Documents and Settings\Peter Lauri\My Documents\DWS
 Asia\webserver\xl\SOAP\WSDL.php on line 27

 Fatal error: main(): Failed opening required 'HTTP/Request.php'
 (include_path='.;C:\php4\PEAR\pear') in C:\Documents and Settings\Peter
 Lauri\My Documents\DWS Asia\webserver\xl\SOAP\WSDL.php on line 27
 --

 However, when I make a search for the file Request.php in my file system,
 I
 can not find it.

 Have I missed any step in the installation procedure? Maybe some other
 package that I need to install before?

 Best regards,
 Peter Lauri

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



For PEAR::SOAP to function properly you have to install some more PEAR
packages. PEAR::SOAP is dependend on the following packages as i remember.

HTTP
HTTP_Request
Net_Socket
Net_URL

And needs some of the following also:

Mail_Mime
Net_DIME

Hope it helps..

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



[PHP] SOAP PEAR/NuSOAP

2006-03-20 Thread T.Lensselink
I'm working on a small webservice. When started this project i used the
NuSOAP library. And it does the job perfectly. But last weekend i was
playing around with the PEAR::SOAP package. This seems to be a lot more
stable. And for sure a llot faster.

Only in NuSOAP i could do the following to get to a secured page.

$client-setCredentials(USERNAME, PASSWORD, AUTHTYPE);

Now i wanna do the same in PEAR::SOAP but can't figure out a way to do it.
Main is i just want Basic HTTP authentication. Maybe somebody knows?


grtz,
Thijs

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



Re: [PHP] SOAP PEAR/NuSOAP

2006-03-20 Thread T.Lensselink
chris smith said:
 On 3/21/06, T.Lensselink [EMAIL PROTECTED] wrote:
 I'm working on a small webservice. When started this project i used the
 NuSOAP library. And it does the job perfectly. But last weekend i was
 playing around with the PEAR::SOAP package. This seems to be a lot more
 stable. And for sure a llot faster.

 Only in NuSOAP i could do the following to get to a secured page.

 $client-setCredentials(USERNAME, PASSWORD, AUTHTYPE);

 Now i wanna do the same in PEAR::SOAP but can't figure out a way to do
 it.
 Main is i just want Basic HTTP authentication. Maybe somebody knows?

 You might get a faster response on the pear list:

 http://pear.php.net/support/lists.php

 --
 Postgresql  php tutorials
 http://www.designmagick.com/



Yes after i posted was thinking the same... Still to early :)

Thnx anyway!

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



Re: [PHP] making a tutorial

2006-03-17 Thread T.Lensselink
Sameer N Ingole said:
 Gustav Wiberg wrote:

 - Original Message - From: John Taylor-Johnston
 [EMAIL PROTECTED]
 To: PHP-General php-general@lists.php.net
 Sent: Friday, March 17, 2006 7:51 AM
 Subject: [PHP] making a tutorial


 I'm making a tutorial and don't really understand how to do this
 myself :)

 pWhich of the following pets do have at home:
 br /input type=checkbox name=favourite[] value=dogdog
 br /input type=checkbox name=favourite[] value=catcat
 br /input type=checkbox name=favourite[] value=snakesnake
 br /input type=checkbox name=favourite[] value=othersnake
 br /input type=checkbox name=favourite[] value=nonenone of
 these
 /p
 [snip]
 I don't know if this works in PHP as well.
 It is a checkbox so it won't work without [] in PHP.

 Regards,

 --
 Sameer N. Ingole
 Blog: http://weblogic.noroot.org/
 ---
 Better to light one candle than to curse the darkness.

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




It will work without []. It will just not be an array.

For checkboxes you could use it without [] but then it would be more like
a radio button. Or you could use it with different names in name=.




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



Re: [PHP] URL thing

2004-11-03 Thread T.Lensselink
$_GET[var1]  and $_GET[var2]


On Wed, 3 Nov 2004 13:43:16 +0530, Kevin Javia [EMAIL PROTECTED] wrote:
 How can I get the URL in the address bar in any variable?
 
 If URL is http://www.mysite.com/page.php?var1=12var2=hello+world;, I want
 to store it in any variable in my code.
 
 $PHP_SELF gives only page name.
 
 Can any one help me?
 
 Thanks.
 
 --
 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