[PHP] Encrypting Source

2004-04-16 Thread Clifford W. Hansen
Greetingz,

We are looking for some encryption software for our PHP source code,
We know of a couple but wanto find out which are good and which are not...

Till We Meet Again...

Clifford W. Hansen
Operations Support Developer
Aspivia (Pty) Ltd.

+27 (0) 11 259-1150 (Switchboard)
+27 (0) 11 259-1019 (Fax)
+27 (0) 83 761-0240 (Mobile)
[EMAIL PROTECTED] (EMail)
http://chansen.aspivia.com (Web)

Registered Linux user number 343424 on http://counter.li.org/ 

We have seen strange things today! Luke 5:26

This message contains information intended for the perusal, and/or use (if
so stated), of the stated addressee(s) only. The information is confidential
and privileged. If you are not an intended recipient, do not peruse, use,
disseminate, distribute, copy or in any manner rely upon the information
contained in this message (directly or indirectly). The sender and/or the
entity represented by the sender shall not be held accountable in the event
that this prohibition is disregarded.

If you receive this message in error, notify the sender immediately by
e-mail, fax or telephone and return and/or destroy the original message.

The views or representations contained in this message, whether express or
implied, are those of the sender only, unless that sender expressly states
them to be the views or representations of an entity or person, who shall be
named by the sender and who the sender shall state to represent. No
liability shall otherwise attach to any other entity or person.

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



Re: [PHP] Compile PHP question

2004-04-16 Thread Jason Wong
On Thursday 15 April 2004 20:49, Enrico Weigelt wrote:
 * Dave Carrera [EMAIL PROTECTED] [2004-04-15 11:14:45 +0100]:
  Hi List,
 
  How do I compile php without apache, with mysql (client is installed) as
  cli.

 ./configure --enable-cli --with-mysql


I believe cgi is enabled by default, so

   ./configure --disable-cgi --enable-cli --with-mysql

would be better.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Happiness is just an illusion, filled with sadness and confusion.
*/

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



Re: [PHP] Compile PHP question

2004-04-16 Thread Red Wingate
Wrong one here:

http://de2.php.net/manual/en/features.commandline.php

[quote]
The CLI SAPI was released for the first time with PHP 4.2.0, but was still 
experimental and had to be explicitly enabled with --enable-cli when 
running ./configure. Since PHP 4.3.0 the CLI SAPI is no longer experimental 
and the option --enable-cli is on by default. You may use --disable-cli to 
disable it.
[/quote]

Using:  './configure --enable-cli --with-mysql' is just right :-)

 -- red

[...]
   Hi List,
  
   How do I compile php without apache, with mysql (client is installed)
   as cli.

 
  ./configure --enable-cli --with-mysql


 I believe cgi is enabled by default, so

./configure --disable-cgi --enable-cli --with-mysql

 would be better.
[...]

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



[PHP] Escaping php content output for valid html

2004-04-16 Thread Merlin
Hi there,

I am just validating html generated by a php page. There is an error which comes
up if ther is a dash in the content text. Those characters come out of a database.
Is there a command in php which is escaping those characters for valid html output?
Something like urlencode, but for text escaping all such signs?
Here is the error msg: non SGML character number 150
This is the text: normal  text
Thanx in advance,

Merlin

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


Re: [PHP] Compile PHP question

2004-04-16 Thread Jason Wong
On Friday 16 April 2004 16:46, Red Wingate wrote:
 Wrong one here:

 http://de2.php.net/manual/en/features.commandline.php

 [quote]
 The CLI SAPI was released for the first time with PHP 4.2.0, but was still
 experimental and had to be explicitly enabled with --enable-cli when
 running ./configure. Since PHP 4.3.0 the CLI SAPI is no longer experimental
 and the option --enable-cli is on by default. You may use --disable-cli to
 disable it.
 [/quote]

 Using:  './configure --enable-cli --with-mysql' is just right :-)

I think you quoted the wrong part of the manual. Read on a bit more to see 
this:

Note: Because both --enable-cli and . --enable-cgi are enabled by default, 
simply having --enable-cli in your configure line does not necessarily mean 
the CLI will be copied as . {PREFIX}/bin/php during make install.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The relative importance of files depends on their cost in terms of the
human effort needed to regenerate them.
-- T.A. Dolotta
*/

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



[PHP] Bar/Line Graph Tool

2004-04-16 Thread Hawkes, Richard
Good morning gang,
 
I'm looking for a snazzy line/bar graph class. I've got GD running, with just
the basic fonts (I'm using an ISP, so I can't do anything about it!).
 
Any ideas? I've tried a few of the classes at www.phpclasses.org
http://www.phpclasses.org , but they all seem to be giving me errors...
Although some of them are rather old!
 
Hope you can help
Richard

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


Re: [PHP] Bar/Line Graph Tool

2004-04-16 Thread Red Wingate
PEAR has some very nice Tools for this job :-)

 -- red

[...]
 Good morning gang,

 I'm looking for a snazzy line/bar graph class. I've got GD running, with
 just the basic fonts (I'm using an ISP, so I can't do anything about it!).

 Any ideas? I've tried a few of the classes at www.phpclasses.org
 http://www.phpclasses.org , but they all seem to be giving me errors...
 Although some of them are rather old!

 Hope you can help
 Richard
[...]

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



RE: [PHP] Bar/Line Graph Tool

2004-04-16 Thread Hawkes, Richard
Excuse my ignorance... Where can I get it?!

-Original Message-
From: Red Wingate [mailto:[EMAIL PROTECTED]
Sent: 16 April 2004 11:03
To: Hawkes, Richard; '[EMAIL PROTECTED]'
Subject: Re: [PHP] Bar/Line Graph Tool


PEAR has some very nice Tools for this job :-)

 -- red

[...]
 Good morning gang,

 I'm looking for a snazzy line/bar graph class. I've got GD running, with
 just the basic fonts (I'm using an ISP, so I can't do anything about it!).

 Any ideas? I've tried a few of the classes at www.phpclasses.org
 http://www.phpclasses.org , but they all seem to be giving me errors...
 Although some of them are rather old!

 Hope you can help
 Richard
[...]


==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==

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



RE: [PHP] Bar/Line Graph Tool

2004-04-16 Thread Vincent Jansen
I like http://www.phplot.com/

---
Vincent Jansen
[EMAIL PROTECTED]


-Original Message-
From: Hawkes, Richard [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 16 april 2004 10:09
To: '[EMAIL PROTECTED]'
Subject: [PHP] Bar/Line Graph Tool


Good morning gang,
 
I'm looking for a snazzy line/bar graph class. I've got GD running, with
just the basic fonts (I'm using an ISP, so I can't do anything about
it!).
 
Any ideas? I've tried a few of the classes at www.phpclasses.org
http://www.phpclasses.org , but they all seem to be giving me
errors... Although some of them are rather old!
 
Hope you can help
Richard


==
This message is for the sole use of the intended recipient. If you
received this message in error please delete it and notify us. If this
message was misdirected, CSFB does not waive any confidentiality or
privilege. CSFB retains and monitors electronic communications sent
through its network. Instructions transmitted over this system are not
binding on CSFB until they are confirmed by us. Message transmission is
not guaranteed to be secure.

==

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



[PHP] Re: Bar/Line Graph Tool

2004-04-16 Thread Merlin
Hi Richard,

try this one:
http://www.aditus.nu/jpgraph/
It's really excellent and easy to handle.

hope this helps,

merlin

Richard Hawkes wrote:

Good morning gang,
 
I'm looking for a snazzy line/bar graph class. I've got GD running, with just
the basic fonts (I'm using an ISP, so I can't do anything about it!).
 
Any ideas? I've tried a few of the classes at www.phpclasses.org
http://www.phpclasses.org , but they all seem to be giving me errors...
Although some of them are rather old!
 
Hope you can help
Richard

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] sorry test

2004-04-16 Thread polsky
, php-general.



-- 
 ,
 polsky  mailto:[EMAIL PROTECTED]

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



[PHP] Re: Bar/Line Graph Tool

2004-04-16 Thread pete M
http://www.aditus.nu/jpgraph/

By far the best I've seen is jpgraph, does Gantt too as well as 3d pie 
et all..
Easy to code 2 and the manual is cvomprehensive

pedro



Richard Hawkes wrote:

Good morning gang,
 
I'm looking for a snazzy line/bar graph class. I've got GD running, with just
the basic fonts (I'm using an ISP, so I can't do anything about it!).
 
Any ideas? I've tried a few of the classes at www.phpclasses.org
http://www.phpclasses.org , but they all seem to be giving me errors...
Although some of them are rather old!
 
Hope you can help
Richard

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


AW: [PHP] smarty

2004-04-16 Thread Ben
But i don't see an alternative in your Example 3.
I hate that coding mixed up with the rest of HTML/CSS.
It may be fact, that the perfomance could get worse a bit
when using smarty* but since your not coding sth. for a high
traffic site the usability of code is more important than that
little peace of loss in performance.
Nevertheless it might be a neverending discussion like 
windows vs *nix...


-Ursprüngliche Nachricht-
Von: Chris de Vidal [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 14. April 2004 17:34
An: Kelly Hallman
Cc: [EMAIL PROTECTED]
Betreff: Re: [PHP] smarty


 To make that claim, you're dropping a pretty heavy dis on a lot of 
 people who have invested a great deal of time, effort, and 
 subsequently realized great benefits from Smarty and it's templating 
 brethren. Not to mention all those who have devoted great effort in 
 the development of these tools.

I believe it and most templating engines were written because many
people didn't know they had an alternative.  I could be wrong; if so, it
is a heavy dis.  Didn't mean it that way, so if I am wrong I humbly
apologize.


---
__
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 13.04.2004
 

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



[PHP] RegExp (preg) - how to split long string to length,without cutting words

2004-04-16 Thread moondog
Hi,
I am a RegExp newbie, and need help with this:
i have a long string (500 / 600 chars), and need to split it in lines.
Each line has a maximum length (20), and words in the line shouldn't be
 cut, instead the line should end at the end of the word whose last
char position is = 20.
the effect is like a left align in a word processor, where lines wrap at
20, and the words are not cut.
example:

string= a b c d e ff g
(char)112233444
 1234567890123456789012345678901234567890123456
regexp should output:

a b c
 d e
 ff g
Is it a sensible thing to do this job with regExp or is it better to use
 the usual string functions?
Thanx

moondog

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


RE: [PHP] RegExp (preg) - how to split long string to length,wit hout cutting words

2004-04-16 Thread Ford, Mike [LSS]
On 16 April 2004 11:47, moondog wrote:

 Hi,
 I am a RegExp newbie, and need help with this:
 i have a long string (500 / 600 chars), and need to split it in lines.
 
 Each line has a maximum length (20), and words in the line
 shouldn't be
   cut, instead the line should end at the end of the word whose last
 char position is = 20. 
 
 the effect is like a left align in a word processor, where
 lines wrap at
 20, and the words are not cut.
 
 example:
 
 string= a b c d e ff g
 (char)112233444
   1234567890123456789012345678901234567890123456
 
 
 regexp should output:
 
 a b c
   d e
   ff g
 
 
 Is it a sensible thing to do this job with regExp or is it
 better to use
   the usual string functions?

The latter -- the usual string function in this case being 
http://www.php.net/wordwrap.

Cheers!

Mike

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

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



Re: [PHP] RegExp (preg) - how to split long string to length,wit

2004-04-16 Thread moondog
nice!
(things are often under my nose, still I can't see them...I was using 
explode and loops...)

thx
moondog
Mike Ford wrote:

On 16 April 2004 11:47, moondog wrote:


Hi,
I am a RegExp newbie, and need help with this:
i have a long string (500 / 600 chars), and need to split it in lines.
Each line has a maximum length (20), and words in the line
shouldn't be
 cut, instead the line should end at the end of the word whose last
char position is = 20. 

the effect is like a left align in a word processor, where
lines wrap at
20, and the words are not cut.
example:

string= a b c d e ff g
(char)112233444
 1234567890123456789012345678901234567890123456
regexp should output:

a b c
 d e
 ff g
Is it a sensible thing to do this job with regExp or is it
better to use
 the usual string functions?


The latter -- the usual string function in this case being http://www.php.net/wordwrap.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Custom session functions

2004-04-16 Thread Will
Hello all,

Due to my need to have the whole session data file encrypted. I am thinking about 
using custom session functions.
Saving in a database is not an option. 

Anyway, I have modified the session example on php.net to perform encoding and 
decoding. 
I have tested the session with data and all seems ok. However as its such a crucial 
part. I wanted to check if anybody has any thoughts or warnings on the code below.

Im not sure if any other files are stored in the tmp folder so I included the 
ereg(sess_[a-zA-Z0-9]*, $tmp_files) to check the files before deleting in the 
garbage function.
 
Thanks 

Will

?
function open($save_path, $session_name) 
{
global $sess_save_path, $sess_session_name;
   
$sess_save_path = $save_path;
$sess_session_name = $session_name;
return(true);
}

function close() 
{
return(true);
}

function read($id) 
{
  global $sess_save_path, $sess_session_name;

$sess_file = $sess_save_path/sess_$id;
if ($fp = @fopen($sess_file, r)) {
$sess_data = fread($fp, filesize($sess_file));
   
$iv = iv; // obscured due to this email
$key = secret phrase; // obscured due to this email

$td = mcrypt_module_open('blowfish', '', 'cbc', '');  
$ks = mcrypt_enc_get_key_size($td);  
$key = substr(md5($key), 0, $ks);  
 

mcrypt_generic_init($td, $key, $iv);
$dec_sess_data = mdecrypt_generic($td, $sess_data); 
mcrypt_generic_deinit($td);

mcrypt_module_close($td);   

return $dec_sess_data;   

} else {
return(); // Must return  here.
}

}

function write($id, $sess_data) 
{
global $sess_save_path, $sess_session_name; 
   
$iv = iv;
$key = secret phrase;

$td = mcrypt_module_open('blowfish', '', 'cbc', '');  
$ks = mcrypt_enc_get_key_size($td); 
$key = substr(md5($key), 0, $ks);  
 

mcrypt_generic_init($td, $key, $iv);   
 
$enc_sess_data = mcrypt_generic($td, $sess_data); 
mcrypt_generic_deinit($td); 

mcrypt_module_close($td); 
  
$sess_file = $sess_save_path/sess_$id;
if ($fp = @fopen($sess_file, w)) {
return(fwrite($fp, $enc_sess_data));
} 
else {
return(false);
}

}

function destroy($id) 
{
global $sess_save_path, $sess_session_name;
   
$sess_file = $sess_save_path/sess_$id;
return(@unlink($sess_file));
}

function gc ($maxlifetime) { 
   global $sess_save_path, $sess_session_name;
   
$fp = opendir($sess_save_path/);  
while($tmp_files = readdir($fp)) {
if(ereg(sess_[a-zA-Z0-9]*, $tmp_files) AND 
(fileatime($sess_save_path/$tmp_files) + $maxlifetime)  time()) 
@unlink($sess_save_path/$tmp_files);
}   
closedir($fp);  

  return true;
}


session_set_save_handler(open, close, read, write, destroy, gc);

session_start();


//$_SESSION['testing1'] = 'hello there';

//$_SESSION['testing2'] = array(test1 = array(test1_1,test1_2), test2  = 
array(test2_1,test2_2));

echo($_SESSION[testing1]br);

foreach($_SESSION['testing2'] as $key = $value) {
echo(br$key - );
foreach($value as $value2) echo($value2, );   
}
?


I've stopped 2,456 spam messages. You can too!
One month FREE spam protection at www.cloudmark.com

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



[PHP] restart a function

2004-04-16 Thread Brent Clark
Hi all I have a function called dofile()

I seem to have a problem where I need the function to stop and then restart after the 
mysql_error() is true and the renaming is done.
otherswise in the php file I have to execute is like so:
dofile(args);
dofile(args);
dofile(args);

this is a few times;

If someone knows of an elegant why to perfect this, that would be most appreciated.
Kind Regards
Brent Clark



if(is_dir($batch_dir)){
$fd = opendir($batch_dir);
while(($part = readdir($fd)) == True){
clearstatcache();
//if($part != .  $part != ..  (substr($part,0,3) == 
$begin_number)  (strlen($part) = 8)){
if($part != .  $part != ..  (strlen($part) = 8)){

$d_array[] = $part;
}
}
}else{
return OOPS;
}
if($fd == True){
closedir($fd);
}

if(! is_dir($processed_dir./.$time)){
mkdir($processed_dir./.$time, 0777);
}

if(count($d_array) = 1){
foreach($d_array as $fname=$fvar){
$bcode = substr($fvar,0,-4);
$sql=INSERT INTO Barcodes (barcode, month, filename) VALUES 
('$bcode','$time','$fvar');
mysql_query($sql);
if(mysql_error()){
if(strstr($var,-)){  
  === Problem starts here
$value = substr($fvar,9,-4);
$prefile=substr($fvar,9);
$value++;
rename($batch_dir./.$fvar, 
$batch_dir./.$prefile-$value..pdf);
$redo=true;

//$newvalue = substr_replace($fvar,$value,-5);
//rename($batch_dir./.$fvar, 
$batch_dir./.$newvalue..pdf);
}else{

$file=substr($fvar,-5);
rename($batch_dir./.$fvar, 
$batch_dir./.$file.-1.pdf);
}

}else{
rename($batch_dir./.$fvar, 
$processed_dir./.$time./.$fvar);
}
}
}


[PHP] Anyone who can help me????

2004-04-16 Thread Peter Hansen
Hello

i need some help with my battlefield livestat
i have two website
www.flashwebb.se
and
www.flashwebb.com

and the help i need is on the www.flashwebb.com site

You can look here
http://www.flashwebb.se/bf1942live/vietnam.pl

and see it on action

so now i have download the   php nuke
and i want to have the same page  as above when i click on a link to my new
site ..And i been told to make a   php page and put this code  to call the
vietnam.pl

?php

require_once(mainfile.php);

include(header.php);

$content =  `/C:/Inetpub/com/html/bf1942live/vietnam.pl`;
print $content;

include(footer.php);
?

and i save the page as bflive.php  and put a link to it on my page
http://www.flashwebb.com/bflive.php
so now when i click on the link i get this errormessage
Warning: shell_exec(): Unable to execute
'/C:/Inetpub/com/html/bf1942live/vietnam.pl' in
C:\Inetpub\Com\html\bflive.php on line 7

You can see for your self here
http://www.flashwebb.com/bflive.php

so now i don't know what's wrong
i want the page  vietnam.pl to come up when i click on the link
as you can do  by click on the link below and see the error message
http://www.flashwebb.se/bf1942live/vietnam.pl

I'am running win2003
Anyone who can help me here???
Regards
Peter

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



Re: [PHP] binary data in php

2004-04-16 Thread Lowell Allen
On Apr 15, 2004, at 11:47 PM, Anthony Ritter wrote:

John W. Holmes [EMAIL PROTECTED] wrote in message:
Remember... we're laughing with you, not at you. You forgot to call
mysql_query() in your code. :)
.

Hmmm... I wish it was as simple as that.

I inserted the mysql_query() below

but it still doesn't upload the file nor does it throw an error.

If you get a chance please take a look and advise.

Again, my thanks for your help,
TR

?
 if ($submit) {
// connect to the database
// (you may have to adjust the hostname,username or password)
MYSQL_CONNECT(localhost,root,mypass);
mysql_select_db(mydb);
 $uploadfile = $_FILES['form_data']['tmp_name'];
 $uploadname = $_FILES['form_data']['name'];
 $uploadtype = $_FILES['form_data']['type'];
 $uploaddesc = $_POST['desc'];
[snip]

You might try using $HTTP_POST_FILES rather than $_FILES -- was 
necessary in my code recently.

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


[PHP] session timeout

2004-04-16 Thread pete M
Am trying to increae the session lifetime to 8 hours ish

using this code
ini_set('session.gc_maxlifetime',28800);
does not work ?

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


Re: [PHP] Escaping php content output for valid html

2004-04-16 Thread Lowell Allen
On Apr 16, 2004, at 3:40 AM, Merlin wrote:

Hi there,

I am just validating html generated by a php page. There is an error 
which comes
up if ther is a dash in the content text. Those characters come out of 
a database.
Is there a command in php which is escaping those characters for valid 
html output?
Something like urlencode, but for text escaping all such signs?

Here is the error msg: non SGML character number 150
This is the text: normal  text
If the text is coming from a database, how did the invalid character 
get into the text in the first place? It sounds like the problem is 
with the original HTML editor, not with PHP. For example, the current 
version of Adobe GoLive still uses the invalid code #150; for an en 
dash (the valid code is #8211;). A good reference chart for correct 
character entities is here -- 
http://www.roselli.org/adrian/articles/character_charts.asp.

You could set up str_replace() translations to correct invalid 
character entity codes before displaying.

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


Re: [PHP] Escaping php content output for valid html

2004-04-16 Thread Merlin
Lowell Allen wrote:

On Apr 16, 2004, at 3:40 AM, Merlin wrote:

Hi there,

I am just validating html generated by a php page. There is an error 
which comes
up if ther is a dash in the content text. Those characters come out of 
a database.
Is there a command in php which is escaping those characters for valid 
html output?
Something like urlencode, but for text escaping all such signs?

Here is the error msg: non SGML character number 150
This is the text: normal  text


If the text is coming from a database, how did the invalid character get 
into the text in the first place? It sounds like the problem is with the 
original HTML editor, not with PHP. For example, the current version of 
Adobe GoLive still uses the invalid code #150; for an en dash (the 
valid code is #8211;). A good reference chart for correct character 
entities is here -- 
http://www.roselli.org/adrian/articles/character_charts.asp.

You could set up str_replace() translations to correct invalid character 
entity codes before displaying.

--
Lowell Allen


hmm so you would suggest to save the entitty code directly to the database 
in the first place? What happens if I want to use the text for something else,
lets say print outs, or the entity code changes over the years, respectively the
browsers comming up with new technologies and dropping the old standards?

Another thing I do not understand concerning php, if this is that important, why
is there not a function who does this? something like ent_replace()? Do I have
to write a str_replace statement for all the entity characters? If yes, does
anybody already have such a code line? It sounds to me that this is like inventing
the wheel over and over again?
regards,

Merlin

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


Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
Lowell Allen [EMAIL PROTECTED] wrote in message:

 You might try using $HTTP_POST_FILES rather than $_FILES -- was
 necessary in my code recently.

 --
 Lowell Allen
...

Lowell,
Thank you.

I tried that in code below.

Still - no dice.

Any other thoughts?

Best...
TR
...

?
 if ($submit) {

// connect to the database
// (you may have to adjust the hostname,username or password)

mysql_connect(localhost,root,mypass);
mysql_select_db(mydb);

 $uploadfile = $HTTP_POST_FILES['form_data']['tmp_name'];
 $uploadname = $HTTP_POST_FILES['form_data']['name'];
 $uploadtype = $HTTP_POST_FILES['form_data']['type'];
 $uploaddesc = $_POST['desc'];

// Open file for binary reading ('rb')
 $tempfile = fopen($uploadfile,'rb');

  // Read the entire file into memory using PHP's
 // filesize function to get the file size.
 $filedata = fread($tempfile,filesize($uploadfile));

// Prepare for database insert by adding backslashes
 // before special characters.
 $filedata = addslashes($filedata);

// Create the SQL query.
 $sql = INSERT INTO binary_data SET
  filename = '$uploadname',
  filetype = '$uploadtype',
  description = '$uploaddesc',
  bin_data = '$filedata';

 $ok = @mysql_query($sql);

 if(!$ok)die('Database error storing the file:'.mysql_error());

 $id= mysql_insert_id();


   print pThis file has the following Database ID: b$id/b;
   echo br;
   echo a href=\getdata.php?id=$id\Click to view file/a;
   MYSQL_CLOSE();

} else {

// else show the form to submit new data:
?

form method=post action=?php echo $PHP_SELF; ?
enctype=multipart/form-data
pFile Description:br
input type=text name=desc size=40
INPUT TYPE=hidden name=MAX_FILE_SIZE value=100
brFile to upload/store in database:br
input type=file name=form_data size=40
pinput type=submit name=submit value=submit
/form
?php
}
?

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



RE: [PHP] Formatting phone numbers?

2004-04-16 Thread Jay Blanchard
[snip]
Thanks for any help, even if you just suggest built in functions to look
at.

I'm looking for a way to take a 7 digit number and put it into xxx-
format.

So basically the logic is to count 3 characters into $number and insert
a
- there.
[/snip]

As a telecom we use several methods, but here is a small function which
allows us to keep both formats where needed

function addTNDashes ($oldNumber){
   $newNumber = substr($oldNumber, 0, 3) . - . substr($oldNumber, 3,
4);
   
   return $newNumber;
}

$telephone = 8654321;
$newTele = addTNDashes($telephone);
echo $newTele;

output is 865-4321 and we can still use $telephone if we need to. 
[stuff you may not need]
This is a boiled down version of a longer function that counts string
lengths to determine how many dashes might need to be added. Let's say
you have the area code in the number, like 2108765432. Being a ten digit
number with a recognizable area code we can then add a portion to the
function to add the two needed dashes, making the number more readable.
[/stuff]

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



Re: [PHP] FPDF Help

2004-04-16 Thread Marek Kilimajer
Nathan Mealey wrote:

Anyone who is familiar with using FPDF to generate PDFs, I'd really 
appreciate some suggestions here:

I am using the following code, virtually identical to that used in the 
FPDF tutorial examples.  But I keep getting a parse error for the first 
line containing the variable $this.  In the tutorial they do not declare 
this variable prior to using it the same way as in the example below, 
but when I try and do this, it's a no go.

Any ideas?  Suggestions?

the code
--
define('FPDF_FONTPATH','../../../font/');
require('../fpdf.php');
class PDF extends FPDF
{
function Header()
{
//Arial 12
$this-SetFont('Arial','',12);
//Move to the right
$this-Cell(80);
//Title
$this-Cell(30,10,'Title',1,0,'C');
//Line break
$this-Ln(20);
}
function Footer()
{
//Position at 1.5 cm from bottom
$this-SetY(-15);
//Arial italic 8
$this-SetFont('Arial','I',8);
//Page number
$this-Cell(0,10,'Page '.$this-PageNo().'/{nb}',0,0,'C');
}


These lines must be outside of the class definition:
$pdf=new PDF();
$pdf-AliasNbPages();
$pdf-AddPage();
$pdf-SetFont('Times','',12);
for($i=1;$i=40;$i++)
{
$pdf-Cell(0,10,'Printing line number '.$i,0,1);
}
$pdf-Output();


This is the brace that closes the class definition, move the above lines 
below this brace:
}



Nathan Mealey
Director of Operations
Cycle-Smart, Inc.
P.O. Box 1482
Northampton, MA
01061-1482
[EMAIL PROTECTED]
(413) 587-3133
(413) 210-7984 Mobile
(512) 681-7043 Fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter

John W. Holmes [EMAIL PROTECTED] wrote in message:


 So what's the output? How do you know it's not working? If you're not
 getting an error, then your query is running and something is going in
 the database. Are you sure the problem isn't in how you're displaying
 the data?
..
John,
I know that there is no binary file upload to the table called binary_data
in mysql database since I checked if there was a new entry through the
command line after I submit.

After I hit submit, the field that I inserted are blank.

Any other thoughts?

Thank you for your time.
TR

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



Re: [PHP] Custom session functions

2004-04-16 Thread Marek Kilimajer
I found only one problem - you must lock the session file when the 
session is open and unlock it when closed. There is a user note in the 
manual that explains it.

Will wrote:

Hello all,

Due to my need to have the whole session data file encrypted. I am thinking about using custom session functions.
Saving in a database is not an option. 

Anyway, I have modified the session example on php.net to perform encoding and decoding. 
I have tested the session with data and all seems ok. However as its such a crucial part. I wanted to check if anybody has any thoughts or warnings on the code below.

Im not sure if any other files are stored in the tmp folder so I included the ereg(sess_[a-zA-Z0-9]*, $tmp_files) to check the files before deleting in the garbage function.
 
Thanks 

Will

?
function open($save_path, $session_name) 
{
	global $sess_save_path, $sess_session_name;
	   
	$sess_save_path = $save_path;
	$sess_session_name = $session_name;
	return(true);
}

function close() 
{
	return(true);
}

function read($id) 
{
  global $sess_save_path, $sess_session_name;
	
	$sess_file = $sess_save_path/sess_$id;
	if ($fp = @fopen($sess_file, r)) {
		$sess_data = fread($fp, filesize($sess_file));
   
		$iv = iv; // obscured due to this email
  		$key = secret phrase; // obscured due to this email
  		
   		$td = mcrypt_module_open('blowfish', '', 'cbc', '');  
	   	$ks = mcrypt_enc_get_key_size($td); 	 
	 	$key = substr(md5($key), 0, $ks); 	
	
	   	mcrypt_generic_init($td, $key, $iv); 		
		$dec_sess_data = mdecrypt_generic($td, $sess_data);  		
		mcrypt_generic_deinit($td);
		
		mcrypt_module_close($td); 		

		return $dec_sess_data;   
  	
	} else {
		return(); // Must return  here.
	}

}

function write($id, $sess_data) 
{
	global $sess_save_path, $sess_session_name;		
	   
  		$iv = iv;
  		$key = secret phrase;
  		
	  	$td = mcrypt_module_open('blowfish', '', 'cbc', '');   	  
	 	$ks = mcrypt_enc_get_key_size($td); 
	 	$key = substr(md5($key), 0, $ks); 	
	
		mcrypt_generic_init($td, $key, $iv); 
	   	$enc_sess_data = mcrypt_generic($td, $sess_data); 
		mcrypt_generic_deinit($td);

		mcrypt_module_close($td); 
  
	$sess_file = $sess_save_path/sess_$id;
	if ($fp = @fopen($sess_file, w)) {
		return(fwrite($fp, $enc_sess_data));
	} 
	else {
		return(false);
	}

}

function destroy($id) 
{
	global $sess_save_path, $sess_session_name;
   
	$sess_file = $sess_save_path/sess_$id;
	return(@unlink($sess_file));
}

function gc ($maxlifetime) { 
   global $sess_save_path, $sess_session_name;
   		   
	$fp = opendir($sess_save_path/);	
	while($tmp_files = readdir($fp)) {
if(ereg(sess_[a-zA-Z0-9]*, $tmp_files) AND (fileatime($sess_save_path/$tmp_files) + $maxlifetime)  time()) 
@unlink($sess_save_path/$tmp_files);
	}		
	closedir($fp);	

  return true;
}
session_set_save_handler(open, close, read, write, destroy, gc);

session_start();

//$_SESSION['testing1'] = 'hello there';

//$_SESSION['testing2'] = array(test1 = array(test1_1,test1_2), test2  = array(test2_1,test2_2));

echo($_SESSION[testing1]br);

foreach($_SESSION['testing2'] as $key = $value) {
echo(br$key - );
foreach($value as $value2) echo($value2, ); 
}
?
I've stopped 2,456 spam messages. You can too!
One month FREE spam protection at www.cloudmark.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] binary data in php

2004-04-16 Thread Jason Wong
On Friday 16 April 2004 20:35, Anthony Ritter wrote:

 I know that there is no binary file upload to the table called binary_data
 in mysql database since I checked if there was a new entry through the
 command line after I submit.

 After I hit submit, the field that I inserted are blank.

 Any other thoughts?

You have two possible problems here:

1) The file upload is not working properly
2) The file is uploaded but is not inserted

Find out what your problem is and take it from there. If you don't know how to 
determine your problem:

manual  Error Handling and Logging Functions
print_r()
var_dump()

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Pie are not square.  Pie are round.  Cornbread are square.
*/

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



Re: [PHP] session timeout

2004-04-16 Thread Marek Kilimajer
pete M wrote:

Am trying to increae the session lifetime to 8 hours ish

using this code
ini_set('session.gc_maxlifetime',28800);
does not work ?

any ideas
Pete
There are 3 conditions that must be met:

1. You must set it before session_start()

2. No other application can access your session storage. Other 
applications could have shorter session lifetime, and the shortest would 
apply for all other applications.

3. The session cookie must live long enough. The default lifetime for 
session cookie is 0, that means untill the browser closes.

HTH

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


Re: [PHP] Escaping php content output for valid html

2004-04-16 Thread Jason Wong
On Friday 16 April 2004 20:19, Merlin wrote:

 hmm so you would suggest to save the entitty code directly to the database
 in the first place? 

If the data is mainly displayed as HTML then yes, store the HTML entities and 
do a conversion when you want plain text or whatever.

 What happens if I want to use the text for something
 else, lets say print outs, or the entity code changes over the years,
 respectively the browsers comming up with new technologies and dropping the
 old standards?

Do a conversion.

 Another thing I do not understand concerning php, if this is that
 important, why is there not a function who does this? something like
 ent_replace()? Do I have to write a str_replace statement for all the
 entity characters? If yes, does anybody already have such a code line? It
 sounds to me that this is like inventing the wheel over and over again?

Well if PHP had a function for everything that could be done in a line or two 
of code then it would have more functions than I could count on my fingers 
and toes.

This might help, get_html_translation_table().

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Words have a longer life than deeds.
-- Pindar
*/

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



Re: [PHP] binary data in php

2004-04-16 Thread Marek Kilimajer
Anthony Ritter wrote:
Any other thoughts?

Best...
TR
...
?
 if ($submit) {
You said register globals are off, didn't you? Where is the above 
variable set then?

:)

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


Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
Marek Kilimajer [EMAIL PROTECTED] wrote in message:

 You said register globals are off, didn't you? Where is the above
 variable set then?

 :)
...

That was it.

Many thanks Marek and others.

Checking through the command line the file was uploaded to mysql database.

However when clicking the getdata.php link - the file does not appear on the
screen.

The code is below.

Thank you for your time.
TR
.

//getdata.php

?
if($_GET['id']==1) {
@myql_connect(localhost,root,mypass);
@mysql_select_db(sitename);
$query = SELECT bin_data,description,filetype
  FROM binary_data
  WHERE id=1;
$result = @mysql_query($query);
$data = @mysql_result($result,0,bin_data);
$description = @mysql_result($result,0,description);
$type = @mysql_result($result,0,filetype);
Header( Content-type: $type);
echo $data.br;
echo $description.br;
}
else
 {

@mysql_connect(localhost,root,mypass);
@mysql_select_db(sitename);
$query = SELECT bin_data,description,filetype
  FROM binary_data
  WHERE id=$id;
$result = @mysql_query($query);
$data = @mysql_result($result,0,bin_data);
$description = @mysql_result($result,0,description);
$type = @mysql_result($result,0,filetype);
Header( Content-type: $type);
echo $data.br;
echo $description.br;
}
?

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



Re: [PHP] binary data in php

2004-04-16 Thread Marek Kilimajer
Anthony Ritter wrote:
However when clicking the getdata.php link - the file does not appear on the
screen.
The code is below.

Thank you for your time.
TR
.
//getdata.php

?
if($_GET['id']==1) {
@myql_connect(localhost,root,mypass);
Remove @'s while debugging.

@mysql_select_db(sitename);
$query = SELECT bin_data,description,filetype
  FROM binary_data
  WHERE id=1;
$result = @mysql_query($query);
$data = @mysql_result($result,0,bin_data);
$description = @mysql_result($result,0,description);
$type = @mysql_result($result,0,filetype);
Header( Content-type: $type);
echo $data.br;
echo $description.br;
The above cannot work. You cannot mix binary data with html.

}
else
 {
@mysql_connect(localhost,root,mypass);
@mysql_select_db(sitename);
$query = SELECT bin_data,description,filetype
  FROM binary_data
  WHERE id=$id;
--^^
register globals are off, and the variable is not validated - can 
contain anything

$result = @mysql_query($query);
$data = @mysql_result($result,0,bin_data);
$description = @mysql_result($result,0,description);
$type = @mysql_result($result,0,filetype);
Header( Content-type: $type);
echo $data.br;
echo $description.br;
}
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: AW: [PHP] smarty

2004-04-16 Thread Chris de Vidal
Ben said:
 But i don't see an alternative in your Example 3.

Here was example 3 from my post:
http://marc.theaimsgroup.com/?l=php-generalm=108145205519710w=2

$result = mysql_query (SELECT * FROM users WHERE id = '.$_GET[id].');
$row_array = mysql_fetch_array ($result);
$name= $row_array[name];
$address = $row_array[address];
$state   = $row_array[state];
$include(template.tpl);
---
html
body
Name: ?=$name;?br
Address: ?=$address;?br
State: ?=$state;?br
...

By the way, that's 2 files you're looking at; something like index.php and
template.tpl.

Looks rather templaty, dontcha think?  PHP was originally intended to be a
template engine (or so I've been told).

 I hate that coding mixed up with the rest of HTML/CSS.

Me too, which is why I went to Smarty, but then I realized I could do the
same thing without Smarty.  Not that Smarty is bad (I'll probably use it
in the future) but I don't *need* it to separate business and presentation
logic and neither do you.

For further separation of design from markup, check out CSSZenGarden.com
for about 200 amazing designs done entirely with CSS.  Seems there's no
limits to the design capabilities of CSS, including replacing HTML tables
and img tags.

Ultimately you could separate your entire website into CSS for design,
HTML for the markup of the data, PHP for getting the data, etc.  Very
nice.

 It may be fact, that the perfomance could get worse a bit
 when using smarty* but since your not coding sth. for a high
 traffic site the usability of code is more important than that
 little peace of loss in performance.

I agree.  The ease-of-use that templating affords is a good tradeoff for
the slight performance hit.  Smarty does precompile the PHP and offers
caching, which helps... it's probably similar in performance to the native
PHP template method described above.  With native PHP I can use buffering
and Zend and other native performance goodness so native PHP is almost
certainly going to be faster in nearly every case.  Just my guess.

Overall, I'd use Smarty when I want to get the extra functions and widgets
in one library.  It's a great tool.

/dev/idal

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



Re: AW: [PHP] smarty

2004-04-16 Thread pete M
I don't see why you keep persisting this thread.

Smarty is a cool tool and lots of people use it. You have decided NOT to 
use it.

So why keep going on; you not like Smarty; are you encouraging users not 
to use Smarty. I don't see your point at all !!!

There's more than one way of skinning a cat !

pete

Chris De Vidal wrote:
Ben said:

But i don't see an alternative in your Example 3.


Here was example 3 from my post:
http://marc.theaimsgroup.com/?l=php-generalm=108145205519710w=2
$result = mysql_query (SELECT * FROM users WHERE id = '.$_GET[id].');
$row_array = mysql_fetch_array ($result);
$name= $row_array[name];
$address = $row_array[address];
$state   = $row_array[state];
$include(template.tpl);
---
html
body
Name: ?=$name;?br
Address: ?=$address;?br
State: ?=$state;?br
...
By the way, that's 2 files you're looking at; something like index.php and
template.tpl.
Looks rather templaty, dontcha think?  PHP was originally intended to be a
template engine (or so I've been told).

I hate that coding mixed up with the rest of HTML/CSS.


Me too, which is why I went to Smarty, but then I realized I could do the
same thing without Smarty.  Not that Smarty is bad (I'll probably use it
in the future) but I don't *need* it to separate business and presentation
logic and neither do you.
For further separation of design from markup, check out CSSZenGarden.com
for about 200 amazing designs done entirely with CSS.  Seems there's no
limits to the design capabilities of CSS, including replacing HTML tables
and img tags.
Ultimately you could separate your entire website into CSS for design,
HTML for the markup of the data, PHP for getting the data, etc.  Very
nice.

It may be fact, that the perfomance could get worse a bit
when using smarty* but since your not coding sth. for a high
traffic site the usability of code is more important than that
little peace of loss in performance.


I agree.  The ease-of-use that templating affords is a good tradeoff for
the slight performance hit.  Smarty does precompile the PHP and offers
caching, which helps... it's probably similar in performance to the native
PHP template method described above.  With native PHP I can use buffering
and Zend and other native performance goodness so native PHP is almost
certainly going to be faster in nearly every case.  Just my guess.
Overall, I'd use Smarty when I want to get the extra functions and widgets
in one library.  It's a great tool.
/dev/idal
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] File Upload Recommendations

2004-04-16 Thread Ryan Schefke
Can anyone recommend a file upload script (or if you have one) that has the
following:

 

*   Restricts size/dimensions
*   Restricts file type/extension
*   Customizeable to specify directory
*   Allows user to delete files (optional)
*   Restricts # of files uploaded to a directory (optional)



Re: [PHP] Formatting phone numbers?

2004-04-16 Thread Rob Ellis
On Thu, Apr 15, 2004 at 06:11:57PM -0400, John W. Holmes wrote:
 Rob Ellis wrote:
 On Thu, Apr 15, 2004 at 04:31:09PM -0500, BOOT wrote:
 
 I'm looking for a way to take a 7 digit number and put it into xxx-
 format.
 
 So basically the logic is to count 3 characters into $number and insert a
 - there.
 
 substr_replace($string, '-', 3, 0);
 
 Won't that replace the number, though, not insert the dash?

No, it does the right thing. The last 0 is the number of 
characters to replace.

- Rob

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



Re: [PHP] Encrypting Source

2004-04-16 Thread Richard Harb
Two come to mind:
- Zend Encoder
  costs $, but is widely supported as it 'only' needs zend optimizer to decode
- Turck MMCache/phpcoder on sf.net
  open source but not available on most webhosters. though IMHO the cache
  alone is worth looking into

There may be other solutions
/me steps back for more/other suggestions

Richard

-- 
My sig: To save a couple bytes just imagine having read 'de bello
gallico' in the original latin text as well as the english, german and
spanish translations. Consider yourself enlightened.


Friday, April 16, 2004, 8:45:27 AM, you wrote:

 Greetingz,

 We are looking for some encryption software for our PHP source code,
 We know of a couple but wanto find out which are good and which are not...

Well, the ones I just suggested are probably on your list, but as we
don't know what is ...


 Till We Meet Again...

lotsa useless sig snipped

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



Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
pete M wrote:
There's more than one way of skinning a cat !
Hydrochloric acid works real well. ;)

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: AW: [PHP] smarty

2004-04-16 Thread Chris de Vidal
pete M said:
 Smarty is a cool tool and lots of people use it. You have decided NOT to
 use it.

I don't believe you've read a word I've written.

I've been trying to tell people like myself that one can easily template
with PHP.  I thought I *needed* Smarty or any nice templating engine to
seperate business and presentation logic; I was wrong.  I was ignorant and
perhaps there are others like me.

I've also been saying that I'll probably use Smarty in the future.
Advantages: numerous time-saving built-in functions, performance (debatable)
Disadvantages: must learn yet another language and work with that
language's shortcomings.

I never said I've decided NOT to use it.  I've never said it wasn't a cool
tool.  Please read carefully.

/dev/idal

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



Re: [PHP] File Upload Recommendations

2004-04-16 Thread John Nichel
Ryan Schefke wrote:
Can anyone recommend a file upload script (or if you have one) that has the
following:
 

*   Restricts size/dimensions
*   Restricts file type/extension
*   Customizeable to specify directory
*   Allows user to delete files (optional)
*   Restricts # of files uploaded to a directory (optional)

Try here...

http://php.resourceindex.com/Complete_Scripts/File_Management/File_Uploading/

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] File Upload Recommendations

2004-04-16 Thread Ryan Schefke
Thanks.  I've checked that site out among others (hotscripts,etc.).  I can't
seem to find a good one that works that has my requirements below...thought
someone might have some specific recommendations.

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 16, 2004 10:12 AM
To: Php-General-Help
Subject: Re: [PHP] File Upload Recommendations

Ryan Schefke wrote:
 Can anyone recommend a file upload script (or if you have one) that has
the
 following:
 
  
 
 * Restricts size/dimensions
 * Restricts file type/extension
 * Customizeable to specify directory
 * Allows user to delete files (optional)
 * Restricts # of files uploaded to a directory (optional)
 
 

Try here...

http://php.resourceindex.com/Complete_Scripts/File_Management/File_Uploading
/

-- 
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***

-- 
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: AW: [PHP] smarty

2004-04-16 Thread Richard Harb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Could we please close the thread already?

I think in the previous week there's been everything said what there's
been to say. whoever is still interested in reading the same arguments
over and over should please take a look at the archives.

I value the opinion of every poster if (s)he has something to
contribute - but contribution also includes adding something not
already present in abundance.

... and I really don't want to killfile any members of this list.

Thanks

Richard

PS: sorry if it sounds kinda pissed.



Friday, April 16, 2004, 4:10:20 PM, you wrote:

 pete M said:
 Smarty is a cool tool and lots of people use it. You have decided NOT to
 use it.

 I don't believe you've read a word I've written.

 I've been trying to tell people like myself that one can easily template
 with PHP.  I thought I *needed* Smarty or any nice templating engine to
 seperate business and presentation logic; I was wrong.  I was ignorant and
 perhaps there are others like me.

 I've also been saying that I'll probably use Smarty in the future.
 Advantages: numerous time-saving built-in functions, performance (debatable)
 Disadvantages: must learn yet another language and work with that
 language's shortcomings.

 I never said I've decided NOT to use it.  I've never said it wasn't a cool
 tool.  Please read carefully.

 /dev/idal

-BEGIN PGP SIGNATURE-
Version: PGPsdk 2.0.5 Copyright (C) 2001 Networks Associates Technology, Inc. All 
rights reserved.
Comment: 

iQA/AwUBQH/ti0LEeLYDwe5mEQKW2ACeKc1lBSCJe4x8cMmbjt6Fii87koQAnRHl
q70qB+EHK8HlwhVnCok+wfTm
=NyMA
-END PGP SIGNATURE-

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



Re: [PHP] session timeout

2004-04-16 Thread Pushpinder Singh
Hello Marek,

  I had similar trouble with my PHP application. I used an .htaccess 
file with the same line. But it still did not work. I guess I even tried
ini_set() function.

I have a question with this point :


2. No other application can access your session storage. Other 
applications could have shorter session lifetime, and the shortest 
would apply for all other applications.
Does it mean that the shortest session lifetime associated with an 
application applies to all other applications in the domain ?
Has anyone been able to get the session_life to last atleast a couple 
of hours // my appl logs the user out after about 30 mins

Thanks in advance
Pushpinder Singh




On Friday, April 16, 2004, at 08:54 AM, Marek Kilimajer wrote:

pete M wrote:

Am trying to increae the session lifetime to 8 hours ish
using this code
ini_set('session.gc_maxlifetime',28800);
does not work ?
any ideas
Pete
There are 3 conditions that must be met:

1. You must set it before session_start()

2. No other application can access your session storage. Other 
applications could have shorter session lifetime, and the shortest 
would apply for all other applications.

3. The session cookie must live long enough. The default lifetime for 
session cookie is 0, that means untill the browser closes.

HTH

--
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] From my side, this thread is closed (Was: smarty)

2004-04-16 Thread Chris de Vidal
Richard Harb said:
 Could we please close the thread already?

Sorry; sometimes I learn something new but still see ignorance going on
around me, so I get on a mission to help.  Seems some people are
determined to stay ignorant and even get upset when someone offers a fresh
point of view that perhaps would have helped them in the long run.  That's
always astounded me, but I guess I just need from it and drop it (else my
arrogance shows itself).

I was planning on unsubbing from this list anywho; getting distracted from
work too much.

From my side, this thread is closed.  I'll avoid replying to this thread
any longer, unless offlist.

/dev/idal

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



RE: [PHP] From my side, this thread is closed (Was: smarty)

2004-04-16 Thread Angelo Zanetti
Hi Chris, thanx for your point of view.
I am the origional poster and although I haven;t had too much time to read
all the posts, I will, I have read your last 2 or so and I appreciate your
input even though others don't. You seem to be very capable in php and
templates etc... so I value your opinion.

thanx again and to the others that posted.Im gonna start with smarty on
Monday or so.
angelo


-Original Message-
From: Chris de Vidal [mailto:[EMAIL PROTECTED]
Sent: Friday, April 16, 2004 4:45 PM
To: Richard Harb
Cc: php-general
Subject: [PHP] From my side, this thread is closed (Was: smarty)


Richard Harb said:
 Could we please close the thread already?

Sorry; sometimes I learn something new but still see ignorance going on
around me, so I get on a mission to help.  Seems some people are
determined to stay ignorant and even get upset when someone offers a fresh
point of view that perhaps would have helped them in the long run.  That's
always astounded me, but I guess I just need from it and drop it (else my
arrogance shows itself).

I was planning on unsubbing from this list anywho; getting distracted from
work too much.

From my side, this thread is closed.  I'll avoid replying to this thread
any longer, unless offlist.

/dev/idal

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


Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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



Re: [PHP] Shell_exec

2004-04-16 Thread Enrico Weigelt
* Peter Hansen [EMAIL PROTECTED] [2004-04-15 20:36:28 +0200]:

snip
 require_once(mainfile.php);
 
 include(header.php);
 
 $content =  `/C:/Inetpub/com/html/bf1942live/vietnam.pl`;

Are you working on dos/windows ? 

yes)
win32 does (IMHO) not support external interpreter executables
you then must call `perl /C:/Inetpub/com/html/bf1942live/vietnam.pl`
(probaly fix the perl interpreter location if its not in $PATH)
you probably consider changing the server platform.

no)
your command path is wrong. driver letters only exist on dos/windows.



cu
-- 
-
 Enrico Weigelt==   metux IT services

  phone: +49 36207 519931 www:   http://www.metux.de/
  fax:   +49 36207 519932 email: [EMAIL PROTECTED]
  cellphone: +49 174 7066481
-
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
-

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



Re: [PHP] From my side, this thread is closed (Was: smarty)

2004-04-16 Thread Robert Cummings
On Fri, 2004-04-16 at 10:44, Chris de Vidal wrote:
 Richard Harb said:
  Could we please close the thread already?
 
 Sorry; sometimes I learn something new but still see ignorance going on
 around me, so I get on a mission to help.  Seems some people are
 determined to stay ignorant and even get upset when someone offers a fresh

Now you're pointing fingers. There are people on this list with far more
PHP competence than you who advocate the use of Smarty. There are also
users on this list just as competent who do not advocate the use of
Smarty. You are obviously the ignoramous around here, since you think
because you learned some questionable skill, that your way is the right
way. There is no right way, there are many ways, and to call someone
ignorant because they've chosen another way is to be ignorant to the
individuality, personal tastes, past experiences, and many other
dimensions that every person on this list has.

 point of view that perhaps would have helped them in the long run.  That's
 always astounded me, but I guess I just need from it and drop it (else my
 arrogance shows itself).

Yes you are quite arrogant (so am I as many will attest).

 I was planning on unsubbing from this list anywho; getting distracted from
 work too much.

Because you're arguments are flawed and so you can't find the necessary
foundation for further argument when they are challenged. Please tell us
all what skillset you possess to call so many people ignorant?

 From my side, this thread is closed.  I'll avoid replying to this thread
 any longer, unless offlist.

This thread or the smarty thread? Interesting that you opened up a WHOLE
new thread.

Obviously, BTW, I advocate the use of templates, but this message has
not been about templates, so let's not bring that into the discussion.

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

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



RE: [PHP] From my side, this thread is closed (Was: smarty)

2004-04-16 Thread Jay Blanchard
[snip]
still see ignorance going on around me
[/snip]

One must look within, before one can look without.

See ya!

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



Re: [PHP] Sending document to printer...

2004-04-16 Thread Enrico Weigelt
* Alex Ortiz [EMAIL PROTECTED] [2004-04-14 18:28:18 -0500]:

 I'm looking for some ideas to send data directly to printer, 
 considering the user runs a browser (client side), while the PHP code 
 runs at apache server (server side). PHP has some printing functions, 
 but only for the Windows version.

Printing in professional environments is a little bit more complex than
it seems for the standard windows user.

Spooling and printjob generation are fundamentally two different things
Windows mixes this together and only provides a very limited API for
sending screen-paint operations to print job. 

So if we want to code a good printing extension (which I'd really welcome
and I'll really like to contribute to), we have to keep these things 
separated.

For print spooling, lpr gives and simple easy-to-use interface. But of 
course this is quite limited and only applicable for adding new jobs locally.
(more than that is possibly, but not easy to use IMHO). 
Probably CUPS supplies some suitable client libs, but I didn't have a look
at them, so I cant tell you anything about them.

I would recommend writing a very small lib for doing normal print queue
management in a platform independent way.

On gtk there were also some folks requesting such an API (they wanted to 
include it into gtk, which was gladly refused)

If there're some more people willing to work on that I'll start a new
project for that, which also produces a php-binding. I'll also offer to 
host some project resources like website, maillists, etc and recruit 
these folks from gtk for it.

But I won't do evryhing by myself :)

Okay, this was print-spooling. 

Job-Generation is another topic. This really depends on your datasource
and the languages your target printers understand. Most of the world
(Unix, Apple, almost all better printers ...) will understand PS or PDF
and probably SVG. Windows and windows-only-printers go their own way 
and only understand WMF, but could use gs to render PS/PDF to WMF.

There're many libs out there for generating such formats, i.e. pdflib
or cairo. For rendering HTML you'll maybe try to get gecko pdf backend
running or pipe it through html2ps.

For supplying a windows-like printing API probably a mixture of my
recommended spooling API and cairo would be suitable.

 My HTML/PHP program process some input data from a form, then open a new
 window with the resulting data. The user needs to print this resulting data
 in a blank sheet, but the browser (MS Internet Explorer) prints some headers
 and footers besides the data.
Well, this is a IE problem. 

BTW: where should the printing happen ? On the webserver or the client ?
These are fundamentally different.

Printing on the server was the topic I was talking about.
If you're talking about printing from the webbrowser and fixing IE's
printing problems - this is not a PHP issue!


regards,
-- 
-
 Enrico Weigelt==   metux IT services

  phone: +49 36207 519931 www:   http://www.metux.de/
  fax:   +49 36207 519932 email: [EMAIL PROTECTED]
  cellphone: +49 174 7066481
-
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
-

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



Re: [PHP] session timeout

2004-04-16 Thread Richard Harb
Friday, April 16, 2004, 4:35:30 PM, you wrote:


 Hello Marek,


I had similar trouble with my PHP application. I used an .htaccess
 file with the same line. But it still did not work. I guess I even tried
 ini_set() function.

 I have a question with this point :

I can only answer part of it:

 2. No other application can access your session storage. Other
 applications could have shorter session lifetime, and the shortest 
 would apply for all other applications.

If you have your own session_save_path('/my/session/path') and make
sure no other application writes to the same one those sessions are
'safe' and in theory cou can have any session timeout you want. (same
argument, rephrased)

 Does it mean that the shortest session lifetime associated with an
 application applies to all other applications in the domain ?

yes,

The reason for this is that the session garbage collector gets called
with a certain (configurable) probability that will remove any files
older than TTL in that directory - automagically invalidating any
session ids having been inactive - no file to validate against.


 Has anyone been able to get the session_life to last atleast a couple
 of hours // my appl logs the user out after about 30 mins

I can't confirm on having longer session timeouts as I didn't really
care / had the need to...


 Thanks in advance
 Pushpinder Singh

Richard


 On Friday, April 16, 2004, at 08:54 AM, Marek Kilimajer wrote:

 pete M wrote:

 Am trying to increae the session lifetime to 8 hours ish
 using this code
 ini_set('session.gc_maxlifetime',28800);
 does not work ?
 any ideas
 Pete

 There are 3 conditions that must be met:

 1. You must set it before session_start()

 2. No other application can access your session storage. Other 
 applications could have shorter session lifetime, and the shortest 
 would apply for all other applications.

 3. The session cookie must live long enough. The default lifetime for
 session cookie is 0, that means untill the browser closes.

 HTH

 -- 
 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] Formatting phone numbers?

2004-04-16 Thread Paul Fine
Thanks!



-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
Sent: April 16, 2004 7:33 AM
To: BOOT; [EMAIL PROTECTED]
Subject: RE: [PHP] Formatting phone numbers?

[snip]
Thanks for any help, even if you just suggest built in functions to look
at.

I'm looking for a way to take a 7 digit number and put it into xxx-
format.

So basically the logic is to count 3 characters into $number and insert
a
- there.
[/snip]

As a telecom we use several methods, but here is a small function which
allows us to keep both formats where needed

function addTNDashes ($oldNumber){
   $newNumber = substr($oldNumber, 0, 3) . - . substr($oldNumber, 3,
4);
   
   return $newNumber;
}

$telephone = 8654321;
$newTele = addTNDashes($telephone);
echo $newTele;

output is 865-4321 and we can still use $telephone if we need to. 
[stuff you may not need]
This is a boiled down version of a longer function that counts string
lengths to determine how many dashes might need to be added. Let's say
you have the area code in the number, like 2108765432. Being a ten digit
number with a recognizable area code we can then add a portion to the
function to add the two needed dashes, making the number more readable.
[/stuff]

-- 
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] Sending document to printer...

2004-04-16 Thread jon roig
I do this fairly frequently -- basically, I just have word on a windows
server and use COM objects to send stuff over to the printer, using word
to do the formatting.

-- jon

---
jon roig
web developer
email: [EMAIL PROTECTED]
phone: 888.230.7557

-Original Message-
From: Enrico Weigelt [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 16, 2004 8:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sending document to printer...


* Alex Ortiz [EMAIL PROTECTED] [2004-04-14 18:28:18 -0500]:

 I'm looking for some ideas to send data directly to printer,
 considering the user runs a browser (client side), while the PHP code 
 runs at apache server (server side). PHP has some printing functions, 
 but only for the Windows version.

Printing in professional environments is a little bit more complex than
it seems for the standard windows user.

Spooling and printjob generation are fundamentally two different things
Windows mixes this together and only provides a very limited API for
sending screen-paint operations to print job. 

So if we want to code a good printing extension (which I'd really
welcome and I'll really like to contribute to), we have to keep these
things 
separated.

For print spooling, lpr gives and simple easy-to-use interface. But of 
course this is quite limited and only applicable for adding new jobs
locally. (more than that is possibly, but not easy to use IMHO). 
Probably CUPS supplies some suitable client libs, but I didn't have a
look at them, so I cant tell you anything about them.

I would recommend writing a very small lib for doing normal print queue
management in a platform independent way.

On gtk there were also some folks requesting such an API (they wanted to

include it into gtk, which was gladly refused)

If there're some more people willing to work on that I'll start a new
project for that, which also produces a php-binding. I'll also offer to 
host some project resources like website, maillists, etc and recruit 
these folks from gtk for it.

But I won't do evryhing by myself :)

Okay, this was print-spooling. 

Job-Generation is another topic. This really depends on your datasource
and the languages your target printers understand. Most of the world
(Unix, Apple, almost all better printers ...) will understand PS or PDF
and probably SVG. Windows and windows-only-printers go their own way 
and only understand WMF, but could use gs to render PS/PDF to WMF.

There're many libs out there for generating such formats, i.e. pdflib or
cairo. For rendering HTML you'll maybe try to get gecko pdf backend
running or pipe it through html2ps.

For supplying a windows-like printing API probably a mixture of my
recommended spooling API and cairo would be suitable.

 My HTML/PHP program process some input data from a form, then open a 
 new window with the resulting data. The user needs to print this 
 resulting data in a blank sheet, but the browser (MS Internet 
 Explorer) prints some headers and footers besides the data.
Well, this is a IE problem. 

BTW: where should the printing happen ? On the webserver or the client ?
These are fundamentally different.

Printing on the server was the topic I was talking about.
If you're talking about printing from the webbrowser and fixing IE's
printing problems - this is not a PHP issue!


regards,
-- 
-
 Enrico Weigelt==   metux IT services

  phone: +49 36207 519931 www:   http://www.metux.de/
  fax:   +49 36207 519932 email: [EMAIL PROTECTED]
  cellphone: +49 174 7066481
-
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
-

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 4/13/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 4/13/2004
 

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



[PHP] Using ' to access session variables?

2004-04-16 Thread BOOT
Whats the difference between $_SESSION[foo] and $_SESSION['foo'] I have been
using the 's but they seem to be unecessary?

I run into trouble if I try something like:


$query =  select * from table where (test.id = '$_SESSION['foo']') ;

but the following works:

$query =  select * from table where (test.id = '$_SESSION[foo]') ;


I know there is some way to properly escape characters but is there any
reason why I shouldn't just omit the 's?


Thanks!

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



Re: [PHP] Using ' to access session variables?

2004-04-16 Thread Michal Migurski
Whats the difference between $_SESSION[foo] and $_SESSION['foo'] I have
been using the 's but they seem to be unecessary?

Use the single-quotes -- array references often work without them, but the
potential for conflict with constants and future PHP incompatibility is a
possibility. If you (or PHP) had a constant foo defined, it would behave
unexpectedly.

I run into trouble if I try something like:
$query =  select * from table where (test.id = '$_SESSION['foo']') ;
but the following works:
$query =  select * from table where (test.id = '$_SESSION[foo]') ;

http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing

// Works but note that this works differently outside string-quotes
echo A banana is $fruits[banana].;

// Works
echo A banana is {$fruits['banana']}.;

// Works but PHP looks for a constant named banana first
// as described below.
echo A banana is {$fruits[banana]}.;

// Won't work, use braces. This results in a parse error.
echo A banana is $fruits['banana'].;

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

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



Re: [PHP] Using ' to access session variables?

2004-04-16 Thread Justin Patrin
Michal Migurski wrote:

Whats the difference between $_SESSION[foo] and $_SESSION['foo'] I have
been using the 's but they seem to be unecessary?


Use the single-quotes -- array references often work without them, but the
potential for conflict with constants and future PHP incompatibility is a
possibility. If you (or PHP) had a constant foo defined, it would behave
unexpectedly.

I run into trouble if I try something like:
$query =  select * from table where (test.id = '$_SESSION['foo']') ;
but the following works:
$query =  select * from table where (test.id = '$_SESSION[foo]') ;


http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing

// Works but note that this works differently outside string-quotes
echo A banana is $fruits[banana].;
// Works
echo A banana is {$fruits['banana']}.;
// Works but PHP looks for a constant named banana first
// as described below.
echo A banana is {$fruits[banana]}.;
// Won't work, use braces. This results in a parse error.
echo A banana is $fruits['banana'].;
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
Or you could just use single quotes and concatenate.
echo 'A banana is '.$fruits['banana'].'.';
It may look bad here, but it's just fine when syntaxt highlighted. In 
fact, more syntax highlighters will work on that than the in-string 
version. IMHO, it's also more readable.

That being said, it's also slightly faster as PHP doesn't have to do any 
variable finding/substritution in the string.

Of course, this is just my opinion.

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


Re: [PHP] Using ' to access session variables?

2004-04-16 Thread Richard Harb
If used outside any strings (like in your $query example)
$_SESSION[foo]  --  here foo technically is a constant
and php ought to produce a notice
$_SESSION['foo']  --  is the correct way as there is no doubt that foo
  is a string

When used inside a string the rules are slightly altered
@see http://www.php.net/manual/en/language.types.array.php
section Array do's and don'ts

Richard


Friday, April 16, 2004, 6:32:11 PM, you wrote:

 Whats the difference between $_SESSION[foo] and $_SESSION['foo'] I have been
 using the 's but they seem to be unecessary?

 I run into trouble if I try something like:


 $query =  select * from table where (test.id = '$_SESSION['foo']') ;

 but the following works:

 $query =  select * from table where (test.id = '$_SESSION[foo]') ;


 I know there is some way to properly escape characters but is there any
 reason why I shouldn't just omit the 's?


 Thanks!

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



Re: [PHP] Encrypting Source

2004-04-16 Thread Enrico Weigelt
* Richard Harb [EMAIL PROTECTED] [2004-04-16 16:09:14 +0200]:

 Two come to mind:
 - Zend Encoder
   costs $, but is widely supported as it 'only' needs zend optimizer to decode
 - Turck MMCache/phpcoder on sf.net
   open source but not available on most webhosters. though IMHO the cache
   alone is worth looking into
- apc-cache.
  its cachefiles could also be used as encoded binaries.  it is not really
  encrypted (so you need a special decipher + key), but this maybe easily
  added into the loader function of the cache storage layer.
  

cu
-- 
-
 Enrico Weigelt==   metux IT services

  phone: +49 36207 519931 www:   http://www.metux.de/
  fax:   +49 36207 519932 email: [EMAIL PROTECTED]
  cellphone: +49 174 7066481
-
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
-

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



[PHP] php buildsystem [WAS: Compile PHP question]

2004-04-16 Thread Enrico Weigelt
* Red Wingate [EMAIL PROTECTED] [2004-04-16 10:46:19 +0200]:

snip
 [quote]
 The CLI SAPI was released for the first time with PHP 4.2.0, but was still 
 experimental and had to be explicitly enabled with --enable-cli when 
 running ./configure. Since PHP 4.3.0 the CLI SAPI is no longer experimental 
 and the option --enable-cli is on by default. You may use --disable-cli to 
 disable it.
 [/quote]
 
 Using:  './configure --enable-cli --with-mysql' is just right :-)

BTW: the whole bunch of build options is very misleading and inconsistent.

i.e. foo-support doesn't say anything, what it really does. 
does it leave space for foo to operate ? 
or does it use foo to do something magically ? 
or does it automatically make donation to the foo project on each request ?
or provide a PHP/Zend binding to foo's API ?


Why cant we at least group several features together and introduce 
a clear naming scheme ? I'd suggest a kind of hierachical namespace.

On some short I've got there different groups in mind:

+ SAPIs to build (even it may sound a little bit misleading,  
  the CLI/standalone interpreter) is also an SAPI.
  perhaps we should someday find a better word, i.e. interpreter ?
  
  so their options would be: --enable-sapi-sapi_name
  or w/ optional paramter: --enable-sapi-sapi_name=param

  other sapi-dependend parameters should then be named in the way:
  --sapi-sapi_name-param_name
  
+ there are many extensions, which all provide a set of functions.
  so their should all be called:
  
  --enable-ext-ext_name or --enable-ext-ext_name=data
  
  It should be made clear, that extensions are _optional_ modules
  (in fact they may exists as .so's)

  Built-in extensions (i.e. pcre) should also be selectable here,
  but of course may be enabled by default.
  
+ many extensions and other features have external dependencies,
  some of these are supplied by bundled libraries.
  
  we should have a way to choose, where to get a library from
  (system wide, some other path or bundled) and whether to do 
  static or dynamic linking. for cross-compiling its also necessary
  to specify a prefix where the stuff at build-time comes from
  (i.e. the root dir of the other target system)
  
  I'd suggest the scheme:
  
  --with-libname-source=(bundled|system|/path/to/prefix)  
-- prefix (FHS-style)
  --with-libname-include=/path/to/includes
-- include directory (added include search path for importing modules)
  --with-libname-static=/path/to/static/lib
  --with-libname-dll=/path/to/dynamic/lib
  --with-libname-rpath=/pat/to/dll/runtime/path
-- analogous.
  --with-libname-config=/path/to/pkgconfig-script 
-- path to config script
  --with-libname-pkg-config
-- use freedesktop.org's pkg-config to detect the package.
(optional parameter is the path to pkg-config)


One big problem with the configure script is its magic autodetection,
which sometimes does stupid things, i.e. enabling some features/extensions
just because it finds a dependency and leaving out because it doesn't
find one of the dependencies and changing this behavour on some 
features from version to version. 
(okay, this is a common autoconf problem - in fact is a fundamental 
design flaw of autoconf)

At least it should produce a really clear and machine readable 
(means regular grammer) output of all available features and modules, 
whether they're enabled (and why) their dependencies, and the used pathes 
and build options/variants.

For example:

[TARGET sapi/cli]
module: sapi/cli
install-bindir: /usr/bin

[MODULE ext/pgsql]
module: ext/pgsql
version:1.2.3.4
description:postgresql client library binding
enabled:yes
link-type:  static
depdends:   pg-client=7.3.0

[DEPEND pg-client]
abi-version:7.4.1.0
link-type:  dynamic
link-rpath: /usr/lib/pgsql/lib/

...


Such information is probably not very useful for people just compiling
php on the target system by hand, but its really important to make the
packager's/distributor's live much, much easier.


cu
-- 
-
 Enrico Weigelt==   metux IT services

  phone: +49 36207 519931 www:   http://www.metux.de/
  fax:   +49 36207 519932 email: [EMAIL PROTECTED]
  cellphone: +49 174 7066481
-
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
-

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



[PHP] sending mail with php on a linux box

2004-04-16 Thread Chris W
I'm not sure if this is a PHP, Apache, Network, or sendmail 
configuration but hopefully someone here will know.

When I send email with PHP the from header is

[EMAIL PROTECTED]

I can't run a real mail server on my machine, so I want to change that 
email address to something else.  What config file do I need to look at 
to do this?

Chris W

http://thewishzone.com:8086

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


Re: AW: [PHP] smarty

2004-04-16 Thread Enrico Weigelt

BIG_SNIP /

It seems the discussions wents in a completely nonsense direction.

Arguing about TE's in general and one concerete TE named smarty 
is simply silly.

Either we'd talk about the (dis)advantages of TE's in general 
or compare different TE's, i.e. smarty vs. pattemplate vs. xslt.

So lets split the thread into the two different topics and talk 
about them separately. Instead arguing apples are tasting better
than bananas since because of the different color is simply nonesense.


cu
-- 
-
 Enrico Weigelt==   metux IT services

  phone: +49 36207 519931 www:   http://www.metux.de/
  fax:   +49 36207 519932 email: [EMAIL PROTECTED]
  cellphone: +49 174 7066481
-
   -- DSL-Zugang ab 0 Euro. -- statische IP -- UUCP -- Hosting --
-

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



RE: AW: [PHP] smarty

2004-04-16 Thread Chris W. Parker
Enrico Weigelt mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 10:13 AM said:

keep in mind it's friday!!

 Either we'd talk about the (dis)advantages of TE's in general
 or compare different TE's, i.e. smarty vs. pattemplate vs. xslt.

don't forget interjinn.

 So lets split the thread into the two different topics and talk
 about them separately. Instead arguing apples are tasting better
 than bananas since because of the different color is simply nonesense.

actually i think bananas are better because of their shape.


...


wait. i think that came out wrong.





chris.

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



Re: [PHP] sending mail with php on a linux box

2004-04-16 Thread John Nichel
Chris W wrote:
I'm not sure if this is a PHP, Apache, Network, or sendmail 
configuration but hopefully someone here will know.

When I send email with PHP the from header is

[EMAIL PROTECTED]

I can't run a real mail server on my machine, so I want to change that 
email address to something else.  What config file do I need to look at 
to do this?

Chris W

http://thewishzone.com:8086

Even if you throw a From : in the headers with the mail() function?

http://us4.php.net/manual/en/function.mail.php

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
Chris W. Parker wrote:
Enrico Weigelt mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 10:13 AM said:
keep in mind it's friday!!
Then why am I still sober?

Either we'd talk about the (dis)advantages of TE's in general
or compare different TE's, i.e. smarty vs. pattemplate vs. xslt.


don't forget interjinn.
Like we ever could.

(awaits the flame)

So lets split the thread into the two different topics and talk
about them separately. Instead arguing apples are tasting better
than bananas since because of the different color is simply nonesense.


actually i think bananas are better because of their shape.
I won't touch that with a ten foot banana.

wait. i think that came out wrong.
Better than going in wrong.

(Isn't it 5:00 yet???)

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Unwanted e-mails

2004-04-16 Thread Chris W. Parker
David A. Stevens mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 10:31 AM said:

 I have somehow, for reasons unknown to me, gotten onto some e-mail
 list that I don't want to or need to be on. Somebody please, at all
 the above addresses, do everything possible to get me off that
 list(s).

DON'T MAKE AN AUTO-REPLY!!

UNSUBSCRIBE YOURSELF!!

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



[PHP] Re: sending mail with php on a linux box

2004-04-16 Thread John Nichel
David A. Stevens wrote:
Please remove my address from any future correspondence about PHP.

You are responding to an individual (me) about removing you from a 
mailing list which I do not own or control.  The members of the list 
already pointed out to you how to unsubscribe.  Any further requests to 
me directly will be sent to /dev/null

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Unwanted e-mails

2004-04-16 Thread Richard Davey
Hello David,

Friday, April 16, 2004, 6:31:17 PM, you wrote:

DAS I have somehow, for reasons unknown to me, gotten onto some e-mail
DAS list that I don't want to or need to be on. Somebody please, at all
DAS the above addresses, do everything possible to get me off that 
DAS list(s).

That would be the part at the bottom of the emails that says To
unsubscribe, visit: http://www.php.net/unsub.php;

If you never even subscribed in the first place - I reckon someone is
playing aroun with your email account. Your password might be
compromised.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP] Unwanted e-mails

2004-04-16 Thread David A. Stevens
I have somehow, for reasons unknown to me, gotten onto some e-mail 
list that I don't want to or need to be on. Somebody please, at all 
the above addresses, do everything possible to get me off that 
list(s).

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


Re: [PHP] Unwanted e-mails

2004-04-16 Thread John Nichel
Chris W. Parker wrote:
David A. Stevens mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 10:31 AM said:

I have somehow, for reasons unknown to me, gotten onto some e-mail
list that I don't want to or need to be on. Somebody please, at all
the above addresses, do everything possible to get me off that
list(s).


DON'T MAKE AN AUTO-REPLY!!

UNSUBSCRIBE YOURSELF!!

Some people's children...and on a Friday no less.  Yeesh. ;)

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: AW: [PHP] smarty

2004-04-16 Thread Robert Cummings
On Fri, 2004-04-16 at 13:27, John Nichel wrote:
 Chris W. Parker wrote:
  Enrico Weigelt mailto:[EMAIL PROTECTED]
  on Friday, April 16, 2004 10:13 AM said:
  
  keep in mind it's friday!!
 
 Then why am I still sober?
 
 Either we'd talk about the (dis)advantages of TE's in general
 or compare different TE's, i.e. smarty vs. pattemplate vs. xslt.
  
  don't forget interjinn.
 
 Like we ever could.
 (awaits the flame)

John WHY ARE YOU SUCH A F... Ok, I'm willing to let bad blood go away if
you are. We're all PHP peeps here so really there shouldn't be any
animosity (perceived or otherwise).

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

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



RE: AW: [PHP] smarty

2004-04-16 Thread Aaron Wolski
   don't forget interjinn.
 
  Like we ever could.
  (awaits the flame)
 
 John WHY ARE YOU SUCH A F... Ok, I'm willing to let bad blood go away 
 if you are. We're all PHP peeps here so really there shouldn't be any 
 animosity (perceived or otherwise).

Damn. Some of the best entertainment of my week on this list ;)

*home simpson voice* m beer.

Enjoy all.

A

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread John W. Holmes
From: David A. Stevens [EMAIL PROTECTED]

 I have somehow, for reasons unknown to me, gotten onto some e-mail
 list that I don't want to or need to be on. Somebody please, at all
 the above addresses, do everything possible to get me off that
 list(s).

For reasons unknown to me, you obviously ignore the bottom of every
unwanted email that you get that shows you how to unsubscribe. Here...
take my hand and together we'll send an email to
[EMAIL PROTECTED] and wait for the magic to happen
(umm.. stop holding my hand now, please).

---John Holmes...

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



Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
Aaron Wolski wrote:
don't forget interjinn.
Like we ever could.
(awaits the flame)
John WHY ARE YOU SUCH A F... Ok, I'm willing to let bad blood go away 
if you are. We're all PHP peeps here so really there shouldn't be any 
animosity (perceived or otherwise).


Damn. Some of the best entertainment of my week on this list ;)

*home simpson voice* m beer.

Enjoy all.

A
You should try the qmail list.

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Compile PHP question

2004-04-16 Thread Dave Carrera
Hi David,

You have to unsubscribe yourself from the php-general list to not receive
further correspondence as it is not in my power to do such a task and is not
my fault that you are on our list.

I am not in any way responsible for the php-general list just a participant
it the contributions.

Yours truly

Dave Carrera


-Original Message-
From: David A. Stevens [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2004 18:59
To: Dave Carrera
Subject: Re: [PHP] Compile PHP question


Please remove my address from any future correspondence about PHP.


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 13/04/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 13/04/2004
 

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



RE: [PHP] php and mysql help

2004-04-16 Thread Jay Blanchard
Why are you sending this to me? You're at Stanford, you can probably
figure out the unsubscribe link and stuff

-Original Message-
From: David A. Stevens [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 16, 2004 12:41 PM
To: Jay Blanchard
Subject: RE: [PHP] php and mysql help


Please remove my address from any future correspondence about PHP.

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



RE: [PHP] Formatting phone numbers?

2004-04-16 Thread Andy Crain
Good stuff.

 [stuff you may not need]
 This is a boiled down version of a longer function that counts string
 lengths to determine how many dashes might need to be added. Let's say
 you have the area code in the number, like 2108765432. Being a ten digit
 number with a recognizable area code we can then add a portion to the
 function to add the two needed dashes, making the number more readable.
 [/stuff]

I'd love to see that larger function, if you care to share.
Andy

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



Re: AW: [PHP] smarty

2004-04-16 Thread John W. Holmes
  Either we'd talk about the (dis)advantages of TE's in general
  or compare different TE's, i.e. smarty vs. pattemplate vs. xslt.

Wait a minute... are we talking about Smarty as in smarty.php.net? Because I
was thinking of something else this entire time and this completely changes
the discussion...

---John Holmes... ;)

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



Re: [PHP] Explanation of cookie behavior

2004-04-16 Thread John Nichel
David A. Stevens wrote:
Please remove my address from any future correspondence about PHP.

Allrighty then.  I warned ya Davey...you're on yer way to /dev/null.  If 
you're lucky, I won't post your email to any porn lists or USENET.

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: AW: [PHP] smarty

2004-04-16 Thread John Nichel
John W. Holmes wrote:
Either we'd talk about the (dis)advantages of TE's in general
or compare different TE's, i.e. smarty vs. pattemplate vs. xslt.


Wait a minute... are we talking about Smarty as in smarty.php.net? Because I
was thinking of something else this entire time and this completely changes
the discussion...
---John Holmes... ;)

There's a smarty.php.net?

No wonder I was getting so confused going to www.smarty.com

serious
You do realize that with 2.5 hours left in the work day today, we're 
likely to get even sillier? ;)
/serious

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Explanation of cookie behavior

2004-04-16 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 16 Apr 2004 18:18, John Nichel wrote:
 David A. Stevens wrote:
  Please remove my address from any future correspondence about PHP.

 Allrighty then.  I warned ya Davey...you're on yer way to /dev/null.  If
 you're lucky, I won't post your email to any porn lists or USENET.

But I might ;)

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

When I say something, I put my name next to it. -- Isaac Jaffee

 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
 ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ 
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgDJvaIgMKkVlSLQRAnKOAJ48FP60qgOpjGegMs2+UnUGDdbEYACfSjYS
8tLVxnY5/Si80AoJeS1M4Qw=
=HjAU
-END PGP SIGNATURE-

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



RE: AW: [PHP] smarty

2004-04-16 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 11:24 AM said:

 serious
 You do realize that with 2.5 hours left in the work day today, we're
 likely to get even sillier? ;)
 /serious

I still have 6 hours to go. :(




c.

p.s. anyone play ffxi?

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



Re: [PHP] alternating row color--newbie help

2004-04-16 Thread Raquel Rice
On Fri, 16 Apr 2004 11:26:37 -0700
David A. Stevens [EMAIL PROTECTED] wrote:

 Please remove my address from any future correspondence about PHP.

Mr. Stevens,

I assume you had some reason for sending this to me privately.  As
I'm only a member of an email list, [EMAIL PROTECTED]. 
I'd suggest that you rethink that decision and never do it again. 
My next step will be to contact the administrator at
leland.stanford.edu, where you hold your email account
[EMAIL PROTECTED].

Thank you for your kind consideration.

-- 
Raquel

In all affairs it's a healthy thing now and then to hang a question
mark on the things you have long taken for granted.
  --Bertrand Russell

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread Lester Caine
Chris W. Parker wrote:

David A. Stevens mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 10:31 AM said:

I have somehow, for reasons unknown to me, gotten onto some e-mail
list that I don't want to or need to be on. Somebody please, at all
the above addresses, do everything possible to get me off that
list(s).


DON'T MAKE AN AUTO-REPLY!!

UNSUBSCRIBE YOURSELF!!
Does not Fing work!!
The unsubscribe process requires you to reply to the eMail that is sent.
THAT email is bounced for many people who are trying to unsubscribe.
SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE 
C*A*N* UNSBSCRIBE !

There is obviously an anti spam filter that processes many of these 
requests and prevent email IN while still sending it OUT to the banned 
addresses !

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Unwanted e-mails

2004-04-16 Thread Chris W. Parker
Lester Caine mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 12:20 PM said:

 Does not Fing work!!
 The unsubscribe process requires you to reply to the eMail that is
 sent. THAT email is bounced for many people who are trying to
 unsubscribe. SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE
 SYSTEM SO THAT WE C*A*N* UNSBSCRIBE
 ! 

that sounds like a problem on the end of the person trying to
unsubscribe and not the server.


chris.

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 16 Apr 2004 19:19, Lester Caine wrote:
 Chris W. Parker wrote:
  David A. Stevens mailto:[EMAIL PROTECTED]
 
  on Friday, April 16, 2004 10:31 AM said:
 I have somehow, for reasons unknown to me, gotten onto some e-mail
 list that I don't want to or need to be on. Somebody please, at all
 the above addresses, do everything possible to get me off that
 list(s).
 
  DON'T MAKE AN AUTO-REPLY!!
 
  UNSUBSCRIBE YOURSELF!!

 Does not Fing work!!
 The unsubscribe process requires you to reply to the eMail that is sent.
 THAT email is bounced for many people who are trying to unsubscribe.
 SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE
 C*A*N* UNSBSCRIBE !

 There is obviously an anti spam filter that processes many of these
 requests and prevent email IN while still sending it OUT to the banned
 addresses !

Chill out, or you'll see no help, OK?

If for whatever reason you don't get that unsibscribe email, you need to 
contact the people who run this list:

  php-general-owner at lists dot php dot net

But use that as a /last/ resort.  Try the unsubscribe page on the PHP website 
first:

  http://www.php.net/unsub.php

Coming on this list and swearing at everyone won't get you anywhere.

:-)

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

When I say something, I put my name next to it. -- Isaac Jaffee

 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
 ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ 
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgECmaIgMKkVlSLQRAkR9AJ48QGZl4iwy+hPmbBNekD3F4lRZvQCgiKh/
JBY08qC2MFFNLvsXbv3hnuc=
=4+dE
-END PGP SIGNATURE-

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread Travis Low
Lester Caine wrote:
Chris W. Parker wrote:
David A. Stevens mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 10:31 AM said:
I have somehow, for reasons unknown to me, gotten onto some e-mail
list that I don't want to or need to be on. Somebody please, at all
the above addresses, do everything possible to get me off that
list(s).
DON'T MAKE AN AUTO-REPLY!!

UNSUBSCRIBE YOURSELF!!
Does not Fing work!!
The unsubscribe process requires you to reply to the eMail that is sent.
THAT email is bounced for many people who are trying to unsubscribe.
SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE 
C*A*N* UNSBSCRIBE !
I just unsubscribed and re-subscribed, no problems at all.

Did I miss anything?  :-)

cheers,

Travis

--
Travis Low
mailto:[EMAIL PROTECTED]
http://www.dawnstar.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Unwanted e-mails

2004-04-16 Thread Lester Caine
Lester Caine mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 12:20 PM said:
Does not Fing work!!
The unsubscribe process requires you to reply to the eMail that is
sent. THAT email is bounced for many people who are trying to
unsubscribe. SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE
SYSTEM SO THAT WE C*A*N* UNSBSCRIBE
! 
that sounds like a problem on the end of the person trying to
unsubscribe and not the server.
WHY?
I am hitting reply, and EVERY php list sends a message back bouncing the 
unsubscribe message ( along with every post I have tried to make since 
XMAS - which is why I am having to use the newsgroup interface )
This only happens on list.php.net, I have no problem with any other 
developer list I am moderator of or involved with !

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Unwanted e-mails

2004-04-16 Thread John W. Holmes
From: Lester Caine [EMAIL PROTECTED]

 Does not Fing work!!
 The unsubscribe process requires you to reply to the eMail that is sent.
 THAT email is bounced for many people who are trying to unsubscribe.
 SOMEBODY NEEDS TO GET THEIR ACT TOGETHER AND FIX THE SYSTEM SO THAT WE
 C*A*N* UNSBSCRIBE !

Works for me everytime I go away for more than a couple days. Maybe you
should get a better email client.

---John Holmes...

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread John Nichel
Lester Caine wrote:
that sounds like a problem on the end of the person trying to
unsubscribe and not the server.


WHY?
I am hitting reply, and EVERY php list sends a message back bouncing the 
unsubscribe message ( along with every post I have tried to make since 
XMAS - which is why I am having to use the newsgroup interface )
This only happens on list.php.net, I have no problem with any other 
developer list I am moderator of or involved with !

Seeing that the unsubscribe works for the vast majority, one would guess 
that the problem isn't on the list server end.

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sending mail with php on a linux box

2004-04-16 Thread John W. Holmes
From: Chris W [EMAIL PROTECTED]

 I'm not sure if this is a PHP, Apache, Network, or sendmail
 configuration but hopefully someone here will know.

 When I send email with PHP the from header is

 [EMAIL PROTECTED]

 I can't run a real mail server on my machine, so I want to change that
 email address to something else.  What config file do I need to look at
 to do this?

The last parameter of mail() allows you to specify additional headers.Use it
to set a From header.

$headers = From: [EMAIL PROTECTED];

mail($to,$subject,$msg,$headers);

---John Holmes...

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread Lester Caine
Elfyn McBratney wrote:

Chill out, or you'll see no help, OK?

If for whatever reason you don't get that unsibscribe email, you need to 
contact the people who run this list:

  php-general-owner at lists dot php dot net

But use that as a /last/ resort.  Try the unsubscribe page on the PHP website 
first:

  http://www.php.net/unsub.php

Coming on this list and swearing at everyone won't get you anywhere.
EVERY message posted to lists.php.net simply gets bounced, and every 
attempt to get a response on these lists has been ignored.
YES there is an unsubscribe, BUT it will only work if the eMail server 
at PHP will actually accept the unsubscribers eMail.
I am not the only person who has been having problems getting email 
responses - so arrogant replies of Read the messages tend to piss me 
off :)

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Unwanted e-mails

2004-04-16 Thread Jay Blanchard
[snip]
EVERY message posted to lists.php.net simply gets bounced
[/snip]

Apparently not, as we all get it. Perhaps you have set up your options
to see your own e-mails? There is an option for that.

[snip]
, and every attempt to get a response on these lists has been ignored.
[/snip]

Apparently not again, as I have seen several responses to your e-mails.

[snip]
YES there is an unsubscribe, BUT it will only work if the eMail server
at PHP will actually accept the unsubscribers eMail.
[/snip]

Several have proven that this works.

[snip]
I am not the only person who has been having problems getting email
responses - so arrogant replies of Read the messages tend to piss me
off :)
[/snip]

And arrogant bull$hit like above tends to piss us all off.

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread John W. Holmes
From: Lester Caine [EMAIL PROTECTED]

 I am hitting reply, and EVERY php list sends a message back bouncing the
 unsubscribe message ( along with every post I have tried to make since
 XMAS - which is why I am having to use the newsgroup interface )
 This only happens on list.php.net, I have no problem with any other
 developer list I am moderator of or involved with !

I think you're just getting an autoresponder, but not from the list. Same as
every time anyone posts we get those messages from Information Desk,
Advance Credit Suisse Bank, pair-something, etc...

---John Holmes...

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 16 Apr 2004 19:35, Lester Caine wrote:
 Elfyn McBratney wrote:
  Chill out, or you'll see no help, OK?
 
  If for whatever reason you don't get that unsibscribe email, you need to
  contact the people who run this list:
 
php-general-owner at lists dot php dot net
 
  But use that as a /last/ resort.  Try the unsubscribe page on the PHP
  website first:
 
http://www.php.net/unsub.php
 
  Coming on this list and swearing at everyone won't get you anywhere.

 EVERY message posted to lists.php.net simply gets bounced, and every
 attempt to get a response on these lists has been ignored.
 YES there is an unsubscribe, BUT it will only work if the eMail server
 at PHP will actually accept the unsubscribers eMail.
 I am not the only person who has been having problems getting email
 responses - so arrogant replies of Read the messages tend to piss me
 off :)

Have a look at the headers of this message.  You'll see (or should see) a 
Return-path: header.  Like this:

  Return-path: [EMAIL PROTECTED]

You see this bit: elfyn=emcb.co.uk?  That's the email address I subscribed 
with, and is the address I have to use to unsubscribe.  Make sure that you 
use the correct address to 'try' and unsubscribe or, yes, ezmlm will ignore 
you.

ELfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

When I say something, I put my name next to it. -- Isaac Jaffee

 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
 ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ 
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgEN3aIgMKkVlSLQRAjo1AKCLSRZmygBj/APT7mWn85kj/U13BwCgmmCB
ucqissJNh/UJ3hUcAnLS37U=
=NzG/
-END PGP SIGNATURE-

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



RE: [PHP] Unwanted e-mails

2004-04-16 Thread Chris W. Parker
Lester Caine mailto:[EMAIL PROTECTED]
on Friday, April 16, 2004 12:36 PM said:

 EVERY message posted to lists.php.net simply gets bounced, and every
 attempt to get a response on these lists has been ignored.

i don't see how if every message you send gets bounced it's still coming
through to me. if it gets bounced shouldn't it *not* make it through to
the list? what am i missing here?

 I am not the only person who has been having problems getting email
 responses

what do you mean email responses? it appears that you are getting
email respones since you're replying to an email on this list... ...
...


confused,
chris.

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread John Nichel
Lester Caine wrote:
EVERY message posted to lists.php.net simply gets bounced, and every 
attempt to get a response on these lists has been ignored.
YES there is an unsubscribe, BUT it will only work if the eMail server 
at PHP will actually accept the unsubscribers eMail.
I am not the only person who has been having problems getting email 
responses - so arrogant replies of Read the messages tend to piss me 
off :)

Worked for me Tuesday when I unsubscribed my home email address.

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Unwanted e-mails

2004-04-16 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 16 Apr 2004 20:35, Elfyn McBratney wrote:
 On Friday 16 Apr 2004 19:35, Lester Caine wrote:
  Elfyn McBratney wrote:
   Chill out, or you'll see no help, OK?
  
   If for whatever reason you don't get that unsibscribe email, you need
   to contact the people who run this list:
  
 php-general-owner at lists dot php dot net
  
   But use that as a /last/ resort.  Try the unsubscribe page on the PHP
   website first:
  
 http://www.php.net/unsub.php
  
   Coming on this list and swearing at everyone won't get you anywhere.
 
  EVERY message posted to lists.php.net simply gets bounced, and every
  attempt to get a response on these lists has been ignored.
  YES there is an unsubscribe, BUT it will only work if the eMail server
  at PHP will actually accept the unsubscribers eMail.
  I am not the only person who has been having problems getting email
  responses - so arrogant replies of Read the messages tend to piss me
  off :)

 Have a look at the headers of this message.  You'll see (or should see) a
 Return-path: header.  Like this:

   Return-path: [EMAIL PROTECTED]

 You see this bit: elfyn=emcb.co.uk?  That's the email address I subscribed
 with, and is the address I have to use to unsubscribe.  Make sure that you
 use the correct address to 'try' and unsubscribe or, yes, ezmlm will ignore
 you.

One important detail I missed is that you replace the '=' with an '@' to get 
the email address..

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

When I say something, I put my name next to it. -- Isaac Jaffee

 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
 ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ 
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgEP7aIgMKkVlSLQRAq2eAJ4sC3ZVwoR9e+nT/wyi5Hpo6ad7mwCgk2Dp
Lrgwtg6g7wO0/jcokEolkdg=
=69BO
-END PGP SIGNATURE-

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



Re: [PHP] Unwanted e-mails

2004-04-16 Thread Lester Caine
John W. Holmes wrote:

From: Lester Caine [EMAIL PROTECTED]

I am hitting reply, and EVERY php list sends a message back bouncing the
unsubscribe message ( along with every post I have tried to make since
XMAS - which is why I am having to use the newsgroup interface )
This only happens on list.php.net, I have no problem with any other
developer list I am moderator of or involved with !


I think you're just getting an autoresponder, but not from the list. Same as
every time anyone posts we get those messages from Information Desk,
Advance Credit Suisse Bank, pair-something, etc...
I have just posted a couple of replies via eMail, and tried another 
unsubscribe cycle. I will post the auto-responder message. SINCE 
lists.php.net is the only place I have a problem, and everything was 
fine last year ..

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Looking for a comprehensive PHP tutorial

2004-04-16 Thread Stephen Allen
On Fri, Apr 09, 2004 at 03:04:37PM +0530 or thereabouts, Ash.. wrote:
 Hi,
 
 I am looking for a comprehensive handholder tutorial, that introduces the
 various aspects
 of PHP, step by step and let's u see the big picture.
 I have come across tons of PHP learnware which is like how to do this and
 how to do that.
 But that still doesn't introduce the language to the beginner in an orderly
 manner.
 Any suggestions, links, will be greatly appreciated.
 
 Or, if someone (experienced in PHP) thinks we must come up with such a
 comprehensive tutorial, we can perhaps team up ;)
 Ash

I found an excellent book Visual QuickStart Guide (Second edition) PHP for the
World Wide Web by Larry Ullman to be excellent. Starts from the a basics in a
well written manner, common to all PeachPit books, I've ever read.

ISBN # 0-321-24565-2  $21.00 USD

-- 
S.Allen
---
barnyard  Friday Apr 16 2004 03:35:01 PM EDT
---
The egg cream is psychologically the opposite of circumcision -- it
*pleasurably* reaffirms your Jewishness.
-- Mel Brooks

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



  1   2   >