Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread hack988 hack988
see http://cn.php.net/manual/en/language.oop5.abstract.php
PHP 5 introduces abstract classes and methods. It is not allowed to
create an instance of a class that has been defined as abstract. Any
class that contains at least one abstract method must also be
abstract. Methods defined as abstract simply declare the method's
signature they cannot define the implementation.

You make misconception understand for abstract class,:(, correct code is:
abstract class a {
   abstract public function __construct(){

  }
  abstract public function __destruct(){

  }
 }

 class b extends a{
   public function __construct(){
echo constructingbr;
  }
  public function __destruct(){
echo destructingbr;
  }
 }

 $c = new b();
unset($c);

if you want to make it work correctly that you want,plase change code to follow
class c {
   public function __construct(){
echo constructingbr/;
  }
  public function __destruct(){
echo destructingbr/;
  }
}

 class d extends c{

 }
  $e = new d();
  unset($e);

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



Re: [PHP] preg_replace anything that isn't WORD

2009-08-24 Thread hack988 hack988
 Use preg_replace_callback instead!
preg_replace_callback is better performance than preg_replace with /e.
-
code

$str=cats i  saw a cat and a dog;
$str1=preg_replace_callback(/(dog|cat|.)/is,call_replace,$str);
echo $str.BR/;
echo $str1;
function call_replace($match){
 if(in_array($match[0],array('cat','dog')))
  return $match[0];
 else
  return ;
}

2009/8/24 tedd tedd.sperl...@gmail.com:
 On Sat, Aug 22, 2009 at 12:32 PM, “•ÈýÏÝ“•ÂÔdanondan...@gmail.com
wrote:

  Lets assume I have the string cats i  saw a cat and a dog
  i want to strip everything except cat and dog so the result will be
  catcatdog,
  using preg_replace.


  I've tried something like /[^(dog|cat)]+/ but no success

   What should I do?

 Lot's of ways to skin this cat/dog.

 What's wrong with exploding the string using spaces and then walking the
 array looking for cat and dog while assembling the resultant string?

 Cheers,

 tedd


 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com

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




Re: [PHP] unset( $anobject) does not invoce __destruct()

2009-08-24 Thread hack988 hack988
i test your codes again,it is work correctly!
But for backends compatibly with older php versions my codes is better
:),i'm sorry for my mistake at moment.

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



Re: [PHP] Re: unset() something that doesn't exist

2009-08-25 Thread hack988 hack988
php tigger is right i think.

Because of Zend engine parse line by line.(I can't use English give
expression to it with My Poor English).

It mean that (What I think) unset function is right parse but error
for is parameter.

Tigger Display :Warning: Wrong parameter count for unset  what
is your think.
But Developer want it backend  compatibility  that I guess.
See
http://us.php.net/manual/en/function.unset.php

change logs
4.0.1 Added support for multiple arguments.
4.0.0 unset() became an expression. (In PHP 3, unset() would always return 1).


2009/8/25 tedd tedd.sperl...@gmail.com:
 At 2:31 PM +0100 8/25/09, Stuart wrote:

 Please don't reply directly unless you intend to pay me for my time.

 2009/8/25 Ralph Deffke ralph_def...@yahoo.de:

  sorry but its about the top topic it say it never does an error if u
 dont
  give an argument

 I accept that your English is not great, but given that you should be
 a bit more careful.

 The OP said is it the case that unset() does not trigger an error or
 throw an exception if it's argument was never set?. That does not say
 if you don't give an argument. Not even close.

 -Stuart

 I can't believe that you are wasting time on this. This guy is beyond
 clueless.

 Cheers,

 tedd

 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com

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



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



Re: [PHP] php cms?

2009-08-25 Thread hack988 hack988
i like durpal or e107

2009/8/26 Lars Nielsen l...@mit-web.dk:
 tir, 25 08 2009 kl. 17:05 -0400, skrev Bastien Koert:
 On Tue, Aug 25, 2009 at 4:35 PM, Lars Nielsenl...@mit-web.dk wrote:
  Hey list,
 
  I am going to use a cms for some sites and I have looked a little at
  Typo3, Joomla and php-fusion.
  Can anyone recommend a system where it is easy to customize the
  templates?
 
  regards
  Lars Nielsen
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

 Joomla or Drupal are good

 --

 Bastien

 Cat, the other other white meat


 ok, thanks

 I'll give joomla! another shot.

 /Lars


 --
 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] Re: page works on public web site, but not on my computer

2009-08-25 Thread hack988 hack988
It Just Deprecated Function used.It mean source code wouldn't work
wall based on newer php versions.
see this link http://cn.php.net/manual/en/function.eregi.php
If you want fix that warning ,replace eregi to preg_match_all and use
/s instead.

2009/8/26 mike bode mikebo...@hotmail.com:
 I just de-installed, then re-installed MySQL, Apache and PHP 5.3. No
 changes. The script does not work on my computer.

 Now I get in addition to the error message below this:

 [Tue Aug 25 21:29:11 2009] [error] [client 127.0.0.1] PHP Deprecated:
 Function eregi() is deprecated in C:\\webdev\\rmv3\\album\\getalbumpics.php
 on line 11, referer: http://localhost/album.php

 Don't know if those warnings would stop the execution of the php script.


 mike bode mikebo...@hotmail.com wrote in message
 news:99.f2.08117.ccf74...@pb1.pair.com...

 I have posted the question in another thread a bit down, but only buried
 within the thread, so please excuse me when I ask again.

 I want to use some PHP code from a web site
 (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm), and I am
 following their instruction how to implement it. I was not able to get it to
 work. Then I uploaded the code to a server, and lo and behold, it does work
 on the server. On the public site you see thumbnails of images (never mind
 the junk above them), when I run the SAME html and php code on my omputer, I
 get a blank white page.

 The error log has several entries, but they are all warnings:

 [Tue Aug 25 18:12:00 2009] [error] [client 127.0.0.1] PHP Warning: date():
 It is not safe to rely on the system's timezone settings. You are *required*
 to use the date.timezone setting or the date_default_timezone_set()
 function. In case you used any of those methods and you are still getting
 this warning, you most likely misspelled the timezone identifier. We
 selected 'America/Denver' for '-6.0/DST' instead in
 C:\\webdev\\rmv3\\album\\getalbumpics.php on line 11, referer:
 http://localhost/album.htm

 (this error is repeated for as many images I have in the directory that
 the php script is reading).

 Between php.ini, httpd.conf, and Windows Vista, I can't figure out where
 to start to diagnose this, and how. Anybody out there who can give me a
 pointer on how to roubleshoot this issue? I am almost ready to throw in the
 towel and either start from scratch (although this is alrady the second time
 that I have uninstalled and re-installed everything), or simply forget about
 php altogether. that would be a shame, though...


 --
 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] Where to list PHP5.2.8 and PHP5.2.10 known vulnerabilities?

2009-08-25 Thread hack988 hack988
see this
https://bugzilla.redhat.com/show_bug.cgi?id=478425

2009/8/26 David Taveras d3taveras3...@gmail.com:
 I already did see that, but it only lists one single vulnerability
 previously stated. Id just want to confirm that is the only one?



 On Tue, Aug 25, 2009 at 7:09 PM, Vinicius Pinto vinicius...@gmail.comwrote:

 You can look at the changelog for 5.3.0 and see what was fixed:
 http://www.php.net/ChangeLog-5.php#5.3.0


 On Tue, Aug 25, 2009 at 6:44 PM, David Taveras 
 d3taveras3...@gmail.comwrote:

 Hello,

 Iam still a user of PHP5.2.8 - 5.2.10 under BSD.I wish to know what
 vulnerabilites this version is exposed aside from CVE-2008-5498.

 Is there any site, where I can get an accurate listing, the only page I
 saw
 in php.net was for 5.2.9 listing that one vulnerability, iam thinking
 there
 might be others?

 CVE site seems confusing and I just wonder if there is something more
 practical.

 Thank you.

 Daniel





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



Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
have a tab inserted in the middle of the path ??? What it mean,I
can't find any diffrent between last one with other rows.

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



Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
use is_null() check it

2009/8/26 David Stoltz dsto...@shh.org:
 Paul,

 This all started because when I try this:

 ?php echo $rs-Fields(22);?

 It work fine, as long as there is a non-null value there, otherwise it
 produces an error.

 Also, I'm working with a Microsoft SQL 2000 database, not MySQLnot
 sure if that matters

 But echo $rs-Fields(22) works perfectly for dumping values out of my
 $rs recordset...that is, unless the value is NULL is the database - then
 I get:

 Catchable fatal error: Object of class variant could not be converted to
 string in D:\Inetpub\wwwroot\evaluations\lookup2.php on line 176


 -Original Message-
 From: Paul M Foster [mailto:pa...@quillandmouse.com]
 Sent: Tuesday, August 25, 2009 4:39 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] How to output a NULL field?

 On Tue, Aug 25, 2009 at 02:00:04PM -0400, David Stoltz wrote:

 $rs-Fields(22) equals a NULL in the database

 My Code:

 if(empty($rs-Fields(22))){
       $q4 = ;
 }else{
       $q4 = $rs-Fields(22);
 }

 Produces this error:
 Fatal error: Can't use method return value in write context in
 D:\Inetpub\wwwroot\evaluations\lookup2.php on line 32

 Line 32 is the if line...

 If I switch the code to (using is_null):
 if(is_null($rs-Fields(22))){
       $q4 = ;
 }else{
       $q4 = $rs-Fields(22);
 }

 It produces this error:
 Catchable fatal error: Object of class variant could not be converted
 to
 string in D:\Inetpub\wwwroot\evaluations\lookup2.php on line 196

 Line 196 is: ?php echo $q4;?

 What am I doing wrong?

 Thanks!

 Just a thought... do you really mean $rs-Fields(22) or do you mean
 $rs-Fields[22]? The former is a function call and the latter is an
 array variable.

 Paul

 --
 Paul M. Foster

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


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



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



Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
Could you post your database's class to here?
I'm use mssql with php for several years and read NULL Fields is never
appear your case.

2009/8/26 David Stoltz dsto...@shh.org:
 I tried that -it's in the first part of my message


 -Original Message-
 From: hack988 hack988 [mailto:hack...@dev.htwap.com]
 Sent: Wednesday, August 26, 2009 7:39 AM
 To: David Stoltz
 Cc: Paul M Foster; php-general@lists.php.net
 Subject: Re: [PHP] How to output a NULL field?

 use is_null() check it

 2009/8/26 David Stoltz dsto...@shh.org:
 Paul,

 This all started because when I try this:

 ?php echo $rs-Fields(22);?

 It work fine, as long as there is a non-null value there, otherwise it
 produces an error.

 Also, I'm working with a Microsoft SQL 2000 database, not MySQLnot
 sure if that matters

 But echo $rs-Fields(22) works perfectly for dumping values out of my
 $rs recordset...that is, unless the value is NULL is the database - then
 I get:

 Catchable fatal error: Object of class variant could not be converted to
 string in D:\Inetpub\wwwroot\evaluations\lookup2.php on line 176


 -Original Message-
 From: Paul M Foster [mailto:pa...@quillandmouse.com]
 Sent: Tuesday, August 25, 2009 4:39 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] How to output a NULL field?

 On Tue, Aug 25, 2009 at 02:00:04PM -0400, David Stoltz wrote:

 $rs-Fields(22) equals a NULL in the database

 My Code:

 if(empty($rs-Fields(22))){
       $q4 = ;
 }else{
       $q4 = $rs-Fields(22);
 }

 Produces this error:
 Fatal error: Can't use method return value in write context in
 D:\Inetpub\wwwroot\evaluations\lookup2.php on line 32

 Line 32 is the if line...

 If I switch the code to (using is_null):
 if(is_null($rs-Fields(22))){
       $q4 = ;
 }else{
       $q4 = $rs-Fields(22);
 }

 It produces this error:
 Catchable fatal error: Object of class variant could not be converted
 to
 string in D:\Inetpub\wwwroot\evaluations\lookup2.php on line 196

 Line 196 is: ?php echo $q4;?

 What am I doing wrong?

 Thanks!

 Just a thought... do you really mean $rs-Fields(22) or do you mean
 $rs-Fields[22]? The former is a function call and the latter is an
 array variable.

 Paul

 --
 Paul M. Foster

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


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




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



Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
your means Health and Safety Questionnaireis directory?
so you want it display like this
full dir path tab filenametabdate

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



Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
My code for mssql
please enable the php's mssql extentions.
it used like so many mysql class that you can find by google
--
?php
if(!defined('IN_WEB')) {
exit('Access Denied');
}
ini_set('mssql.datetimeconvert',0);//php4.2.0 disable php's automatic
datetime convert
Class DB {
var $querynum=0;
var $mssql_link;
var $conn_link;
var $sp_link;
var $sp_name='';
var $error_stop=0;
var $show_error=0;
var $dbhost;
var $dbuser;
var $dbpw;
var $dbname;
var $pconnect;
var $var_type=array();
var $fields_name=array();
var $last_error_msg='';
var $phprunversion='';
function DB() {
//define type for sp
$this-var_type['sp_bit']=SQLBIT;
$this-var_type['sp_tinyint']=SQLINT1;
$this-var_type['sp_smallint']=SQLINT2;
$this-var_type['sp_int']=SQLINT4;
$this-var_type['sp_bigint']=SQLVARCHAR;
$this-var_type['sp_real']=SQLFLT4;
$this-var_type['sp_float']=SQLFLT8;
$this-var_type['sp_float-null']=SQLFLTN;
$this-var_type['sp_smallmoney']=SQLFLT8;
$this-var_type['sp_money']=SQLFLT8;
$this-var_type['sp_money-null']=SQLFLT8;
$this-var_type['sp_char']=SQLCHAR;
$this-var_type['sp_varchar']=SQLVARCHAR;
$this-var_type['sp_text']=SQLTEXT;
$this-var_type['sp_datetime']=SQLINT4;
$this-phprunversion=phpversion();
//end
}
/*=php4.4.1,=php5.1.1
a new paramate for if use newlink for connect,pconnect
*/
function rconnect($newlink=false){//2007.03.01 by hack988 fix 
phpversion check
if($this-phprunversion = '4.4.1'  $this-phprunversion  
'5.0.0'
|| $this-phprunversion = '5.1.1'){
return $this-rconnect4p($newlink);
}else{
return $this-rconnect3p();
}
}
function rconnect3p(){
$this-mssql_link = $this-pconnect==0 ?
mssql_connect($this-dbhost, $this-dbuser, $this-dbpw) :
mssql_pconnect($this-dbhost, $this-dbuser, $this-dbpw);
if(!$this-mssql_link){
$this-halt(connect
($this-pconnect)MSSQL($this-dbhost,$this-dbuser)failed!);
return false;
}else{
$this-conn_link=$this-mssql_link;
if($this-dbname) {
if 
(!...@$this-select_db($this-dbname,$this-conn_link)){
$this-halt('can not use database 
'.$this-dbname);
return false;
}else{
return true;
}
}else{
return true;
}
}
}
function rconnect4p($newlink=false){
$this-mssql_link = $this-pconnect==0 ?
mssql_connect($this-dbhost, $this-dbuser, $this-dbpw , $newlink) :
mssql_pconnect($this-dbhost, $this-dbuser, $this-dbpw, $newlink);
if(!$this-mssql_link){

$this-halt(reconect($this-pconnect)MSSQL($this-dbhost,$this-dbuser)failed);
return false;
}else{
$this-conn_link=$this-mssql_link;
if($this-dbname) {
if 
(!...@$this-select_db($this-dbname,$this-conn_link)){
$this-halt('can not use database 
'.$this-dbname);
return false;
}else{
return true;
}
}else{
return true;
}
}
}

function connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect =
0,$auto_conn=0 ,$newlink=false) {
$this-dbhost=$dbhost;
$this-dbuser=$dbuser;
$this-dbpw=$dbpw;
$this-dbname=$dbname;
$this-pconnect=$pconnect;
if($auto_conn){
return $this-rconnect($newlink);
}else{
return true;
}
}

function close() {
if($this-conn_link){
$result=mssql_close($this-conn_link);
}else{
   

Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
some code copy from my old codes for truncatedir function,it for
backend compatibility.
see this
PHP_EOL (string)
Available since PHP 4.3.10 and PHP 5.0.2

http://cn.php.net/manual/en/reserved.constants.php

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



Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
my god you use ado connect sorry I'm use php_mysql extentions for all
mssql function.
I'm never use ado connect before.

2009/8/26 David Stoltz dsto...@shh.org:
 Sorry - I don't know what you mean by DB class?

 I'm using Microsoft SQL 2000with this code:

 ?php
 //create an instance of the  ADO connection object
 $conn = new COM (ADODB.Connection)
  or die(Cannot start ADO);
 //define connection string, specify database driver
 $connStr = PROVIDER=SQLOLEDB;SERVER=;UID=xxx;PWD=;DATABASE=;
 $conn-open($connStr); //Open the connection to the database

 $query = SELECT * FROM eval_evaluations WHERE id = .$_POST[eval];

 $rs = $conn-execute($query);

 echo $rs-Fields(22); //this is where that particular field is NULL, and 
 produces the error

 

 -Original Message-
 From: hack988 hack988 [mailto:hack...@dev.htwap.com]
 Sent: Wednesday, August 26, 2009 8:08 AM
 To: David Stoltz
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] How to output a NULL field?

 Could you post your database's class to here?
 I'm use mssql with php for several years and read NULL Fields is never
 appear your case.

 2009/8/26 David Stoltz dsto...@shh.org:
 I tried that -it's in the first part of my message


 -Original Message-
 From: hack988 hack988 [mailto:hack...@dev.htwap.com]
 Sent: Wednesday, August 26, 2009 7:39 AM
 To: David Stoltz
 Cc: Paul M Foster; php-general@lists.php.net
 Subject: Re: [PHP] How to output a NULL field?

 use is_null() check it

 2009/8/26 David Stoltz dsto...@shh.org:
 Paul,

 This all started because when I try this:

 ?php echo $rs-Fields(22);?

 It work fine, as long as there is a non-null value there, otherwise it
 produces an error.

 Also, I'm working with a Microsoft SQL 2000 database, not MySQLnot
 sure if that matters

 But echo $rs-Fields(22) works perfectly for dumping values out of my
 $rs recordset...that is, unless the value is NULL is the database - then
 I get:

 Catchable fatal error: Object of class variant could not be converted to
 string in D:\Inetpub\wwwroot\evaluations\lookup2.php on line 176


 -Original Message-
 From: Paul M Foster [mailto:pa...@quillandmouse.com]
 Sent: Tuesday, August 25, 2009 4:39 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] How to output a NULL field?

 On Tue, Aug 25, 2009 at 02:00:04PM -0400, David Stoltz wrote:

 $rs-Fields(22) equals a NULL in the database

 My Code:

 if(empty($rs-Fields(22))){
       $q4 = ;
 }else{
       $q4 = $rs-Fields(22);
 }

 Produces this error:
 Fatal error: Can't use method return value in write context in
 D:\Inetpub\wwwroot\evaluations\lookup2.php on line 32

 Line 32 is the if line...

 If I switch the code to (using is_null):
 if(is_null($rs-Fields(22))){
       $q4 = ;
 }else{
       $q4 = $rs-Fields(22);
 }

 It produces this error:
 Catchable fatal error: Object of class variant could not be converted
 to
 string in D:\Inetpub\wwwroot\evaluations\lookup2.php on line 196

 Line 196 is: ?php echo $q4;?

 What am I doing wrong?

 Thanks!

 Just a thought... do you really mean $rs-Fields(22) or do you mean
 $rs-Fields[22]? The former is a function call and the latter is an
 array variable.

 Paul

 --
 Paul M. Foster

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


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





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



Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
I'm write a php file for you
=
define('Line_End', (PHP_OS == 'WINNT')?\r\n:\n);
clearstatcache();

$mylist=array();
listdir(F:\\Programming\\Web\\php,$mylist);
function listdir($dir,$list){
  if ($handle = opendir( $dir )){
   while ( false !== ( $item = readdir( $handle ) ) ) {
 if ( $item != .  $item != .. ) {
   $item=str_replace(Line_End,,$item);
   if ( is_dir( $dir.DIRECTORY_SEPARATOR.$item ) ) {
 listdir($dir.DIRECTORY_SEPARATOR.$item, $list);
   } else {
 $list[]=$dir.DIRECTORY_SEPARATOR.\t.$item.\t.date(m/d/Y,
filemtime($dir.DIRECTORY_SEPARATOR.$item));
   }
 }
   }
   closedir( $handle );
  }
}
var_dump($mylist);

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



Re: [PHP] downloading winword mp3 files the fancy way through a browser

2009-08-26 Thread hack988 hack988
All IE has a bug for download file so.:)
see this http://support.microsoft.com/default.aspx?scid=kb;en-us;308090
some unkown mime type also display in IE no popup a download window

2009/8/26 Ryan Cavicchioni r...@confabulator.net:
 On Wed, Aug 26, 2009 at 03:38:27PM +0200, Grega Leskov??ek wrote:
 I tried to download the file from another server the fancy way in PHP, but
 it just display blank screen. Can You please look at my code:

 If it helps, here is some code that I dug up from an old project:

 ?php

 $filepath = /var/www/test.doc;
 $filename = basename($filepath);
 $filesize = filesize($filepath);

 if ( file_exists($filepath) )
 {
    header(Cache-Control: no-store, must-revalidate);
    header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
    header(Content-Transfer-Encoding: binary);
    header(Content-Type: application/force-download);
    header(Content-Type: application/octet-stream);
    header(Content-Type: application/download);
    header(Content-disposition: attachment; filename= . $filename);
    header(Content-length:  . $filesize);
    $fh = fopen($filepath, rb) or exit(Could not open file.);
    while (!feof($fh))
    {
        print(fgets($fh,4096));
    }
    fclose($fh);
 } else {
        echo The file does not exist.;
 }

 ?

 I would also verify that the web server has permissions to the files
 that php is trying to open. Internet Explorer 8 seems to have a
 problem with the filename parameter in the Content-disposition header
 being enclosed in quotes. It would just dump the binary data in the
 page when I was testing this.

 Regards,
 Ryan

 --
 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] Re: Directory Listing

2009-08-26 Thread hack988 hack988
use realpath is better that i think

2009/8/26 Steve ad...@ultramegatech.com:
 Ashley Sheridan wrote:

 On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote:


 2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk:


 On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:


 I've been playing about more and now I have the following code:

 ?
 error_reporting(E_ALL);
 ini_set('display_errors', true);

 function getDirectory($path = '.', $ignore = '') {
    $dirTree = array ();
    $dirTreeTemp = array ();
    $fileDate = array ();
    $ignore[] = '.';
    $ignore[] = '..';
    $dh = @opendir($path);
    while (false !== ($file = readdir($dh))) {
        if (!in_array($file, $ignore)) {
            if (!is_dir($path/$file)) {
                $dirTree[$path][] = $file;
                $fileDate[$file][] = date (d/m/Y,
 filemtime($path/$file));
            } else {
                $dirTreeTemp = getDirectory($path/$file, $ignore);
                if (is_array($dirTreeTemp))$dirTree =
 array_merge($dirTree, $dirTreeTemp, $fileDate);
            }
        }
    }
    closedir($dh);
    return $dirTree;
 }

 $ignore = array('.htaccess', 'Thumbs.db', 'index.php');
 $dirTree = getDirectory('.', $ignore);
 getdirectory('.');

 echo Gatwick Tender Documents\n;

 foreach( $dirTree as $key = $folder ){
   echo \n; //Don't need folders as they're shown with the files
   foreach( $folder as $file){
       echo str_replace(./, , $key) . \t . $file . \t\n; //Pad
 out with a tab for easy import into excel

   }
 }
 print_r($dirTree); //Just using this for debugging
 ?


 The output is fine for the paths and filenames but I still can't get
 the dates showing. It's getting the correct date for some but not all.
 I did something else earlier and found that all the dates were
 01/01/1970 but at least there was a date for every file but can't
 remember how I go there!


 Here is a sample output result:

 Gatwick Tender Documents

 .     9216_100_REV_V1.0_bound.dwg

 Tender Docs   BAA Works Terms v1.1 (22.05.08).pdf
 Tender Docs   Contents of Volumes 1 and 2.pdf
 Tender Docs   Cover Letter and Instructions.doc
 Tender Docs   Form of Tender.doc

 Tender Docs/Health and Safety Questionnaire   NT Baggage Tender
 Questionaire rev2.xls

 BAA Works Terms v1.1 (22.05.08).pdf   29/07/2009

 Contents of Volumes 1 and 2.pdf       29/07/2009

 Cover Letter and Instructions.doc     29/07/2009

 Form of Tender.doc    29/07/2009

 Tender Docs/NTB BH Lighting   3J-B-1 PIR.xls
 Tender Docs/NTB BH Lighting   3J-B-2B PIR.xls
 Tender Docs/NTB BH Lighting   3J-B-2R PIR.xls
 Tender Docs/NTB BH Lighting   3J-B-3R PIR.xls
 Tender Docs/NTB BH Lighting   3J-D PIR.xls
 Tender Docs/NTB BH Lighting   4G-G PIR.xls
 Tender Docs/NTB BH Lighting   4J-B-1B PIR.xls
 Tender Docs/NTB BH Lighting   4J-B-1R PIR.xls
 Tender Docs/NTB BH Lighting   4J-B-2B PIR.xls
 Tender Docs/NTB BH Lighting   4J-B-2R PIR.xls
 Tender Docs/NTB BH Lighting   4J-B-4 PIR.xls
 Tender Docs/NTB BH Lighting   5G-G PIR.xls


 Can anyone shed any light on it?
 I'm about to admit defeat!

 Thanks in advance and I'm not being lazy - I really am trying!!! :(

 Tom



 The only time I've ever noticed this problem was on a 32bit system where
 the files were above 2GB each. When the files are that size, none of the
 information functions seem to work correctly, including the filesize,
 date, etc.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk






 Cheers Ash,
 I read that too, but I was getting the error for over 90% of the files
 which I know are generally only a few MB.
 I've started from scratch again and come up with something that is
 easier to deal with but still having one last problem!

 ?php
 error_reporting(E_ALL);
 ini_set('display_errors', true);
 function directoryToArray($directory, $recursive) {
        $array_items = array();
        if ($handle = opendir($directory)) {
                while (false !== ($file = readdir($handle))) {
                        if ($file !=index.php  $file != .  $file
 != ..) {
                                if (is_dir($directory. / . $file)) {
                                        //For Directories
                                        if($recursive) {
                                                $array_items =
 array_merge($array_items,
 directoryToArray($directory. / . $file, $recursive));
                                        }
                                        $fullfile = $directory . / .
 $file;
                                        $array_items[] =
 preg_replace(/\/\//si, /, $fullfile);
                                } else {
                                        //For Files
                                        $fullfile = $directory . / .
 $file;
                                        $array_items[] =
 preg_replace(/\/\//si, /, $fullfile);
                                }
                        }
                }
                closedir($handle);
        }
        return $array_items;
 }

 $files = 

Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
Com function is just for Windows,I don't kown why some body like use it.:(

2009/8/27 Andrew Ballard aball...@gmail.com:
 On Wed, Aug 26, 2009 at 9:51 AM, David Stoltzdsto...@shh.org wrote:
 Sorry - I don't know what you mean by DB class?

 I'm using Microsoft SQL 2000with this code:

 ?php
 //create an instance of the  ADO connection object
 $conn = new COM (ADODB.Connection)
  or die(Cannot start ADO);
 //define connection string, specify database driver
 $connStr = PROVIDER=SQLOLEDB;SERVER=;UID=xxx;PWD=;DATABASE=;
 $conn-open($connStr); //Open the connection to the database

 $query = SELECT * FROM eval_evaluations WHERE id = .$_POST[eval];

 $rs = $conn-execute($query);

 echo $rs-Fields(22); //this is where that particular field is NULL, and 
 produces the error

 


 Because you are using COM, you can't use PHP's empty(), isset(), or
 is_null() in your if(...) statement. I've not used COM for much in
 PHP, but I think you'll have to do something like this:

 switch (variant_get_type($rs-Fields(22)) {
    case VT_EMPTY:
    case VT_NULL:
        $q4 = '';
        break;

    case VT_UI1:


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



Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
I'm sorry for my poor English,what is OP? I don't kown what is OP mean.

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



[PHP] Some body test php6-dev version for mbs?

2009-08-26 Thread hack988 hack988
I'm try php6-dev recently.I found it had so many diffrent with older
versions.I'll discuss with everybody in later:)
now i have a problem in php6-dev

codes follow:(warning:this code include some no-english characters and
it hex string is B2E2 In GBK char-set)
==
echo 测;
==
everything is ok in php5,php4 but a error tigger throw by php6

---
Warning: Illegal or truncated character in input: offset 0, state=0 in
F:\Programming\Web\php\maillist\charset.php on line 2

Parse error: parse error in
F:\Programming\Web\php\maillist\charset.php on line 2
PHP Warning: Illegal or truncated character in input: offset 0,
state=0 in F:\Programming\Web\php\maillist\charset.php on line 2 PHP
Parse error: parse error in
F:\Programming\Web\php\maillist\charset.php on line 2
---

I must change the php file's char-set to utf-8 for codes run successful.
Attention! Gmail's default charset is utf-8 so if any body to test
code please change the file's char-set to ansi
Any body know how use no utf-8 char-set in php6 with no-ascii char ?

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



[PHP]Some body test php6-dev version for mbs?

2009-08-26 Thread hack988 hack988
I'm try php6-dev recently.I found it had so many diffrent with older
versions.I'll discuss with everybody in later:)
now i have a problem in php6-dev

codes follow:(warning:this code include some no-english characters and
it hex string is B2E2 In GBK char-set)
==
echo 测;
==
everything is ok in php5,php4 but a error tigger throw by php6

---
Warning: Illegal or truncated character in input: offset 0, state=0 in
F:\Programming\Web\php\maillist\charset.php on line 2

Parse error: parse error in
F:\Programming\Web\php\maillist\charset.php on line 2
PHP Warning: Illegal or truncated character in input: offset 0,
state=0 in F:\Programming\Web\php\maillist\charset.php on line 2 PHP
Parse error: parse error in
F:\Programming\Web\php\maillist\charset.php on line 2
---

I must change the php file's char-set to utf-8 for codes run successful.
Attention! Gmail's default charset is utf-8 so if any body to test
code please change the file's char-set to ansi
Any body know how use no utf-8 char-set in php6 with no-ascii char ?

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



Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread hack988 hack988
this post is away from the point :),but everyone's reply is interesting

2009/8/27 Paul M Foster pa...@quillandmouse.com:
 On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote:


 On Aug 26, 2009, at 9:28 AM, Paul M Foster wrote:

 and having a great marriage to a woman I can spend hours talking about
 nothing to.

       I'm jealous.  Does she have a sister who's not spoken for?  =;)

 She and her sister are about as different as lions and cabbages. ;-}

 Paul

 --
 Paul M. Foster

 --
 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] Login should not allow users to login if the application is logged in with the same login credentials

2009-08-27 Thread hack988 hack988
Use Database Online table for user sessions.

2009/8/27 Balasubramanyam A knowledge.wea...@gmail.com:
 Hello,

 I've written a simple application, where users need to login to access the
 features of the application. I want to develop login system such that, if
 user is already logged in, the application should not allow the users to
 login with the same login credentials. How do I accomplish this?

 Regards,
 Balu


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



Re: [PHP]Some body test php6-dev version for mbs?

2009-08-27 Thread hack988 hack988
Nobody Discuss with is title or I'm post to wrong mailing-list?

2009/8/27 hack988 hack988 hack...@dev.htwap.com:
 I'm try php6-dev recently.I found it had so many diffrent with older
 versions.I'll discuss with everybody in later:)
 now i have a problem in php6-dev

 codes follow:(warning:this code include some no-english characters and
 it hex string is B2E2 In GBK char-set)
 ==
 echo 测;
 ==
 everything is ok in php5,php4 but a error tigger throw by php6

 ---
 Warning: Illegal or truncated character in input: offset 0, state=0 in
 F:\Programming\Web\php\maillist\charset.php on line 2

 Parse error: parse error in
 F:\Programming\Web\php\maillist\charset.php on line 2
 PHP Warning: Illegal or truncated character in input: offset 0,
 state=0 in F:\Programming\Web\php\maillist\charset.php on line 2 PHP
 Parse error: parse error in
 F:\Programming\Web\php\maillist\charset.php on line 2
 ---

 I must change the php file's char-set to utf-8 for codes run successful.
 Attention! Gmail's default charset is utf-8 so if any body to test
 code please change the file's char-set to ansi
 Any body know how use no utf-8 char-set in php6 with no-ascii char ?


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



Re: [PHP]Some body test php6-dev version for mbs?

2009-08-27 Thread hack988 hack988
I'm not sure,but one thing is that ,the code save as ANSI format will
trow Parse error in php6.
Sometime I don't like script run with unicode because of some system
environment limitation.
2009/8/27 Ashley Sheridan a...@ashleysheridan.co.uk:
 On Thu, 2009-08-27 at 20:03 +0800, hack988 hack988 wrote:
 Nobody Discuss with is title or I'm post to wrong mailing-list?

 2009/8/27 hack988 hack988 hack...@dev.htwap.com:
  I'm try php6-dev recently.I found it had so many diffrent with older
  versions.I'll discuss with everybody in later:)
  now i have a problem in php6-dev
 
  codes follow:(warning:this code include some no-english characters and
  it hex string is B2E2 In GBK char-set)
  ==
  echo 测;
  ==
  everything is ok in php5,php4 but a error tigger throw by php6
 
  ---
  Warning: Illegal or truncated character in input: offset 0, state=0 in
  F:\Programming\Web\php\maillist\charset.php on line 2
 
  Parse error: parse error in
  F:\Programming\Web\php\maillist\charset.php on line 2
  PHP Warning: Illegal or truncated character in input: offset 0,
  state=0 in F:\Programming\Web\php\maillist\charset.php on line 2 PHP
  Parse error: parse error in
  F:\Programming\Web\php\maillist\charset.php on line 2
  ---
 
  I must change the php file's char-set to utf-8 for codes run successful.
  Attention! Gmail's default charset is utf-8 so if any body to test
  code please change the file's char-set to ansi
  Any body know how use no utf-8 char-set in php6 with no-ascii char ?
 

 Is the PHP script saved as a uft8 file? Some text editors will save in
 ASCII by default.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk





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



Re: [PHP]Some body test php6-dev version for mbs?

2009-08-27 Thread hack988 hack988
 I'm not sure,but one thing is that ,the code save as ANSI format will
throw Parse error in php6.
Sometime I don't like script run with unicode because of some system
environment limitation.
I'm make a spell mistake in before message :( (trow-throw).
Any boday have a solution for it?

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



Re: [PHP]Some body test php6-dev version for mbs?

2009-08-27 Thread hack988 hack988
Yes i kown that.
But so many codes, project that i programing or managed is write in
gb2312 or some mbs charset.If I change all of them to utf-8 charset,it
would cause so many unkown error or some logic error for codes.

2009/8/27 Ashley Sheridan a...@ashleysheridan.co.uk:
 On Thu, 2009-08-27 at 20:17 +0800, hack988 hack988 wrote:
 I'm not sure,but one thing is that ,the code save as ANSI format will
 trow Parse error in php6.
 Sometime I don't like script run with unicode because of some system
 environment limitation.
 2009/8/27 Ashley Sheridan a...@ashleysheridan.co.uk:
  On Thu, 2009-08-27 at 20:03 +0800, hack988 hack988 wrote:
  Nobody Discuss with is title or I'm post to wrong mailing-list?
 
  2009/8/27 hack988 hack988 hack...@dev.htwap.com:
   I'm try php6-dev recently.I found it had so many diffrent with older
   versions.I'll discuss with everybody in later:)
   now i have a problem in php6-dev
  
   codes follow:(warning:this code include some no-english characters and
   it hex string is B2E2 In GBK char-set)
   ==
   echo 测;
   ==
   everything is ok in php5,php4 but a error tigger throw by php6
  
   ---
   Warning: Illegal or truncated character in input: offset 0, state=0 in
   F:\Programming\Web\php\maillist\charset.php on line 2
  
   Parse error: parse error in
   F:\Programming\Web\php\maillist\charset.php on line 2
   PHP Warning: Illegal or truncated character in input: offset 0,
   state=0 in F:\Programming\Web\php\maillist\charset.php on line 2 PHP
   Parse error: parse error in
   F:\Programming\Web\php\maillist\charset.php on line 2
   ---
  
   I must change the php file's char-set to utf-8 for codes run successful.
   Attention! Gmail's default charset is utf-8 so if any body to test
   code please change the file's char-set to ansi
   Any body know how use no utf-8 char-set in php6 with no-ascii char ?
  
 
  Is the PHP script saved as a uft8 file? Some text editors will save in
  ASCII by default.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 
 
 

 PHP 6 has native utf8 support I believe, but your PHP files need to also
 be saved correctly into utf8. Also, you might want to set the output
 headers.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk





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



Re: [PHP] Error when execute header('location: otherpage.php') after email been sent out. Any Workaround?

2009-08-28 Thread hack988 hack988
Some Php's tigger info output to client before you set header.try this
code first
---
ob_start();//first line write this code
some code for your self
header(location:index.php);
ob_end_flush();
---
second.
You must check php.ini found that if flush implicit option turn on.
implicit_flush = On
=
implicit_flush = Off

test your codes again.

If codes run correctly,check your codes line by lines ,found that such
as 'echo','print'... and so on before 'you
header(location:index.php)' line.
2009/8/28 Keith survivor_...@hotmail.com:
 I have a user sign up page that collects sign up information from user with
 form.
 This form will then be submitted to another process.php page for setting up
 the user account and send email to the user.
 After the email been sent out, the user will be directed back to homepage
 with header(location: index.php).
 However, error happen with warning: [Cannot modify header information -
 headers already sent by...]
 Any workaround for this?

 Thanks for help!
 Keith



 --
 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] Calling extension function from another

2009-08-28 Thread hack988 hack988
I don't kown your mean,could you descript the question more detail?

2009/8/28 leledumbo leledumbo_c...@yahoo.co.id:

 Is it possible to call a function that resides in an extension from another
 extension?
 --
 View this message in context: 
 http://www.nabble.com/Calling-extension-function-from-another-tp25185839p25185839.html
 Sent from the PHP - General mailing list archive at Nabble.com.


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



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



Re: [PHP] safe_mode and inclusion of files don't work as documented

2009-08-28 Thread hack988 hack988
add this
php_admin_value open_basedir


2009/8/28 Nico Sabbi nsa...@officinedigitali.it:
 Hi,
 I'm testing one of my sites in safe_mode, but I'm experiencing some
 strangeness that is not documented.

 The settings are:
 in php.ini:
 include_path =
 .:/server/home/apache/php4/:/var/php/5.2/pear/:/usr/php/lib/ezcomponents-2008.2.2/

 in the virtualhost config:
        php_admin_value safe_mode On
        php_admin_value safe_mode_include_dir
 /server/home/nsabbi:/server/home/apache/php4:.:..

 The files belong entirely to apache:apache, the user who is running apache.
 The problem is:


 *Fatal error*: require_once() [function.require
 http://nsabbi/login/function.require]: Failed opening required
 '../include.php'
 (include_path='.:..:/server/home/apache/php4/:/var/php/5.2/pear/:/usr/php/lib/ezcomponents-2008.2.2/')
 in */server/home/nsabbi/nb4/login/index.php* on line *3

 How is it that i can't include files in .. 
 btw, can I redefine the include_path in safe mode?

 Thanks,
  Nico
 *

 --
 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]Some body test php6-dev version for mbs?

2009-08-28 Thread hack988 hack988
nobody have a solution for no-unicode php script with MBCS (Multiple
Byte Character Set) run on php6?
I have an wrong spelling for MBCS in OM.:(

2009/8/27 hack988 hack988 hack...@dev.htwap.com:
  I'm not sure,but one thing is that ,the code save as ANSI format will
 throw Parse error in php6.
 Sometime I don't like script run with unicode because of some system
 environment limitation.
 I'm make a spell mistake in before message :( (trow-throw).
 Any boday have a solution for it?


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



Re: [PHP] windows 5.2.10 PHP not working with phpinfo

2009-08-31 Thread hack988 hack988
Please set log_error=on,error_reporting=E_ALL,error_log=syslog in
php.ini and then,see error detail in syslog.

2009/8/31 Fred Silsbee fredsils...@yahoo.com:
 I got 5.3 working but found out there was no php_mssql.dll for it.
 Somebody (who didn;t know) said I had to return to 5.2.8 but I found no 5.2.8 
 so I am trying 5.2.10
 _problem:
 under IE8:
 http://72.47.28.128:8080/phpinfo.php
 with:
     ?php
       phpinfo();
     ?

 I get :
 The website cannot display the page
 HTTP 500
   Most likely causes:
 •The website is under maintenance.
 •The website has a programming error.
 ___

 I installed :
 php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext
 AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32

 I installed FastCGI 1.5 !

 In php.ini I put :
 

 cgi.force_redirect = 0                  // for CGI

 extension_dir =  C:\PHP\ext

 commented out
 ;doc_root = C:\inetpub\wwwroot // for IIS/PWS
 leaving
 doc_root =
 _
 IIS 5.1 properties-configuration I added .php  C:\PHP\php5ts.dll
 GET,HEAD,POST,DEBUG

 Maybe php-win.exe
 _

 I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\

 I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext


 I never found any statement of the necessity of requiring CGI

 The instructions ramble around






 --
 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] Re: Install PHPMyAdmin with urpmi

2009-08-31 Thread hack988 hack988
Are u set auth_type to config?
$cfg['Servers'][$i]['auth_type'] = 'config';

2009/9/1 Ricky Tompu Breaky ricky.bre...@uni.de:
 Dear Shawn.

 Firstly, thank you very much for your quick respond.

 I've installed the php-mysql:
 
 [r...@mandreev linux]# urpmi php-mysql
 Package php-mysql-5.3.0-0.1mud2009.1.i586 is already installed
 [r...@mandreev linux]#
 .

 But I don't know if it's enabled already. How can I know that?

 Please keep telling me.

 Thank you very much in advance.
 ===
 On Mon, 31 Aug 2009 15:27:30 -0500
 Shawn McKenzie nos...@mckenzies.net wrote:

 Ricky Tompu Breaky wrote:
  Dear my friends,
 
  I've downloaded and installed PHPMyAdmin. I use Apache2 and Mandriva
  2009.1.
 
  I have defined in the file of
  '/var/www/phpmyadmin/libraries/config.default.php' this things:
  
  $cfg['Servers'][$i]['user'] = 'root';
  $cfg['Servers'][$i]['password'] = 'mypassword';
  .
 
  I've done:
  
  grant all on *.* to root identified by 'mypassword';
  .
 
  But I still can not login to MySQL from the PHPMyAdmin with root
  account.
 
  If I try login with MySQL-Query-Browser with 'root' and
  'mypassword', Im logged-in very properly.
 
  What is my mistake actually?
 
  Does PHPMyAdmin need to make session on the Apache2? Is it related
  to session and what I should define in '/etc/php.ini'?
 
  Please tell me my mistake.
 
  Thank you very much in advance.

 Have you installed and enabled the php-mysql extension?



 --
 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] safe_mode and inclusion of files don't work as documented

2009-08-31 Thread hack988 hack988
Please create a file(.php) and write follow codes for more details.

?php
phpinfo();
?


2009/8/31 Nico Sabbi nsa...@officinedigitali.it:
 Lars Torben Wilson ha scritto:
 2009/8/28 Nico Sabbi nsa...@officinedigitali.it:

 Hi,
 I'm testing one of my sites in safe_mode, but I'm experiencing some
 strangeness that is not documented.

 The settings are:
 in php.ini:
 include_path =
 .:/server/home/apache/php4/:/var/php/5.2/pear/:/usr/php/lib/ezcomponents-2008.2.2/

 in the virtualhost config:
        php_admin_value safe_mode On
        php_admin_value safe_mode_include_dir
 /server/home/nsabbi:/server/home/apache/php4:.:..

 The files belong entirely to apache:apache, the user who is running apache.
 The problem is:


 *Fatal error*: require_once() [function.require
 http://nsabbi/login/function.require]: Failed opening required
 '../include.php'
 (include_path='.:..:/server/home/apache/php4/:/var/php/5.2/pear/:/usr/php/lib/ezcomponents-2008.2.2/')
 in */server/home/nsabbi/nb4/login/index.php* on line *3

 How is it that i can't include files in .. 


 Hi Nico,

 First the obligatory safe_mode is deprecated and not recommended
 speech. . .but I guess you've already seen that in the docs and
 decided to use it anyway.

 What does the script do if you turn off safe_mode?


 btw, can I redefine the include_path in safe mode?


 Yes.


 Thanks,
  Nico



 Regards,

 Torben


 one more clue, hopefully; the OS is OpenSolaris.

 apa...@sviluppo2: /server/home/nsabbi/nb4 $ ps -ef|grep httpd
  apache 26840 25190   0 12:54:05 ?           0:09
 /usr/apache2/2.2/bin/httpd -k start
  apache 26842 25190   0 12:58:09 ?           0:21
 /usr/apache2/2.2/bin/httpd -k start
    root 25190     1   0   Aug 28 ?           2:27
 /usr/apache2/2.2/bin/httpd -k start
  apache 25191 25190   0   Aug 28 ?           0:00
 /usr/apache2/2.2/bin/httpd -k start
  apache 26844 25190   0 13:00:54 ?           0:21
 /usr/apache2/2.2/bin/httpd -k start
  apache 26864 25190   0 13:05:37 ?           0:01
 /usr/apache2/2.2/bin/httpd -k start
  apache 26890 26872   0 13:11:25 pts/1       0:00 grep httpd
  apache 26865 25190   0 13:07:24 ?           0:01
 /usr/apache2/2.2/bin/httpd -k start
  apache 26821 25190   0 12:51:08 ?           0:24
 /usr/apache2/2.2/bin/httpd -k start
  apache 26845 25190   0 13:01:44 ?           0:02
 /usr/apache2/2.2/bin/httpd -k start
  apache 26789 25190   0 12:37:25 ?           0:27
 /usr/apache2/2.2/bin/httpd -k start
  apache 26863 25190   0 13:04:18 ?           0:01
 /usr/apache2/2.2/bin/httpd -k start
  apache 26846 25190   0 13:01:45 ?           0:11
 /usr/apache2/2.2/bin/httpd -k start


 *Warning*: require_once() [function.require-once
 http://nsabbi/login/function.require-once]: SAFE MODE Restriction in
 effect. The script whose uid is 1 is not allowed to access
 ../include.php owned by uid 48 in
 */server/home/nsabbi/nb4/login/index.php* on line *3*

 *Warning*: require_once(../include.php) [function.require-once
 http://nsabbi/login/function.require-once]: failed to open stream: No
 such file or directory in */server/home/nsabbi/nb4/login/index.php* on
 line *3*

 *Fatal error*: require_once() [function.require
 http://nsabbi/login/function.require]: Failed opening required
 '../include.php'
 (include_path='.:/server/home/apache/php4/:/var/php/5.2/pear/') in
 */server/home/nsabbi/nb4/login/index.php* on line *3*



 why is php using uid 1?? It's as if the parent httpd were serving the
 page itself, or not?

 --
 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] Re: Install PHPMyAdmin with urpmi

2009-08-31 Thread hack988 hack988
Config means just use username and password for config file,in that
case u need't type any things,just open url.

U must set another option in file.
$cfg['blowfish_secret']='some string';

If not work agian,please check others options.
$cfg['Servers'][$i]['host']  = 'localhost'; // MySQL hostname
or IP address
$cfg['Servers'][$i]['port']  = '';  // MySQL port -
leave blank for default port
$cfg['Servers'][$i]['connect_type']  = 'tcp';   // How to connect
to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL
extension to use ('mysql' or 'mysqli')

2009/9/1 Ricky Tompu Breaky ricky.bre...@uni.de:
 Dea my ePal,

 I tried by editing the line as you adviced just now. But It does not
 make any difference.

 After I type root and the password and click the Login Button ('Go'), I
 am not in but just stay on the login form without any error or
 success message.

 Is there any another possibility?

 Please keep telling me.
 ===
 On Tue, 1 Sep 2009 04:52:55 +0800
 hack988 hack988 hack...@dev.htwap.com wrote:

 Are u set auth_type to config?
 $cfg['Servers'][$i]['auth_type'] = 'config';

 2009/9/1 Ricky Tompu Breaky ricky.bre...@uni.de:
  Dear Shawn.
 
  Firstly, thank you very much for your quick respond.
 
  I've installed the php-mysql:
  
  [r...@mandreev linux]# urpmi php-mysql
  Package php-mysql-5.3.0-0.1mud2009.1.i586 is already installed
  [r...@mandreev linux]#
  .
 
  But I don't know if it's enabled already. How can I know that?
 
  Please keep telling me.
 
  Thank you very much in advance.
  ===
  On Mon, 31 Aug 2009 15:27:30 -0500
  Shawn McKenzie nos...@mckenzies.net wrote:
 
  Ricky Tompu Breaky wrote:
   Dear my friends,
  
   I've downloaded and installed PHPMyAdmin. I use Apache2 and
   Mandriva 2009.1.
  
   I have defined in the file of
   '/var/www/phpmyadmin/libraries/config.default.php' this things:
   
   $cfg['Servers'][$i]['user'] = 'root';
   $cfg['Servers'][$i]['password'] = 'mypassword';
   .
  
   I've done:
   
   grant all on *.* to root identified by 'mypassword';
   .
  
   But I still can not login to MySQL from the PHPMyAdmin with root
   account.
  
   If I try login with MySQL-Query-Browser with 'root' and
   'mypassword', Im logged-in very properly.
  
   What is my mistake actually?
  
   Does PHPMyAdmin need to make session on the Apache2? Is it
   related to session and what I should define in '/etc/php.ini'?
  
   Please tell me my mistake.
  
   Thank you very much in advance.
 
  Have you installed and enabled the php-mysql extension?
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 



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



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



Re: [PHP] Re: Install PHPMyAdmin with urpmi

2009-08-31 Thread hack988 hack988
Use follow codes for test your php,php_mysql is work well.
use your ip replace localhost,your mysql port replace 3306 and
username,password to replace mysql_user, mysql_password.
?php
error_reporting(2047);
ini_set(display_error,On);
if(mysql_connect('localhost:3306', 'mysql_user', 'mysql_password')){
echo Ok;
}else{
echo Failed;
}
?

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



Re: [PHP] windows 5.2.10 PHP not working with phpinfo

2009-09-02 Thread hack988 hack988
Use Event Viewer and log type is :Application log

2009/9/2 Fred Silsbee fredsils...@yahoo.com:
 I looked high and low but no syslog

 I am currently working under XP Prof SP3

 --- On Mon, 8/31/09, hack988 hack988 hack...@dev.htwap.com wrote:

 From: hack988 hack988 hack...@dev.htwap.com
 Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo
 To: Fred Silsbee fredsils...@yahoo.com
 Cc: php-general@lists.php.net
 Date: Monday, August 31, 2009, 6:35 AM
 Please set
 log_error=on,error_reporting=E_ALL,error_log=syslog in
 php.ini and then,see error detail in syslog.

 2009/8/31 Fred Silsbee fredsils...@yahoo.com:
  I got 5.3 working but found out there was no
 php_mssql.dll for it.
  Somebody (who didn;t know) said I had to return to
 5.2.8 but I found no 5.2.8 so I am trying 5.2.10
  _problem:
  under IE8:
  http://72.47.28.128:8080/phpinfo.php
  with:
      ?php
        phpinfo();
      ?
 
  I get :
  The website cannot display the page
  HTTP 500
    Most likely causes:
  •The website is under maintenance.
  •The website has a programming error.
  ___
 
  I installed :
  php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP
 and C:\PHP\ext
  AND C:\WINDOWS, C:\WINDOWS\system and
 C:\WINDOWS\system32
 
  I installed FastCGI 1.5 !
 
  In php.ini I put :
  
 
  cgi.force_redirect = 0                  //
 for CGI
 
  extension_dir =  C:\PHP\ext
 
  commented out
  ;doc_root = C:\inetpub\wwwroot // for IIS/PWS
  leaving
  doc_root =
  _
  IIS 5.1 properties-configuration I added .php
  C:\PHP\php5ts.dll
  GET,HEAD,POST,DEBUG
 
  Maybe php-win.exe
  _
 
  I added to the XP Prof environment path
 ;C:\PHP\;C:\PHP\ext\
 
  I created an environment variable (and rebooted) PHPRC
 = C:\PHP;C:\PHP\ext
 
 
  I never found any statement of the necessity of
 requiring CGI
 
  The instructions ramble around
 
 
 
 
 
 
  --
  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] Array references - how to unset() ?

2009-09-03 Thread hack988 hack988
Yes,thanks and I sorry for my poor english

2009/9/3 Robert Cummings rob...@interjinn.com:
 hack988 hack988 wrote:

 Reference vars in php would not be unset if it reference by another
 var,so you must keep original var had'nt being reference.

 You can't reference a reference in PHP. If you take the reference of a
 variable that is itself a reference then you are taking a reference to the
 referenced value and not the reference variable itself. This is illustrated
 in the following example:

 ?php

 $foo = '123';
 $fee = '987';

 $blah = $foo;
 $bleh = $blah;
 $blah = $fee;

 echo 'blah: '.$blah.\n;
 echo 'bleh: '.$bleh.\n;

 ?

 What I think you meant to say, is that a value is not unset as long as it
 has at least one variable referencing it. You most certainly unset the
 reference if you apply unset to it, it is the value referenced that may
 remain.

 Cheers,
 Rob.
 --
 http://www.interjinn.com
 Application and Templating Framework for PHP


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



[PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread hack988 hack988
I found memcache_get_stats for memcached in some php code.
I'm search it at php.net's function list,but it no matched result :(.
I had found explain for Memcache::getStats()  at this link
http://www.php.net/manual/en/function.memcache-getstats.php
In this link,tell me that
==
Also you can use memcache_get_stats() function.
==
But I can't find memcache_get_stats function's explain in online manual.
Anybody can help me for using this function?Or give an more detail
link for this function?

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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread hack988 hack988
Nobody Kown this?This is my second question in this mail-list :(.I
don't kown why it's no reply by anybody.

2009/9/5 hack988 hack988 hack...@dev.htwap.com:
 I found memcache_get_stats for memcached in some php code.
 I'm search it at php.net's function list,but it no matched result :(.
 I had found explain for Memcache::getStats()  at this link
 http://www.php.net/manual/en/function.memcache-getstats.php
 In this link,tell me that
 ==
 Also you can use memcache_get_stats() function.
 ==
 But I can't find memcache_get_stats function's explain in online manual.
 Anybody can help me for using this function?Or give an more detail
 link for this function?


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



Re: [PHP] Who kown this memcache_get_stats function ?

2009-09-05 Thread hack988 hack988
thank Jonathan ,Eddie :),I think that,i have to read
libmemcached's manual first.
Now I kown one thing:
All function Memcache:: can replace to memcache_xxx,some diffrent
is memcache_xxx has an fixed param 0,it's used for pass a memcached
link resource except memcache_connect function.

2009/9/6 Jonathan Tapicer tapi...@gmail.com:
 I think that the documentation for memcache_get_stats should be
 exactly the same as the one given for the method Memcache::getStats
 except that memcache_get_stats should receive as the first parameter a
 reference to the Memcache connection.

 Hope that helps.

 Jonathan


 On Sun, Sep 6, 2009 at 1:16 AM, hack988 hack988hack...@dev.htwap.com wrote:
 Nobody Kown this?This is my second question in this mail-list :(.I
 don't kown why it's no reply by anybody.

 2009/9/5 hack988 hack988 hack...@dev.htwap.com:
 I found memcache_get_stats for memcached in some php code.
 I'm search it at php.net's function list,but it no matched result :(.
 I had found explain for Memcache::getStats()  at this link
 http://www.php.net/manual/en/function.memcache-getstats.php
 In this link,tell me that
 ==
 Also you can use memcache_get_stats() function.
 ==
 But I can't find memcache_get_stats function's explain in online manual.
 Anybody can help me for using this function?Or give an more detail
 link for this function?


 --
 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] Who kown this memcache_get_stats function ?

2009-09-06 Thread hack988 hack988
I find some detail manual about memcached procedural style API for
php(for example:memcache_get_stats).But now I found detail about this
API.

2009/9/6 Tommy Pham tommy...@yahoo.com:
 - Original Message 
 From: Tommy Pham tommy...@yahoo.com
 To: PHP General List php-general@lists.php.net
 Sent: Saturday, September 5, 2009 10:41:39 PM
 Subject: Re: [PHP] Who kown this memcache_get_stats function ?

 - Original Message 
  From: hack988 hack988
  To: PHP General List
  Sent: Saturday, September 5, 2009 9:16:51 PM
  Subject: Re: [PHP] Who kown this memcache_get_stats function ?
 
  Nobody Kown this?This is my second question in this mail-list :(.I
  don't kown why it's no reply by anybody.
 

 You sample on it's usage?
 You mean sample on it's usage?

 You need to run the daemon first before you can use it.  See here:
 http://www.danga.com/memcached/

 I got that link from: http://us2.php.net/manual/en/intro.memcache.php


  2009/9/5 hack988 hack988 :
   I found memcache_get_stats for memcached in some php code.
   I'm search it at php.net's function list,but it no matched result :(.
   I had found explain for Memcache::getStats()  at this link
   http://www.php.net/manual/en/function.memcache-getstats.php
   In this link,tell me that
   ==
   Also you can use memcache_get_stats() function.
   ==
   But I can't find memcache_get_stats function's explain in online manual.
   Anybody can help me for using this function?Or give an more detail
   link for this function?
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php


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


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



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



Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread hack988 hack988
You can use mysql's autoincrement ,but you must do some php for
special display,follow is my method.

1.create an int or smallint mysql col.
2.set it autoincrement.
3.insert some dates to database.
4.select dates and display with letter prefix.
for example: 12-AAA0012,AAA1234,
you can make an php functions to change num to prefix letter .
If you want letter autoincrement like int vars create an 26 based
calculate function for mapping number to letters.
ex:
10001-AAB0001
20001-AAC0001

2009/9/11 Phpster phps...@gmail.com:




 On Sep 11, 2009, at 3:50 AM, Ashley Sheridan a...@ashleysheridan.co.uk
 wrote:

 On Fri, 2009-09-11 at 00:19 -0400, Phpster wrote:

 Note that this approach has risks around race conditions. Anytime you
 have a construct for the id you run the risk of having it create
 duplicate ids. You will need to handle that.

 Bastien

 Sent from my iPod

 On Sep 10, 2009, at 6:49 PM, Ben Dunlap bdun...@agentintellect.com
 wrote:

 I assume that I can get increment value/sequence from db  (I used
 harcoded
 increment value  in the code above (generate_id(1))),
 but I don't know how I can get this incremental value from db.I use
 mysql
 5.0.

 If you're thinking of retrieving the newest value of an AUTO_INCREMENT
 column, immediately after inserting a row, there are different ways to
 do this depending on how you're connecting to MySQL.

 PDO, for example, has a method called lastInsertId():
 http://us2.php.net/manual/en/pdo.lastinsertid.php

 And the mysql_* family of functions has mysql_insert_id(), etc.

 Ben

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


 Not if you use the functions built specifically for that, i.e. the ones
 that Ben mentioned. In no circumstances should you ever do a SELECT
 MAX(id) FROM table. I've seen this done so many times by people who
 should know better, and they even saw no problems when they ran tests
 (that was, they tested the systems themselves, and only themselves) but
 then it all fell down as soon as multiple users tried to use it.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk




 I totally agree. Ufortunately, my boss would not agree and the one app I
 have to support is full of race conditions. I told them from the beginning
 that it would not work and under any load ( btw the max app load is about 40
 people on a server, don't ask, it would make me sad) we get errors in the
 app. I get to spend a few hours a week fixing this crap!

 I did just want to point out that there is risk in not using auto numbers or
 other unique id mechanisms if you don't pay attention.



 Bastien

 Sent from my iPod

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



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



[PHP] [php] Question about jsmin-php code

2009-12-29 Thread hack988 hack988
I'm see some code from jsmin-php like follow:

?php
error_reporting(E_STRICT);

fwrite(STDERR, memory_get_peak_usage(true).\n);

require './jsmin.php';
echo JSMin::minify(file_get_contents('ext-all-debug.js'));

fwrite(STDERR, memory_get_peak_usage(true).\n);
?

I have some question about code
1.what is E_STRICT error level mean?I'm found an explain at
http://www.php.net/manual/en/errorfunc.constants.php
but i don't understand which situation need this level?
2.document for STDERR is at http://php.net/manual/en/wrappers.php.php
but why it write some output to STDERR ?

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



Re: [PHP] Unable to get output from exec ssh remote-server 'ping -c4 ip'

2010-01-07 Thread hack988 hack988
see this
http://www.phpclasses.org/browse/package/4282.html

2009/12/28 robert mena robert.m...@gmail.com:
 Hi,

 I need to develop an interface that will, for example, ping IPs from a
 remote server. So the php script will be hosted in a server with ssh access
 (key) to the remote server.

 I can make it work from the console but when I try

 $cmd = ssh remote-server 'ping -c 4 ip'
 exec($cmd, $ouput);

 the output is empty.

 the same command (with the remote-server and IP changed to the real ones)
 works fine from command line.

 I've added the key/config in the webserver's user .ssh directory so I am
 assuming that that there is something wrong with my setup.

 any ideas?


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



[PHP] any solution about array_walk with pass-by-reference UseData?

2010-01-12 Thread hack988 hack988
In Online Document say's:
Users may not change the array itself from the callback function. e.g.
Add/delete elements, unset elements, etc. If the array that
array_walk() is applied to is changed, the behavior of this function
is undefined, and unpredictable.

So I'm use Use Optional param( [, mixed $userdata ])

here is my code

$return=array();
$disable_full=array('a','b','c');
$disable_start=array('_','!','HTTP'/*,'ddd','ddd','ddd','ddd','ddd'*/);
$check_array=array(a=1,_POST='c',HTTP=f,ddd=array('fefe'));
array_walk($check_array,'walk_fun_with_foreach',$return);

print_r($return);

function walk_fun_with_foreach($source,$key,$return){
global $disable_full,$disable_start;
//var_dump($key);
if(is_array($source)){
array_walk($source,'walk_fun_with_foreach',$return);
}else{

if(in_array(strval($key),$disable_full)){
//exit;
return;
}else{
foreach($disable_start as $key1 = $value){
if(strpos($key,$value)===0){
//echo $key;
return;
}
}
}
//echo $key;
$return[$key]=$source;
}
}
==
it's print :
Array ( [0] = fefe )

but in version php5.2.x and higher version,display Warning message:
Warning: Call-time pass-by-reference has been deprecated in

If I'm change
array_walk($check_array,'walk_fun_with_foreach',$return);
to
array_walk($check_array,'walk_fun_with_foreach',$return);

and
declare function like
function walk_fun_with_foreach($source,$key,$return)
no Warning Display
But result is not my needed.
Anyone has solution about is?I'm don't like use foreach for
instead,beacuse of some preformance reason.

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



Re: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1

2010-01-12 Thread hack988 hack988
1.add
WITHOUT_X11=yes
in /etc/make.conf
2.remove
X11BASE=
from that file and

4.make all-depend-list
5.make clean all depend soft
6.make menuconfig set X11 disable
7.make make install


2010/1/12 Don O'Neil li...@lizardhill.com:
 Ok.. just for grins I installed a new instance of 6.1, NO Patches, just
 straight off the ISO...

 I loaded the ports that came WITH the distro, and was able to make php 5.1.2
 ok...

 When I did a portsnap fetch, portsnap extract, then went into the
 /usr/ports/lang/php5 and just typed make I get the same error...

 SO as it seems, the port is broken, at least for working with FreeBSD 6.1.

 Can anyone give me some hints on how to build this sucker by hand? Seems as
 though there are a bunch of patches that are referenced in the distinfo
 file.

 I REALLY need to get this taken care of asap, any help is appreciated.

 Thanks!

   I tried adding WITHOUT_X11=yes to /etc/make.conf as well as
 X11BASE=
  and
   X11BASE=, but I still get the same error.
 
  Remove them. This makes sure they are not defined, not even
  empty (as in #define BLA - symbol 'BLA' is defined).
 
   Where to go from here? Do I have and old version of something that
 is
   causing this? I get this error _right away_ before anything is even
  built.
 
  It seems to be a check by the Makefile at port's top level.

 Ok... I have no definition for X11BASE anywhere, not in my env, not in
 my
 /etc/make.conf, nowhwere...

 However, it's still complaining about X11BASE being deprecated. I tried
 just
 adding WITHOUT_X11=yes in /etc/make, and without it. I even searched
 all the
 Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find
 any
 reference to X11, or X, or X11BASE, but nada... I don't even know where
 this
 error message is being generated from.

 I can't even do a basic make without it immediately spitting out the
 error:

 # make
 X11BASE is now deprecated.  Unset X11BASE in make.conf and try again.
 *** Error code 1

 Stop.



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



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



[PHP] Re: [PHP-DEV] any solution about array_walk with pass-by-reference UseData?

2010-01-13 Thread hack988 hack988
Online document say's
Note: Please note that this function only checks one dimension of a
n-dimensional array. Of course you can check deeper dimensions by
using, for example, array_udiff_uassoc($array1[0], $array2[0],
data_compare_func, key_compare_func);.

It's not my needed

My need is
$disable_full=array(a,b,c);
$disable_start=array(_,HTTP);

$check_array=array(array(http=a),a=dabdd);


I want to unset all element's key full match in $disable_full and
start with string in $disable_start array;

2010/1/13 Joey Smith j...@joeysmith.com:
 This might be better served by taking it to php-general, because I don't
 think you need to pin your question so hard to the behaviour of
 array_walk(). Here's a quick example of (if I understood your question
 correctly) how you might solve it using array_udiff_uassoc and 5.3's new
 'closure' syntax (not required for this, but I do so enjoy using them!)

 ?php
 $return=array();
 $disable_full=array('a','b','c');
 $disable_start=array('_','!','HTTP'/*,'ddd','ddd','ddd','ddd','ddd'*/);
 $check_array=array(a=1,_POST='c',HTTP=f,ddd=array('fefe'));

 function buildFilter($keys, $starts_with) {
   return function ($a, $b) use ($keys, $starts_with) {
      if (in_array($a, $keys)) return 0;
      foreach($starts_with as $value) if (strpos($a, $value)===0) return 0;
      return 1;
   };
 }

 $foo = buildFilter($disable_full, $disable_start);

 var_dump(array_udiff_uassoc($check_array, $disable_full, $disable_start, 
 function () { return 0; }, $foo));



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



Re: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1

2010-01-13 Thread hack988 hack988
===
I try a 'make all-depend-list'
the error shows up
=
which error show ?

2010/1/13 Don O'Neil li...@lizardhill.com:
 This is _exactly_ what I did, and as soon as I try a 'make all-depend-list'
 the error shows up. I don't even have the X11 system installed (it's a
 headless server, with no GUI).

 This is on a CLEAN 6.1 install, without any upgrades/patches, just straight
 off the ISO install and after a portsnap install/extract.

 I tried building it _before_ I updated the ports and it would build a 5.1.2
 php ok, but I need 5.2.12. Something has changed in the port between 5.1.2
 and 5.2.12

 1.add
 WITHOUT_X11=yes
 in /etc/make.conf
 2.remove
 X11BASE=
 from that file and

 4.make all-depend-list
 5.make clean all depend soft
 6.make menuconfig set X11 disable
 7.make make install


 2010/1/12 Don O'Neil li...@lizardhill.com:
  Ok.. just for grins I installed a new instance of 6.1, NO Patches,
 just
  straight off the ISO...
 
  I loaded the ports that came WITH the distro, and was able to make
 php 5.1.2
  ok...
 
  When I did a portsnap fetch, portsnap extract, then went into the
  /usr/ports/lang/php5 and just typed make I get the same error...
 
  SO as it seems, the port is broken, at least for working with FreeBSD
 6.1.
 
  Can anyone give me some hints on how to build this sucker by hand?
 Seems as
  though there are a bunch of patches that are referenced in the
 distinfo
  file.
 
  I REALLY need to get this taken care of asap, any help is
 appreciated.
 
  Thanks!
 
I tried adding WITHOUT_X11=yes to /etc/make.conf as well as
  X11BASE=
   and
X11BASE=, but I still get the same error.
  
   Remove them. This makes sure they are not defined, not even
   empty (as in #define BLA - symbol 'BLA' is defined).
  
Where to go from here? Do I have and old version of something
 that
  is
causing this? I get this error _right away_ before anything is
 even
   built.
  
   It seems to be a check by the Makefile at port's top level.
 
  Ok... I have no definition for X11BASE anywhere, not in my env, not
 in
  my
  /etc/make.conf, nowhwere...
 
  However, it's still complaining about X11BASE being deprecated. I
 tried
  just
  adding WITHOUT_X11=yes in /etc/make, and without it. I even searched
  all the
  Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to find
  any
  reference to X11, or X, or X11BASE, but nada... I don't even know
 where
  this
  error message is being generated from.
 
  I can't even do a basic make without it immediately spitting out the
  error:
 
  # make
  X11BASE is now deprecated.  Unset X11BASE in make.conf and try
 again.
  *** Error code 1
 
  Stop.
 
 
 
  --
  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

 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.725 / Virus Database: 270.14.136/2616 - Release Date:
 01/11/10 23:35:00



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



Re: [PHP] RE: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1

2010-01-17 Thread hack988 hack988
I think Vasily Pupkin is right.
http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?r1=1.630;r2=1.631;f=h
Found {portsdir}/Mk/bsd.port.mk and make sure the version is higher
than 1.631(2009/12/18)
In another side,your are use *default tag=. in your supfile or /etc/make.conf?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
mybe you need to use *default tag=RELEASE_6_1_0

http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php5/?only_with_tag=RELEASE_6_1_0
php5.x for freebsd 6.1

2010/1/16 Vasily Pupkin poopk...@mail.ru:
 add X11BASE=${LOCALBASE} as it is shown below:

 #echo X11BASE=${LOCALBASE}  /etc/make.conf

 The problem is in recent changeset for ports/Mk/bsd.port.mk:
 (http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?r1=1.630;r2=1.631;f=h)

 ..if ${X11BASE} != ${LOCALBASE}
 ..BEGIN:
 @${ECHO_MSG} X11BASE is now deprecated. Unset X11BASE in make.conf and try 
 again.
 @${FALSE}
 ..endif

 The guy commited the revision couldn't imagine that there is no X11BASE on 
 system defined at all while LOCALBASE is defined.
 This bug should be fixed soon because a lot of people will stuck with it 
 after ports upgrade.

 ===
 I try a 'make all-depend-list'
 the error shows up
 =
 which error show ?

 # make
 X11BASE is now deprecated.  Unset X11BASE in make.conf and try again.
 *** Error code 1

 Stop.

 That's the error... happens every time, no matter what I try to set/unset in
 /etc/make.conf. I looked through the makefiles to see where X11BASE is
 referenced and I can't find any place where it is to just kill it.

  This is _exactly_ what I did, and as soon as I try a 'make all-
 depend-list'
  the error shows up. I don't even have the X11 system installed (it's
 a
  headless server, with no GUI).
 
  This is on a CLEAN 6.1 install, without any upgrades/patches, just
 straight
  off the ISO install and after a portsnap install/extract.
 
  I tried building it _before_ I updated the ports and it would build a
 5.1.2
  php ok, but I need 5.2.12. Something has changed in the port between
 5.1.2
  and 5.2.12
 
  1.add
  WITHOUT_X11=yes
  in /etc/make.conf
  2.remove
  X11BASE=
  from that file and
 
  4.make all-depend-list
  5.make clean all depend soft
  6.make menuconfig set X11 disable
  7.make make install
 
 
  2010/1/12 Don O'Neil li...@lizardhill.com:
   Ok.. just for grins I installed a new instance of 6.1, NO Patches,
  just
   straight off the ISO...
  
   I loaded the ports that came WITH the distro, and was able to make
  php 5.1.2
   ok...
  
   When I did a portsnap fetch, portsnap extract, then went into the
   /usr/ports/lang/php5 and just typed make I get the same error...
  
   SO as it seems, the port is broken, at least for working with
 FreeBSD
  6.1.
  
   Can anyone give me some hints on how to build this sucker by hand?
  Seems as
   though there are a bunch of patches that are referenced in the
  distinfo
   file.
  
   I REALLY need to get this taken care of asap, any help is
  appreciated.
  
   Thanks!
  
 I tried adding WITHOUT_X11=yes to /etc/make.conf as well as
   X11BASE=
and
 X11BASE=, but I still get the same error.
   
Remove them. This makes sure they are not defined, not even
empty (as in #define BLA - symbol 'BLA' is defined).
   
 Where to go from here? Do I have and old version of something
  that
   is
 causing this? I get this error _right away_ before anything
 is
  even
built.
   
It seems to be a check by the Makefile at port's top level.
  
   Ok... I have no definition for X11BASE anywhere, not in my env,
 not
  in
   my
   /etc/make.conf, nowhwere...
  
   However, it's still complaining about X11BASE being deprecated. I
  tried
   just
   adding WITHOUT_X11=yes in /etc/make, and without it. I even
 searched
   all the
   Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to
 find
   any
   reference to X11, or X, or X11BASE, but nada... I don't even know
  where
   this
   error message is being generated from.
  
   I can't even do a basic make without it immediately spitting out
 the
   error:
  
   # make
   X11BASE is now deprecated.  Unset X11BASE in make.conf and try
  again.
   *** Error code 1
  
   Stop.


 --
 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] Easy Eclipse PHP Problem

2010-01-17 Thread hack988 hack988
Hi tedd!
I'm not see your email about this open source before,but i can't
understand why somebody like to use it.
It is too fat,and depend with JDK,I think it's an bad idea.
JAVA has so many problem with itself.
so I'd like to use some simpler text editor to code with php.

There is a work experience in my company.
My colleague use eclips with php plugin to coded in some project.
We found a bug in Integrated  Test.It's so easy to solve(save file as
UTF-8 encode).
He try to change encode in several times by eclips,but file's encode
not change.(cost 30 minutes)
He use editplus to change file's encode finaly.(cost 1 minutes).




2010/1/11 tedd t...@sperling.com:
 Hi gang:

 I recently installed MAPA on my new system (Mac X 10.6.2) to use use Eclipse
 and PHP 5.

 The EasyEclipse for PHP download is located at:

 http://www.easyeclipse.org/site/distributions/php.html

 However, the installation fails.

 I posted an error report, but there are other reports that date months back.
 Does anyone have the ear of any developers who work on this open source
 project? Until that bug is fixed, my new system sits idle.

 Cheers,

 tedd

 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com

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



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



Re: [PHP] Easy Eclipse PHP Problem

2010-01-17 Thread hack988 hack988
Yes,I'm just use text editor for php coding.
It's faster than using IDE.
I'm just add an custom syntax file (php.stx ) for Basic syntax and
php's internal functions.
Eclips's syntax and function association is so slow.

2010/1/18 Ashley Sheridan a...@ashleysheridan.co.uk

 On Mon, 2010-01-18 at 03:13 +0800, hack988 hack988 wrote:

 Hi tedd!
 I'm not see your email about this open source before,but i can't
 understand why somebody like to use it.
 It is too fat,and depend with JDK,I think it's an bad idea.
 JAVA has so many problem with itself.
 so I'd like to use some simpler text editor to code with php.
 There is a work experience in my company.
 My colleague use eclips with php plugin to coded in some project.
 We found a bug in Integrated  Test.It's so easy to solve(save file as
 UTF-8 encode).
 He try to change encode in several times by eclips,but file's encode
 not change.(cost 30 minutes)
 He use editplus to change file's encode finaly.(cost 1 minutes).
 2010/1/11 tedd t...@sperling.com:
  Hi gang:
 
  I recently installed MAPA on my new system (Mac X 10.6.2) to use use Eclipse
  and PHP 5.
 
  The EasyEclipse for PHP download is located at:
 
  http://www.easyeclipse.org/site/distributions/php.html
 
  However, the installation fails.
 
  I posted an error report, but there are other reports that date months back.
  Does anyone have the ear of any developers who work on this open source
  project? Until that bug is fixed, my new system sits idle.
 
  Cheers,
 
  tedd
 
  --
  ---
  http://sperling.com  http://ancientstones.com  http://earthstones.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

 The thing is, Eclipse is an IDE, whereas EditPlus is just a text editor. 
 There are quite large differences between the two types of software. An IDE 
 could save hours of work down the line where you'd be still entering code by 
 hand in a text editor.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk



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



Re: [PHP] PHP MS Sequel Server

2010-01-17 Thread hack988 hack988
you can use php with mssql2005.
But infact that mysql is more suit than mssql in php environment.

2010/1/18 deal...@gmail.com deal...@gmail.com:

 On Jan 17, 2010, at 11:06 AM, Ashley Sheridan wrote:

 On Sun, 2010-01-17 at 10:47 -0800, dealtek wrote:

 http://www.aspfree.com/c/a/MS-SQL-Server/Using-PHP-with-MS-SQL-Server/
 This article seems to sate that PHP can interface with MS Sequel Server ? If
 so, is it about the same level of complexity as working with PHP  MySQL? If
 one was to choose php  one DB over the other in a general comparison (not
 cost): any preferences?

 You can use PHP and MSSQL quite happily together on either Apache or IIS.
 I've found a few disadvantages to MSSQL other than the cost factor though:

 MySQL is faster in the main for the sorts of things I've thrown at it
 I've not found a phpMyAdmin equivalent, which means you'd have to use the
 non-web interface that MS gives you unless you want to open all sorts of
 ports to connect remotely
 Depending on the version you may be missing out on certain features. I had
 to use a version of MSSQL once that had no LIMIT capabilities, only TOP,
 which made things a lot more difficult
 PHP doesn't have a mysql_real_escape_string equivalent for MSSQL, which is
 used to sanitise data for insertion based on the character set being used.
 MSSQL doesn't allow you to use different database engines for different
 tables, it only has the JET engine as far as I know, so you wouldn't be able
 to optimise on a table-by-table basis by using different storage engines.



 Thanks so much Ashley for the clear - quick response!!!

 The project in question is a pre existing site in .asp and MS SQL Server .
 The owner was inquiring as to adding additional modules (and small satellite
 websites) - most of which will not intersect with .asp but might use the MS
 SQL Server database... I suggested they find an .asp programmer but they
 might want PHP ...



 Thanks,
 deal...@gmail.com
 [db-10]


 --
 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] Easy Eclipse PHP Problem

2010-01-17 Thread hack988 hack988
editplus can't debug with ie or firefox :)
Unfortunately I'm not use class in allmost time.
I'd like drupal's style.
I'm try to found an quickly and benefit IDE like microsoft's visual
studio,but I'm so disappointed with so many php's IDE

2010/1/18 Ashley Sheridan a...@ashleysheridan.co.uk

 On Mon, 2010-01-18 at 03:32 +0800, hack988 hack988 wrote:

 Yes,I'm just use text editor for php coding.
 It's faster than using IDE.
 I'm just add an custom syntax file (php.stx ) for Basic syntax and
 php's internal functions.
 Eclips's syntax and function association is so slow.
 2010/1/18 Ashley Sheridan a...@ashleysheridan.co.uk
 
  On Mon, 2010-01-18 at 03:13 +0800, hack988 hack988 wrote:
 
  Hi tedd!
  I'm not see your email about this open source before,but i can't
  understand why somebody like to use it.
  It is too fat,and depend with JDK,I think it's an bad idea.
  JAVA has so many problem with itself.
  so I'd like to use some simpler text editor to code with php.
  There is a work experience in my company.
  My colleague use eclips with php plugin to coded in some project.
  We found a bug in Integrated  Test.It's so easy to solve(save file as
  UTF-8 encode).
  He try to change encode in several times by eclips,but file's encode
  not change.(cost 30 minutes)
  He use editplus to change file's encode finaly.(cost 1 minutes).
  2010/1/11 tedd t...@sperling.com:
   Hi gang:
  
   I recently installed MAPA on my new system (Mac X 10.6.2) to use use 
   Eclipse
   and PHP 5.
  
   The EasyEclipse for PHP download is located at:
  
   http://www.easyeclipse.org/site/distributions/php.html
  
   However, the installation fails.
  
   I posted an error report, but there are other reports that date months 
   back.
   Does anyone have the ear of any developers who work on this open source
   project? Until that bug is fixed, my new system sits idle.
  
   Cheers,
  
   tedd
  
   --
   ---
   http://sperling.com  http://ancientstones.com  http://earthstones.com
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
  The thing is, Eclipse is an IDE, whereas EditPlus is just a text editor. 
  There are quite large differences between the two types of software. An IDE 
  could save hours of work down the line where you'd be still entering code 
  by hand in a text editor.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 

 What about class and method recognition during development? Also, you lose 
 out on the ability to step through the program, as no text editor I've ever 
 seen allows you to do that. The debugging process is usually what takes most 
 of the time in any development, and tracing through a program is a huge 
 benefit in this area.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk



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



Re: [PHP] Easy Eclipse PHP Problem

2010-01-17 Thread hack988 hack988
 editplus can debug with ie or firefox :)
 Unfortunately I'm not use class in allmost time.
 I'd like drupal's style.
I'm try to found an quickly and benefit IDE like microsoft's visual
 studio,but I'm so disappointed with so many php's IDE

 2010/1/18 Ashley Sheridan a...@ashleysheridan.co.uk

 On Mon, 2010-01-18 at 03:32 +0800, hack988 hack988 wrote:

 Yes,I'm just use text editor for php coding.
 It's faster than using IDE.
 I'm just add an custom syntax file (php.stx ) for Basic syntax and
 php's internal functions.
 Eclips's syntax and function association is so slow.
 2010/1/18 Ashley Sheridan a...@ashleysheridan.co.uk
 
  On Mon, 2010-01-18 at 03:13 +0800, hack988 hack988 wrote:
 
  Hi tedd!
  I'm not see your email about this open source before,but i can't
  understand why somebody like to use it.
  It is too fat,and depend with JDK,I think it's an bad idea.
  JAVA has so many problem with itself.
  so I'd like to use some simpler text editor to code with php.
  There is a work experience in my company.
  My colleague use eclips with php plugin to coded in some project.
  We found a bug in Integrated  Test.It's so easy to solve(save file as
  UTF-8 encode).
  He try to change encode in several times by eclips,but file's encode
  not change.(cost 30 minutes)
  He use editplus to change file's encode finaly.(cost 1 minutes).
  2010/1/11 tedd t...@sperling.com:
   Hi gang:
  
   I recently installed MAPA on my new system (Mac X 10.6.2) to use use 
   Eclipse
   and PHP 5.
  
   The EasyEclipse for PHP download is located at:
  
   http://www.easyeclipse.org/site/distributions/php.html
  
   However, the installation fails.
  
   I posted an error report, but there are other reports that date months 
   back.
   Does anyone have the ear of any developers who work on this open source
   project? Until that bug is fixed, my new system sits idle.
  
   Cheers,
  
   tedd
  
   --
   ---
   http://sperling.com  http://ancientstones.com  http://earthstones.com
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
  The thing is, Eclipse is an IDE, whereas EditPlus is just a text editor. 
  There are quite large differences between the two types of software. An 
  IDE could save hours of work down the line where you'd be still entering 
  code by hand in a text editor.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 

 What about class and method recognition during development? Also, you lose 
 out on the ability to step through the program, as no text editor I've ever 
 seen allows you to do that. The debugging process is usually what takes most 
 of the time in any development, and tracing through a program is a huge 
 benefit in this area.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk




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



Re: [PHP] 大客户营销策略与区域市场开发

2010-01-23 Thread hack988 hack988
It's Spam.Have some administor for this mail-list can block this email address?

2010/1/22 Bipper Goes! bipper.g...@gmail.com:
 OP: Watch your mouth.

 2010/1/21 Kaya Saman samank...@netscape.net

 Marc Hall wrote:



 From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Thursday,
 January 21, 2010 11:18 AM
 To: Marc Hall
 Cc: 'sssumjeg'; php-general@lists.php.net
 Subject: RE: [PHP] 大客户营销策略与区域市场开发


 On Thu, 2010-01-21 at 11:15 -0500, Marc Hall wrote:
  Anyone speak Chinese?

 [snip/]

 From the looks of it, it appears to be one of those amazing job offer
 spam emails, but I can't read Chinese myself.



 If it's an 'Amazing' job offer perhaps I should inquire as China is a lot
 better then Turkey for IT jobs (where I am now)!

 Perhaps they might take me in as a Cisco and UNIX engineer and once I get
 over there after being picked up by a dark panel van or minibus perhaps wake
 up somewhere in downtown Shanghai with scars in the locations of my vital
 organs :-P

 I'm betting it's 100% mostly a scam as normally only people who wish to ask
 questions or collaborate use these lists 99.9% of the time. The rest are
 either clueless, time wasters, or spam emails! Of course many of you guys
 already know this and am just stating the obvious here :-)

 ok time for me to get spamming the other mailling lists: (ha oops did I
 just say that out loud?? hahahah ;-P )

 Regards,

 Kaya

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