[PHP] Request form duplicate names

2003-12-19 Thread Terence

Dear All,

Is there a way to request form fields which have the same name using POST?

I generate dynamic checkboxes all with the same name, but with different
values




etc

I could alternatively do it through GET and split the querystring, but i'd
prefer POST.

Thanks
Terence

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



Re: [PHP] Request form duplicate names

2003-12-19 Thread Frédéric HARDY
Try 

So in your script :

$ids = $POST['name'];
$first_id = $POST['name'][0];

Best regards, Fred
===
Frederic HARDYEmail: [EMAIL PROTECTED]
HEXANET SARL  URL: http://www.hexanet.fr/
ZAC Les CharmillesTel: +33 (0)3 26 79 30 05
3, allée Thierry Sabine   Direct: +33 (0)3 26 61 77 84
BP 202 - 51686 REIMS CEDEX 2 FRANCE
===

- Original Message - 
From: "Terence" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 10:41 AM
Subject: [PHP] Request form duplicate names


> 
> Dear All,
> 
> Is there a way to request form fields which have the same name using POST?
> 
> I generate dynamic checkboxes all with the same name, but with different
> values
> 
> 
> 
> 
> etc
> 
> I could alternatively do it through GET and split the querystring, but i'd
> prefer POST.
> 
> Thanks
> Terence
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

RE: [PHP] Changing languages

2003-12-19 Thread Ford, Mike [LSS]
On 19 December 2003 01:27, Cesar Aracena wrote:

> Hi all,
> 
> I have an issue here. I'm making a english/spanish site and want the
> browser to remember their preference with a cookie. The first time a
> visitor comes into the site, they will be taken to the english part
> (www.site.com/eng/) and when someone clicks over the "Spanish" link,
> I want the cookie that was setled to be erased and a new one to be
> placed instead. The thing is that is being done in two separate files
> because the problem with headers (one for deleting the cookie and the
> other to place the new one). The script I have (pretty mesy) doesn't
> erase the cookie OR places the same one over again instead of placing
> the new one. Here's what I've got so far: 
> 
> THE MAIN INDEX PAGE:
> 
>  if (isset($_COOKIE['Languange']))
> {
> $relative_url = $_COOKIE['Language'];
> header("Location: http://localhost/icaam10/".$relative_url); }
> elseif(!isset($_COOKIE['Languange']) AND !isset($lan)) {
> $value = "eng";
> setcookie ("Language", $value, time()+31536000);
> header("Location: http://localhost/icaam10/eng";);
> }
> elseif(!isset($_COOKIE['Languange']) AND isset($lan)) {
> $value = $lan;
> setcookie ("Language", $value, time()+31536000);
> header("Location: http://localhost/icaam10/".$value);
> }

Just at a quick glance, you've got 3 occurrences of 'Language' and 2 occurrences of 
'Languange' (with an extra 'n').  Fix these to all be 'Language', try it again, and 
come back here if you've still got problems.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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



Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Marek Kilimajer
Haseeb Iqbal wrote:
how can i do that?
btw the script runs on a local machine but updates the records on a
webserver i mean live server. this is also a factor for the timeout. the
script was running smoothly for 24000 recods before but now it suddenly
timeout after 800records. i dont know what is heppening
Try placing mysql_ping function just before $nConn->doQuery($strQuery); 
It will check the connection and reconect if it is lost.

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


Re: [PHP] $_POST[]

2003-12-19 Thread Justin French
On Friday, December 19, 2003, at 05:44  PM, Burrito Warrior wrote:

That practice $_POST[formReviewBy] should be discouraged.  That kind
of practice is nearly as bad as magic numbers.
I think you'll find I *was* discouraging it.

Justin

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


Re: [PHP] Request form duplicate names

2003-12-19 Thread Justin French
On Friday, December 19, 2003, at 08:41  PM, Terence wrote:

Is there a way to request form fields which have the same name using 
POST?

I generate dynamic checkboxes all with the same name, but with 
different
values




I think you change name='id' to name='id[]' -- but it's been so long 
since I've done anything with checkboxes that I'm not 100% sure.  Test 
test test.

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


Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Haseeb Iqbal
i tried this but to noavail. anyother sugestion really this problem is
really annoying me now
Haseeb
- Original Message - 
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Haseeb Iqbal" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 10:23 PM
Subject: Re: [PHP] Re: Script timeout Problem


> Haseeb Iqbal wrote:
> > how can i do that?
> > btw the script runs on a local machine but updates the records on a
> > webserver i mean live server. this is also a factor for the timeout. the
> > script was running smoothly for 24000 recods before but now it suddenly
> > timeout after 800records. i dont know what is heppening
> >
>
> Try placing mysql_ping function just before $nConn->doQuery($strQuery);
> It will check the connection and reconect if it is lost.
>
> -- 
> 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] Request form duplicate names

2003-12-19 Thread Wouter van Vliet


:P

On vrijdag 19 december 2003 11:10 Frédéric HARDY told the butterflies:
> Try 
> 
> So in your script :
> 
> $ids = $POST['name'];
> $first_id = $POST['name'][0];
> 
> Best regards, Fred
> ===
> Frederic HARDYEmail: [EMAIL PROTECTED]
> HEXANET SARL  URL: http://www.hexanet.fr/
> ZAC Les CharmillesTel: +33 (0)3 26 79 30 05
> 3, allée Thierry Sabine   Direct: +33 (0)3 26 61 77 84
> BP 202 - 51686 REIMS CEDEX 2 FRANCE
> ===
> 
> - Original Message -
> From: "Terence" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 19, 2003 10:41 AM
> Subject: [PHP] Request form duplicate names
> 
> 
> > 
> > Dear All,
> > 
> > Is there a way to request form fields which have the same name
> > using POST? 
> > 
> > I generate dynamic checkboxes all with the same name, but with
> > different values 
> > 
> > 
> > 
> > 
> > etc
> > 
> > I could alternatively do it through GET and split the querystring,
> > but i'd prefer POST. 
> > 
> > Thanks
> > Terence
> > 
> > --
> > 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



[PHP] Re: PHP Template Function

2003-12-19 Thread rush
"Cameron B. Prince" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Basically, a directory was defined within the webserver to have a
> PerlHandler, Embperl::Object. When any page in or under that directory is
> called, Embperl::Object would look for template files in the current
> directory and go upward in the tree until they are found and
prepend/append
> them. There was no code or includes required within the pages themselves.

In TemplateTamer, for each page you define the class that is responsible for
handling it. In typical site you use this to build a hierarchy of pages
something like below:

MySitePage
--UserPage
--NewsPage
--ArticlePage
--ListPage
...
--ContributorPage
--EditNewsPage
...
--AdminPage
--AddUserPage
--BackupPage
...

You catch my drift. Then NewsPage inhertis from the UserPage, and
overides/adds functinality specific to itself, while keeping most of the
implementation from the parent UserPage.

The organization is not per directory, like in your example, but TT lets you
keep your projects files in neat bundle, and helps you with house keeping
with template files. It also lets you see your templates in tree view, sith
all variables and subtemplates.

rush
--
http://www.templatetamer.com/

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



RE: [PHP] Re: Script timeout Problem

2003-12-19 Thread Jay Blanchard
[snip]
i tried this but to noavail. anyother sugestion really this problem is
really annoying me now
[/snip]

If it is the script timing out place this at the beginning of the
script. (I do this with scripts that update and insert millions of
records)

set_time_limit(0);

See http://www.php.net/set_time_limit

You have three factors, the query time (which should be OK), 
the PHP time limit (you can set this in php.ini with max_execution_time,
the web server time limit (in httpd.conf for Apache, I am not sure where
for IIS)

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



[PHP] Php Windows server

2003-12-19 Thread E. Ricardo Santos
Somebody could say to me if something special exists to form for the
treatment of the sessions in a Php Windows server?



I have   a code  that works perfectly in Apache, nevertheless, when
executing it  in a Windows server the sessions do not activate.





 I am using php 4.3.3 like ISAPI. There is something I must define in
php.ini?


Thanks

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



Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Marek Kilimajer
Haseeb Iqbal wrote:
i tried this but to noavail. anyother sugestion really this problem is
really annoying me now
Haseeb
The browser might be timing out. You should regulary send out some dummy 
output and flush()

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


Re: [PHP] $_POST[]

2003-12-19 Thread David T-G
Burrito Warrior --

...and then Burrito Warrior said...
% 
% That practice $_POST[formReviewBy] should be discouraged.  That kind
% of practice is nearly as bad as magic numbers.

What are magic numbers?  Surely you don't mean the file recognition codes
in /etc/magic for use by file(1) under *NIX...


TIA & HAND & Happy Holidays

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


RE: [PHP] $_POST[]

2003-12-19 Thread Jay Blanchard
[snip]
What are magic numbers?  Surely you don't mean the file recognition
codes
in /etc/magic for use by file(1) under *NIX...
[/snip]

Magic numbers are hard coded numbers that are not referrenced by a
variable i.e.

$thisNumber = (4 == $magic)? do stuff: do other stuff;

should be 

$var = 4;
$thisNumber = ($var == $magic)? do stuff: do other stuff;

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



[PHP] CRON throws error, but no command line problems

2003-12-19 Thread Jay Blanchard
Good morning group!

I am running PHP 4.3.4RC1 on a FreeBSD sevrer that recently came online
as an upgrade from another server. (previous PHP version was 4.1.n) Via
a CRON job I am running a script that was working fine to ftp another
server, download some files, and then process those files. Here is the
code snippet where the failure occurs...

// ftp variables
$ftp_server = "rc.foo.com";
$ftp_user = "foo";
$ftp_pass = "foopass";

// connect to ftp server
$ftpc = ftp_connect($ftp_server); <--LINE 36
if(!ftp_login($ftpc, $ftp_user, $ftp_pass)){
echo "Could not login to $ftp_server";
exit();
}

The CRON reports this

PHP Warning:  ftp_connect(): php_network_getaddresses: getaddrinfo
failed: No address associated with hostname in
/usr/local/www/data.default/crm/parsecdr.php on line 36

The only reference I could find to this problem was in
http://www.php.net/fopen which said that Apache should be restarted. I
have done the restart and I am for the CRON job to run again in the next
few minutes. While I am waiting has anyone ever seen this error? If so,
can you give me an idea of what I may need to do to fix the problem? I
would be so appreciative and will put in a good word with Santa for you.

Thanks!

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



Re: [PHP] CRON throws error, but no command line problems

2003-12-19 Thread David OBrien
This is usually a DNS error. It's telling you it can't find an IP address 
for the given hostname
-Dave

At 08:57 AM 12/19/2003, Jay Blanchard wrote:
Good morning group!

I am running PHP 4.3.4RC1 on a FreeBSD sevrer that recently came online
as an upgrade from another server. (previous PHP version was 4.1.n) Via
a CRON job I am running a script that was working fine to ftp another
server, download some files, and then process those files. Here is the
code snippet where the failure occurs...
// ftp variables
$ftp_server = "rc.foo.com";
$ftp_user = "foo";
$ftp_pass = "foopass";
// connect to ftp server
$ftpc = ftp_connect($ftp_server); <--LINE 36
if(!ftp_login($ftpc, $ftp_user, $ftp_pass)){
echo "Could not login to $ftp_server";
exit();
}
The CRON reports this

PHP Warning:  ftp_connect(): php_network_getaddresses: getaddrinfo
failed: No address associated with hostname in
/usr/local/www/data.default/crm/parsecdr.php on line 36
The only reference I could find to this problem was in
http://www.php.net/fopen which said that Apache should be restarted. I
have done the restart and I am for the CRON job to run again in the next
few minutes. While I am waiting has anyone ever seen this error? If so,
can you give me an idea of what I may need to do to fix the problem? I
would be so appreciative and will put in a good word with Santa for you.
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


RE: [PHP] CRON throws error, but no command line problems

2003-12-19 Thread Jay Blanchard
[snip]
This is usually a DNS error. It's telling you it can't find an IP
address 
for the given hostname
[/snip]

I knew that, but it does just fine if I run the script from the command
line. No errors at all.

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



Re: [PHP] Where'd my session go??

2003-12-19 Thread Anthony
That was it! ... Thanks a lot bro.

- Anthony


"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's the garbage collector - session.gc_maxlifetime setting. The setting
> is server wide, unless you use your own session storage functions.
>
> Anthony wrote:
>
> > I've got an issue with an app I wrote.  I store some information about
the
> > user and if they are logged into the app in session variables.  The
problem
> > is that if they leave the app idle for a while ( about an hour) the
session
> > information is lost, so the user is prompted to log back into the
> > application.  I checked session.cookie_lifetime and it's set to 0.  The
> > client side is IE 5.5 or 6.  What could be causing the session to be
lost?
> > Thanks for your help :)
> >
> > - Anthony
> >

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



Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Jas
Ok, I posted an example in the body of this for your time out limits but 
here it is again...

At the end of each of your SQL statements for UPDATE or INSERT simply 
add ...LIMIT 2000";
That should limit the updating or inserting of database records until 
the page is refreshed to add more...
HTH
Jas

Haseeb Iqbal wrote:
how can i do that?
btw the script runs on a local machine but updates the records on a
webserver i mean live server. this is also a factor for the timeout. the
script was running smoothly for 24000 recods before but now it suddenly
timeout after 800records. i dont know what is heppening
Haseeb
- Original Message - 
From: "Jas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 3:16 AM
Subject: [PHP] Re: Script timeout Problem



Have you tried setting a limit on your MySQL insert and update
statements to limit the amount trying to be processed?
Haseeb Iqbal wrote:

hi,
i need to update a mysql table with a dbf file, the dbf file contains
more then 16 records. i knew that the script will not be able to update
16 records in 1 go so i am refreshing the page after speacific no of
records. but still the same problem. the script timeout.i tried changing the
timeout limit to 300 secs but to noavail. i am pasting the code here.plz
take a look may by you can tell me what i am doing wrong

define("_MySqlEnable",TRUE);

set_time_limit(0);

require_once(strPath."paths.php");

$strDBName=strPath."uploads/".Date("d-m-Y")."-products.dbf";

$DBPointer=dbase_open($strDBName,0) or die("Cannot open file for
reading");

$nNoOfRecs=dbase_numrecords($DBPointer);

$nLoopBreak=1500;

$nConn=GetCon();

if (empty($nLoopStart)) { $nLoopStart=1; }

if ($nNoOfRecs > $nLoopBreak)
 {
  $nLoopTill=$nLoopStart + $nLoopBreak;
  $nFinal=FALSE;
 }
else
 {
  $nLoopTill=$nLoopBreak;
  $nFinal=TRUE;
 }
for ($nCount=$nLoopStart;$nCount<=$nLoopTill;$nCount++)
 {
  $arrData=dbase_get_record($DBPointer,$nCount);
  $GRP=CheckString($arrData[0]);
  $CAT=CheckString($arrData[1]);
  $SUB=CheckString($arrData[2]);
  $VEND_CODE=CheckString($arrData[3]);
  $MANU_PART=CheckString($arrData[4]);
  $PART_NUM=CheckString($arrData[5]);
  $DESCR=CheckString($arrData[6]);
  $COST=CheckString($arrData[7]);
  $RETAIL=CheckString($arrData[8]);
  $QTY=CheckString($arrData[9]);
  $LIST_PRICE=CheckString($arrData[10]);
  $EFF_DATE=CheckString($arrData[11]);
  $TECH_FAX=CheckString($arrData[12]);
  $STATUS=CheckString($arrData[13]);
  $UPC=CheckString($arrData[14]);
  $strQuery="SELECT * FROM products WHERE grp='".$GRP."' AND
cat='".$CAT."' AND sub='".$SUB."' AND vend_code='".$VEND_CODE."' AND
manu_part='".$MANU_PART."' AND part_num='".$PART_NUM."'";
  $nConn->doQuery($strQuery);

  if ($nConn->cntResult()==0)
   $strQuery="INSERT INTO
products(products.grp,products.cat,products.sub,products.vend_code,products.
manu_part,products.part_num,products.desc,products.cost,products.retail,prod
ucts.qty,products.list_price,products.eff_date,products.tech_fax,products.st
atus,products.upc)
VALUES('".$GRP."','".$CAT."','".$SUB."','".$VEND_CODE."','".$MANU_PART."','"
$PART_NUM."','".$DESCR."','".$COST."','".$RETAIL."','".$QTY."','".$LIST_PRI
CE."','".$EFF_DATE."','".$TECH_FAX."','".$STATUS."','".$UPC."')";
$strQuery="INSERT INTO

products(products.grp,products.cat,products.sub,products.vend_code,products.
manu_part,products.part_num,products.desc,products.cost,products.retail,prod
ucts.qty,products.list_price,products.eff_date,products.tech_fax,products.st
atus,products.upc)
VALUES('".$GRP."','".$CAT."','".$SUB."','".$VEND_CODE."','".$MANU_PART."','"
$PART_NUM."','".$DESCR."','".$COST."','".$RETAIL."','".$QTY."','".$LIST_PRI
CE."','".$EFF_DATE."','".$TECH_FAX."','".$STATUS."','".$UPC."'
LIMIT 200)";

  else
   $strQuery="UPDATE products SET
products.part_num='$PART_NUM',products.desc='$DESCR',COST='$COST',retail='$R
ETAIL',qty='$QTY',list_price='$LIST_PRICE',eff_date='$EFF_DATE',tech_fax='$T
ECH_FAX',status='$STATUS',upc='$UPC' WHERE grp='".$GRP."' AND cat='".$CAT."'
AND sub='".$SUB."' AND vend_code='".$VEND_CODE."' AND
manu_part='".$MANU_PART."' AND part_num='".$PART_NUM."'";
$strQuery="UPDATE products SET

products.part_num='$PART_NUM',products.desc='$DESCR',COST='$COST',retail='$R
ETAIL',qty='$QTY',list_price='$LIST_PRICE',eff_date='$EFF_DATE',tech_fax='$T
ECH_FAX',status='$STATUS',upc='$UPC'
WHERE grp='".$GRP."' AND cat='".$CAT."' AND sub='".$SUB."' AND
vend_code='".$VEND_CODE."' AND manu_part='".$MANU_PART."' AND
part_num='".$PART_NUM."'LIMIT 200";
  //echo "nCOunt - > $nCount -".$strQuery;
  $nConn->doQuery($strQuery);
 }
$nCount++;
$nLoopStart=$nCount;
if ($nFinal==FALSE)
 {
   //1500 records updated so refresh the page
?>





Haseeb
That might help out with the timeouts too.
Jas
--
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


php-general Digest 19 Dec 2003 15:24:13 -0000 Issue 2482

2003-12-19 Thread php-general-digest-help

php-general Digest 19 Dec 2003 15:24:13 - Issue 2482

Topics (messages 172994 through 173020):

Re: Best way to store data.
172994 by: John W. Holmes
172995 by: Sn!per

Re: Countries, cities, states database
172996 by: Thomas Svenson

Re: Post New Email to Website?
172997 by: Manuel Lemos

Re: $_POST[]
172998 by: Justin French
173000 by: Burrito Warrior
173006 by: Justin French
173014 by: David T-G
173015 by: Jay Blanchard

Re: PHP Template Function
172999 by: dirk maetens
173010 by: rush

[Newbie Guide] For the benefit of new members
173001 by: Ma Siva Kumar

Request form duplicate names
173002 by: Terence
173003 by: Frédéric HARDY
173007 by: Justin French
173009 by: Wouter van Vliet

Re: Changing languages
173004 by: Ford, Mike   [LSS]

Re: Script timeout Problem
173005 by: Marek Kilimajer
173008 by: Haseeb Iqbal
173011 by: Jay Blanchard
173013 by: Marek Kilimajer
173020 by: Jas

Php Windows server
173012 by: E. Ricardo Santos

CRON throws error, but no command line problems
173016 by: Jay Blanchard
173017 by: David OBrien
173018 by: Jay Blanchard

Re: Where'd my session go??
173019 by: Anthony

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]


--
--- Begin Message ---
Philip J. Newman wrote:

Hi, is the best way to store data in a mysql database in the text it was submitted, or 
in HTML
format ... changing all the \r's and things to 
Depends what you're going to be doing with it. If you know it's only 
going to go back out to web pages, then it'd make sense to do 
conversions only once instead of each time it's viewed. If this text can 
be put into text emails, then you don't want it converted.

I prefer to run htmlentities() before saving it in the database, but not 
nl2br(). htmlentities() helps when you place the data back into form 
input elements.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
Quoting Justin French <[EMAIL PROTECTED]>:

> Theory 3:
> For more complex transformations (I have a library which performs heaps 
> of transformations for paragraphs, headings, line breaks, ol and ul 
> lists, and heaps more), ...


and where can we find that library ?

--



---
Sign Up for free Email at http://ureg.home.net.my/
---
--- End Message ---
--- Begin Message ---
Hi Chris,

Chris Shiflett wrote:
> I like GeoIP:
>
> http://www.maxmind.com/

I'm in the search for something similar. Took a look at that site and it
seems they want cash for everything.

Is there any free resources available. It's of course possible to find the
info on www.ansi.org and other international standard organisations. Would
be nice though if there is any site with more ready to use data.

/Thomas
--- End Message ---
--- Begin Message ---
Hello,

On 12/18/2003 03:10 PM, [EMAIL PROTECTED] wrote:
I do a website for a club I belong to and would like to post the
Subjects of new emails to our Announcements email list on the
website. Instead of manually adding the subjects to the website, I
thought there might be a way to automate it. If anyone could point me
to a script that can check an email list for new messages and then
include part of that message into a website, I would really
appreciate it.
If you subscribe an address to that mailing list that is associated to a 
mailbox that is accessible via POP3, you can check that mailbox 
regularly to extract the mailing list messages.

In that case you may want to try this POP3 client class:

http://www.phpclasses.org/pop3class

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
On Friday, December 19, 2003, at 01:35  PM, Philip J. Newman wrote:



Should $_POST[formReviewBy] have quotes or dose it not matter?
Well, since you've obviously tested it and it works, then the simple 
answer is probably "it doesn't matter", however, all examples in the 
manual using string-keys that I can see 
(http://www.php.net/manual/en/language.types.array.php) use quote 
around the key.

You will DEFINITELY need them when the string key has a space or 
possibly other not-allowed characters, so my advice (which I follow 
myself) is to always include quotes around a string key.

$_POST['formReviewBy']=='Cade Lloyd') { echo 'selected'; }

No need for double quotes unless PHP needs to evaluate $vars or escaped 
chars (like \n or \t) ei

[PHP] mysql update query

2003-12-19 Thread Enda
Hi guys

Bit of a problem I'm having here with an update query on a PHP/MySQL site:

This is the db query I execute:
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE (A_Number
= $A_Number AND StartDateTime = $D_Full AND Duration=$Duration AND
SMSDestinationName = '$SMSDestinationName')");

which returns the following SQL query:
UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
= '1010')

The query executes successfully, but nothing happens to the database... all
connections etc are in place.

Am I right to have the brackets around the WHERE conditions?

I have also tried this query in phpMyAdmin but no result... and yes, the
record does exist..

Help!

Thanks

Enda
--


--
Enda Nagle
NightSol
e: [EMAIL PROTECTED]
w: www.nightsol.net

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



RE: [PHP] mysql update query

2003-12-19 Thread Jonathan Wilkes
Hi Enda,

Does your table have an index per record ?

If so, your WHERE clause could just use the index and thus be far simpler, if 
"A_Number" is an indexed field, then 

UPDATE cdr200311 SET Price=0.225 WHERE A_Number = 61210146

Alternatively, try removing the () around the WHERE

Darka

www.xfcpro.com


-Original Message-
From: Enda [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 16:33
To: Php-General
Subject: [PHP] mysql update query


Hi guys

Bit of a problem I'm having here with an update query on a PHP/MySQL site:

This is the db query I execute:
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE (A_Number
= $A_Number AND StartDateTime = $D_Full AND Duration=$Duration AND
SMSDestinationName = '$SMSDestinationName')");

which returns the following SQL query:
UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
= '1010')

The query executes successfully, but nothing happens to the database... all
connections etc are in place.

Am I right to have the brackets around the WHERE conditions?

I have also tried this query in phpMyAdmin but no result... and yes, the
record does exist..

Help!

Thanks

Enda
--


--
Enda Nagle
NightSol
e: [EMAIL PROTECTED]
w: www.nightsol.net

-- 
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] mysql update query

2003-12-19 Thread Richard Davey
Hello Enda,

Friday, December 19, 2003, 4:32:44 PM, you wrote:

E> which returns the following SQL query:
E> UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
E> StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
E> = '1010')

E> The query executes successfully, but nothing happens to the database... all
E> connections etc are in place.

Have you tried placing quotes around the values? The timestamps should
be ok, but the price with the decimal place will almost certainly need
them.

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

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



Re: [PHP] Php Windows server

2003-12-19 Thread Neil Freeman
You will need to ensure that the session save path is set to a valid 
directory:

e.g.

session.save_path = "C:/Temp"

Neil

E. Ricardo Santos wrote:

***
This Email Has Been Virus Swept
***
Somebody could say to me if something special exists to form for the
treatment of the sessions in a Php Windows server?


I have   a code  that works perfectly in Apache, nevertheless, when
executing it  in a Windows server the sessions do not activate.




 I am using php 4.3.3 like ISAPI. There is something I must define in
php.ini?
Thanks

--
--
 www.curvedvision.com
--


This communication is confidential to the intended recipient(s). If you are not that person you are not permitted to make use of the information and you are requested to notify the sender immediately of its receipt then destroy the copy in your possession. Any views or opinions expressed are those of the originator and may not represent those of Advanced System Architectures Ltd.

*** This Email Has Been Virus Checked ***

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


[PHP] Setting the environment PATH

2003-12-19 Thread Morten
Hi, I need to add /usr/local/bin to the PATH used by my PHP web 
application. How?

Br,

Morten

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


[PHP] server behavior menu/list in windows server

2003-12-19 Thread E. Ricardo Santos
I have a dynamic table to update registries.



In this table there are fields to relate to other tables.Therefore, I create
"select" to show them.



These behaviors of server, perfectly work in the servant apache but in the
one of Windows, simply n shows nothing to me in the pagina.



When exempt of the dynamic table "select" I can see the data correctly.



It has this something that to see with php.ini?



thanks

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



RE: [PHP] mysql update query

2003-12-19 Thread Enda
Yes I would prefer to do this... problem is that the final table will be
populated from a monthly csv file supplied from an external source.

this file could have several hundred occurences of each value of A_Number
and other fields so the only way to have it as unique is to use several of
the fields in the recordset as the 'key'...

I tried both suggestions - thanks, but still no luck.

Any more ideas? I don't really want to have to go and rewrite the update to
include a unique id for each record!

Thanks guys for your help.

Enda
--


-Original Message-
From: Jonathan Wilkes [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 16:39
To: Enda; Php-General
Subject: RE: [PHP] mysql update query


Hi Enda,

Does your table have an index per record ?

If so, your WHERE clause could just use the index and thus be far simpler,
if "A_Number" is an indexed field, then

UPDATE cdr200311 SET Price=0.225 WHERE A_Number = 61210146

Alternatively, try removing the () around the WHERE

Darka

www.xfcpro.com


-Original Message-
From: Enda [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 16:33
To: Php-General
Subject: [PHP] mysql update query


Hi guys

Bit of a problem I'm having here with an update query on a PHP/MySQL site:

This is the db query I execute:
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE (A_Number
= $A_Number AND StartDateTime = $D_Full AND Duration=$Duration AND
SMSDestinationName = '$SMSDestinationName')");

which returns the following SQL query:
UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
= '1010')

The query executes successfully, but nothing happens to the database... all
connections etc are in place.

Am I right to have the brackets around the WHERE conditions?

I have also tried this query in phpMyAdmin but no result... and yes, the
record does exist..

Help!

Thanks

Enda
--


--
Enda Nagle
NightSol
e: [EMAIL PROTECTED]
w: www.nightsol.net

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

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



Re: [PHP] mysql update query

2003-12-19 Thread Enda

I used single..

just deleted all records except 1 from the table and changed the query to
have just one WHERE condition
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE A_Number
= $A_Number");

this worked... so looks like i'm going to have to rewrite the import bit!

unless of course someone can come in with a last minute flash of
inspiration!

i really really don't need this at 5:12 on a friday afternoon!



-Original Message-
From: Jonathan Wilkes [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 17:00
To: Enda
Subject: RE: [PHP] mysql update query


when you added the quotes, did you specify single or double quotes ?

-Original Message-
From: Enda [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 16:52
To: Php-General
Cc: Jonathan Wilkes
Subject: RE: [PHP] mysql update query


Yes I would prefer to do this... problem is that the final table will be
populated from a monthly csv file supplied from an external source.

this file could have several hundred occurences of each value of A_Number
and other fields so the only way to have it as unique is to use several of
the fields in the recordset as the 'key'...

I tried both suggestions - thanks, but still no luck.

Any more ideas? I don't really want to have to go and rewrite the update to
include a unique id for each record!

Thanks guys for your help.

Enda
--


-Original Message-
From: Jonathan Wilkes [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 16:39
To: Enda; Php-General
Subject: RE: [PHP] mysql update query


Hi Enda,

Does your table have an index per record ?

If so, your WHERE clause could just use the index and thus be far simpler,
if "A_Number" is an indexed field, then

UPDATE cdr200311 SET Price=0.225 WHERE A_Number = 61210146

Alternatively, try removing the () around the WHERE

Darka

www.xfcpro.com


-Original Message-
From: Enda [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 16:33
To: Php-General
Subject: [PHP] mysql update query


Hi guys

Bit of a problem I'm having here with an update query on a PHP/MySQL site:

This is the db query I execute:
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE (A_Number
= $A_Number AND StartDateTime = $D_Full AND Duration=$Duration AND
SMSDestinationName = '$SMSDestinationName')");

which returns the following SQL query:
UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
= '1010')

The query executes successfully, but nothing happens to the database... all
connections etc are in place.

Am I right to have the brackets around the WHERE conditions?

I have also tried this query in phpMyAdmin but no result... and yes, the
record does exist..

Help!

Thanks

Enda
--


--
Enda Nagle
NightSol
e: [EMAIL PROTECTED]
w: www.nightsol.net

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

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



[PHP] preg_replace help

2003-12-19 Thread Ben
I am trying to build a pattern to do the following:
- Find all occurences of HREF=" and SRC=" except those that include the HTTP:// in 
their path
- Insert my own domain string (e.g.: http://www.my_domain.com)

So has an example the input string would be :
$val = '
http://www.my_domain.com/test.php";>my_domain
hello

http://www.my_domain.com/images/tstimg.jpg>
';

And I would like to end up with:
$val = '
http://www.my_domain.com/test.php";>my_domain
http://www.my_domain.com/hello.com";>hello
http://www.my_domain.com/images/test.jpg";>
http://www.my_domain.com/images/tstimg.jpg>
';

Thank you in advance.


RE: [PHP] mysql update query

2003-12-19 Thread Jonathan Wilkes

> just had a thought, what happens when you have only 2 records in the database, does 
> it work, is it possible that you may > have had 2 identical records in the first 
> instance, hence it not working ?

ignore my idiotic comment, it's friday, it's late and I have 2 weeks off (only 10 
minutes to go), so I wasn't really thinking when I typed it.

Honestly, a unique index may be the best bet...

-Original Message-
From: Enda [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 17:13
To: Php-General
Subject: Re: [PHP] mysql update query



I used single..

just deleted all records except 1 from the table and changed the query to
have just one WHERE condition
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE A_Number
= $A_Number");

this worked... so looks like i'm going to have to rewrite the import bit!

unless of course someone can come in with a last minute flash of
inspiration!

i really really don't need this at 5:12 on a friday afternoon!

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



[PHP] preg_replace help

2003-12-19 Thread Ben
I am trying to build a pattern to do the following:
- Find all occurences of HREF=" and SRC=" except those that include the
HTTP:// in their path
- Insert my own domain string (e.g.: http://www.my_domain.com)

So has an example the input string would be :
$val = 'http://www.test.com/test.php";>ssdf2http://www.test.com/images/dfgdf.jpg";>';

And I would like to end up with:

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



[PHP] URL regex

2003-12-19 Thread Evan Nemerson
Hey does anyone have a good regex laying around for URLs? ereg or preg, 
doesn't matter.



-- 
Evan Nemerson
[EMAIL PROTECTED]
http://coeusgroup.com/en

--
"Truth, like gold, is to be obtained not by its growth, but by washing away 
from it all that is not gold. "

-Leo Nikolaevich Tolstoy

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



[PHP] Login to another box on network server to retrieve file

2003-12-19 Thread Jay Blanchard
Stumped am I.

I need to ftp to another box on my network...

$ftp_server = "doohickey";
$ftp_user = "root";
$ftp_pass = "roots_pass";

// connect to ftp server
$ftpc = ftp_connect($ftp_server);
if(!ftp_login($ftpc, $ftp_user, $ftp_pass)){
echo "Could not login to $ftp_server !\n";
exit();
}

and it throws this error

PHP Warning:  ftp_login(): Login incorrect. in
/usr/home/jblanchard/commcode_repair/commCodeRepair.php on line 35
Could not login to doohickey !

Now, when I go manually to that server I am already root, so it does not
ask for a user name, just a password. Can anyone kick me towards an
answer on this fine Friday afternoon? TIA & Hoppy Halidays!

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



RE: [PHP] CRON throws error, but no command line problems SOLVED

2003-12-19 Thread Jay Blanchard
[snip]
This is usually a DNS error...

I knew 
[/snip]

Turns out the error was on the other end of the connection. Thanks!

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



Re: [PHP] URL regex

2003-12-19 Thread Evan Nemerson
On Friday 19 December 2003 11:22 am, Evan Nemerson wrote:
> Hey does anyone have a good regex laying around for URLs? ereg or preg,
> doesn't matter.

Okay finally found this: http://www.regexp.org/msg.php?uid=512

wow. Seriously- wow.

>
>
>
> --
> Evan Nemerson
> [EMAIL PROTECTED]
> http://coeusgroup.com/en
>
> --
> "Truth, like gold, is to be obtained not by its growth, but by washing away
> from it all that is not gold. "
>
> -Leo Nikolaevich Tolstoy

-- 
Evan Nemerson
[EMAIL PROTECTED]
http://coeusgroup.com/en

--
"It is an unfortunate fact that every man who seeks to disseminate knowledge 
must contend not only against ignorance itself, but against false instruction 
as well. No sooner do we deem ourselves free from a particularly gross 
superstition, than we are confronted by some enemy to learning who would set 
aside all the intellectual progress of years, and plunge us back into the 
darkness of mediaeval disbelief."

-HP Lovecraft

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



Re: [PHP] URL regex

2003-12-19 Thread Rolf Brusletto
Evan Nemerson wrote:

On Friday 19 December 2003 11:22 am, Evan Nemerson wrote:
 

Hey does anyone have a good regex laying around for URLs? ereg or preg,
doesn't matter.
   

Okay finally found this: http://www.regexp.org/msg.php?uid=512

wow. Seriously- wow.

 

--
Evan Nemerson
[EMAIL PROTECTED]
http://coeusgroup.com/en
--
"Truth, like gold, is to be obtained not by its growth, but by washing away
from it all that is not gold. "
-Leo Nikolaevich Tolstoy
   

 

No kidding... one to bookmark for sure..

--
Rolf Brusletto
rolf[at]emailfeeds[dot]com
http://www.emailfeeds.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Login to another box on network server to retrieve file (SOLVED)

2003-12-19 Thread Jay Blanchard
[snip]
PHP Warning:  ftp_login(): Login incorrect. in
/usr/home/jblanchard/commcode_repair/commCodeRepair.php on line 35
Could not login to doohickey !
[s/snip]

Embarassed am I. Too much eggnog at the luncheon this day

Turns out that root was not allowed ftp privs on the server I was trying
to get to for some odd reason. Tis corrected and working properly.

Happy Holidays!

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



Re: [PHP] Login to another box on network server to retrieve file (SOLVED)

2003-12-19 Thread Rolf Brusletto
Jay Blanchard wrote:

[snip]
PHP Warning:  ftp_login(): Login incorrect. in
/usr/home/jblanchard/commcode_repair/commCodeRepair.php on line 35
Could not login to doohickey !
[s/snip]
Embarassed am I. Too much eggnog at the luncheon this day

Turns out that root was not allowed ftp privs on the server I was trying
to get to for some odd reason. Tis corrected and working properly.
Happy Holidays!

 

oops! root is never a good idea to be able too login directly to any 
service!

--
Rolf Brusletto
rolf[at]emailfeeds[dot]com
http://www.emailfeeds.com
http://www.phpexamples.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] sessions simply don't work

2003-12-19 Thread ken lee
I'm getting this message all the the time I try to start a session with
session_start.

Cannot send session cookie - headers already sent

It's the first line of code in the file. I'm even getting the error with a
single session_start() function on its own in a file.
It fails on Apache on my intranet and IIS after being uploaded to a web
server. The browser is set to recieve cookies. All the books say it should
work.

Has anybody any ideas? I've wasted a whole day on this joker!

Ken Lee.

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



RE: [PHP] sessions simply don't work

2003-12-19 Thread jon
Maybe you should post the first few lines of your code...

-- jon

-Original Message-
From: ken lee [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 19, 2003 1:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] sessions simply don't work


I'm getting this message all the the time I try to start a session with
session_start.

Cannot send session cookie - headers already sent

It's the first line of code in the file. I'm even getting the error with
a single session_start() function on its own in a file. It fails on
Apache on my intranet and IIS after being uploaded to a web server. The
browser is set to recieve cookies. All the books say it should work.

Has anybody any ideas? I've wasted a whole day on this joker!

Ken Lee.

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 12/11/2003
 

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



Re: [PHP] sessions simply don't work

2003-12-19 Thread Brad Pauly
On Fri, 2003-12-19 at 13:18, ken lee wrote:
> I'm getting this message all the the time I try to start a session with
> session_start.
> 
> Cannot send session cookie - headers already sent
> 
> It's the first line of code in the file. I'm even getting the error with a
> single session_start() function on its own in a file.
> It fails on Apache on my intranet and IIS after being uploaded to a web
> server. The browser is set to recieve cookies. All the books say it should
> work.

Is there anything before the first line of code? Any whitespace or html
will cause this error.

- Brad

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



Re: [PHP] sessions simply don't work

2003-12-19 Thread Peter Walter
Ken,

I had exactly the same problem and it really stumped me for a while. 
Check your php start and end tags carefully - even a single space before 
or after the  tags (before the session_start() ) will cause this 
problem. Check any included files before the session_start().

Peter

Brad Pauly wrote:

On Fri, 2003-12-19 at 13:18, ken lee wrote:

I'm getting this message all the the time I try to start a session with
session_start.
Cannot send session cookie - headers already sent

It's the first line of code in the file. I'm even getting the error with a
single session_start() function on its own in a file.
It fails on Apache on my intranet and IIS after being uploaded to a web
server. The browser is set to recieve cookies. All the books say it should
work.


Is there anything before the first line of code? Any whitespace or html
will cause this error.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
PHP Version 4.2.2
Apache 2
RH 9

The problem is that session files in the /tmp directory are completely
cleared out at "random" intervals of time.  We assume that the randomness is
due to our session.gc_probability setting of "1" causing it to run for 1% of
new sessions.  What we don't understand is why the garbage collector is
removing valid sessions.  session.gc_maxlifetime is set to 86400 (24 hours)
so it should keep them around for a good long time.  However, it seems that
ALL session files are deleted when the garbage collector runs.  In some
cases session files were deleted for sessions that had been around for less
than a minute.  We've thought of several hacks that would control the
problem but we can't come up with any way to fix it.

Thanks in advance,
Anthony

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



[PHP] Christmas

2003-12-19 Thread Eric Bolikowski
Merry christmas!!!

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



[PHP] Christmas

2003-12-19 Thread Eric Bolikowski
Merry christmas to every PHP developer here!!!

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



[PHP] PEAR::SOAP using PHP...please help!

2003-12-19 Thread Sam Masiello

I have posted this question to both the PHP SOAP and the PEAR General
lists and have not received a reply on either list (not a very
responsive group, I guess :) ) so I thought I would try to reach a
larger audience in hopes that perhaps one of you out there might be able
to help.

Any assistance that ANYONE can provide would be more than
appreciated...I am really stuck on how to proceed here as calling the
client script doesn't produce ANY output, even if I change the return
from emailSubmit from the SOAP_Value to a simple string...nothing.

I have done a couple of SOAP projects before using the NuSOAP library
and XML-RPC, but my latest project has me working with a client who
wants to use doc+literal instead of XML-RPC and I am having a very hard
time with it, and was hoping you all could help.

Do I need to be doing this differently because it is doc+literal instead
of XML-RPC?  Is it even more different because the XML also has complex
types?  I have gone to many different sites and seen many different
variations of how to do many different things, but I am having a LOT of
trouble getting any sort of output from my client code.

I have tried many different code variations for just a simple test
client.  This is what I am currently on:

/* START CLIENT CODE */
require_once("SOAP/Client.php") ;
$url = "http://path_to_my_wsdl/mywsdl.wsdl"; ;
$wsdl = new SOAP_WSDL($url);
$client = $wsdl->getProxy() ;

$params=array('header'=>'hi', 'body'=>'there') ;
$options=array(
'namespace' => 'urn:mxlogic.outlookaddin',
'style' => 'document',
'use' => 'literal');

print $client->emailSubmit($params, $options);

/* END CLIENT CODE */


/* START SERVER CODE */

require_once("SOAP/Server.php") ;

class SOAP_My_Server {

var $dispatch_map = array();

function SOAP_My_Server() {
$this->dispatch_map['pingService'] = array(
'in'=> array(),
'out'   => array('pingReturn'=>
array('ack'=>'boolean', 'time'=>'int'))) ;
$this->dispatch_map['emailSubmit'] = array(
'in'=> array('header'=>'string',
'body'=>'string'),
'out'   => array('submitReturn'=>'boolean')) ;
}

function emailSubmit($header, $body) {
return new SOAP_Value('return', 'boolean', true);
}

function pingService() {
$myreturn = array('ack'=>'1', 'time'=>'3600') ;
return new SOAP_Value('return', 'pong', $myreturn) ;
}
}

$options =
array('namespace'=>'urn:mxlogic.outlookaddin','type'=>'document','use'=>
'literal') ;

$server=new SOAP_Server;
$soapmyserver= new SOAP_My_Server;
$server->addObjectMap($soapmyserver,$options);
$server->service($GLOBALS['HTTP_RAW_POST_DATA']);

/* END SERVER CODE */

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



Re: [PHP] session / garbage collection problem

2003-12-19 Thread Marek Kilimajer
What filesystem and OS is this?

Anthony Kaufman wrote:
PHP Version 4.2.2
Apache 2
RH 9
The problem is that session files in the /tmp directory are completely
cleared out at "random" intervals of time.  We assume that the randomness is
due to our session.gc_probability setting of "1" causing it to run for 1% of
new sessions.  What we don't understand is why the garbage collector is
removing valid sessions.  session.gc_maxlifetime is set to 86400 (24 hours)
so it should keep them around for a good long time.  However, it seems that
ALL session files are deleted when the garbage collector runs.  In some
cases session files were deleted for sessions that had been around for less
than a minute.  We've thought of several hacks that would control the
problem but we can't come up with any way to fix it.
Thanks in advance,
Anthony
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Christmas

2003-12-19 Thread Chris W. Parker
Eric Bolikowski 
on Friday, December 19, 2003 2:28 PM said:

> Merry christmas to every PHP developer here!!!

You too.


--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

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



Re: [PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
Redhat 9
kernel 2.4.20-18.9bigmem
ext3 fs

"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What filesystem and OS is this?
>
> Anthony Kaufman wrote:
> > PHP Version 4.2.2
> > Apache 2
> > RH 9
> >
> > The problem is that session files in the /tmp directory are completely
> > cleared out at "random" intervals of time.  We assume that the
randomness is
> > due to our session.gc_probability setting of "1" causing it to run for
1% of
> > new sessions.  What we don't understand is why the garbage collector is
> > removing valid sessions.  session.gc_maxlifetime is set to 86400 (24
hours)
> > so it should keep them around for a good long time.  However, it seems
that
> > ALL session files are deleted when the garbage collector runs.  In some
> > cases session files were deleted for sessions that had been around for
less
> > than a minute.  We've thought of several hacks that would control the
> > problem but we can't come up with any way to fix it.
> >
> > Thanks in advance,
> > Anthony
> >

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



[PHP] include files

2003-12-19 Thread Todd
Hi,

Is it possible under PHP4 to get the name of the file that a function was
called from? To clarify, here's an example of what I'd like to do:

--- main.php ---

   
--- include.php ---


Does anyone know of a way to do this? I've tried several different things,
including to constant '__FILE__ ', but they all return the current file, I
am needing the included filename.

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



Re: [PHP] session / garbage collection problem

2003-12-19 Thread Tony Crockford
On Fri, 19 Dec 2003 13:37:06 -0800, Anthony Kaufman  wrote:

PHP Version 4.2.2
Apache 2
RH 9
The problem is that session files in the /tmp directory are completely
cleared out at "random" intervals of time.  We assume that the 
randomness is
due to our session.gc_probability setting of "1" causing it to run for 
1% of
new sessions.  What we don't understand is why the garbage collector is
removing valid sessions.  session.gc_maxlifetime is set to 86400 (24 
hours)
so it should keep them around for a good long time.  However, it seems 
that
ALL session files are deleted when the garbage collector runs.  In some
cases session files were deleted for sessions that had been around for 
less
than a minute.  We've thought of several hacks that would control the
problem but we can't come up with any way to fix it.
I'd be interested to hear of the hacks..

I've got a hosted application that has started losing session state since 
they upgraded PHP and they're blaming me and I know it isn't because I 
have the same spec locally and the same script on different servers.

is there something I can add to my script or in an htaccess file to keep 
my sessions away from their garbage collection, as it seems likely that I 
have a similar situation to you.

TIA

Tony

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


RE: [PHP] include files

2003-12-19 Thread Chris W. Parker
Todd 
on Thursday, December 18, 2003 9:57 AM said:

> Is it possible under PHP4 to get the name of the file that a function
> was called from? To clarify, here's an example of what I'd like to do:

[snip]

> Does anyone know of a way to do this? I've tried several different
> things, including to constant '__FILE__ ', but they all return the
> current file, I am needing the included filename.

yes this would be very handy for error reporting purposes but alas it is
not to be. afaik there is no way to do what you want save passing
__FILE__ to the function...


functio foo($stuff, $more_stuff, $current_file)
{
... do stuff ...
}




that's what i ended up doing.




chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

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



Re: [PHP] Setting the environment PATH

2003-12-19 Thread Tom Rogers
Hi,

Saturday, December 20, 2003, 2:36:40 AM, you wrote:

M> Hi, I need to add /usr/local/bin to the PATH used by my PHP web 
M> application. How?

M> Br,

M> Morten


with getenv() and putenv()  on a page by page basis

$newpath ='/usr/local/bin';
$current_path = getenv('PATH');
$newpath = $newpath.':'.$current_path;
putenv('PATH='.$new_path);

Now any exec shells will get the new path

-- 
regards,
Tom

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



Re: [PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
Well, we host our own so what I was thinking wouldn't quite work for your
situation.  However, I've seen a method that I think would work pretty well
for you.  Basically, you store all the data you want to be persistant
between requests in a database.  You could use the session id you get from
the browser as the key for a sessions table.  So, getting session data looks
something like this:

$sess_id = session_id();
$result = SELECT * FROM sessions WHERE session_id = '$sess_id'

Since session_id() gets it's information from the HTTP request, and the
browser keeps the session cookie (at least it does in our case), you don't
rely on the stuff in the tmp directory at all.

You could also emulate PHP's session-in-file approach using a similar
method.

"Tony Crockford" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, 19 Dec 2003 13:37:06 -0800, Anthony Kaufman  wrote:
>
> > PHP Version 4.2.2
> > Apache 2
> > RH 9
> >
> > The problem is that session files in the /tmp directory are completely
> > cleared out at "random" intervals of time.  We assume that the
> > randomness is
> > due to our session.gc_probability setting of "1" causing it to run for
> > 1% of
> > new sessions.  What we don't understand is why the garbage collector is
> > removing valid sessions.  session.gc_maxlifetime is set to 86400 (24
> > hours)
> > so it should keep them around for a good long time.  However, it seems
> > that
> > ALL session files are deleted when the garbage collector runs.  In some
> > cases session files were deleted for sessions that had been around for
> > less
> > than a minute.  We've thought of several hacks that would control the
> > problem but we can't come up with any way to fix it.
>
> I'd be interested to hear of the hacks..
>
> I've got a hosted application that has started losing session state since
> they upgraded PHP and they're blaming me and I know it isn't because I
> have the same spec locally and the same script on different servers.
>
> is there something I can add to my script or in an htaccess file to keep
> my sessions away from their garbage collection, as it seems likely that I
> have a similar situation to you.
>
> TIA
>
> Tony

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



Re: [PHP] include files

2003-12-19 Thread Marek Kilimajer
See function debug_backtrace(), it's available since 4.3.3

Todd wrote:
Hi,

Is it possible under PHP4 to get the name of the file that a function was
called from? To clarify, here's an example of what I'd like to do:
--- main.php ---

   include('include.php');
   function foo(){
  $include_file=file_that_called_foo();
  printf($include_file);
   }
?>
   
--- include.php ---

   foo();
?>

Does anyone know of a way to do this? I've tried several different things,
including to constant '__FILE__ ', but they all return the current file, I
am needing the included filename.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] ISAPI and Header function problem

2003-12-19 Thread Astron of BrOnX
Hi everyone, i have installed Php as ISAPI module and header("Location :
xxx.php")  is not working? And not redirect to xxx.php... But if you use Php
as CGI there isnt any problem.. Does anyone know about this problem?

Thank you for interest.

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



[PHP] HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread E. Ricardo Santos
Good, I follow with Windows ISAPI PHP Server:

Now the IIS, in the card: " ISAPI FILTERS " show me "php"  with arrow
red and downwards. It says NOT LOADED.

Somebody knows so that this can happen?

The archives and declarations is correct, just as route a
"phpîsapi.dll". I have returned to form the IIS as it were previously and
profit not to solve the dilemma

Some commentary?



Thanks

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



[PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread Astron of BrOnX
Hi, here is the steps,

1 . Copy all php_*.dll from extentions dir to c:\windows\system32
2 . Copy phpîsapi.dll to c:\windows\system32
3 . Copy php4ts.dll to c:\windows\system32
4 . Copy php.ini to c:\windows\system32
5. go ISAPI Filters and add .php (c:\windows\system32\phpisapi.dll)
6. go Application Configuration select Mappings tab and add new extentions
mapping .php (c:\windows\system32\phpisapi.dll)
7. restart IIS

I hope you will understand.


"E. Ricardo Santos" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Good, I follow with Windows ISAPI PHP Server:
>
> Now the IIS, in the card: " ISAPI FILTERS " show me "php"  with arrow
> red and downwards. It says NOT LOADED.
>
> Somebody knows so that this can happen?
>
> The archives and declarations is correct, just as route a
> "phpîsapi.dll". I have returned to form the IIS as it were previously and
> profit not to solve the dilemma
>
> Some commentary?
>
>
>
> Thanks

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



[PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread E. Ricardo Santos
php.ini in "system32" too?



"Astron Of Bronx" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Hi, here is the steps,
>
> 1 . Copy all php_*.dll from extentions dir to c:\windows\system32
> 2 . Copy phpîsapi.dll to c:\windows\system32
> 3 . Copy php4ts.dll to c:\windows\system32
> 4 . Copy php.ini to c:\windows\system32
> 5. go ISAPI Filters and add .php (c:\windows\system32\phpisapi.dll)
> 6. go Application Configuration select Mappings tab and add new extentions
> mapping .php (c:\windows\system32\phpisapi.dll)
> 7. restart IIS
>
> I hope you will understand.
>
>
> "E. Ricardo Santos" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Good, I follow with Windows ISAPI PHP Server:
> >
> > Now the IIS, in the card: " ISAPI FILTERS " show me "php"  with arrow
> > red and downwards. It says NOT LOADED.
> >
> > Somebody knows so that this can happen?
> >
> > The archives and declarations is correct, just as route a
> > "phpîsapi.dll". I have returned to form the IIS as it were previously
and
> > profit not to solve the dilemma
> >
> > Some commentary?
> >
> >
> >
> > Thanks

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



[PHP] html or php to pdf whith pdflib?

2003-12-19 Thread E. Ricardo Santos
Hello, somebody knows like turning a file HTML or php to pdf by means of
pdflib but without having to write  line  to  line?



that is, a file already existing php or HTML, can be turned with pdflib?



This  I ask it because to where it studies pdflib, exit pdf is due to write
line  by  line  and coordinate by coordinate. A pdf  already  created can
also be mattered and to combine it with the new exit. But what  I did not
find  he is all this is the particularitity that I raise.



I hope  has explained to me correctly

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



Re: [PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread John W. Holmes
Astron of BrOnX wrote:

Hi, here is the steps,

1 . Copy all php_*.dll from extentions dir to c:\windows\system32
2 . Copy phpîsapi.dll to c:\windows\system32
3 . Copy php4ts.dll to c:\windows\system32
4 . Copy php.ini to c:\windows\system32
5. go ISAPI Filters and add .php (c:\windows\system32\phpisapi.dll)
6. go Application Configuration select Mappings tab and add new extentions
mapping .php (c:\windows\system32\phpisapi.dll)
7. restart IIS
I like to replace steps 1 - 3 with

1. Copy php4isapi.dll file to the same directory as php.exe (usually 
from php/sapi/ to php/).

This keeps everything within the php/ directory. Just seems cleaner and 
makes for easier upgrades, if you ask me. :)

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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


[PHP] Turck MMcache compiling

2003-12-19 Thread Ryan A
Hi,

Holiday greetz to everyone, heres a card for ya:
http://www.jumac.com/free-birthday-christmas-holiday-greetings/upcardme.php?step=pickupid=2k03596bb8f8/Php
list/[EMAIL PROTECTED]

and now...my problem :-D :

We just took a dedicated server (Linux) and want to install Turck MMCache
for PHP on it, we have total control of that server and can SSH in etc.
Their "support" does not want to install it and told us if we want to, we
will have to do it ourselves...

is there anyway we can ssh in and do it?
I have never done anything like this before and am on a windows 2k pro
machine...I use putty to connect.

Any help appreciated.

Cheers,
-Ryan
http://Bestwebhosters.com

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



php-general Digest 20 Dec 2003 04:55:25 -0000 Issue 2483

2003-12-19 Thread php-general-digest-help

php-general Digest 20 Dec 2003 04:55:25 - Issue 2483

Topics (messages 173021 through 173062):

mysql update query
173021 by: Enda
173022 by: Jonathan Wilkes
173023 by: Richard Davey
173027 by: Enda
173028 by: Enda
173030 by: Jonathan Wilkes

Re: Php Windows server
173024 by: Neil Freeman

Setting the environment PATH
173025 by: Morten
173053 by: Tom Rogers

server behavior menu/list in windows server
173026 by: E. Ricardo Santos

preg_replace help
173029 by: Ben
173031 by: Ben

URL regex
173032 by: Evan Nemerson
173035 by: Evan Nemerson
173036 by: Rolf Brusletto

Login to another box on network server to retrieve file
173033 by: Jay Blanchard

Re: CRON throws error, but no command line problems SOLVED
173034 by: Jay Blanchard

Re: Login to another box on network server to retrieve file (SOLVED)
173037 by: Jay Blanchard
173038 by: Rolf Brusletto

sessions simply don't work
173039 by: ken lee
173040 by: jon
173041 by: Brad Pauly
173042 by: Peter Walter

session / garbage collection problem
173043 by: Anthony Kaufman
173047 by: Marek Kilimajer
173049 by: Anthony Kaufman
173051 by: Tony Crockford
173054 by: Anthony Kaufman

Christmas
173044 by: Eric Bolikowski
173045 by: Eric Bolikowski
173048 by: Chris W. Parker

PEAR::SOAP using PHP...please help!
173046 by: Sam Masiello

include files
173050 by: Todd
173052 by: Chris W. Parker
173055 by: Marek Kilimajer

ISAPI and Header function problem
173056 by: Astron of BrOnX

HELP!! ISS does not load the ISAPI of PHP
173057 by: E. Ricardo Santos
173058 by: Astron of BrOnX
173059 by: E. Ricardo Santos
173061 by: John W. Holmes

html or php to pdf whith pdflib?
173060 by: E. Ricardo Santos

Turck MMcache compiling
173062 by: Ryan A

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]


--
--- Begin Message ---
Hi guys

Bit of a problem I'm having here with an update query on a PHP/MySQL site:

This is the db query I execute:
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE (A_Number
= $A_Number AND StartDateTime = $D_Full AND Duration=$Duration AND
SMSDestinationName = '$SMSDestinationName')");

which returns the following SQL query:
UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
= '1010')

The query executes successfully, but nothing happens to the database... all
connections etc are in place.

Am I right to have the brackets around the WHERE conditions?

I have also tried this query in phpMyAdmin but no result... and yes, the
record does exist..

Help!

Thanks

Enda
--


--
Enda Nagle
NightSol
e: [EMAIL PROTECTED]
w: www.nightsol.net
--- End Message ---
--- Begin Message ---
Hi Enda,

Does your table have an index per record ?

If so, your WHERE clause could just use the index and thus be far simpler, if 
"A_Number" is an indexed field, then 

UPDATE cdr200311 SET Price=0.225 WHERE A_Number = 61210146

Alternatively, try removing the () around the WHERE

Darka

www.xfcpro.com


-Original Message-
From: Enda [mailto:[EMAIL PROTECTED]
Sent: 19 December 2003 16:33
To: Php-General
Subject: [PHP] mysql update query


Hi guys

Bit of a problem I'm having here with an update query on a PHP/MySQL site:

This is the db query I execute:
$result6=mysql_query("UPDATE $WorkTable SET Price=$CallCost WHERE (A_Number
= $A_Number AND StartDateTime = $D_Full AND Duration=$Duration AND
SMSDestinationName = '$SMSDestinationName')");

which returns the following SQL query:
UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
= '1010')

The query executes successfully, but nothing happens to the database... all
connections etc are in place.

Am I right to have the brackets around the WHERE conditions?

I have also tried this query in phpMyAdmin but no result... and yes, the
record does exist..

Help!

Thanks

Enda
--


--
Enda Nagle
NightSol
e: [EMAIL PROTECTED]
w: www.nightsol.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello Enda,

Friday, December 19, 2003, 4:32:44 PM, you wrote:

E> which returns the following SQL query:
E> UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND
E> StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName
E> = '1010')

E> The query executes successfully, but nothing happ

RE: [PHP] Merry Chrismas

2003-12-19 Thread Ryan A
Hey,
And a very Merry Christmas to you too...think I dont mean it?

Check this out:
www.jumac.com/free-birthday-christmas-holiday-greetings/upcardme.php?step=pi
ckup&id=2k03596bb8f8

Cheers,
-Ryan A

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



[PHP] form variables

2003-12-19 Thread Nitin
hi all,

i've an application, where i'm receiving variables from an html form and process them 
in the script. depending on the values, i may want to get some extra information from 
user through another form. now, problem is how can i keep the vaiables received from 
the first form, without passing them as query string to the next script or specifying 
as hidden form fields.

i'll really appreciate a quick help. thanx in advance
Nitin

Re: [PHP] form variables

2003-12-19 Thread Robert Cummings
On Sat, 2003-12-20 at 01:29, Nitin wrote:
> hi all,
> 
> i've an application, where i'm receiving variables from an html form and process 
> them in the script. depending on the values, i may want to get some extra 
> information from user through another form. now, problem is how can i keep the 
> vaiables received from the first form, without passing them as query string to the 
> next script or specifying as hidden form fields.
> 
> i'll really appreciate a quick help. thanx in advance

Sessions.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] form variables

2003-12-19 Thread Nitin
thanx for a quick reply and i'm sorry for it was so dumb qu

nitin
- Original Message - 
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Nitin" <[EMAIL PROTECTED]>
Cc: "PHP-General" <[EMAIL PROTECTED]>
Sent: Saturday, December 20, 2003 11:59 AM
Subject: Re: [PHP] form variables


> On Sat, 2003-12-20 at 01:29, Nitin wrote:
> > hi all,
> >
> > i've an application, where i'm receiving variables from an html form and
process them in the script. depending on the values, i may want to get some
extra information from user through another form. now, problem is how can i
keep the vaiables received from the first form, without passing them as
query string to the next script or specifying as hidden form fields.
> >
> > i'll really appreciate a quick help. thanx in advance
>
> Sessions.
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `'
>
> -- 
> 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