Re: [PHP] Maybe not the right place, but...

2002-07-05 Thread Latex Master

Hello Alberto,
   255 charasters
Friday, July 5, 2002, 5:43:40 PM, you wrote:

AS ðÒÉ×ÅÔ!

AS Does anybody know which is the lenght limit for the parameter string 
AS when GETting an URL? If there is a limit at all, of course.

AS áÌØÂÅÒÔÏ
AS ëÉÅ×


AS -- 


AS @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

AS LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
AS lOrD i'M sHiNiNg...
AS YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
AS tHe TeSt, YeS iT iS
AS ThE tEsT, yEs It Is
AS tHe TeSt, YeS iT iS
AS ThE tEsT, yEs It Is...





-- 
Best regards,
 Latexmailto:[EMAIL PROTECTED]


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




Re: [PHP] how to resort results of a query

2002-07-05 Thread Matthew K. Gold

Thanks very much for your response, Chris--it sounds like that's exactly
what I need to do.

I'm sorry to trouble you further, but if you have a second, can you give me
some advice on how to store results in a temporary table with the columns
indexed?  I'm very new to PHP, and I'm not sure how to go about it.

Thanks in advance.

best,

Matt


- Original Message -
From: Chris Hewitt [EMAIL PROTECTED]
To: Matthew K. Gold [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 7:34 AM
Subject: Re: [PHP] how to resort results of a query


 Matthew,

 Its a new query unless you want to sort using php routines. For a small
 amount of data this is fine but for large amounts there is a performance
 hit. Your choice as to the balance with the amount of data you have.

 Where I have a lot of data, extracted from a very large amount of data,
 I store my results in a new, temporary, table that has each field
 indexed. I make the column headings on my html page into links that
 extract the data from the temporary table, ordered by that column. As
 its multi-user, I have a field in the temporary table with the username
 so that each user gets their own data (its first part of the indices too).

 Hope this helps
 Chris

 Matthew K. Gold wrote:

 Hi,
 
 How can I set things up so that a user can resort the results of a query?
 
 Also, how can I make certain columns into links?  I'm making a site that
 will list college courses.  When users decide to browse listings by
 discipline, or college, I'd like the titles of the courses to be links to
 fuller descriptions of those courses.  But I'm
 not sure how to do that.
 
 thanks in advance for your help.
 
 best,
 
 Matt
 
 
 



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




RE: [PHP] Re: Problem With ora_do

2002-07-05 Thread Grimes, Dean

Here is a little test program.



?php

/*
SQL select emp_id, emp_name from employee;

dgrimes  Dean Grimes

35 rows selected.

This is a select using SQLPLUS to select all of the employees. There were a
lot of other names, I just removed them from the list.


SQL select emp_id, emp_name from employee where emp_id = 'dgrimes';

dgrimes  Dean Grimes

This is a select using SQLPLUS that specifies the WHERE clause. It too works
properly.



I did not include the code to process using ora_open, ora_pars and ora_exec.
But it does work just fine with or without a WHERE clause.

*/

error_reporting(15);
$dbconnect = ora_logon('ops$dgrimes','changemenow');

// Select with WHERE clause
// $sql = SELECT * FROM employee WHERE emp_id = 'dgrimes';

// Select without WHERE clause
$sql = SELECT * FROM employee;

$cur = ora_do($dbconnect,$sql);


// Uncomment this block to see results of WHERE CLAUSE. It gets No Data
Found
/*
ora_fetch_into($cur,$results,ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC);
echo ora_errorcode($cur);
echo ora_error($cur);
exit;
*/
// Comment the above block to see results of select without WHERE CLAUSE

while
(ora_fetch_into($cur,$results,ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC)) {
//  print_r($results);
//  echo br\n;
while (list($k,$v) = each($results))
echo Key=.$k. Val=.$v.br\n;
}

?









-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Problem With ora_do


I'm having a weird problem with ora_do. It works fine as long as I don't
have a WHERE clause in the query. For example:

select * from table_name

works just fine but 

select * from table_name where col_name = value

returns nothing.

However, if I use ora_open, ora_parse and ora_exec everything works fine.
I'm running on Compaq Tru64 ver 5.1. I compiled PHP with gcc 3.1. I'm not
getting any errors or warnings and nothing is being logged in the Apache
logs. I guess it's not a big deal since I have been able to work around it,
but it would be nice to know what the problem is.

Show us real source code...

Nothing in what you say seems 'wrong', but who knows?

Wild Guesses:

You're not seeing any errors because you're not *ASKING* to see any errors.
You have to specifically request error messages to be displayed or logged
somewhere.

You are doing something like:
$x = 2;
$query = select * from table_name where col_name = x;
And, oddly enough, there are none with 'x' even though there are lots with
2...
So, there's no problem with the query, it's just not the query you intended.
Try printing out your query, and paste it into the Oracle command-line
thingie (sql-dba?)

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
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] Maybe not the right place, but...

2002-07-05 Thread Andy Woolley

 Maybe not the right place, but...

Probably not but what the heck.

IE has a cap of 2K.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q208427

Netscape exceeds 2k but I've never tested out how much.

Cheers
Andy Woolley.
Milonic Solutions Ltd


- Original Message -
From: Alberto Serra [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 2:43 PM
Subject: [PHP] Maybe not the right place, but...


 ðÒÉ×ÅÔ!

 Does anybody know which is the lenght limit for the parameter string
 when GETting an URL? If there is a limit at all, of course.

 áÌØÂÅÒÔÏ
 ëÉÅ×


 --


 @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

 LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
 lOrD i'M sHiNiNg...
 YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is...


 --
 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] PHP Automatic Backup

2002-07-05 Thread César Aracena

Hi all.
 
I was reading the post by Pag called “MySQL backups” and I have the same
question, but not the shell access. It came to my mind, that if will be
very useful for me, and probably for many of us newbie’s, to be able to
build an automated PHP system that could make backups by itself at a
specified time… let’s say maybe every morning at 6 am, by transferring
or uploading the MySQL files to another server. I noticed that this
could be done in PHPNuke, by clicking at “Backup Files”. ¿Is it possible
to build this kind of unattended scripts with PHP or will it always
require a magical “click” from the administrator?
 
I guess that it shouldn’t be possible, but it’s worth a shot.
 
Thanks in advance,
 
Cesar Aracena mailto:[EMAIL PROTECTED] 
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621
 



Re: [PHP] textarea new line

2002-07-05 Thread PHPCoder

Sorry, you DO need nl's, but it's \n not n\


PHPCoder wrote:

 When you echo, you are adding to HTML, so you need br for new lines 
 not \n. There is a function called nl2br that converts the nl into 
 br's for you, so do this;

 $string=-line1n\ -line2 n\-line3;

 $string = nl2br($string);

 echo brtextarea name='aria' cols='50' rows='2'$string/textarea;




 adi wrote:

 i want to add in textarea a string with new line tag in it. how to do 
 that?

 my try:
 $string=-line1n\ -line2 n\-line3;
 echo brtextarea name='aria' cols='50' rows='2'$string/textarea;

 but i see a single line instead of:
 -line1
 -line2
 -line3

 tx in advance for any help







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




Re: [PHP] textarea new line

2002-07-05 Thread PHPCoder

When you echo, you are adding to HTML, so you need br for new lines 
not \n. There is a function called nl2br that converts the nl into br's 
for you, so do this;

$string=-line1n\ -line2 n\-line3;

$string = nl2br($string);

echo brtextarea name='aria' cols='50' rows='2'$string/textarea;




adi wrote:

i want to add in textarea a string with new line tag in it. how to do that?

my try:
$string=-line1n\ -line2 n\-line3;
echo brtextarea name='aria' cols='50' rows='2'$string/textarea;

but i see a single line instead of:
-line1
-line2
-line3

tx in advance for any help




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




[PHP] Re: IIS unexpected error

2002-07-05 Thread Scott Fletcher

It would be a good idea to switch to Apache.  I had the php script and IIS.
The problem with IIS is the virus, so MS provide some patches, include the
IIS lockdown.  When I activated the IIS Lockdown, it prevent some PHP code
from working.  It became too much for me so I had to switch to Apache.

Richard Lynch [EMAIL PROTECTED] wrote in message
news:20020704233150.WCK8262.rwcrmhc52.attbi.com@[192.168.1.103]...
 I am setting up PHP on WinXP Pro with IIS 5.1.
 
 I tried to start the IIS server and I get an Unexpected error 0x8ffe2740
 occured. error.
 Anyone know how to resolve this problem?

 Try searching http://bugs.php.net and the archives for that hex value.

 Or just switch to Apache http://apache.org :-)

 --
 Like Music?  http://l-i-e.com/artists.htm




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




[PHP] Re: textarea new line

2002-07-05 Thread Michiel Lange

I'd say $string=-line1\n -line2\n-line3
Newlines are \n, not n\
...

Adi [EMAIL PROTECTED] schreef in bericht
014b01c22424$5f999b00$9600a8c0@ady">news:014b01c22424$5f999b00$9600a8c0@ady...
i want to add in textarea a string with new line tag in it. how to do that?

my try:
$string=-line1n\ -line2 n\-line3;
echo brtextarea name='aria' cols='50' rows='2'$string/textarea;

but i see a single line instead of:
-line1
-line2
-line3

tx in advance for any help




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




[PHP] $_SESSION troubles

2002-07-05 Thread Michiel Lange

Hello hello,

I have this strange thing with a sort of login procedure (still working it
out, but it will work eventually)
On the first page, you log in (username + password)
Then we come to 'login.php' where I have this header
  1 ?php
  2 session_start();
  3 $loginname=$_POST[loginname];
  4 $loginpw=$_POST[loginpw];
  5 session_register('loginname');
  6 session_register('loginpw');
  7 ?

This works, I can use $loginname and $loginpw

Somewhere on that page I have added a few buttons, and one of those buttons
is functional (the others have to be written yet)
But here I have this header:
  1 ?php
  2 session_start();
  3 $loginname=$_SESSION['loginname'];
  4 $loginpw=$_SESSION['loginpw'];
  5 /*session_register('loginname');
  6 session_register('loginpw');  -- commented out, it did not
add something seemingly */
  7 ?

The strange thing is that if I do (hey, it's just for testing what's
happening):
print(loginname = $loginnamebr\n);
print(loginpw=$loginpwbr\n);

both loginname and loginpw contain the same information, which is the true
information of $loginpw
what am I doing wrong here?



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




Re: [PHP] textarea new line+mysql update

2002-07-05 Thread adi

tx, it's working now
but i still have a problem:
i want to insert into mysql database value $string:
   $result2 = db_query(update table1 set column1= '$string' where ID =
'$IDcurent') or db_die();
When i try to view in text area the new value from column1, the newlines
disappear!

ps.column 1 have type text or varchar(100)
Is a problem of type?

tx again
adi


- Original Message -
From: Henning Sittler [EMAIL PROTECTED]
To: 'adi' [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 4:05 PM
Subject: RE: [PHP] textarea new line


 $string=-line1\n -line2 \n-line3;

 \n

 Henning Sittler
 www.inscriber.com



 -Original Message-
 From: adi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 05, 2002 9:04 AM
 To: php-general
 Subject: [PHP] textarea new line


 i want to add in textarea a string with new line tag in it. how to do
that?

 my try:
 $string=-line1n\ -line2 n\-line3;
 echo brtextarea name='aria' cols='50' rows='2'$string/textarea;

 but i see a single line instead of:
 -line1
 -line2
 -line3

 tx in advance for any help



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




[PHP] php form with textarea

2002-07-05 Thread adi

I have a php file with two textarea and one button; i want when i press button, value 
from textarea2 is filled in textarea1.
can u help me?

my try is:

//file1.php

if ($action == change) {
$arie1=$arie2;
}

echo textarea name='arie1' cols='50' rows='3'$arie1/textarea;
echo form action=file1.php?action=change method=post\n;
echo textarea name='arie2' cols='50' rows='3'$arie2/textarea;
echoinput type='submit' name='submit' value='save';
...




[PHP] Re: Removing the #!/usr... from cgi output?

2002-07-05 Thread colin mcdonald

I think you can make the AddType location specific

ie:
in /home/httpd/html/cgi-bin all files ending in .php will be cgi php
everywhere else /home/httpd/html/ will be php module

the line at the top tells the parser which program should execute the 
code in the file ... so I think you don't add the AddType in apache and 
maybe something different?

David Brannlund wrote:
 Got it to work! I removed that line and configured apache to serve certain
 filetypes through php cgi. (I have the php module installed, so i had to
 come up with a new ext.)
 
 But there should be some way to write the script with #!.. and not get it
 printed out anyway. Ah, well...
 
 Thanks.
 
 David Brannlund
 
 
 Colin McDonald [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]...
 
Did you try it without that line at all?

I'm pretty sure you can setup apache (you are using apache right?) to
use /usr/.../bin/php for all files with the extension .php

colin

David Brannlund wrote:

Example:

  #!/usr/local/bin/php
  ?php
  print foo;
  ?

becomes

  #!/usr/local/bin/php
  foo

 
 



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




Re: [PHP] $_COOKIE

2002-07-05 Thread Alberto Serra

Scott Fletcher wrote:
 I have a question!  Since the $_COOKIE is on the server side, not on the
 client side.  So, will the use of hte $_COOKIE be affected when the user's
 browser disabled the cookie?  I do not know how the $_COOKIE on the server
 side work or get the information from.
 
 Thanks,
  FletchSOD
 
 
 

ðÒÉ×ÅÔ!

Yes, that's the problem with cookies :( In case they get disabled, or 
just manually canceled) $_COOKIE will not contain anything at all. Which 
is why I don't like cookies.

áÌØÂÅÒÔÏ
ëÉÅ×

-- 


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




[PHP] Re: textarea new line

2002-07-05 Thread colin mcdonald

use \n
Adi wrote:
 i want to add in textarea a string with new line tag in it. how to do that?
 
 my try:
 $string=-line1n\ -line2 n\-line3;
 echo brtextarea name='aria' cols='50' rows='2'$string/textarea;
 
 but i see a single line instead of:
 -line1
 -line2
 -line3
 
 tx in advance for any help
 



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




Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread colin mcdonald

I'll try to explain:

If you have a form at a http URL and the action of the form is to a 
https URL, then the data from the form is submitted to the new URL in an 
encrypted format.

hope that helps,
colin

Jason Caldwell wrote:
 I'm a little confused about how HTTPS actually works when you call it via a
 FORM tag or HEADER(Location: ...)
 
 This may sound like a stupid question -- but it was never explained to me,
 so...
 
 I have my users fill out (for example) FORM A -- this form has basic
 non-secure info.  Then they press SUBMIT, now on FORM B, I want them to fill
 out their payment information.
 
 Now, I notice that when I go to web sites and fill out payment information,
 I see the little lock icon at the bottom of my browser, and the
 https://yadadada in the URL field... however, I'm unclear about something...
 
 If I call FORM B with HTTPS will my blank FORM B transmit to the user
 encrypted, and will I have to call HTTPS again for my PHP CC Processing App?
 
 In other words, what's taking place when I call a form or page with HTTPS?
 Is it that the data only gets encrypted on a SUBMIT ?
 
 Dunno if my question makes much sense .. but I guess I'd like to know if
 it's even required for me to call FORM B in a secure state (for the users CC
 data to be SENT encrypted), but instead just call the process attached to
 the FORM (submit button) on FORM B in HTTPS ?? Does that make sense?
 
 Jason
 
 Miguel Cruz [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]...
 
On Thu, 4 Jul 2002, Jason Caldwell wrote:

Is there a way I can programmatically switch between HTTPS and HTTP... I

 use
 
a lot of INCLUDE's instead of HEADER(Location: ...);

Can I use HEADER in another way (without redirecting) to activate HTTPS

 or
 
HTTP for any given page?

Nope. The protocol is determined by the client when it makes its request.
Once your code is running, it's too late. At that point you can only
redirect to a https:// URL, which leads the client to generate a new
request.



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




Re: [PHP] textarea new line+mysql update

2002-07-05 Thread colin mcdonald

use addslashes

update table1 set column1= '.addslashes($string).' where ID = 
'$IDcurent'

Adi wrote:
 tx, it's working now
 but i still have a problem:
 i want to insert into mysql database value $string:
$result2 = db_query(update table1 set column1= '$string' where ID =
 '$IDcurent') or db_die();
 When i try to view in text area the new value from column1, the newlines
 disappear!
 
 ps.column 1 have type text or varchar(100)
 Is a problem of type?
 
 tx again
 adi
 
 
 - Original Message -
 From: Henning Sittler [EMAIL PROTECTED]
 To: 'adi' [EMAIL PROTECTED]
 Sent: Friday, July 05, 2002 4:05 PM
 Subject: RE: [PHP] textarea new line
 
 
 
$string=-line1\n -line2 \n-line3;

\n

Henning Sittler
www.inscriber.com



-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 9:04 AM
To: php-general
Subject: [PHP] textarea new line


i want to add in textarea a string with new line tag in it. how to do
 
 that?
 
my try:
$string=-line1n\ -line2 n\-line3;
echo brtextarea name='aria' cols='50' rows='2'$string/textarea;

but i see a single line instead of:
-line1
-line2
-line3

tx in advance for any help

 
 



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




[PHP] textarea new line

2002-07-05 Thread adi

i want to add in textarea a string with new line tag in it. how to do that?

my try:
$string=-line1n\ -line2 n\-line3;
echo brtextarea name='aria' cols='50' rows='2'$string/textarea;

but i see a single line instead of:
-line1
-line2
-line3

tx in advance for any help



Re: [PHP] png image doesn't show

2002-07-05 Thread James E Hicks III



img src=graphit.php to get the image output.  Unfortunately, I get nothing except 
the red X indicating a missing image.

  

You probably need to send the correct header at the top of your 
graphit.php to indicate to the browser that you are
sending it a file with a content type of image/png . graphit.php should 
do two things; First send the header, Second
send the PNG data.

-- 
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
[EMAIL PROTECTED]




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




[PHP] Little optimisation question

2002-07-05 Thread Latex Master

Hello php-general,

  I've recently faced big optimization issues. Here is mine
situation:

I make connection to NNTP server and fetch headers from the news group
lets say bla.bla.bla. Connection made ok. Next Php tryes to put
everything into the array. It's okey if number of headers are lower
then let's say 100. But if number of headers get greater then 100,
it's a pain in the ass. I have to wait for 90-100 seconds till the
operation completes. (I'm talking here about large value news groups).
So I have faced that I need to optimize it somehow.
At this point of time i've got only idea is to put all the headers in
the database. But not sure how to update database frequently. Any
ideas even fantastic ones are welcome.

-- 
Best regards,
 Latex  mailto:[EMAIL PROTECTED]


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




Re: [PHP] _() undefined in 4.2.1

2002-07-05 Thread Andy Woolley

It's OK, I've found out that I have to include --with-gettext in the
configure line.

Cheers anyway
  -- Andy.


- Original Message -
From: Andy Woolley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 2:43 PM
Subject: [PHP] _() undefined in 4.2.1


 Hi All,

 I'm trying to install IMP and I'm getting the error:-

 Fatal error: Call to undefined function: _() in blah blah.

 I know that _() is the same as gettext() and I'm sure it used to work.

 Anyone know where it went or what setting I have to change in php.ini to
 bring it back. Sorry if I'm re-iterating things but trying to search for
_()
 is not having the desired effect in google.

 Cheers in advance
 Andy Woolley.
 Milonic Solutions Ltd


 --
 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] $_COOKIE

2002-07-05 Thread Scott Fletcher

That is what I thought so!  Thanks!

To me, the $_COOKIE seem to get data from the browser in some way.  Correct
me if I'm wrong.  Something like a communication between cookie.

Thanks,
 FletchSOD

Alberto Serra [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Scott Fletcher wrote:
  I have a question!  Since the $_COOKIE is on the server side, not on the
  client side.  So, will the use of hte $_COOKIE be affected when the
user's
  browser disabled the cookie?  I do not know how the $_COOKIE on the
server
  side work or get the information from.
 
  Thanks,
   FletchSOD
 
 
 

 ðÒÉ×ÅÔ!

 Yes, that's the problem with cookies :( In case they get disabled, or
 just manually canceled) $_COOKIE will not contain anything at all. Which
 is why I don't like cookies.

 áÌØÂÅÒÔÏ
 ëÉÅ×

 --


 @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

 LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
 lOrD i'M sHiNiNg...
 YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is...




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




[PHP] function for size of array

2002-07-05 Thread Scott Fletcher

Is there PHP function that would get the total array count.

ie
--snip--
$array[0] = zero;
$array[1] = one;
$array[2] = two;

$array_count = function to get the array count
--snip--

And I would get 3 as an answer.

Thanks,
 FletchSOD



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




Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns

cout($array)

Scott Fletcher wrote:

Is there PHP function that would get the total array count.

ie
--snip--
$array[0] = zero;
$array[1] = one;
$array[2] = two;

$array_count = function to get the array count
--snip--

And I would get 3 as an answer.

Thanks,
 FletchSOD



  





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




Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns

count($array);

Scott Fletcher wrote:

Is there PHP function that would get the total array count.

ie
--snip--
$array[0] = zero;
$array[1] = one;
$array[2] = two;

$array_count = function to get the array count
--snip--

And I would get 3 as an answer.

Thanks,
 FletchSOD



  





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




Re: [PHP] function for size of array

2002-07-05 Thread Scott Fletcher

Ah!  Thanks!  By the way, it's count() with a n.  :-)

Terence Kearns [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 cout($array)

 Scott Fletcher wrote:

 Is there PHP function that would get the total array count.
 
 ie
 --snip--
 $array[0] = zero;
 $array[1] = one;
 $array[2] = two;
 
 $array_count = function to get the array count
 --snip--
 
 And I would get 3 as an answer.
 
 Thanks,
  FletchSOD
 
 
 
 
 






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




Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns

Scott Fletcher wrote:

Is there PHP function that would get the total array count.

ie
--snip--
$array[0] = zero;
$array[1] = one;
$array[2] = two;

$array_count = function to get the array count
--snip--

And I would get 3 as an answer.

Thanks,
 FletchSOD



  

count($array);



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




[PHP] help with session_decode in PHP 4.20 (fairly urgent)

2002-07-05 Thread Simon Troup

My web host has just upgraded to PHP 4.20. My MySQL database is full of
session_encoded fields, but since the upgrade I can no longer session_decode
them.

After doing phpinfo I find the following settings ...

register_argc_argvon on
register_globals  on on


I've been through the manual regarding predefined variables but must be
missing the point somewhere.

How do I get the session_encoded fields back as useable variables?

Thanks

Zim


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




[PHP] Re: New emalloc() error?

2002-07-05 Thread Richard Lynch

List,
 I think I saw this one on here before...when reading/writing the database 
I get this when executing odbc_exec(...);  What was the fix?



FATAL:  emalloc():  Unable to allocate 1073784417 bytes

This generally means that you tried to suck in a zillion bytes to a
variable, and PHP only has so much RAM, and, well, it's too much...

In this instance, you are attempting to get 1,073,784,417 bytes, which is,
oh, about a *GIG* of RAM into one variable...

Don't do that. :-)

-- 
Like Music?  http://l-i-e.com/artists.htm


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




RE: [PHP] gc_probability: requests tallied per server or domain?

2002-07-05 Thread Johnson, Kirk



 On Tue, 2 Jul 2002, Johnson, Kirk wrote:
  Is the number of requests (used for garbage collection), tallied on a
per
  server basis, or on a per domain basis?

 Pretty fair bet it's a per-server basis.
 
 miguel

Thanks, miguel. That would be my guess, too. If both of us guessed the same
thing, then we must be right. Right?!? ;)

Kirk 

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




[PHP] Re: php form with textarea

2002-07-05 Thread colin mcdonald

looks like it should work.  try echoing $action and make sure that it's 
the value you want.  you may want to try $_POST['action']

Adi wrote:
 I have a php file with two textarea and one button; i want when i press button, 
value from textarea2 is filled in textarea1.
 can u help me?
 
 my try is:
 
 //file1.php
 
 if ($action == change) {
 $arie1=$arie2;
 }
 
 echo textarea name='arie1' cols='50' rows='3'$arie1/textarea;
 echo form action=file1.php?action=change method=post\n;
 echo textarea name='arie2' cols='50' rows='3'$arie2/textarea;
 echoinput type='submit' name='submit' value='save';
 ...
 
 



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




Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread JJ Harrison

Because!

Also the audiance that will probably see the site will highly likely not
have the knowledge or intention to change the user agent var. So my Q
remains.

To add to my original Q is there seperate vars for browser and OS?

JJ Harrison
[EMAIL PROTECTED]
www.tececo.com

Alberto Serra [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 JJ Harrison wrote:
  Is there an easy way to divide up $_SERVER['HTTP_USER_AGENT'] or do I
have
  to use regular expressions(Which I have little experiance with)?

 Why would you want to use that? People write in their HTTP_USER_AGENT
 whatever they want to, and many times you'll find there a set of 4
 letter words instead of the info you look for. There is a nice add-on
 for Mozilla to make that trick even easier.

 Alberto
 Kiev


 --


 @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

 LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
 lOrD i'M sHiNiNg...
 YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is...




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




[PHP] how to resort results of a query

2002-07-05 Thread Matthew K. Gold

Hi,

How can I set things up so that a user can resort the results of a query?

Also, how can I make certain columns into links?  I'm making a site that
will list college courses.  When users decide to browse listings by
discipline, or college, I'd like the titles of the courses to be links to
fuller descriptions of those courses.  But I'm
not sure how to do that.

thanks in advance for your help.

best,

Matt



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




RE: [PHP] How to use transparent png in createfrompng?

2002-07-05 Thread joakim . andersson

Have you tried imagecopyresampled instead? Maybe it solves your problem.
It's a long-shot.
Requires GD 2.x

/Joakim

 -Original Message-
 From: Victor Spång Arthursson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 05, 2002 1:03 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] How to use transparent png in createfrompng?
 
 
 Hi!
 
 I'm having problems with createfrompng…
 
 I do the following:
 
 1 Creates a new image
 
 2 Fill it with black
 
 3 copy an jpg on to it
 
 4 write some text
 
 5 tries to use copyimageresized to put a transparent png over 
 the whole 
 image…
 
 It's in point 5 it goes wrong, because of some reason the png 
 loses its 
 transparens and becomes a white square instead of the nice 
 transparent 
 picture it was from the beginning…
 
 What have I done wrong or is it simply impossible to perform 
 what i want?
 
 Sincerely
 
 Victor
 
 
 -- 
 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] Button can't see form!

2002-07-05 Thread David Freeman


  The problem I have is with a page I build dynamically. The 
  whole page is encased in form/form tags. In between these tags
there 
  are sections echoed as a result of a databasse query. Each of these 
  sections is a form.

  form name=addproduct
  
  table
  !-- loop round result set creating a form for each row --
  form name=detail
dynamic content
  /form
  form
dynamic content
  /form
  form
dynamic content
  /form
  /table

[etc]

To the best of my knowledge you can't nest forms like this.  Even if you
can I'd suggest it's bad practice as you'll all too easily run into
problems and complexity issues (eg. Having to specifically name each
form etc).  I'd suggest finding a different way to achieve what you want
(more forms most likely).

CYA, Dave




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




[PHP] Re: opening pdf file in new window with a POST operation

2002-07-05 Thread Richard Lynch

form action=https://my.server/reports.php; method=post
target=_blank
input type=submit value='Show PDF'
/form
form action=https://my.server/reports.php; method=get
target=_blank
input type=submit value='Show PDF'
/form

These forms are identical with the exception of the post/get methods.

A PDF file is being dynamically generated and displayed in a pop-up.

The GET method form works fine, while the POST method (which is what I
need to use) pops up a message about the page containing both secure and
nonsecure data.

WTF?

Well, the new browser window opens, but you're loading a PDF, not HTML, so
it's not really getting any data at all.  The data it's not getting isn't
secure, by definition, since there's nothing there.

Meanwhile, back at the ranch, the PDF file is being transmitted securely, as
you want it to be, and that's being opened in whatever application/plug-in I
told my browser to use for PDF files.

I dunno about most folks, but my PDF files always fire up in a new
Application anyway, much less a new window.  While I realize some people
have that funky plug-in crap going on, and will see their PDF trapped inside
a browser window, you're probably best off not doing the target=_blank
part.

That will take care of the stupid warning, since there is no blank window
opening up to get the empty insecure HTML document you're not sending out.
:-)

It *IS* pretty stupid of the browser to complain about the non-secure
non-data, but it's not PHP.  You'll have to talk to your browser
manufacturer about that one.

YMMV.

Disclaimer:  This above is simply my rationalization of the browser
behaviour described (and which I've experienced).  I have not really dug
deep into source code and disassembled data to verify this working
hypothesis.

-- 
Like Music?  http://l-i-e.com/artists.htm

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




[PHP] Re: mySQL and phpMyAdmin

2002-07-05 Thread Richard Lynch

Hi, I installed php and mysql today and I'm trying to use phpMyAdmin but
I'm receiving the error message:
cannot load MySQL extension,
please check PHP Configuration.

I checked the php.ini and couldn't find anything related, my configure
command says '--with-mysql=shared,/usr' and I have no idea why it's not
working.

I'm using redhat 7.3, Apache 1.3.23, php 4.1.2 and MySQL 3.23.51

Does ?php phpinfo();? display information (other than ./configure) about
MySQL?

It's possible that you never really got MySQL compiled into PHP, even though
you asked for it...

The ./configure script has a nasty habit of continuing to process and giving
you a working PHP, but without quite all the things you asked for,
sometimes.

If all else fails, just try it without the shared, part.

-- 
Like Music?  http://l-i-e.com/artists.htm


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




Re: [PHP] PHP Automatic Backup

2002-07-05 Thread Latex Master

Hello César, PHP,
As for your question the answer is yes. At this point of time I'm
working on it also. The main idea is set of a few scripts. One for
dumping Database with data to a file, second one is creating a tar
archive, and third one using fopen to put on FTP server some
where:) It works. but I'm to lazy to complete it. :)

Friday, July 5, 2002, 12:51:17 PM, you wrote:

CA Hi all.
 
CA I was reading the post by Pag called “MySQL backups” and I have the same
CA question, but not the shell access. It came to my mind, that if will be
CA very useful for me, and probably for many of us newbie’s, to be able to
CA build an automated PHP system that could make backups by itself at a
CA specified time… let’s say maybe every morning at 6 am, by transferring
CA or uploading the MySQL files to another server. I noticed that this
CA could be done in PHPNuke, by clicking at “Backup Files”. ¿Is it possible
CA to build this kind of unattended scripts with PHP or will it always
CA require a magical “click” from the administrator?
 
CA I guess that it shouldn’t be possible, but it’s worth a shot.
 
CA Thanks in advance,
 
CA Cesar Aracena mailto:[EMAIL PROTECTED] 
CA CE / MCSE+I
CA Neuquen, Argentina
CA +54.299.6356688
CA +54.299.4466621
 



-- 
Best regards,
 Latexmailto:[EMAIL PROTECTED]


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




Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread John Legg

Hi

As far as I can see you need to manipulate HTTP_USER_AGENT yourself.  Here
is an example that I used to determine if the browser is MSIE and if so what
version it is.  What are you trying to determine?  A specific browser?

if (strStr($HTTP_USER_AGENT, MSIE)) {
  $agent_array = split(;, $HTTP_USER_AGENT);

  $ie_version = subStr($agent_array[1], 6,7);
}

Regards

John

- Original Message -
From: JJ Harrison [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 3:25 PM
Subject: Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?


 Because!

 Also the audiance that will probably see the site will highly likely not
 have the knowledge or intention to change the user agent var. So my Q
 remains.

 To add to my original Q is there seperate vars for browser and OS?

 JJ Harrison
 [EMAIL PROTECTED]
 www.tececo.com

 Alberto Serra [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]...
  JJ Harrison wrote:
   Is there an easy way to divide up $_SERVER['HTTP_USER_AGENT'] or do I
 have
   to use regular expressions(Which I have little experiance with)?
 
  Why would you want to use that? People write in their HTTP_USER_AGENT
  whatever they want to, and many times you'll find there a set of 4
  letter words instead of the info you look for. There is a nice add-on
  for Mozilla to make that trick even easier.
 
  Alberto
  Kiev
 
 
  --
 
 
  @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
 
  LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
  lOrD i'M sHiNiNg...
  YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is...
 



 --
 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] function for size of array

2002-07-05 Thread Cal Evans

size_of()
(insert obligatory RTFM comment here)
=C=

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
 

-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 9:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] function for size of array


Is there PHP function that would get the total array count.

ie
--snip--
$array[0] = zero;
$array[1] = one;
$array[2] = two;

$array_count = function to get the array count
--snip--

And I would get 3 as an answer.

Thanks,
 FletchSOD



-- 
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: adding a variable to a variable name

2002-07-05 Thread Richard Lynch

I'm wondering if this can be done, and if so, what's the proper way to do
it.

It can be done, and the proper way to do it is to use an array :-)

But, if you are hell-bent on using variable variables you should really
read the PHP documentation about them:

http://www.php.net/manual/en/language.variables.variable.php

However, you'll save yourself a *LOT* of headaches to just use arrays. 
Promise.


For the current issue I'm trying to unset some variables with common names
and I would like to step through them with a loop. Here's where I'm at to
give you an idea but the code doesn't work.

for ($i = 2; $i = 4; $i++) {
unset($level$iName);
unset($level$iUrl);
}

so the code unsets 

unset($level2Name);
unset($level2Url);
unset($level3Name);
unset($level3Url);
unset($level4Name);
unset($level4Url);

I guess I could create a variable before the unset like so

$unsetA = level . $i . Name;

but that seems cloogey.

Thanks,
Tom



-- 
Like Music?  http://l-i-e.com/artists.htm


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




Re: [PHP] Re: Handling of constants in strings

2002-07-05 Thread Uwe Birkenhain

Miguel Cruz schrieb in Nachricht ...
On Tue, 2 Jul 2002, Uwe Birkenhain wrote:
 A question - since english is not my first language - what do you mean
with
 It's not all that common to bury constants in strings

 Is something bad about it?

I think so. It would slow parsing down to a crawl and create a host of
ambiguities if every letter that ever appeared in a string had to be
compared against the list of defined constants (after all, you might have
a constant called 'a'). With normal variables, it only has to worry about
it when there's a $ before it or {} around it, which is much simpler.

miguel

Yeah,
you are right about that!

But since you have to take the constant out of the string (with {} or . .)
it shouldn't be a problem to use constants.
Correct?

Uwe



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




Re: [PHP] How to pass unknown number of variables to a function?

2002-07-05 Thread Uwe Birkenhain

Thank's for the help everybody!

I used something different (a little like this nice one from Terence (thank
you!) but with JS:

I named my form 'test' and included a hidden field 'collector'.
At the checkboxes the name is the value I need. The box, when checked, gets
the value 1.

In the boxtags I added:
 onclick=add_values($name)
where name is the value I want.

Then I wrote this little script:
 $js = script type=text/javascript
 function add_values(val) {
   document.test.'collector'.value += val;
   document.test.'collector'.value += \,\;
 }
 /script;

It produces a comma separated list in the field 'collector' whith only the
checked values.
When sending the form, only this field is transmitted. This is just what I
wanted and it works fine.

Uwe



Terence Kearns schrieb in Nachricht
[EMAIL PROTECTED]...
This is a nice easy one :)

It couldn't be simpler.

Just put empty square brackets (as used in arrays) in front of your
checkbox name.
The example below assumes you have PHP 4.1 or greater (which uses
$_POST to contain form posted data)
notice how name=ck[]


html
head
 titleUntitled/title
/head

body
?php
if(count($_POST)) {
foreach ($_POST[ck] as $varval) {
print(div.$varval./div);
}
}
?

form action=test.php method=post


input type=checkbox name=ck[] value=val1br
input type=checkbox name=ck[] value=val2br
input type=checkbox name=ck[] value=val3br
input type=checkbox name=ck[] value=val4br
input type=checkbox name=ck[] value=val5br
input type=submit
/form


/body
/html


in earlier versions of PHP, $_POST[ck] would be equal to $ck
(although, the former is safer)


On Thu, 4 Jul 2002 10:52:37 +0200, Uwe Birkenhain
[EMAIL PROTECTED] said:
 Hi everybody on this rainy morning!

 My problem:
 I give the user a form with a list of options with checkboxes.
 The list is long and not predictable - the values change always.
 I want to put the checked values (or all, that doesn't matter) in an
 array,
 to pass it to my function.

 How can I write those keys and values in an array?

 I suppose it will be best done with JS - but since I don't know JS ...
 Has anybody a ready solution?

 Thank's a lot!

 Uwe



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



[TK]



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




Re: [PHP] how to resort results of a query

2002-07-05 Thread Chris Hewitt

Matthew,

Apologies to others that this is now quite OT, let's make this the last 
of this thread. If I may suggest that this is now about pure sql 
techniques and nothing to do with php.

What I did was to create a table (not temporary as it happens) with 
fields containing all the fields that you want to display e.g.:
CREATE TABLE searchdata (
username varchar(30),
course varchar2(80),
discipline varchar2(40),
college varchar2(60));
CREATE INDEX course ON searchdata (username, course);
CREATE INDEX discipline ON searchdata (username, discipline);
CREATE INDEX college ON searchdata (username, college);
The username field is either the name the user is logged in as or some 
unique identifier you give to that user.

When you get the main sql statement, copy all the fields into 
searchdata. When you display the fields on your form, make each of the 
headings of the table you display the data in a url to this same form 
but with an orderby parameter. So e.g. the course column title is a 
url ending in orderby=course. Now when the form is called with the 
orderby parameter, instead of getting the data from the main table, get 
it from searchdata with an sql statement which includes the relevant 
order by clause. You need to arrange for the data to be deleted when 
it is finished with, I leave that to you, each case will differ.

I do not claim that this is the best way, but it is the way I used.

Hope it helps.

Chris

Matthew K. Gold wrote:

I'm sorry to trouble you further, but if you have a second, can you give me
some advice on how to store results in a temporary table with the columns
indexed?  I'm very new to PHP, and I'm not sure how to go about it.




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




Re: [PHP] $_COOKIE

2002-07-05 Thread Alberto Serra

Scott Fletcher wrote:
 That is what I thought so!  Thanks!
 
 To me, the $_COOKIE seem to get data from the browser in some way.  Correct
 me if I'm wrong.  Something like a communication between cookie.
 
 Thanks,
  FletchSOD

ðÒÉ×ÅÔ!

Yes, that's the way it works. Once you do a setcookie() on the server 
you actually issue a sort of delayed command for the client, if you 
pardon me the expression :) In short, when you print out your HTML you 
also tell the client to save some data in its disk (or RAM when you use 
session cookies).

This data will be presented back later to you with the next URL request. 
It is NOT saved on the server, it is just a sort of automatic add-on 
that you will have on all links pointing to you until the cookie 
expires. It will be presented to those URLs you specify when building 
the cookie (usually you will want to limit their action to some 
subdirectory to avoid having back data out of context).

Sounds very nice, but... But the trouble is that in doing so you issue a 
command to a machine of which you know almost nothing. Most of all, you 
don't know whether it's capable of executing your order. Or willing to, 
since users may disable cookies.

Sort of blind date, but the girl may actually not show up later... 99% 
she will, but you should not count on it.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


 
 Alberto Serra [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
Scott Fletcher wrote:

I have a question!  Since the $_COOKIE is on the server side, not on the
client side.  So, will the use of hte $_COOKIE be affected when the

 user's
 
browser disabled the cookie?  I do not know how the $_COOKIE on the

 server
 
side work or get the information from.

Thanks,
 FletchSOD




ðÒÉ×ÅÔ!

Yes, that's the problem with cookies :( In case they get disabled, or
just manually canceled) $_COOKIE will not contain anything at all. Which
is why I don't like cookies.

áÌØÂÅÒÔÏ
ëÉÅ×

--


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...

 
 
 
 



-- 


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread Chris Garaffa

JJ,

I don't know of an *easy* way, but this script (with regex's ) isn't too
bad; you can figure it out with a little bit of research.
/* begin script
ereg(^([[:alpha:]]+)/([[:digit:]\.]+)( .*)$, $HTTP_USER_AGENT, $match);
$Browser_Name=$match[1];
$Browser_Version=$match[2];
$Browser_Description=$match[3];
If(eregi(msie, $Browser_Description))
eregi(MSIE ([[:digit:]\.]+);, $Browser_Description, $match);
$Browser_Name=MSIE;
$Browser_Version = $match[1];
}
// end script
*/
So now, you have a script which gets the Name, Version and Description, and
also looks to specify MSIE as the browser. Read up on Regular Expressions,
and you can modify this for any browser/version combo.
(adopted from Listing 16.3 in Core PHP Programming by Leon Atkinson)


-- 
Chris Garaffa
#!/usr/local/lib/php
$contact_info[Name]   = Chris Garaffa;
$contact_info[Email]  = [EMAIL PROTECTED];
$contact_info[Work]   = [EMAIL PROTECTED];
$contact_info[cell]   = 203.803.9066;


He who calles himself JJ Harrison (from [EMAIL PROTECTED]) wrote on
7/5/02 10:25 AM:

 Because!
 
 Also the audiance that will probably see the site will highly likely not
 have the knowledge or intention to change the user agent var. So my Q
 remains.
 
 To add to my original Q is there seperate vars for browser and OS?


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




Re: [PHP] function for size of array

2002-07-05 Thread Jason Wong

On Friday 05 July 2002 22:20, Scott Fletcher wrote:
 Ah!  Thanks!  By the way, it's count() with a n.  :-)

That was to trick you into RTFM! Hey you were lucky that the 'o' wasn't left 
out instead :)

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

/*
The shortest distance between two points is under construction.
-- Noelie Alito
*/


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




[PHP] ./configure with register_globals turned on?

2002-07-05 Thread Scott Fletcher

What is the configure option that will turn on the register_globals?  This
is for ./configure option in UNIX / LINUX.

Thanks,
 FletchSOD



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




Re: [PHP] Little optimisation question

2002-07-05 Thread Jason Wong

On Friday 05 July 2002 19:37, Latex Master wrote:
 Hello php-general,

   I've recently faced big optimization issues. Here is mine
 situation:

 I make connection to NNTP server and fetch headers from the news group
 lets say bla.bla.bla. Connection made ok. Next Php tryes to put
 everything into the array. It's okey if number of headers are lower
 then let's say 100. But if number of headers get greater then 100,
 it's a pain in the ass. I have to wait for 90-100 seconds till the
 operation completes. (I'm talking here about large value news groups).
 So I have faced that I need to optimize it somehow.
 At this point of time i've got only idea is to put all the headers in
 the database. But not sure how to update database frequently. Any
 ideas even fantastic ones are welcome.

There is at least one php-based newsreader out there, look at how they do it.

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

/*
... Logically incoherent, semantically incomprehensible, and legally ... 
impeccable!
*/


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




[PHP] PHP for AIX.5.1

2002-07-05 Thread A Jeyaraj

Hi all,

I like to know where i can get the
PHP download for the AIX.5.1

Pl, let me know the information.

Regards,
Jey


_
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.rediff.com/jobs


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




[PHP] Re: $_SESSION troubles

2002-07-05 Thread Michiel Lange

oww... should have added a few things as information...
It's friday and one tends to forget such things then...
I'm on Slackware 8.1, PHP 4.2.1, Apache 1.3.24

maybe that helps a bit...

Michiel Lange [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello hello,

 I have this strange thing with a sort of login procedure (still working it
 out, but it will work eventually)
 On the first page, you log in (username + password)
 Then we come to 'login.php' where I have this header
   1 ?php
   2 session_start();
   3 $loginname=$_POST[loginname];
   4 $loginpw=$_POST[loginpw];
   5 session_register('loginname');
   6 session_register('loginpw');
   7 ?

 This works, I can use $loginname and $loginpw

 Somewhere on that page I have added a few buttons, and one of those
buttons
 is functional (the others have to be written yet)
 But here I have this header:
   1 ?php
   2 session_start();
   3 $loginname=$_SESSION['loginname'];
   4 $loginpw=$_SESSION['loginpw'];
   5 /*session_register('loginname');
   6 session_register('loginpw');  -- commented out, it did not
 add something seemingly */
   7 ?

 The strange thing is that if I do (hey, it's just for testing what's
 happening):
 print(loginname = $loginnamebr\n);
 print(loginpw=$loginpwbr\n);

 both loginname and loginpw contain the same information, which is the true
 information of $loginpw
 what am I doing wrong here?





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




[PHP] Re: Using fsockopen

2002-07-05 Thread Scott Fletcher

Here's the simple script that will do the trick!  This is what I use with
Equifax before I start using cURL.  You can substitute the HOSTNAME,
HOSTPORT for something else.

--clip--
?
  $errno = 0;
  $errstr= ;

  $socket = fsockopen(HOSTNAME,HOSTPORT,$errno,$errstr,30);
  if(!$socket || $errno) {
  logAction($errno,$errstr);
  echo Could Not Connect to Equifax br;
  return 0;
  }

  $senddata = $headerstr;
  $senddata .= $sendstr;
  $senddatalen = strlen($senddata);

  fwrite($socket,sprintf(%06d,$senddatalen),6);
  fwrite($socket,$senddata,$senddatalen);

  list($code,$inqdata) = getResponse($socket);

  if(!$code) {
  logAction(-2,Break Up\n);
  echo Error Communicating With Equifax br;
  fclose($socket);
  return 0;
  }

  fclose($socket);
?
--clip--

Richard Lynch [EMAIL PROTECTED] wrote in message
news:20020704233139.WAM8262.rwcrmhc52.attbi.com@[192.168.1.103]...
 I want to issue an fsockopen command to pass a POST data set to a remote
 server script.

 If you do a Google for posttohost and 'Rasmus Lerdorf' you'll find one
 already written for you... :-)

 I understand the pricipals behind fsockopen, but I cannot figure out the
 string I need to pass to POST the data - I will be emulating the output
 from a Form element.

 You would need to read a whole lot of HTTP RFC's to be sure you have it
 correct.

 Fortunately, Rasmus read all of those already :-)

 In addition, how do I detect a successful operation? before closing the
socket?.

 Yeah, the server will send back something if it worked/failed...

 --
 Like Music?  http://l-i-e.com/artists.htm




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




Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread Alberto Serra

ðÒÉ×ÅÔ!

 Because!

LOLOL okay. You can use this javascript stuff, it's more accurate and 
does not get fooled by the rubbish people write in their user_agents



// This function attempts to determine visitor's spoken language
// 
function browser_language() {
   if (navigator.appName == 'Netscape')
 var language = navigator.language;
   else
 var language = navigator.browserLanguage;

   return language;
}


// This function states whether browser is java_enabled
// 
function java_enabled() {
   // Find whether java is here
   if (navigator.javaEnabled() == 1) return Y; else return N;
}


// This function states whether browser is font smoothing capable
// 
function fontSmoothing_enabled() {
   // Find whether fonts smoothing available
   if (window.screen.fontSmoothingEnabled == true) return Y; else 
return N;
}


// This function is used to generate  the SRC parameter for the iframe
// in order to pass it all estracted parameters on clients workstation
// without using cookies
// 
function launch() {
   window.onerror=null;


   document.location = somescript.php?+
   language=+ browser_language() ++
   screen=+ 
window.screen.width+x+window.screen.height ++
   screenavailable=+ 
window.screen.availWidth+x+window.screen.availHeight ++
   colours=+ window.screen.colorDepth ++
   fonts_smoothing=+ fontSmoothing_enabled() ++
   java=+ java_enabled() ++
   browser=+ navigator.appName ++
   version=+ navigator.appVersion ++
   mozilla=+ navigator.appCodeName ++
   os=+ navigator.platform ++
   ref=+ document.referrer;


ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×





-- 


-_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




[PHP] Re: PHP for AIX.5.1

2002-07-05 Thread Scott Fletcher

Go to PHP website, http://www.php.net and at the top, you'll see the
download hyperlink.  Click on that.  Then use the tar.gz file under the
title, Complete Source Code.  This is what I use with AIX.  If you use the
RPM to install other softwares, then you'll have to make sure the
./configure option can find the files.  It is a matter of using hte
environment variables and file paths.  I had end up going back to AIX 4.3.3
because AIX 5.x use alot of Operating System archecture change.

FletchSOD

A Jeyaraj [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi all,

 I like to know where i can get the
 PHP download for the AIX.5.1

 Pl, let me know the information.

 Regards,
 Jey


 _
 There is always a better job for you at Monsterindia.com.
 Go now http://monsterindia.rediff.com/jobs




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




Re: [PHP] PHP and XML Resources

2002-07-05 Thread Analysis Solutions

Hola:

On Thu, Jul 04, 2002 at 01:12:26PM -0600, CM wrote:

 Can anyone recommend a good book or web page on php and xml?
 The Professional PHP4 XML book by wrox looks good but I haven't read any
 reviews on it.

I have a demonstration page at
http://www.analysisandsolutions.com/code/phpxml.htm

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] Re: extension problem

2002-07-05 Thread Richard Lynch

hi
I have an extension problem.
i have wrote this exemple
#include...
char* xx(){

return true;


}
it's a simple example.
I have compiled it into .SO dynamic library.
when I try to load it into PHP i get this message
cannot include .(may be not php extension).
CAN YOU HELP ME PLEASE.

You need to do some extra C macros to change it from a *normal* .so dynamic
library into a PHP .so dynamic library.

I don't know exactly what they are, but you can find a nice short sample
here:

http://conf.php.net

in Rasmus' talks

-- 
Like Music?  http://l-i-e.com/artists.htm


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




Re: [PHP] function for size of array

2002-07-05 Thread Neil Freeman

LOL - nice one Jason :)

Jason Wong wrote:
 **
 This Message Was Virus Checked With : SAVI 3.59 May 2002 
 Last Updated 3rd July 2002
 **
 
 On Friday 05 July 2002 22:20, Scott Fletcher wrote:
 
Ah!  Thanks!  By the way, it's count() with a n.  :-)
 
 
 That was to trick you into RTFM! Hey you were lucky that the 'o' wasn't left 
 out instead :)
 


-- 

Work: [EMAIL PROTECTED]
Home: [EMAIL PROTECTED]

Web:  www.curvedvision.com



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




[PHP] Re: PHP for AIX.5.1

2002-07-05 Thread Michiel Lange

That is because AIX 5.1 uses a linux kernel. That implies alot of changes
for the architecture...
However, I think you should be able to compile for 5.1, but you'll need the
required libraries which have to be compiled and installed as well... which
implies that you need the development stuff like gcc/gmake (I thought gmake
was used, from the top of my head)


Scott Fletcher [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Go to PHP website, http://www.php.net and at the top, you'll see the
 download hyperlink.  Click on that.  Then use the tar.gz file under the
 title, Complete Source Code.  This is what I use with AIX.  If you use
the
 RPM to install other softwares, then you'll have to make sure the
 ./configure option can find the files.  It is a matter of using hte
 environment variables and file paths.  I had end up going back to AIX
4.3.3
 because AIX 5.x use alot of Operating System archecture change.

 FletchSOD

 A Jeyaraj [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi all,
 
  I like to know where i can get the
  PHP download for the AIX.5.1
 
  Pl, let me know the information.
 
  Regards,
  Jey
 
 
  _
  There is always a better job for you at Monsterindia.com.
  Go now http://monsterindia.rediff.com/jobs
 





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




Re: [PHP] Re: opening pdf file in new window with a POSToperation

2002-07-05 Thread Pete James

Tom Rogers wrote:
 
 Hi
 get data is insecure by nature so the whole page is insecure and no
 warnings, as soon as you post you invoke the security. You probably have a
 url on your page that is coming from an insecure server (http://  instead
 of https://)
 Tom

Believe me when I say that there are no insecure links, or parts of my
page coming from such... everything refers to https://, and besides it's
a PDF with no links, and it is fully generated on a secure application
server... and if there were insecure links, they would invoke warnings
on the GET as well...

This problem is going to drive me to the bottle... 

Thanks,
P.


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


[PHP] Re: PHP for AIX.5.1

2002-07-05 Thread Scott Fletcher

Yea, it use the Linux Kernel.  I had to download RPM stuffs from IBM.  It
can not be from Red Hat or any other.  IBM take the source code and put it
into RPM.  IBM kept making error message about some RPMs, so that is why I
went back to non-linux kernal AIX.

Michiel Lange [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 That is because AIX 5.1 uses a linux kernel. That implies alot of changes
 for the architecture...
 However, I think you should be able to compile for 5.1, but you'll need
the
 required libraries which have to be compiled and installed as well...
which
 implies that you need the development stuff like gcc/gmake (I thought
gmake
 was used, from the top of my head)


 Scott Fletcher [EMAIL PROTECTED] schreef in bericht
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Go to PHP website, http://www.php.net and at the top, you'll see the
  download hyperlink.  Click on that.  Then use the tar.gz file under the
  title, Complete Source Code.  This is what I use with AIX.  If you use
 the
  RPM to install other softwares, then you'll have to make sure the
  ./configure option can find the files.  It is a matter of using hte
  environment variables and file paths.  I had end up going back to AIX
 4.3.3
  because AIX 5.x use alot of Operating System archecture change.
 
  FletchSOD
 
  A Jeyaraj [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   Hi all,
  
   I like to know where i can get the
   PHP download for the AIX.5.1
  
   Pl, let me know the information.
  
   Regards,
   Jey
  
  
   _
   There is always a better job for you at Monsterindia.com.
   Go now http://monsterindia.rediff.com/jobs
  
 
 





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




Re: [PHP] Re: Does Location: headers constantly

2002-07-05 Thread Analysis Solutions

On Fri, Jul 05, 2002 at 01:56:58AM -0500, Miguel Cruz wrote:
 
 Interesting. What tests did you perform?

I used similar things, including a file('test.php') statement in 
another php script and using GET from the command line.

telnet is a good test, but I didn't have it available at the time.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] to remove html tags from a string.

2002-07-05 Thread Anil Garg

Hi,
How to do whats written in the commented line(//) in the code below:

?php
$term = .Btest/b;
if(stristr($term,)  stristr($term,)  !stristr($term,br) 
!stristr($term,p) ){
printf(its html tag);
// here i want to remove the html tags from $term and then print
it.(here it should print '.test')
}
else{
printf(not a html tag.);
}
?
Thanx and regards
anil


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




Re: [PHP] function for size of array

2002-07-05 Thread Scott Fletcher

What is RTFM??

Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Friday 05 July 2002 22:20, Scott Fletcher wrote:
  Ah!  Thanks!  By the way, it's count() with a n.  :-)

 That was to trick you into RTFM! Hey you were lucky that the 'o' wasn't
left
 out instead :)

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

 /*
 The shortest distance between two points is under construction.
 -- Noelie Alito
 */




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




[PHP] localhost - passing variables

2002-07-05 Thread Tony Tzankoff

Is it possible to pass variables in PHP on the localhost server? Is there
some kind of setting or something that I need? I am new to this and am not
sure how to go about this. When I upload to a server, the script I have
works just fine; but when I work on it locally, it does not work. Please
help while I am still technically sane. Thanks. :oP

Tony Tzankoff
http://www.tzankoff.com





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




Re: [PHP] $_COOKIE

2002-07-05 Thread Scott Fletcher

Not a problem!  I noticed the PHPSESSID only showed up on $_COOKIE and
nothing else.  I dont' want to use the $_COOKIE, so I may either assign it
to $_SESSION or $GLOBALS.

FletchSOD
Alberto Serra [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Scott Fletcher wrote:
  That is what I thought so!  Thanks!
 
  To me, the $_COOKIE seem to get data from the browser in some way.
Correct
  me if I'm wrong.  Something like a communication between cookie.
 
  Thanks,
   FletchSOD

 ðÒÉ×ÅÔ!

 Yes, that's the way it works. Once you do a setcookie() on the server
 you actually issue a sort of delayed command for the client, if you
 pardon me the expression :) In short, when you print out your HTML you
 also tell the client to save some data in its disk (or RAM when you use
 session cookies).

 This data will be presented back later to you with the next URL request.
 It is NOT saved on the server, it is just a sort of automatic add-on
 that you will have on all links pointing to you until the cookie
 expires. It will be presented to those URLs you specify when building
 the cookie (usually you will want to limit their action to some
 subdirectory to avoid having back data out of context).

 Sounds very nice, but... But the trouble is that in doing so you issue a
 command to a machine of which you know almost nothing. Most of all, you
 don't know whether it's capable of executing your order. Or willing to,
 since users may disable cookies.

 Sort of blind date, but the girl may actually not show up later... 99%
 she will, but you should not count on it.

 ðÏËÁ
 áÌØÂÅÒÔÏ
 ëÉÅ×


 
  Alberto Serra [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
 Scott Fletcher wrote:
 
 I have a question!  Since the $_COOKIE is on the server side, not on
the
 client side.  So, will the use of hte $_COOKIE be affected when the
 
  user's
 
 browser disabled the cookie?  I do not know how the $_COOKIE on the
 
  server
 
 side work or get the information from.
 
 Thanks,
  FletchSOD
 
 
 
 
 ðÒÉ×ÅÔ!
 
 Yes, that's the problem with cookies :( In case they get disabled, or
 just manually canceled) $_COOKIE will not contain anything at all. Which
 is why I don't like cookies.
 
 áÌØÂÅÒÔÏ
 ëÉÅ×
 
 --
 
 
 @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
 
 LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
 lOrD i'M sHiNiNg...
 YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is...
 
 
 
 
 



 --


 @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

 LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
 lOrD i'M sHiNiNg...
 YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is
 tHe TeSt, YeS iT iS
 ThE tEsT, yEs It Is...




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




Re: [PHP] to remove html tags from a string.

2002-07-05 Thread Philip Olson

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


On Fri, 5 Jul 2002, Anil Garg wrote:

 Hi,
 How to do whats written in the commented line(//) in the code below:
 
 ?php
 $term = .Btest/b;
 if(stristr($term,)  stristr($term,)  !stristr($term,br) 
 !stristr($term,p) ){
 printf(its html tag);
 // here i want to remove the html tags from $term and then print
 it.(here it should print '.test')
 }
 else{
 printf(not a html tag.);
 }
 ?
 Thanx and regards
 anil
 
 
 -- 
 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] function for size of array

2002-07-05 Thread Philip Olson


It's a term with many different meanings.  See:

  http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?RTFM


On Fri, 5 Jul 2002, Scott Fletcher wrote:

 What is RTFM??
 
 Jason Wong [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  On Friday 05 July 2002 22:20, Scott Fletcher wrote:
   Ah!  Thanks!  By the way, it's count() with a n.  :-)
 
  That was to trick you into RTFM! Hey you were lucky that the 'o' wasn't
 left
  out instead :)
 
  --
  Jason Wong - Gremlins Associates - www.gremlins.com.hk
  Open Source Software Systems Integrators
  * Web Design  Hosting * Internet  Intranet Applications Development *
 
  /*
  The shortest distance between two points is under construction.
  -- Noelie Alito
  */
 
 
 
 
 -- 
 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] localhost - passing variables

2002-07-05 Thread Martin Clifford

If you're using one of the more recent releases of PHP4+, then register_globals is set 
to OFF by default in your php.ini file.  Change this to ON or use 
$_GET['variable']/$_POST['variable'] to access the values.

Martin

 Tony Tzankoff [EMAIL PROTECTED] 07/05/02 12:43PM 
Is it possible to pass variables in PHP on the localhost server? Is there
some kind of setting or something that I need? I am new to this and am not
sure how to go about this. When I upload to a server, the script I have
works just fine; but when I work on it locally, it does not work. Please
help while I am still technically sane. Thanks. :oP

Tony Tzankoff
http://www.tzankoff.com 





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



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




Re: [PHP] $_COOKIE

2002-07-05 Thread Philip Olson


For session id, use session_id()
 
  http://www.php.net/session_id

Regards,
Philip Olson


On Fri, 5 Jul 2002, Scott Fletcher wrote:

 Not a problem!  I noticed the PHPSESSID only showed up on $_COOKIE and
 nothing else.  I dont' want to use the $_COOKIE, so I may either assign it
 to $_SESSION or $GLOBALS.
 
 FletchSOD
 Alberto Serra [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Scott Fletcher wrote:
   That is what I thought so!  Thanks!
  
   To me, the $_COOKIE seem to get data from the browser in some way.
 Correct
   me if I'm wrong.  Something like a communication between cookie.
  
   Thanks,
FletchSOD
 
  ðÒÉ×ÅÔ!
 
  Yes, that's the way it works. Once you do a setcookie() on the server
  you actually issue a sort of delayed command for the client, if you
  pardon me the expression :) In short, when you print out your HTML you
  also tell the client to save some data in its disk (or RAM when you use
  session cookies).
 
  This data will be presented back later to you with the next URL request.
  It is NOT saved on the server, it is just a sort of automatic add-on
  that you will have on all links pointing to you until the cookie
  expires. It will be presented to those URLs you specify when building
  the cookie (usually you will want to limit their action to some
  subdirectory to avoid having back data out of context).
 
  Sounds very nice, but... But the trouble is that in doing so you issue a
  command to a machine of which you know almost nothing. Most of all, you
  don't know whether it's capable of executing your order. Or willing to,
  since users may disable cookies.
 
  Sort of blind date, but the girl may actually not show up later... 99%
  she will, but you should not count on it.
 
  ðÏËÁ
  áÌØÂÅÒÔÏ
  ëÉÅ×
 
 
  
   Alberto Serra [EMAIL PROTECTED] wrote in message
   [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  
  Scott Fletcher wrote:
  
  I have a question!  Since the $_COOKIE is on the server side, not on
 the
  client side.  So, will the use of hte $_COOKIE be affected when the
  
   user's
  
  browser disabled the cookie?  I do not know how the $_COOKIE on the
  
   server
  
  side work or get the information from.
  
  Thanks,
   FletchSOD
  
  
  
  
  ðÒÉ×ÅÔ!
  
  Yes, that's the problem with cookies :( In case they get disabled, or
  just manually canceled) $_COOKIE will not contain anything at all. Which
  is why I don't like cookies.
  
  áÌØÂÅÒÔÏ
  ëÉÅ×
  
  --
  
  
  @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
  
  LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
  lOrD i'M sHiNiNg...
  YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is...
  
  
  
  
  
 
 
 
  --
 
 
  @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
 
  LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
  lOrD i'M sHiNiNg...
  YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is...
 
 
 
 
 -- 
 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] $_COOKIE

2002-07-05 Thread Scott Fletcher

On every web pages or just the 1st page for initalizing the session?

FletchSOD

Philip Olson [EMAIL PROTECTED] wrote in message
Pine.BSF.4.10.10207051647410.68593-10@localhost">news:Pine.BSF.4.10.10207051647410.68593-10@localhost...

For session id, use session_id()

  http://www.php.net/session_id

Regards,
Philip Olson


On Fri, 5 Jul 2002, Scott Fletcher wrote:

 Not a problem!  I noticed the PHPSESSID only showed up on $_COOKIE and
 nothing else.  I dont' want to use the $_COOKIE, so I may either assign it
 to $_SESSION or $GLOBALS.

 FletchSOD
 Alberto Serra [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Scott Fletcher wrote:
   That is what I thought so!  Thanks!
  
   To me, the $_COOKIE seem to get data from the browser in some way.
 Correct
   me if I'm wrong.  Something like a communication between cookie.
  
   Thanks,
FletchSOD
 
  ðÒÉ×ÅÔ!
 
  Yes, that's the way it works. Once you do a setcookie() on the server
  you actually issue a sort of delayed command for the client, if you
  pardon me the expression :) In short, when you print out your HTML you
  also tell the client to save some data in its disk (or RAM when you use
  session cookies).
 
  This data will be presented back later to you with the next URL request.
  It is NOT saved on the server, it is just a sort of automatic add-on
  that you will have on all links pointing to you until the cookie
  expires. It will be presented to those URLs you specify when building
  the cookie (usually you will want to limit their action to some
  subdirectory to avoid having back data out of context).
 
  Sounds very nice, but... But the trouble is that in doing so you issue a
  command to a machine of which you know almost nothing. Most of all, you
  don't know whether it's capable of executing your order. Or willing to,
  since users may disable cookies.
 
  Sort of blind date, but the girl may actually not show up later... 99%
  she will, but you should not count on it.
 
  ðÏËÁ
  áÌØÂÅÒÔÏ
  ëÉÅ×
 
 
  
   Alberto Serra [EMAIL PROTECTED] wrote in message
   [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  
  Scott Fletcher wrote:
  
  I have a question!  Since the $_COOKIE is on the server side, not on
 the
  client side.  So, will the use of hte $_COOKIE be affected when the
  
   user's
  
  browser disabled the cookie?  I do not know how the $_COOKIE on the
  
   server
  
  side work or get the information from.
  
  Thanks,
   FletchSOD
  
  
  
  
  ðÒÉ×ÅÔ!
  
  Yes, that's the problem with cookies :( In case they get disabled, or
  just manually canceled) $_COOKIE will not contain anything at all.
Which
  is why I don't like cookies.
  
  áÌØÂÅÒÔÏ
  ëÉÅ×
  
  --
  
  
  @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
  
  LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
  lOrD i'M sHiNiNg...
  YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is...
  
  
  
  
  
 
 
 
  --
 
 
  @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
 
  LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
  lOrD i'M sHiNiNg...
  YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is
  tHe TeSt, YeS iT iS
  ThE tEsT, yEs It Is...
 



 --
 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] localhost - passing variables

2002-07-05 Thread Philip Olson

A guess:

Your local server has different settings then the 
remote server.  Specifically, the register_globals
directive.

  For example, take this url:

http://www.example.com/foo.php?id=3

  If register_globals = off you can get this by:

// These methods work as of PHP 4.1.0
print $_GET['id'];
print $_REQUEST['id'];

import_request_variables('gpc', 'r_');
print $r_id;

// This works as of PHP 3
print $HTTP_GET_VARS['id'];

  If register_globals = on, an additional method exists.

// Works if register_globals = on
print $id;

It's preferred to not rely on register_globals = on.  In 
fact, this directive is deprecated and may not work one 
day.  As of PHP 4.2.0 this defaults to off in php.ini.

See also:
  http://www.php.net/manual/en/language.variables.predefined.php
  http://www.php.net/registerglobals

Regards,
Philip Olson


On Fri, 5 Jul 2002, Tony Tzankoff wrote:

 Is it possible to pass variables in PHP on the localhost server? Is there
 some kind of setting or something that I need? I am new to this and am not
 sure how to go about this. When I upload to a server, the script I have
 works just fine; but when I work on it locally, it does not work. Please
 help while I am still technically sane. Thanks. :oP
 
 Tony Tzankoff
 http://www.tzankoff.com
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




[PHP] Session not expiring

2002-07-05 Thread Peter Atkins

All,

My session is not expiring and I believe that I set this correctly.
I'm looking for a 15 minute expiration time.

My current setting:

session.cookie_lifetime   = 900 ; lifetime in seconds of cookie
; or if 0, until browser is restarted

Is this the correct why to achieve this? If so what else can it be?

Thanks,
-p

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




Re: [PHP] ./configure with register_globals turned on?

2002-07-05 Thread Scott Fletcher

I give up!  It still won't turned on!  I tried stopping and restarting
Apache, rebooting the machine, checked phpinfo to see the php.ini file path
is, etc.  At least, my boss understand.  I'm going to stick to upgrading the
website to go without register global.

FletchSOD
Larry Rosenman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Fri, 2002-07-05 at 10:04, Scott Fletcher wrote:
  What is the configure option that will turn on the register_globals?
This
  is for ./configure option in UNIX / LINUX.
 It's in php.ini.  Look at the phpinfo() output, and modify to include
 the register_globals=ON, then restart Apache (assuming it's in an apache
 module).



 --
 Larry Rosenman http://www.lerctr.org/~ler
 Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
 US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749




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




[PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Kondwani Spike Mkandawire

Quick Question on Cookies vs. IP Number:

They appear to be easy to set (well at least in PHP), hence quite
easily to get around (The user of your Site simply deletes the
Cookie on his Hard Drive...)  In Konqueror you are actually
given the option of rejecting cookies...  Using
getenv($REMOTE_ADDR) to retrieve someones IP number
isn't too reliable either in the case that someone is using
Dial Up...  I just want to get ideas from other PHP Coders as
to how they secure their Sites and actually keep an accurate
record as to who and how many people visit  your sites..
coz even a combination of Cookies and IP would be easily
by-passed...

Some Ideas if you may folks...

Spike...



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




RE: [PHP] Session not expiring

2002-07-05 Thread Lazor, Ed

It looks like you're doing it correctly.  Use phpinfo() to verify the
php.ini file being used.  Maybe the system's using one other than what you
updated.

-Original Message-
From: Peter Atkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Session not expiring


All,

My session is not expiring and I believe that I set this correctly.
I'm looking for a 15 minute expiration time.

My current setting:

session.cookie_lifetime   = 900 ; lifetime in seconds of cookie
; or if 0, until browser is restarted

Is this the correct why to achieve this? If so what else can it be?

Thanks,
-p

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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] Scheduling tasks

2002-07-05 Thread Frank S. Kicenko


Hi,
I couldn't find anything in the help files or the faq... but.

Are there any scheduling fuctions with PHP? What I'm looking for is
something functionally close to a crontab.

Thanks

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




RE: [PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Lazor, Ed

I've typically seen the use of a login / cookie in tracking users and
providing security.  

-Original Message-
Quick Question on Cookies vs. IP Number:

They appear to be easy to set (well at least in PHP), hence quite
easily to get around (The user of your Site simply deletes the
Cookie on his Hard Drive...)  In Konqueror you are actually
given the option of rejecting cookies...  Using
getenv($REMOTE_ADDR) to retrieve someones IP number
isn't too reliable either in the case that someone is using
Dial Up...  I just want to get ideas from other PHP Coders as
to how they secure their Sites and actually keep an accurate
record as to who and how many people visit  your sites..
coz even a combination of Cookies and IP would be easily
by-passed...

Some Ideas if you may folks...
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




Re: [PHP] function for size of array

2002-07-05 Thread Kondwani Spike Mkandawire

Neat!...
Philip Olson [EMAIL PROTECTED] wrote in message
Pine.BSF.4.10.10207051644510.68593-10@localhost">news:Pine.BSF.4.10.10207051644510.68593-10@localhost...

 It's a term with many different meanings.  See:

   http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?RTFM


 On Fri, 5 Jul 2002, Scott Fletcher wrote:

  What is RTFM??
 
  Jason Wong [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   On Friday 05 July 2002 22:20, Scott Fletcher wrote:
Ah!  Thanks!  By the way, it's count() with a n.  :-)
  
   That was to trick you into RTFM! Hey you were lucky that the 'o'
wasn't
  left
   out instead :)
  
   --
   Jason Wong - Gremlins Associates - www.gremlins.com.hk
   Open Source Software Systems Integrators
   * Web Design  Hosting * Internet  Intranet Applications Development
*
  
   /*
   The shortest distance between two points is under construction.
   -- Noelie Alito
   */
  
 
 
 
  --
  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] ./configure with register_globals turned on?

2002-07-05 Thread Rasmus Lerdorf

So putting the line:

register_globals = on

In your php.ini file (path to it specified in your phpinfo() output)
didn't work?

Check the following:

1. Are you sure there isn't a second register_globals = off entry
   somewhere in that file?

2. Does the web server have read access to the directory and the php.ini
   file itself?

3. Can you change other things and see the change in your phpinfo()
   output?

This really does work.

-Rasmus

On Fri, 5 Jul 2002, Scott Fletcher wrote:

 I give up!  It still won't turned on!  I tried stopping and restarting
 Apache, rebooting the machine, checked phpinfo to see the php.ini file path
 is, etc.  At least, my boss understand.  I'm going to stick to upgrading the
 website to go without register global.

 FletchSOD
 Larry Rosenman [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  On Fri, 2002-07-05 at 10:04, Scott Fletcher wrote:
   What is the configure option that will turn on the register_globals?
 This
   is for ./configure option in UNIX / LINUX.
  It's in php.ini.  Look at the phpinfo() output, and modify to include
  the register_globals=ON, then restart Apache (assuming it's in an apache
  module).
 
 
 
  --
  Larry Rosenman http://www.lerctr.org/~ler
  Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
  US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
 



 --
 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] ./configure with register_globals turned on?

2002-07-05 Thread Andre Dubuc

Hi Scott,

I've come to this post a little late, but I had exactly the same problem. No 
matter what I set php.ini, phpinfo() would not show changes.

If I recall correctly, the problem sort of 'disappeared' by itself. I finally 
resolved it by rebooting immediately after setting the new php.ini (this was 
on Linux-Mandrake 8.2). Further, if I recall, (and this was three months ago) 
I think I re-installed PHP, but it made no difference. Make sure Apache is 
'off' before you attempt to change php.ini. Also, in my config, there was 
another php.ini hidden in /etc/httpd  -- do a 'locate' to see if you have 
multiple copies!

I had a  lot quirky things happen while trying to configure PHP 4.1.1. and a 
few with 4.1.2. For some odd reason, after a few attempts it does work. Try 
again, would be my advice. It'll work sooner or later : You might want to 
run a test to see if globals are really 'on' or 'off' -- I really don't trust 
the phpinfo() output!

Not much help, but hth
Andre

On Friday 05 July 2002 01:36 pm, you wrote:
 I give up!  It still won't turned on!  I tried stopping and restarting
 Apache, rebooting the machine, checked phpinfo to see the php.ini file path
 is, etc.  At least, my boss understand.  I'm going to stick to upgrading
 the website to go without register global.

 FletchSOD
 Larry Rosenman [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

  On Fri, 2002-07-05 at 10:04, Scott Fletcher wrote:
   What is the configure option that will turn on the register_globals?

 This

   is for ./configure option in UNIX / LINUX.
 
  It's in php.ini.  Look at the phpinfo() output, and modify to include
  the register_globals=ON, then restart Apache (assuming it's in an apache
  module).
 
 
 
  --
  Larry Rosenman http://www.lerctr.org/~ler
  Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
  US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

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




RE: [PHP] Scheduling tasks

2002-07-05 Thread Lazor, Ed

From what I've seen, people use crontab do call php scripts - effectively
scheduling functions.

-Original Message-
From: Frank S. Kicenko [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 10:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Scheduling tasks



Hi,
I couldn't find anything in the help files or the faq... but.

Are there any scheduling fuctions with PHP? What I'm looking for is
something functionally close to a crontab.

Thanks

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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




RE: [PHP] Session not expiring

2002-07-05 Thread Lazor, Ed

phpinfo reports session.cookie_lifetime as 900 (15 minutes), but sessions
don't expire in 15 minutes.  How are you running sessions?  How are you
setting cookies?  How are you testing to see whether the session has
expired?

-Original Message-
From: Peter Atkins [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 11:17 AM
To: 'Lazor, Ed'
Subject: RE: [PHP] Session not expiring


This is what I get: 

Directive Local Value Master Value 
session.auto_start
 Off Off 
session.cache_expire
 180 180 
session.cache_limiter
 nocache nocache 
session.cookie_domain
 no value no value 
session.cookie_lifetime
 900 900 
session.cookie_path
 / / 
session.cookie_secure
 Off Off 
session.entropy_file
 no value no value 
session.entropy_length
 0 0 
session.gc_maxlifetime
 1440 1440 
session.gc_probability
 1 1 
session.name
 PHPSESSID PHPSESSID 
session.referer_check
 no value no value 
session.save_handler
 files files 
session.save_path
 /tmp /tmp 
session.serialize_handler
 php php 
session.use_cookies
 On On 
session.use_trans_sid
 1 1 

 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] I'm sorry, Test

2002-07-05 Thread Skyhawk

Test
__ Skyhawk
ICQ#: 46195280 Current ICQ status: + More ways to contact me
__



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




[PHP] Configuring the Session Function in php.ini for WinNT...

2002-07-05 Thread Kondwani Spike Mkandawire

Does anyone know how to configure the session function in
the php.ini File under WinNT...  The Session Function appears
to be generic to UNIX...  What do I change the save_path
variable to...

session.save_path = ?




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




RE: [PHP] Configuring the Session Function in php.ini for WinNT...

2002-07-05 Thread Lazor, Ed

Any temp directory set aside for this purpose.  You can create one c:\temp
or c:\temp\sessions



-Original Message-
From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Configuring the Session Function in php.ini for WinNT...


Does anyone know how to configure the session function in
the php.ini File under WinNT...  The Session Function appears
to be generic to UNIX...  What do I change the save_path
variable to...

session.save_path = ?




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

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




Re: [PHP] ./configure with register_globals turned on?

2002-07-05 Thread Scott Fletcher

I tried following all of your suggestion and so far, still the same.  I
tried changing other feature in the php.ini and check the phpinfo and found
that they haven't changed either.  So, the problem lie with the file path in
finding the php.ini file.  I only have one php.ini file.  The other are in
the php source code.  Oh well, I'm going to let it go and move on!  Need to
finish upgrading the website and if there time, start experiementing on
moving the website to Linux.  I'm going to try mySQL instead of IBM DB2.

Thanks,
 FletSOD

Andre Dubuc [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Scott,

 I've come to this post a little late, but I had exactly the same problem.
No
 matter what I set php.ini, phpinfo() would not show changes.

 If I recall correctly, the problem sort of 'disappeared' by itself. I
finally
 resolved it by rebooting immediately after setting the new php.ini (this
was
 on Linux-Mandrake 8.2). Further, if I recall, (and this was three months
ago)
 I think I re-installed PHP, but it made no difference. Make sure Apache is
 'off' before you attempt to change php.ini. Also, in my config, there was
 another php.ini hidden in /etc/httpd  -- do a 'locate' to see if you have
 multiple copies!

 I had a  lot quirky things happen while trying to configure PHP 4.1.1. and
a
 few with 4.1.2. For some odd reason, after a few attempts it does work.
Try
 again, would be my advice. It'll work sooner or later : You might want to
 run a test to see if globals are really 'on' or 'off' -- I really don't
trust
 the phpinfo() output!

 Not much help, but hth
 Andre

 On Friday 05 July 2002 01:36 pm, you wrote:
  I give up!  It still won't turned on!  I tried stopping and restarting
  Apache, rebooting the machine, checked phpinfo to see the php.ini file
path
  is, etc.  At least, my boss understand.  I'm going to stick to upgrading
  the website to go without register global.
 
  FletchSOD
  Larry Rosenman [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
   On Fri, 2002-07-05 at 10:04, Scott Fletcher wrote:
What is the configure option that will turn on the register_globals?
 
  This
 
is for ./configure option in UNIX / LINUX.
  
   It's in php.ini.  Look at the phpinfo() output, and modify to include
   the register_globals=ON, then restart Apache (assuming it's in an
apache
   module).
  
  
  
   --
   Larry Rosenman http://www.lerctr.org/~ler
   Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
   US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



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




Re: [PHP] ./configure with register_globals turned on?

2002-07-05 Thread Rasmus Lerdorf

And the php.ini file you are changing is the one listed in your phpinfo()
output?  Looks to me like your php.ini file is in the wrong place.

On Fri, 5 Jul 2002, Scott Fletcher wrote:

 I tried following all of your suggestion and so far, still the same.  I
 tried changing other feature in the php.ini and check the phpinfo and found
 that they haven't changed either.  So, the problem lie with the file path in
 finding the php.ini file.  I only have one php.ini file.  The other are in
 the php source code.  Oh well, I'm going to let it go and move on!  Need to
 finish upgrading the website and if there time, start experiementing on
 moving the website to Linux.  I'm going to try mySQL instead of IBM DB2.

 Thanks,
  FletSOD

 Andre Dubuc [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi Scott,
 
  I've come to this post a little late, but I had exactly the same problem.
 No
  matter what I set php.ini, phpinfo() would not show changes.
 
  If I recall correctly, the problem sort of 'disappeared' by itself. I
 finally
  resolved it by rebooting immediately after setting the new php.ini (this
 was
  on Linux-Mandrake 8.2). Further, if I recall, (and this was three months
 ago)
  I think I re-installed PHP, but it made no difference. Make sure Apache is
  'off' before you attempt to change php.ini. Also, in my config, there was
  another php.ini hidden in /etc/httpd  -- do a 'locate' to see if you have
  multiple copies!
 
  I had a  lot quirky things happen while trying to configure PHP 4.1.1. and
 a
  few with 4.1.2. For some odd reason, after a few attempts it does work.
 Try
  again, would be my advice. It'll work sooner or later : You might want to
  run a test to see if globals are really 'on' or 'off' -- I really don't
 trust
  the phpinfo() output!
 
  Not much help, but hth
  Andre
 
  On Friday 05 July 2002 01:36 pm, you wrote:
   I give up!  It still won't turned on!  I tried stopping and restarting
   Apache, rebooting the machine, checked phpinfo to see the php.ini file
 path
   is, etc.  At least, my boss understand.  I'm going to stick to upgrading
   the website to go without register global.
  
   FletchSOD
   Larry Rosenman [EMAIL PROTECTED] wrote in message
   [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  
On Fri, 2002-07-05 at 10:04, Scott Fletcher wrote:
 What is the configure option that will turn on the register_globals?
  
   This
  
 is for ./configure option in UNIX / LINUX.
   
It's in php.ini.  Look at the phpinfo() output, and modify to include
the register_globals=ON, then restart Apache (assuming it's in an
 apache
module).
   
   
   
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



 --
 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: Configuring the Session Function in php.ini for WinNT...

2002-07-05 Thread colin mcdonald

I set it to:

session.save_path = c:\temp\

And it works great for me

Kondwani Spike Mkandawire wrote:
 Does anyone know how to configure the session function in
 the php.ini File under WinNT...  The Session Function appears
 to be generic to UNIX...  What do I change the save_path
 variable to...
 
 session.save_path = ?
 
 
 


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




Re: [PHP] Scheduling tasks

2002-07-05 Thread Miguel Cruz

On Fri, 5 Jul 2002, Frank S. Kicenko wrote:
 I couldn't find anything in the help files or the faq... but.
 
 Are there any scheduling fuctions with PHP? What I'm looking for is
 something functionally close to a crontab.

Crontab would work.

Or you could make a library that you include in often-requested files
which checks and updates a task list to take care of anything that needs
to be done.  You may not get perfect Swiss-train timing but if your site
has decent levels of traffic it should work.

miguel


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




Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Jerome Houston

If I could elaborate on colin's explanation
Mainly so that there is a fairly recent one of these in the archives
(not that anybody searches them :-)

Like miguel said encryption in an HTTP request/response pair is determined 
by your browser.

if the browser is making a request, and it sees an https:// at the beginning 
of the request URL, it will :
1.  get the domain's public key from a public key server
2.  encrypt the whole request with the domain's public key
3.  submit it to the web server.

If the web server sees that this is an encrypted request, it will :
1.  decrypt the request with it's private key
2.  process it and generate a response (usually in the form of html)
3.  encrypt the response with it's private key
4.  send it back to the browser

When the browser gets the response, it:
1.  decrypts it with the public key
2.  displays the html to the client user
3.  ***shows a lock icon at the bottom of the browser

Now, one of the things that many people are confused about is that they 
think there must be a lock icon at the bottom of the browser when they are 
entering sensitive info (like credit card numbers).  Nope.  The only 
important thing is that the form which takes the sensitive data SUBMITS to 
an https:// URL.  Because (as above) it will encrypt the request (which 
includes the sensitive data) BEFORE it submits it over the internet.  But 
most people don't know how to check that a form submits to an to an https:// 
URL.  So, the standard practice is to have the page containing the form 
which takes the sensitive data ALSO be an https:// URL, so that the lock 
icon is already there when the client user is entering that oh-so-prized 
sensitive data, even though there's nothing really to protect in that HTTP 
request/response pair.

PHP is, in a way, completely separate from the HTTP/HTTPS layer.  When PHP 
is started up by the web server, regardless of the encryption (or lack 
thereof) of the original request, PHP gets the non-encrypted (or already 
decrypted) request.  When it sends its response output to the webserver to 
be sent to the client, it sends that output unencrypted.  It's completely up 
to the web server to either encrypt the response, then send it out, or to 
just send it with no modification.

I hope that helps your understanding of what's going on with all this 
HTTP/HTTPS stuff.  I also hope that i've been clear about it.  It's kind of 
easy to get lost in terms.

Jerome

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: [PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Miguel Cruz

On Fri, 5 Jul 2002, Kondwani Spike Mkandawire wrote:
 Quick Question on Cookies vs. IP Number:
 
 They appear to be easy to set (well at least in PHP), hence quite
 easily to get around (The user of your Site simply deletes the
 Cookie on his Hard Drive...)  In Konqueror you are actually
 given the option of rejecting cookies...  Using
 getenv($REMOTE_ADDR) to retrieve someones IP number
 isn't too reliable either in the case that someone is using
 Dial Up...  I just want to get ideas from other PHP Coders as
 to how they secure their Sites and actually keep an accurate
 record as to who and how many people visit  your sites..
 coz even a combination of Cookies and IP would be easily
 by-passed...

IP numbers are pretty useless for this. A given user's IP address can 
change during a session, and multiple users can share IP addresses.

I'm not sure what your concerns about cookies are wrt security; they can
be part of a pretty tight system. Perhaps you could elaborate. For people
who don't accept session cookies, you'll have to pass a token around in
the URL or in a hidden form item.

miguel


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




Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Miguel Cruz

On Fri, 5 Jul 2002, Jerome Houston wrote:
 if the browser is making a request, and it sees an https:// at the beginning 
 of the request URL, it will :
 1.  get the domain's public key from a public key server
 2.  encrypt the whole request with the domain's public key
 3.  submit it to the web server.

We have public key servers?

Around these parts the client and server use a self-contained process to 
handle the key exchange. The server's key has been signed by a certificate 
authority (Verisign, etc.) whose public key is already stored in the 
browser... or not, in which case the client alerts the user and generally 
continues nevertheless.

 If the web server sees that this is an encrypted request, it will :
 1.  decrypt the request with it's private key
 2.  process it and generate a response (usually in the form of html)
 3.  encrypt the response with it's private key
 4.  send it back to the browser

Sort of. The server's key is used to encrypt the exchange of a new key
which lasts only for the lifetime of the transaction. This ephemeral key
is what's used to encrypt the actual data. But this nuance is probably not
very important to understanding the practical issues of working with PHP 
and HTTPs.

 Now, one of the things that many people are confused about is that they
 think there must be a lock icon at the bottom of the browser when they
 are entering sensitive info (like credit card numbers).  Nope.  The only
 important thing is that the form which takes the sensitive data SUBMITS
 to an https:// URL.  Because (as above) it will encrypt the request
 (which includes the sensitive data) BEFORE it submits it over the
 internet.  But most people don't know how to check that a form submits
 to an to an https:// URL.

Yup. You'd think that the browser developers would come up with a way to 
indicate this (mouse pointer turning to a lock when hovering over a submit 
button, etc.).

miguel


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




Re: [PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Miguel Cruz

On Fri, 5 Jul 2002, Scott Fletcher wrote:
 We also use the $_SERVER['REMOTE_ADDR'] to allow only the credit bureau
 employee to log in to the administration website that is if the
 employee's machine is at the credit bureau place.  This help with some
 security but not a full security because people outside of the credit
 bureau can easily change the IP address on his/her machine or is in a
 local network behind the the firewall with make up IP addreses since it
 won't be used in the internet or real network.

People outside cannot change their IP addresses to those used by machines
behind your firewall (unless they are in your building and your firewall
is horribly misconfigured). Well, they can change them but it serves
little purpose. Return traffic would not be routed to them.

The best they can do is spoof those addresses, but that's a one-way 
street: If you pass a token, they won't receive it, so you can easily 
ignore them.

On the other hand, the IP address issue doesn't really add any security 
here; it's the token.

miguel


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




Re: [PHP] localhost - passing variables

2002-07-05 Thread Miguel Cruz

On Fri, 5 Jul 2002, Tony Tzankoff wrote:
 Is it possible to pass variables in PHP on the localhost server? Is there
 some kind of setting or something that I need? I am new to this and am not
 sure how to go about this. When I upload to a server, the script I have
 works just fine; but when I work on it locally, it does not work. Please
 help while I am still technically sane. Thanks. :oP

Can you explain a little better what you're trying to do and what the 
symptoms you're observing are?

miguel


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




Re: [PHP] How Do Y'all Secure your Sites... (Cookies vs. IP Number)...

2002-07-05 Thread Scott Fletcher

Well, the website use both port 80 and port 443.  The public access the
website freely, so blocking them is not an option beside they don't know the
true IP address behind the firewall for them to access the administration
website.  We don't have Intranet for the administration website to be used.

Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Fri, 5 Jul 2002, Scott Fletcher wrote:
  We also use the $_SERVER['REMOTE_ADDR'] to allow only the credit bureau
  employee to log in to the administration website that is if the
  employee's machine is at the credit bureau place.  This help with some
  security but not a full security because people outside of the credit
  bureau can easily change the IP address on his/her machine or is in a
  local network behind the the firewall with make up IP addreses since it
  won't be used in the internet or real network.

 People outside cannot change their IP addresses to those used by machines
 behind your firewall (unless they are in your building and your firewall
 is horribly misconfigured). Well, they can change them but it serves
 little purpose. Return traffic would not be routed to them.

 The best they can do is spoof those addresses, but that's a one-way
 street: If you pass a token, they won't receive it, so you can easily
 ignore them.

 On the other hand, the IP address issue doesn't really add any security
 here; it's the token.

 miguel




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




Re: [PHP] Re: Handling of constants in strings

2002-07-05 Thread Miguel Cruz

On Fri, 5 Jul 2002, Uwe Birkenhain wrote:
 Miguel Cruz schrieb ...
 On Tue, 2 Jul 2002, Uwe Birkenhain wrote:
 A question - since english is not my first language - what do you mean
 with

 It's not all that common to bury constants in strings

 Is something bad about it?

 I think so. It would slow parsing down to a crawl and create a host of
 ambiguities if every letter that ever appeared in a string had to be
 compared against the list of defined constants (after all, you might
 have a constant called 'a'). With normal variables, it only has to
 worry about it when there's a $ before it or {} around it, which is
 much simpler.
 
 you are right about that!
 
 But since you have to take the constant out of the string (with {} or . .)
 it shouldn't be a problem to use constants.
 Correct?

Correct.

miguel


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




RE: [PHP] gc_probability: requests tallied per server or domain?

2002-07-05 Thread Miguel Cruz

On Fri, 5 Jul 2002, Johnson, Kirk wrote:
 On Tue, 2 Jul 2002, Johnson, Kirk wrote:
 Is the number of requests (used for garbage collection), tallied on a
 per server basis, or on a per domain basis?
 
 Pretty fair bet it's a per-server basis.
 
 Thanks, miguel. That would be my guess, too. If both of us guessed the same
 thing, then we must be right. Right?!? ;)

Sounds good to me. Now let's move on to lottery numbers!

miguel


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




Re: [PHP] HTTPS vs. HTTP ?

2002-07-05 Thread Jerome Houston

Ah, miguel
good to have you back.
I missed your lovingly superior painstaking attention to detail :-)

jerome

From: Miguel Cruz [EMAIL PROTECTED]
  if the browser is making a request, and it sees an https:// at the 
beginning
  of the request URL, it will :
  1.  get the domain's public key from a public key server
  2.  encrypt the whole request with the domain's public key
  3.  submit it to the web server.

We have public key servers?

Around these parts the client and server use a self-contained process to
handle the key exchange. The server's key has been signed by a certificate
authority (Verisign, etc.) whose public key is already stored in the
browser... or not, in which case the client alerts the user and generally
continues nevertheless.

  If the web server sees that this is an encrypted request, it will :
  1.  decrypt the request with it's private key
  2.  process it and generate a response (usually in the form of html)
  3.  encrypt the response with it's private key
  4.  send it back to the browser

Sort of. The server's key is used to encrypt the exchange of a new key
which lasts only for the lifetime of the transaction. This ephemeral key
is what's used to encrypt the actual data. But this nuance is probably not
very important to understanding the practical issues of working with PHP
and HTTPs.

  Now, one of the things that many people are confused about is that they
  think there must be a lock icon at the bottom of the browser when they
  are entering sensitive info (like credit card numbers).  Nope.  The only
  important thing is that the form which takes the sensitive data SUBMITS
  to an https:// URL.  Because (as above) it will encrypt the request
  (which includes the sensitive data) BEFORE it submits it over the
  internet.  But most people don't know how to check that a form submits
  to an to an https:// URL.

Yup. You'd think that the browser developers would come up with a way to
indicate this (mouse pointer turning to a lock when hovering over a submit
button, etc.).

miguel


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




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: [PHP] Stored Procedures

2002-07-05 Thread Lazor, Ed

I have no idea of how to create postgres stored procedures, but a search on
Google brought up a lot of information that you might find helpful:
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=postgre+stored+proced
ure

You can also visit their web site at http://www.postgresql.org



-Original Message-
I'm using a postgres datbase for my PHP project, how do I make
stored 
procedures?  Or if no SPs then what would be recomendation for building 
simple/reuseable Put and Get procedures for my data?
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




Re: [PHP] Stored Procedures

2002-07-05 Thread B i g D o g

Try http://techdocs.postgresql.org or techdoc.postgresql.org

B i g D o g


- Original Message - 
From: David Busby [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 1:30 PM
Subject: [PHP] Stored Procedures


 List,
 I'm using a postgres datbase for my PHP project, how do I make stored 
 procedures?  Or if no SPs then what would be recomendation for building 
 simple/reuseable Put and Get procedures for my data?
 
 /B
 
 
 -- 
 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




  1   2   >