[PHP] function exists in command line but not in browser

2010-07-19 Thread Shelley
Hi all,

The problem is imagettfbbox().
jpgraph uses it to create truetype font images.

I have a phpinfo() script.

The command line output:

php i.php | grep Free
FreeType Support = enabled
FreeType Linkage = with freetype
FreeType Version = 2.2.1

But when the script is loaded in the browser, the output has no such
FreeType Support!
So imagettfbbox() does not exist.

Somebody could offer some suggestions??

Thank you veery much.

-- 
With best regards,
Shelley Shyan
http://phparch.cn


[PHP] ie6 memory could not be read help!

2009-09-17 Thread Shelley
Hi all,

With IE6,

After the pages i developed was loaded, there seems to be no problem,
but when you then click a link, refresh the page, etc. it shows memory
could not be 'read' error message.

However, when you load other sites, google.com, for example, there is no
such problem.

Anybody knows how to fix this problem?

Any help is appreciated  thanks in advance.

-- 
With best regards,
Shelley Shyan
http://php42.com
http://phparch.cn


[PHP] PHP screenshot capture code needed

2008-11-05 Thread Shelley
Hi all,

Do you know how to generate the screenshot of some URL with PHP?

Fyi,
should work under linux environment.

Thanks in advance.

-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] PHP screenshot capture code needed

2008-11-05 Thread Shelley
yes, saw that.
but that's not what I wanted. :)

On Wed, Nov 5, 2008 at 6:04 PM, Aschwin Wesselius [EMAIL PROTECTED]wrote:

  Shelley wrote:

 Hi all,

 Do you know how to generate the screenshot of some URL with PHP?

 Fyi,
 should work under linux environment.

 Thanks in advance.



  Hi,

 I suggest you first look in the archives of this list for possible answers
 before asking a question of any kind.

 Hint: this topic has been handled just a few weeks ago on this list.
 --

 Aschwin Wesselius

 *'What you would like to be done to you, do that to the other'*




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] PHP screenshot capture code needed

2008-11-05 Thread Shelley
On Wed, Nov 5, 2008 at 10:13 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote:

  -Original Message-
  From: Shelley [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 05, 2008 4:19 AM
  To: Aschwin Wesselius
  Cc: php List
  Subject: Re: [PHP] PHP screenshot capture code needed
 
  yes, saw that.
  but that's not what I wanted. :)
 
  On Wed, Nov 5, 2008 at 6:04 PM, Aschwin Wesselius
  [EMAIL PROTECTED]wrote:
 
Shelley wrote:
  
   Hi all,
  
   Do you know how to generate the screenshot of some URL with PHP?
  
   Fyi,
   should work under linux environment.
  
   Thanks in advance.
  
  
  
Hi,
  
   I suggest you first look in the archives of this list for possible
  answers
   before asking a question of any kind.
  
   Hint: this topic has been handled just a few weeks ago on this list.

 It may not be what you wanted, but regardless, the suggestions in those
 previous discussions are the best we could come up with. I don't think
 anything's changed in the screenshot from a web browser market in the last
 couple of weeks.

Yes. you are right. I appreciate the help in the previous thread very much.
With their help, I managed to find a perl script  and am working on it now.
Thanks.



 Maybe it has. STFW.


 Todd Boyd
 Web Programmer




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] Microsoft China to Punish private windows users

2008-10-16 Thread Shelley
Hi Richard,

Only China users will suffer the punishment. :)

50 pounds is not much, but 700 RMB is very much, actually. (The Office's
price)

2008/10/16 Richard Heyes [EMAIL PROTECTED]

  It will punish private Windows XP and Office 2003, Office 2007 users.

 I was going to say what's wrong with that?, but then remembered that
 I use them too...

 --
 Richard Heyes

 HTML5 Graphing for FF, Chrome, Opera and Safari:
 http://www.rgraph.org




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] Microsoft China to Punish private windows users

2008-10-15 Thread Shelley
You are REALLY drive traffic, spam, SEO experts. They are beyond my
mind. The topic being here is just because the news is each national site's
cover story and every mate talked about it.
2. Not a place to DRIVE TRAFFIC. My English is still at preliminary school
level, you see. (should be pirated rather than private) Chinese is much more
better to do this.
3. That's all. :)

2008/10/16 Ben Stones [EMAIL PROTECTED]

 via e-mail? lol - speaking of which doubt many would visit the site anyway
 :)... oh wait, the archive... is it indexed by Google?

 2008/10/16 Ashley Sheridan [EMAIL PROTECTED]

  On Wed, 2008-10-15 at 16:38 -0400, Wolf wrote:
 
 This is extremely off-topic. Please don't abuse this list in an
  attempt
 to drive traffic to your blog.

 -Stut

   
It *is* powered by PHP, Stut.  :P
   
  
   True, but that's the ONLY PHP thing about it...  OK, and the URL has
 PHP
  in it...
  
   ;)
  
   Wolf
  
 
  I think the PHP part of the URL was added by the mailing list. Short of
  that, I think it's just some schmuck trying to boost his/her SEO
  ranking.
 
 
  Ash
  www.ashleysheridan.co.uk
 




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] The Data Literacy Test: Interpretation Added

2008-09-27 Thread Shelley
2008/9/28 tedd [EMAIL PROTECTED]

 At 1:06 PM +0800 9/27/08, Shelley wrote:

 2008/9/26 tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
 there are three that you apparently don't know.

 ??? What is three, excuse me?


 You say in your link:

 20-24 Your are an expert blah blah...

 So you know 24 of them.

 I say there are 27 -- so, the three are 25, 26 and 27.

Everybody may have his own three, obviously.  :)



 Why is that difficult for you to understand?


 tedd

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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


[PHP] The Data Literacy Test: Interpretation Added

2008-09-26 Thread Shelley
Fyi,

The interpretation of the score is added.
Welcome to check your programming knowledge level:
http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test

:)

-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] The Data Literacy Test

2008-09-26 Thread Shelley
yeah, already saw that.

2008/9/26 Philip Thompson [EMAIL PROTECTED]

 On Sep 24, 2008, at 8:22 PM, Shelley wrote:

  2008/9/25 Philip Thompson [EMAIL PROTECTED]
 On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote:

 tedd wrote:
 At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote:
 On Wed, 2008-09-24 at 09:20 +0800, Shelley wrote:

 http://phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test
 The
 Data Literacy Test:


 http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test

 What the smeg is this?
 I don't know, but I figure 27.
 Cheers,
 tedd

 yes, I think 27 aswell...

 - Tul

 No no no. We all know the answer is 42.

 ? How come 42?


 Just in case it's not clear what the others have commented about 42...

 http://wikipedia.org/wiki/Answer_to_Life,_the_Universe,_and_Everything

 ~Philip


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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] The Data Literacy Test: Interpretation Added

2008-09-26 Thread Shelley
Actually, I think the author meant that you already read through those books
and learned those terms,
rather than mean that you are cheating on the test.

As the author recommended you read the books listed below if you are not an
expert yet.

Those recommended books are also added on the interpretation page for your
reference.

2008/9/26 Robert Cummings [EMAIL PROTECTED]

 On Fri, 2008-09-26 at 14:02 +0800, Shelley wrote:
  Fyi,
 
  The interpretation of the score is added.
  Welcome to check your programming knowledge level:
 
 http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test
 
  :)

 From the interpretation:

20–24   You are an expert programmer. You probably already have
the books listed below on your shelf.

 *lol* Why would probably be applicable in this scenario? More likely
 most people hit up google to answer their questions.

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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] The Data Literacy Test: Interpretation Added

2008-09-26 Thread Shelley
2008/9/26 tedd [EMAIL PROTECTED]

 At 2:02 PM +0800 9/26/08, Shelley wrote:

 Fyi,

 The interpretation of the score is added.
 Welcome to check your programming knowledge level:

 http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test

 :)


 The answer as I see it is 27.

 While we both agree that elongated stream, retroactive synapse, and
 value chain are false computer terms,



 there are three that you apparently don't know.

??? What is three, excuse me?


 Would you care point those out so we can discuss them?

 This reminds me of a survey I conducted in the late 80's where I had
 section of computer terms for people to indicate what was familiar, or not.
 The answer of each was either I heard of it, I know it, or Huh?

 I used that answer to test the truth of the person taking the survey.
 Interesting enough, I found the ratio of truth was equally spread between
 all age groups. In other words, the 20-30, 31-40, 41-50, 51-60 age groups
 all had the same ratio of people reporting a false term as I know it.

 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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] The Data Literacy Test

2008-09-24 Thread Shelley
2008/9/25 Philip Thompson [EMAIL PROTECTED]

 On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote:

  tedd wrote:

 At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote:

 On Wed, 2008-09-24 at 09:20 +0800, Shelley wrote:


 
 http://phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test
 The
 Data Literacy Test:


 http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test

  What the smeg is this?

 I don't know, but I figure 27.
 Cheers,
 tedd


 yes, I think 27 aswell...

 - Tul


 No no no. We all know the answer is 42.

 ? How come 42?


-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] Wierd Variable Initialization

2008-09-24 Thread Shelley
Yeah, use $GLOBALS[''], or
global $tokenmap;


2008/9/25 Chris [EMAIL PROTECTED]

 VamVan wrote:

 So guys,

 I found some thing strange that happened to me yesterday. Its small but
 kinda freaked me out.

 So I have a tokenmap.php that I include include in different configuration
 files. Some are classes and some are simple php files.

 So in my tokenmap.php I have declared an array as global.

 SO $GLOBAL['tokenmap'] = array()


 I assume you mean $GLOBALS ..


 As a good programming practice what I did was:

 require_once('tokenmap.php');
 $tokenmap = array();
 $tokenmap = $GLOBAL['tokenmap'];
 print_r($tokenmap);

 The above displays empty array


 Why set it to an empty array first? You're just overriding it straight
 away.

 It's pretty silly to do:

 ?php

 $a = 1;
 $b = 0;
 $b = $a;

 ?


 Add:

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

 to the top of your script.

 Any errors/notices/warnings?

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


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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


[PHP] The Data Literacy Test

2008-09-23 Thread Shelley
 http://phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-testThe
Data Literacy Test:

http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test

-- 
With best regards,
Shelley Shyan
http://www.phparch.cn


[PHP] __autoload alternative

2008-09-22 Thread Shelley
Hi all,

Is there any way to auto load a class without using __autoload() function?

As I want to load some classes under different paths, and that caused
redeclare of __autoload function.

Any suggestions appreciated.

-- 
With best regards,
Shelley Shyan
http://phparch.cn


[PHP] XHTML 移动概要 (XHTML MP) / WAP 2.0 教程

2008-09-18 Thread Shelley
各位好.

XHTML 移动概要 (XHTML MP) / WAP 2.0 教程:
http://www.phparch.cn/index.php/web/66-mobile/188

正在编写中,已完成部分已加链接。
欢迎大家多提意见或建议并留下你的想法供大家交流。

谢谢。

-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] how to write good code

2008-09-01 Thread Shelley
Hi Shiplu,

For all that you mentioned, and if you want to get a quite good suggestion,
I will highly recommend that you read through McConnell's Code Complete (2nd
Edition).
Specifically:
Chapter 31: Layout and Style
Chapter 32: Self-Documenting Code (Commenting Techniques)

It won't disappoint you.


2008/8/31 Shiplu [EMAIL PROTECTED]

 I wanna know how to write good code in php.
 Not oop stuff. I wanna know how to write a good php code file.
 documentation, comments. indentation etc.
 what are the good practices??


 --
 Blog: http://talk.cmyweb.net/
 Follow me: http://twitter.com/shiplu




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] PHP IDE needed

2008-08-28 Thread Shelley
Though vim is not a so-called IDE, actually it's quite handy.

On Wed, Aug 27, 2008 at 1:06 PM, Sascha Braun [EMAIL PROTECTED]wrote:

 Hi people,

 I have a webproject which is round about 3 GB in size. I was usually
 using eclipse to work with the software but over time eclipse became
 very instable regarding that project.

 As soon as I open classes with 2000 or more lines of code in it, an out
 of memory error occours.

 So I need a new IDE for linux.

 Please tell me which IDE might be a true alternative for projects at
 that size.

 Thank you friends,

 kind regards,

 Sascha

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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] PHP editor for linux

2008-08-27 Thread Shelley
Yes, it's quite nice actually. I used it once.
And I am using vim on Linux platform now.
I am feeling quite easy with it.

Maybe you have noticed the survey I made on http://phparch.cn.
A lot of people just look at the result. I really want people to choose
their option first.
Because that's helpful for future visitors.
Anyway, everybody is free to make his own choice.


On Tue, Aug 26, 2008 at 10:26 PM, Carlos Medina [EMAIL PROTECTED]wrote:

 Thodoris schrieb:


 O/H It flance ??:

 Hi,

 What do you think is the best php editor for linux.

 I'm using the Debian distribution.

 Thanks





 I surprisingly use PSPad editor which is quite neat solution and support
 some basic regexps.

 http://www.pspad.com/

 I think I'll probably move to vim since nothing seems more powerful but
 yet so nerdish.

 It was nice talking for this all boring, again-and-again issue because I
 got some very good ideas and I will totally try eclipse.

  Hi,
 PHPed is nice

 Regards

 Carlos


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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


Re: [PHP] Re: PHP editor for linux

2008-08-25 Thread Shelley
Check the result at http://phparch.cn.

And you are encouraged to make your choice.


2008/8/19 Pavel [EMAIL PROTECTED]

 I use Zend Studio (shareware, but i couldn't find better things). There are
 some plugins for Eclipse,but if you used Zend before, you will be cunfused
 by
 that plugins...

 P.S. Sorry for my English...


 --
 ===
 С уважением, Манылов Павел aka [R-k]
 icq: 949-388-0
 mailto:[EMAIL PROTECTED]
 ===
 А ещё говорят так:
 В каждом толстом человеке сидит худой и требует, чтобы его выпустили.
-- Сирил Коннолли
 [fortune]




-- 
With best regards,
Shelley Shyan
http://phparch.cn


[PHP] int(1) and int(11)

2008-08-24 Thread Shelley
Hi all,

Is there any difference between int(1) and int(11) when creating a table?

I checked the mysql manual and got that 1 and 11 are used to specify the
display width of an column.

Is there any other difference?

Any ideas appreciated.
Thx.

-- 
With best regards,
Shelley Shyan
http://phparch.cn


[PHP] Regular Expression help need

2008-07-25 Thread Shelley
Hi all,

How can I make a string with  (NOT amp;, gt;, lt; or quot;), ,  xml
compatible?
What is the expression to use?

Thank you very much.

-- 
Regards,
Shelley


Re: [PHP] Regular Expression help need

2008-07-25 Thread Shelley
Hi Richard,

Not exactly actually.

What I mean is:
Before: phi strongRichard/strong,  good morninglt;/p
After:   phi strongRichard/stronggt;, amp; good morninglt;/p

I hope it's clear now.

On Fri, Jul 25, 2008 at 7:53 PM, Richard Heyes [EMAIL PROTECTED]
wrote:

  How can I make a string with  (NOT amp;, gt;, lt; or quot;), , 
 xml
  compatible?
  What is the expression to use?

 Not entirely sure what you're after (try posting some before and after
 snippets), but by the sounds of it you don't need a regular expression
 - strtr() will work for you. Or str_replace().

 --
 Richard Heyes
 http://www.phpguru.org




-- 
Regards,
Shelley


Re: [PHP] Regular Expression help need

2008-07-25 Thread Shelley
Ok, let me tell you what i want to achieve.
I want to transfer users' blog onto mobile phone, so I should convert
characters such as , ,  (but not amp;, or gt;, or lt;, etc) into xml
compatible ones, gt;, lt; amp;.

Maybe there is some problem in my expression?

Waiting for your response...

On Sat, Jul 26, 2008 at 3:30 AM, Micah Gersten [EMAIL PROTECTED] wrote:

 Are you trying to make it xml compatible or XHTML compatible?  '' is
 not valid HTML or XHTML as it has special meaning. If you want it to
 adhere to the standard and display correctly, you must use 'amp;'

 Thank you,
 Micah Gersten
 onShore Networks
 Internal Developer
 http://www.onshore.com



 Shelley wrote:
  Hi Richard,
 
  Not exactly actually.
 
  What I mean is:
  Before: phi strongRichard/strong,  good morninglt;/p
  After:   phi strongRichard/stronggt;, amp; good morninglt;/p
 
  I hope it's clear now.
 
  On Fri, Jul 25, 2008 at 7:53 PM, Richard Heyes [EMAIL PROTECTED]
  wrote:
 
 
  How can I make a string with  (NOT amp;, gt;, lt; or quot;), , 
 
  xml
 
  compatible?
  What is the expression to use?
 
  Not entirely sure what you're after (try posting some before and after
  snippets), but by the sounds of it you don't need a regular expression
  - strtr() will work for you. Or str_replace().
 
  --
  Richard Heyes
  http://www.phpguru.org
 
 
 
 
 
 

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




-- 
With best regards,
Shelley Shyan
http://phparch.cn


[PHP] Login without cookies enabled help

2008-07-15 Thread Shelley
Hi all,

What is your way to organize user login without Client Cookies being
disabled?

Sample code will be appreciated.

Waiting for your reply...

-- 
Regards,
Shelley


[PHP] Re: Login without cookies enabled help

2008-07-15 Thread Shelley
Sorry, should be with Client Cookies being disabled :)

On Tue, Jul 15, 2008 at 6:24 PM, Shelley [EMAIL PROTECTED] wrote:

 Hi all,

 What is your way to organize user login without Client Cookies being
 disabled?

 Sample code will be appreciated.

 Waiting for your reply...

 --
 Regards,
 Shelley




-- 
Regards,
Shelley


Re: [PHP] Login without cookies enabled help

2008-07-15 Thread Shelley
Well, as I said the cookies are disabled at the clients.

Anybody any opinions?

On Tue, Jul 15, 2008 at 7:23 PM, Thijs Lensselink [EMAIL PROTECTED] wrote:

 Quoting Shelley [EMAIL PROTECTED]:

  Hi all,

 What is your way to organize user login without Client Cookies being
 disabled?

 Sample code will be appreciated.

 Waiting for your reply...

 --
 Regards,
 Shelley


 You can use sessions to store data on the server instead of the client.

 http://nl2.php.net/manual/en/ref.session.php

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




-- 
Regards,
Shelley


Re: [PHP] to get time

2008-07-09 Thread Shelley
Or date(), such as date('Y-m-d H:i:s');

On Wed, Jul 9, 2008 at 6:29 PM, Per Jessen [EMAIL PROTECTED] wrote:

 willyam pax wrote:

  hello
 
  im still new to php i just want to know how can u get the only the
  time of ur local server

 Take a look at date() and time().


 /Per Jessen, Zürich


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




-- 
Regards,
Shelley
http://phparch.cn



Shelley


Re: [PHP] class? package?

2008-06-12 Thread Shelley
On Wed, Jun 11, 2008 at 12:02 PM, Larry Garfield [EMAIL PROTECTED]
wrote:

 On Tuesday 10 June 2008, Shelley wrote:
  Hi all,
 
  If you are designing with OO principles, could you give an explanation of
  what is the difference classes and packages?
 
  Several principles talks about classes and packages, such as:
  The classes in a package are reused together. If you reuse one of the
  classes in a package, you reuse them all.
 
  but few explains the difference between them.
 
  When I was summarizing the OO principles, that question confused me:
 
 http://phparch.cn/index.php/php/43-php-advanced-programming/170-principles-
 of-object-oriented-design
 
  Thanks in advance. :)

 A class is a syntactic way of grouping behavior and data together in an
 encapsulated fashion (at least that's the PHP definition).

 A formal package is a syntactic way of grouping related classes together,
 either for easier distribution, somewhat tighter coupling, or syntactic
 sugar.  For instance, you could have 5 classes that make up your Database
 abstraction package; they're all discrete, but all work in concert.

 PHP does not have a syntactic package concept.  The closest thing would
 be
 namespaces as implemented in PHP 5.3, but that's not out yet.  Many systems
 emulate packages with verbose class naming (eg, Database_Connection,
 Database_Query, Database_Transaction, Database_Query_Select, etc.), but I
 personally find that ugly. :-)

 Thank you very much for the explanation.
I think I got some.
Maybe I am already using them:
I am working on a sns site, and now my practice is grouping classes of a
function
(i.e. subscription) together. When I need it, just load the package:
subscription.

Right? ;)
-- 
Regards,
Shelley


Re: [PHP] class? package?

2008-06-12 Thread Shelley
On Thu, Jun 12, 2008 at 3:01 PM, Iv Ray [EMAIL PROTECTED] wrote:

 Shelley wrote:

 Probably you have noticed this:
 The classes in a package are reused together. If you reuse one of the
 classes in a package, you reuse them all.
 If that's the case, then why not just use one class as one package?
 What's the point of splitting a package into several classes? :-(


 I think somebody already answered.

 It is actually up to you.

 My grandmother used to write letters starting with a capital letter,
 writing the whole letter as one long sentence and ending with a dot. This
 would perhaps confuse most high school teachers, but in her case it somehow
 worked :)

 If we take this worn out example - if you have a class dog and a class
 cat - it becomes quite clear why you need several classes. You can put
 them in a package called animals - but as other people already noted, the
 packages in php have only a symbolic role, just for clarity of code
 organization.

Yeah, that's it.



-- 
Regards,
Shel


[PHP] class? package?

2008-06-10 Thread Shelley
Hi all,

If you are designing with OO principles, could you give an explanation of
what is the difference classes and packages?

Several principles talks about classes and packages, such as:
The classes in a package are reused together. If you reuse one of the
classes in a package, you reuse them all.

but few explains the difference between them.

When I was summarizing the OO principles, that question confused me:
http://phparch.cn/index.php/php/43-php-advanced-programming/170-principles-of-object-oriented-design

Thanks in advance. :)

-- 
Regards,
Shelley


Re: [PHP] class? package?

2008-06-10 Thread Shelley
On Tue, Jun 10, 2008 at 6:32 PM, Iv Ray [EMAIL PROTECTED] wrote:

 If you are designing with OO principles, could you give an explanation of
 what is the difference classes and packages?


 A class is a language construct, classes are processed/executed by php.

 A package is an architectural approach - this is how you combine your
 code/classes.

Yeah, I can guess that.

Probably you have noticed this:
The classes in a package are reused together. If you reuse one of the
classes in a package, you reuse them all.

If that's the case, then why not just use one class as one package?
What's the point of splitting a package into several classes? :-(



  When I was summarizing the OO principles, that question confused me:

 http://phparch.cn/index.php/php/43-php-advanced-programming/170-principles-of-object-oriented-design


 If you try to follow all these principles, it might take very long before
 you write even a line of code ;)

True.


 Take what you understand and leave the rest for later. You will become
 better, but will never be perfect ;)

You will never be perfect, but you will become better. ;)


 Iv

 --

Thank you any way.


-- 
Regards,
Shelley


[PHP] Help mms (Get audio Stream)

2008-05-29 Thread Shelley
1. URL
http://pub.qmoon.net/WMSStatus/WMS.asmx/IRadioGetCurrentPublishPoint

2. Call method

HTTP GET:
GET / WMSStatus/WMS.asmx/IRadioGetCurrentPublishPoint HTTP/1.1
Host: pub.qmoon.net

3.  return (string)

?xml version=1.0 encoding=utf-8 ?
string xmlns=http://www.qmoon.net/;mms://pub.qmoon.net/audio/string

How can I listen to the audio stream with PHP?
Anybody some suggestions?

Thank you in advance.


-- 
Regards,
Shelley


Re: [PHP] Help mms (Get audio Stream)

2008-05-29 Thread Shelley
My test result is that it works on Windows platform, but not on Linux.
Maybe that's because it is Microsoft Media Services protocol?

Whatever, I can not hear anything on Firefox 3 Beta 5 on Ubuntu.

2008/5/29 Gabriel Sosa [EMAIL PROTECTED]:

 what do you wanna do ?? just a bridge? or try to play it?? in that
 case you can't.
 i think you should get the streamming and try to play it with flash

 saludos

 On Thu, May 29, 2008 at 4:05 AM, Shelley [EMAIL PROTECTED] wrote:
  1. URL
  http://pub.qmoon.net/WMSStatus/WMS.asmx/IRadioGetCurrentPublishPoint
 
  2. Call method
 
  HTTP GET:
  GET / WMSStatus/WMS.asmx/IRadioGetCurrentPublishPoint HTTP/1.1
  Host: pub.qmoon.net
 
  3.  return (string)
 
  ?xml version=1.0 encoding=utf-8 ?
  string xmlns=http://www.qmoon.net/;mms://pub.qmoon.net/audio/string
 
  How can I listen to the audio stream with PHP?
  Anybody some suggestions?
 
  Thank you in advance.
 
 
  --
  Regards,
  Shelley
 



 --
 Los sabios buscan la sabiduría; los necios creen haberla encontrado.
 Gabriel Sosa


--
Regards,
Shelley - http://phparch.cn

-- 
Regards,
Shelley


[PHP] Help preg_replace with Non-English character

2008-05-22 Thread Shelley
Hi all,

Just a question, I want to replace some Chinese characters with
preg_replace().

But it does not work.

The string is

$str = 'test你好http://www.phparch.cn/ 完成';

The ideal output is :
testa href=http://www.phparch.cn;你好/a 完成

Any suggestion will be greatly appreciated.

-- 
Regards,
Shelley


Re: [PHP] Help preg_replace with Non-English character

2008-05-22 Thread Shelley
Yes, I have checked and tried that.
And I have successfully tested it with GB2312 encoding, but when turned to
UTF8. It does not work any more.
The server is using UTF8 encoding, and also the database.
Weird.

On Thu, May 22, 2008 at 4:51 PM, Richard Heyes [EMAIL PROTECTED] wrote:

 Just a question, I want to replace some Chinese characters with
 preg_replace().

 But it does not work.

 The string is

 $str = 'test你好http://www.phparch.cn/ 完成';

 The ideal output is :
 testa href=http://www.phparch.cn;你好/a 完成

 Any suggestion will be greatly appreciated.


 Have a look to see if the mb_* functions will help.

 http://uk3.php.net/manual/en/book.mbstring.php


 --
  Richard Heyes

 In Cambridge? Employ me
http://www.phpguru.org/cv

 ++
 | Access SSH with a Windows mapped drive |
 |http://www.phpguru.org/sftpdrive|
 ++




-- 
Regards,
Shelley


Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
You missed what I meant.

Suppose there is a piece of code like:
script language-javascript
function hello() {
document.write hello;
}
/script

I want to call that method inside PHP:
?php
$c = hello();
echo $c;
?

Hope you get it.


On Tue, May 20, 2008 at 5:40 PM, Chetan Rane [EMAIL PROTECTED]
wrote:

 Yea

 You can use the script tag in PHP

 Its like
 ?php phpcode ?

 script language=javascript src=soruce of the file
 type=text\javascript/

 script language=javascript
 Funcyion()
 /script

 ?php phpcode ?

 This works

 Chetan Dattaram Rane
 Software Engineer



 -Original Message-
 From: Shelley [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 3:06 PM
 To: PHP General list
 Subject: [PHP] Help Call Javascript Methods Inside PHP

 Hi all,

 How can I call a javascript method inside PHP?
 That is:
 Suppose there is a js file: http://someurl/somejs.js
 There are some js methods in that js file,
 I want to include that js into PHP and call its methods.

 Is it possible?
 If it is, how?

 Thank you very much.

 --
 Regards,
 Shelley




-- 
Regards,
Shelley


Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
Yea, of course.

On Tue, May 20, 2008 at 5:44 PM, jose javier parra sanchez 
[EMAIL PROTECTED] wrote:

 Do you know that php runs on the server and that javascript runs on the
 client ?

 2008/5/20 Shelley [EMAIL PROTECTED]:
  Hi all,
 
  How can I call a javascript method inside PHP?
  That is:
  Suppose there is a js file: http://someurl/somejs.js
  There are some js methods in that js file,
  I want to include that js into PHP and call its methods.
 
  Is it possible?
  If it is, how?
 
  Thank you very much.
 
  --
  Regards,
  Shelley
 




-- 
Regards,
Shelley


[PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
Hi all,

How can I call a javascript method inside PHP?
That is:
Suppose there is a js file: http://someurl/somejs.js
There are some js methods in that js file,
I want to include that js into PHP and call its methods.

Is it possible?
If it is, how?

Thank you very much.

-- 
Regards,
Shelley


Re: [PHP] Good HTML parser needed

2008-05-14 Thread Shelley
Thank you all.
I have made it working excellent for me now.
The solution is here: http://phparch.cn

On Tue, May 13, 2008 at 1:34 PM, Robert Cummings [EMAIL PROTECTED]
wrote:


 On Tue, 2008-05-13 at 01:27 -0400, Robert Cummings wrote:
  On Tue, 2008-05-13 at 12:28 +0800, Shelley wrote:
   Maybe I didn't use that tidy correctly.
   I don't want html, head, body things. Just parsed string.
 
  So strip them...
 
  ?php
  // ...
 
  tidy_parse_string( $html );
  tidy_clean_repair();
 
  $html = tidy_get_output();
 
  $html = preg_replace( '#^.*body#Uis', '', $html )
  $html = preg_replace( '#/body#Uis', '', $html )
 
  //...
  ?

 Whoops... noticed some bugs there :B

 ?php

$html = preg_replace( '#^.*body#Uis', '', $html );
$html = preg_replace( '#/body.*$#Uis', '', $html );

 ?

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




-- 
Regards,
Shelley


Re: [PHP] Good XML Parser

2008-05-14 Thread Shelley
Thank you all.
Maybe you didn't get what I meant.

I have made it working excellent for me.
I have summarized the solution: http://phparch.cn

On Wed, May 14, 2008 at 11:10 AM, Nathan Nobbe [EMAIL PROTECTED]
wrote:

 On Tue, May 13, 2008 at 7:29 PM, Waynn Lue [EMAIL PROTECTED] wrote:

  Ok, thanks so much for the help.  I went with DOM-parsing to begin
  with, I'll explore XPath + SimpleXML later.


 just fyi, youre likely to get more bang for your buck starting off w/
 SimpleXML.  DOM is a successor to DOMXML from php4.  its a bulky, yet
 powerful interface into the DOM.  SimpleXML is also a DOM parser, however
 the interface is simpler in exchange for less power.  the good news is in
 php5 you can switch back and for between DOM and SimpleXML easily at
 virtually no cost.

 my modo in php5 is to use SimpleXML unless there is a real need for DOM,
 and
 in that case most likey, you can get away w/ converting to DOM at runtime
 (again very little cost there) and doing a few operations, then carrying
 on
 w/ SimpleXML.

 -nathan




-- 
Regards,
Shelley


Re: [PHP] Good HTML parser needed

2008-05-14 Thread Shelley
Yeah, you are right, friend. Because users' input should be in body tag
only.

On Wed, May 14, 2008 at 11:06 PM, Robert Cummings [EMAIL PROTECTED]
wrote:


 On Wed, 2008-05-14 at 18:50 +0800, Shelley wrote:
  Thank you all.
  I have made it working excellent for me now.
  The solution is here: http://phparch.cn

 Ah, there you go... show_body_only. I was too lazy when I used tidy a
 while back to look through every option, so a quick preg stripping
 sufficed :)

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




-- 
Regards,
Shelley


[PHP] Good HTML parser needed

2008-05-12 Thread Shelley
Hi all,

The fact is that I have a site that allow users to post hypertext articles.
However, I saw that sometimes, because of their careless input,
the articles is not rendered correctly.

I want to know whether there are some good HTML parsers written in PHP.

That is,
the parser checks whether html tags like table, tr, td, div, dt, dl, dd,
script, ul,
li, span, h1, h2, etc. are nested correctly. If any tags not matched, just
remove them.

Any suggection is greatly appreciated.

-- 
Regards,
Shelley


Re: [PHP] Good HTML parser needed

2008-05-12 Thread Shelley
Maybe I didn't use that tidy correctly.
I don't want html, head, body things. Just parsed string.


On Tue, May 13, 2008 at 12:00 PM, Robert Cummings [EMAIL PROTECTED]
wrote:


 On Tue, 2008-05-13 at 11:34 +0800, Shelley wrote:
  Hi all,
 
  The fact is that I have a site that allow users to post hypertext
 articles.
  However, I saw that sometimes, because of their careless input,
  the articles is not rendered correctly.
 
  I want to know whether there are some good HTML parsers written in PHP.
 
  That is,
  the parser checks whether html tags like table, tr, td, div, dt, dl, dd,
  script, ul,
  li, span, h1, h2, etc. are nested correctly. If any tags not matched,
 just
  remove them.

 http://ca3.php.net/manual/en/book.tidy.php

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




-- 
Regards,
Shelley


[PHP] Get array as string --Help

2008-05-09 Thread Shelley
Hi all,

If I have an array like this:
$arr = array (
'c' = 'd',
'e' = 'f');

How can I convert this array into a string? I want to write an array into a
file.

Thanks in advance.

-- 
Regards,
Shelley


Re: [PHP] Best practices for using MySQL index

2008-05-01 Thread Shelley
On Wed, Apr 30, 2008 at 7:03 PM, Aschwin Wesselius [EMAIL PROTECTED]
wrote:

  Shelley wrote:

  Don't index just all integer fields. Keep track of the cardinality of a
 column. If you expect a field to have 100.000 records, but with only 500
 distinct values it has no use to put an index on that column. A full record
 search is quicker.


 Hmmm... That's new. :)



 Well, to give you a good measure: keep the cardinality between 30 to 70-80
 percent of your total records in a column. But sometimes your field is NULL
 or empty, so it really depends. You can't just put it into a standard
 configuration. And it also really depends on how many records a table
 contains etc.

 Besides that, benchmarking your development environment (you do have one
 do you?) can gives you a good idea on how your hardware and setup performs.

I think I missed that part. For I am concerning query, index, and entity
design most of the time.



 Aschwin Wesselius




-- 
Regards,
Shelley


Re: [PHP] Best practices for using MySQL index

2008-05-01 Thread Shelley
On Thu, May 1, 2008 at 9:54 AM, Larry Garfield [EMAIL PROTECTED]
wrote:

 On Wednesday 30 April 2008, Chris wrote:
   Index on most integer fields only. Text fields can be indexed, but is
   not important when you design your DB well.
  
   Don't index just all integer fields. Keep track of the cardinality of
 a
   column. If you expect a field to have 100.000 records, but with only
 500
   distinct values it has no use to put an index on that column. A full
   record search is quicker.
  
  Hmmm... That's new. :)
 
  To explain that further the idea is that if you have something like a
  'status' field which can only hold 5 values, there's no point indexing
  it if there's a reasonably even spread.
 
  If you could only ever have a handful of fields with a status code of
  '1', then it's worth indexing if you have to find those particular
  records quickly. I don't think mysql supports partial indexes, but some
  databases do so you only index the fields that match a certain criteria.
 
  I'd suggest a more thorough approach to working out what to index rather
  than just trying to guess what's going on.

 Another piece of low-hanging-fruit is to index a field that you will be
 joining on frequently.

The fact is, we seldom use join. Because we think it very slow to make it
working on two tables
 with millions of  records. Though we did not try it. :(

 Point above about spread still applies, but if you
 can join index to index, the join goes a lot faster.  (A primary key in
 MySQL
 is always indexed.)

How much is the *a lot*? Thanks. :)


 Having too many indexes rarely if ever costs on read (as far as I am
 aware),
 but it does cost on write to update the index.  How much that matters is
 use-case specific.

 --
 Larry Garfield  AIM: LOLG42
 [EMAIL PROTECTED]  ICQ: 6817012

 If nature has made any one thing less susceptible than all others of
 exclusive property, it is the action of the thinking power called an idea,
 which an individual may exclusively possess as long as he keeps it to
 himself; but the moment it is divulged, it forces itself into the
 possession
 of every one, and the receiver cannot dispossess himself of it.  --
 Thomas
 Jefferson

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




-- 
Regards,
Shelley


Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Shelley
On Wed, Apr 30, 2008 at 5:14 PM, Aschwin Wesselius [EMAIL PROTECTED]
wrote:

 Shelley wrote:

  Hi all,
 
  I am currently responsible for a subscription module and need to design
  the
  DB tables and write code.
 
  I have described my table design and queries in the post:
 
  http://phparch.cn/index.php/mysql/38-MySQL-configuration/152-best-practices-for-using-mysql-index
 
  The problem is, in a short time the table will hold millions of records.
  So the query and index optimization is very important.
 
  Any suggestion will be greatly appreciated.
 
 Hi,

 While this is not a MySQL mailing list, I try to give you some hints and
 keep it short.

 Index on most integer fields only. Text fields can be indexed, but is not
 important when you design your DB well.

 Don't index just all integer fields. Keep track of the cardinality of a
 column. If you expect a field to have 100.000 records, but with only 500
 distinct values it has no use to put an index on that column. A full record
 search is quicker.

   Hmmm... That's new. :)



 Put the columns with the highest cardinality as the first keys, since
 MySQL will find these if no index is explicitly given.

 You can look at an index with SHOW INDEX FROM table and this gives you a
 column cardinality.

 Try out your select statements and use EXPLAIN SELECT whatever FROM
 table and use some joins on other tables. This will show you which possible
 indexes are found and which one is being used for that query. You can
 sometimes force or ignore an index being used like this SELECT whatever
 FROM table USE INDEX (userID). Try the MySQL manual for more options. But
 do use the EXPLAIN statement to have a close look on the use of indexes
 and the use of sorting methods. Because both are important. Having a good
 index, but a slow sorting method won't get you good results.

 I hope this is a good short hint on using indexes.

Yes. It is.

 But becoming a master does not come over night. Try the website
 www.mysqlperformanceblog.com for more good solid tips on these topics.

Good link. Thanks.



 Aschwin Wesselius




-- 
Regards,
Shelley


[PHP] Best practices for using MySQL index

2008-04-29 Thread Shelley
Hi all,

I am currently responsible for a subscription module and need to design the
DB tables and write code.

I have described my table design and queries in the post:
http://phparch.cn/index.php/mysql/38-MySQL-configuration/152-best-practices-for-using-mysql-index

The problem is, in a short time the table will hold millions of records.
So the query and index optimization is very important.

Any suggestion will be greatly appreciated.

-- 
Regards,
Shelley


Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Shelley
You're the first fooled. I really pity what you said. :-(

It's 10:04 am, April 1st, China.

On Tue, Apr 1, 2008 at 9:21 AM, Robert Cummings [EMAIL PROTECTED]
wrote:


 On Mon, 2008-03-31 at 21:08 -0400, Robert Cummings wrote:
  On Tue, 2008-04-01 at 11:55 +1100, Kevin Waterson wrote:
   On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
You are pathetic. Spamming your own fake digg article to your own
 fake
news story and didn't even take the effort to host it on another
domain?
  
   BWHAHAHAHHAA
  
   Thanks, nice reaction, made my day,
   do you have more?
 
  Don't you have something better to do?
 
  If not then I pity your sad, sad life.

 I just realized... it's probably April Fool's in Australia.

 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




-- 
Regards,
Shelley ( Professional PHP Architecture || http://phparch.cn )


Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Shelley
On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
On Mon, 2008-03-31 at 21:08 -0400, Robert Cummings wrote:
On Tue, 2008-04-01 at 10:06 +0800, Shelley wrote:

:-(


On Tue, Apr 1, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED]
wrote:


 On Tue, 2008-04-01 at 10:06 +0800, Shelley wrote:
  You're the first fooled. I really pity what you said. :-(

 Sorry, it's not April 1st here... so that makes you and Kevin the
 fools... my turn to laugh... *bahahahahaahha*.

 Cheers,
 Rob.


 
  It's 10:04 am, April 1st, China.
 
  On Tue, Apr 1, 2008 at 9:21 AM, Robert Cummings [EMAIL PROTECTED]
  wrote:
 
  
   On Mon, 2008-03-31 at 21:08 -0400, Robert Cummings wrote:
On Tue, 2008-04-01 at 11:55 +1100, Kevin Waterson wrote:
 On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
  You are pathetic. Spamming your own fake digg article to your
 own
   fake
  news story and didn't even take the effort to host it on another
  domain?

 BWHAHAHAHHAA

 Thanks, nice reaction, made my day,
 do you have more?
   
Don't you have something better to do?
   
If not then I pity your sad, sad life.
  
   I just realized... it's probably April Fool's in Australia.
  
   Cheers,
   Rob.
   --

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




-- 
Regards,
Shelley


Re: [PHP] How to install PHP 5.x on Windows Server 2000 with IIS 5 and MySQL 5.x

2008-03-27 Thread Shelley
On Thu, Mar 27, 2008 at 10:44 PM, Philip Thompson [EMAIL PROTECTED]
wrote:

 On Mar 27, 2008, at 8:24 AM, [EMAIL PROTECTED] wrote:

  Hello to All,
 
  Would you mind to help as the title of mail ?
 
  Thanks !
 
  Edward.
 


 Ok, I understand that sometimes people *have* to use a certain OS, but I
 would not use IIS - Apache is your friend.


Up! Seriously up!




 As far as your question goes... have you RTFM? Here, I'll even provide you
 a link:

 http://php.net/manual/en/install.windows.php

 ~Philip


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




-- 
Regards,
Shelley


[PHP] Will the progress bar like Xupload add too much weight to the Apache server?

2008-03-20 Thread Shelley

Hi all,

Here is the Xupload progress bar link:
http://www.sibsoft.net/xupload.html

My question is:
Will the upload progress bar like that add too much weight to the Apache 
server, especially to a server with millions of visitors each day?


Thanks in advance.

--
Regards,
Shelley ( PHP Architecture: http://phparch.cn )


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



Re: [PHP] Will the progress bar like Xupload add too much weight to the Apache server?

2008-03-20 Thread Shelley
Sorry. I won't. :(

On Thu, Mar 20, 2008 at 11:01 PM, Daniel Brown [EMAIL PROTECTED] wrote:

 On Thu, Mar 20, 2008 at 2:32 AM, Shelley [EMAIL PROTECTED] wrote:
  Hi all,
 
   Here is the Xupload progress bar link:
   http://www.sibsoft.net/xupload.html
 
   My question is:
   Will the upload progress bar like that add too much weight to the
 Apache
   server, especially to a server with millions of visitors each day?

 You consistently ask irrelevant questions here.  Not only is
 Xupload not written in PHP, your question relates to Perl and Apache
 --- not at all to PHP.

Please select the correct list when asking questions.

 --
 /Daniel P. Brown
 Forensic Services, Senior Unix Engineer
 1+ (570-) 362-0283




-- 
Regards,
Shelley


Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Shelley

Nathan Nobbe wrote:

On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard [EMAIL PROTECTED] wrote:

  

That works; I'm just wondering why you went with a count on an 'ID' column
rather than COUNT(*).




ouch, it looks like im horribly wrong :O
mysql select count(*) from table;
+--+
| count(*) |
+--+
|   361724 |
+--+
1 row in set (0.90 sec)

mysql select count(id) from table;
++
| count(did) |
++
| 361724 |
++
1 row in set (4.56 sec)

-nathan

  

Here is a further test with more records:

mysql select count(*) from table1;
+--+
| count(*) |
+--+
| 20795139 |
+--+
1 row in set (1 min 8.22 sec)

mysql select count(id) from table1;
+---+
| count(id) |
+---+
|  20795139 |
+---+
1 row in set (1 min 1.45 sec)

mysql select count(1) from table1;
+--+
| count(1) |
+--+
| 20795139 |
+--+
1 row in set (56.67 sec)

count(1) wins.

--
Regards,
Shelley ( PHP Architecture: http://phparch.cn )


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



Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Shelley

Nathan Nobbe wrote:

On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard [EMAIL PROTECTED] wrote:

  

That works; I'm just wondering why you went with a count on an 'ID' column
rather than COUNT(*).




ouch, it looks like im horribly wrong :O
mysql select count(*) from table;
+--+
| count(*) |
+--+
|   361724 |
+--+
1 row in set (0.90 sec)

mysql select count(id) from table;
++
| count(did) |
++
| 361724 |
++
1 row in set (4.56 sec)

-nathan

  

Hi nanthan,
Thanks.
This is my test results:
mysql select count(*) from article;
+--+
| count(*) |
+--+
|  1065868 |
+--+
1 row in set (1.30 sec)

mysql select count(1) from article;
+--+
| count(1) |
+--+
|  1065868 |
+--+
1 row in set (0.82 sec)

mysql select count(*) from article;
+--+
| count(*) |
+--+
|  1065868 |
+--+
1 row in set (0.81 sec)

mysql select count(id) from article;
+---+
| count(id) |
+---+
|   1065868 |
+---+
1 row in set (0.85 sec)

mysql select count(1) from article;
+--+
| count(1) |
+--+
|  1065868 |
+--+
1 row in set (0.82 sec)

mysql select count(*) from article;
+--+
| count(*) |
+--+
|  1065868 |
+--+
1 row in set (0.81 sec)

mysql select count(id) from article;
+---+
| count(id) |
+---+
|   1065868 |
+---+
1 row in set (0.85 sec)

mysql select count(1) from article;
+--+
| count(1) |
+--+
|  1065868 |
+--+
1 row in set (0.81 sec)

Seems that count(1) is always not a bad answer.
So, I determined to choose count(1).

Thank you all for your replies.

--
Regards,
Shelley ( PHP Architecture: http://phparch.cn )


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



Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Shelley

Nathan Nobbe wrote:

On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard [EMAIL PROTECTED] wrote:

  

That works; I'm just wondering why you went with a count on an 'ID' column
rather than COUNT(*).




ouch, it looks like im horribly wrong :O
mysql select count(*) from table;
+--+
| count(*) |
+--+
|   361724 |
+--+
1 row in set (0.90 sec)

mysql select count(id) from table;
++
| count(did) |
++
| 361724 |
++
1 row in set (4.56 sec)

-nathan

  

The archive of my results was saved here:
http://phparch.cn/index.php/mysql/35-MySQL-programming/126-fastest-way-to-get-total-records-from-a-table

--
Regards,
Shelley ( PHP Architecture: http://phparch.cn )


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



[PHP] Fastest way to get table records' number

2008-03-18 Thread Shelley

Hi all,

What do you think is the FASTEST sql to get the total number of a table 
with millions of records?


--
Regards,
Shelley (http://phparch.cn)

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



Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Shelley

Thijs Lensselink 写道:

Quoting Mr Webber [EMAIL PROTECTED]:


I haven't' tried this yet ... so I would appreciate your feedback.

-Original Message-
From: Thijs Lensselink [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2008 4:28 AM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP  Ajax progress bar

Quoting Shelley [EMAIL PROTECTED]:


Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)

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


You can try searching the archives. Rasmus had an example a long time 
ago.

Although it requires APC to be installed. Maybe it's interesting.

Found it:
Example : http://progphp.com/upload.php
Source : http://progphp.com/upload.phps

--


Pls don't top post.

If you want to know if it works. Go ahead!
Copy paste the code and give it a try.



I don't think it works.

I tried.
The screen always said 0%, 0 of 0 byte until the file is uploaded.
Is that what you mean progress bar?

--
Regards,
Shelley (http://phparch.cn)

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



[PHP] PHP Ajax progress bar

2008-03-11 Thread Shelley

Hi all,

I'm searching some file upload progress bar code.
But no good result was found. :(
So is there anybody please be kind enough to show some code here?

Great thanks.

--
Regard,
Shelley (http://phparch.cn)

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



[PHP] RewriteRule help

2008-03-01 Thread Shelley

Hi all,

Anybody knows what apache RewriteRule to use if  I want url:
http://www.aaa.comm/user//
be rewritten as:
http://www.aaa.comm/user/index.php//

It is not a php question. But now Im not in apache list and it's a 
little hurry.


Any help, thank you very much.

--
Cheers,
Shelley

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



Re: [PHP] simple command help

2008-03-01 Thread Shelley

Daniel Brown wrote:

On Fri, Feb 29, 2008 at 5:22 AM, Shelley [EMAIL PROTECTED] wrote:
  

Hi all,

 What's the command to use if I want to remove all the directories and
 files except 'a.gz' under a directory?



There isn't a command in PHP to do this.  You'd have to write a
script to handle that processing.

If you're looking for general Unix/Linux commands, you're in the
wrong place, but here's one possible way to do it:

sudo chattr +i /path/to/a.gz
rm -fR /path
sudo chattr -i /path/to/a.gz

If you have sudo access (or straight root access, in which case
you can su - to root and skip the 'sudo' part of the command), that
will set the file attribute to immutable, which means no one -
including root or the system itself - can modify or delete that file
unless they have the CAP_LINUX_IMMUTABLE capability (such as root) and
issue the 'chattr -i filename' command.

  

That's what I wanted. Thanks.
I have full priviledge of the directory.

--
Cheers,
Shelley

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



[PHP] simple command help

2008-02-29 Thread Shelley

Hi all,

What's the command to use if I want to remove all the directories and 
files except 'a.gz' under a directory?


Thanks in advance.

Regards,
Shelley

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



[PHP] reverse string without strrev();

2008-02-28 Thread Shelley

Hi all,

What do you think is the best way to display string 'abcdef' as 'fedcba'?

Any ideas appreciated.

Thanks in advance.


--
Regards,
Shelley

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



Re: [PHP] Choose Your Common Design Patterns

2008-02-28 Thread Shelley

Wolf wrote:

skylark wrote:

Hi guys,

Relex a little on the topic What design patterns do you usually use.
Choose the ones you use often at: http:// phparch [dot] cn
And this will answer that question, isn't it?

Those options are the ones that we often use. If there is any option 
needed

to be replaced, just let me know.
You can choose 2, 3, 4, ... or even more :-)
And you can check the result if interested.

Ill report the results regularly if needed. :)


You are really hooked on Design Patterns aren't you?



:( Yes, a little overhooked.

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



[PHP] ZCE guidance needed

2008-02-27 Thread Shelley
Greetings all,

Im just need some guidance of how to prepare for the ZCE exam.

Is there somebody passed the exam? Any help infor is highly appreciated.

Thanks in advance.

-- 
Regards,
Shelley


[PHP] ZCE guidance needed

2008-02-27 Thread Shelley
Greetings all,

Im just need some guidance of how to prepare for the ZCE exam.

Is there somebody passed the exam? Any help infor is highly appreciated.

Thanks in advance.

-- 
Regards,
Shelley


Re: [PHP] ZCE guidance needed

2008-02-27 Thread Shelley

Nathan Nobbe wrote:
On Wed, Feb 27, 2008 at 10:31 PM, Shelley [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Greetings all,

Im just need some guidance of how to prepare for the ZCE exam.

Is there somebody passed the exam? Any help infor is highly
appreciated.


i read the php architect book and paid for 5 of their sample tests.
http://www.phparch.com/c/books/id/0973862149
some of the questions on the test are really obscure, not really like
about the language as much as the set of functions that ship w/ it.
they try and trip you up, like asking very specific questions about
some of the functions and so forth.
good news is a low score still makes the passing grade ;)

-nathan


Really? What I know is there are 70 questions.
But Im interested in how many right answers you should make to pass the 
exam.


--
Cheers,
Shelley

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



Re: [PHP] ZCE guidance needed

2008-02-27 Thread Shelley

Nathan Nobbe wrote:
On Wed, Feb 27, 2008 at 11:45 PM, Shelley [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Really? What I know is there are 70 questions.
But Im interested in how many right answers you should make to
pass the exam. :-)


well im sure you can search the web just as good as i can ;)
but anyway, i think its like a 60% to pass (NOTE: pulling from rusty 
memory)


-nathan
Then it's great. What I imagined was that you should make something like 
90%.


I have thought then it should have to be hard to pass.

--
Cheers,
Shelley

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



Re: [PHP] ZCE guidance needed

2008-02-27 Thread Shelley

Nathan Nobbe wrote:
On Wed, Feb 27, 2008 at 11:54 PM, Shelley [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Nathan Nobbe wrote:
 On Wed, Feb 27, 2008 at 11:45 PM, Shelley [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 Really? What I know is there are 70 questions.
 But Im interested in how many right answers you should make to
 pass the exam. :-)


 well im sure you can search the web just as good as i can ;)
 but anyway, i think its like a 60% to pass (NOTE: pulling from rusty
 memory)

 -nathan
Then it's great. What I imagined was that you should make
something like
90%.

I have thought then it should have to be hard to pass.


trust me, with the level of obscurity in  a number of those questions, 
youll be cursing the bastard that wrote it just as soon as you start 
taking it.
after all that studying, only to get to something that requires vast 
knowledge of a number php functions, i mean really, everyone under the 
sun refers to the functions w/ php.net http://php.net beside them 
while they code right?  or maybe i just havent committed all of them 
to memory like everyone else ;)
they hit you over the head w/ various different array sorting methods 
and thats just the beginning.  i thought the passing req would be a 
cinch until i started taking the exam.  then after pushing through my 
frustration, i was wondering if i would actually make it.  seriously 
some of them are hit or miss, theres no way to verify it there on the 
spot until you hit the grade button.


-nathan

You are definitely right. :-)
It's said that you will never use some of those functions all your life!

--
Cheers,
Shelley

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



RE: [PHP] A stupid question?

2008-01-20 Thread Shelley Shyan



Regards,
Shelley

-Original Message-
From: Eric Butera [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 19, 2008 12:03 AM
To: Jochem Maas
Cc: php-general@lists.php.net
Subject: Re: [PHP] A stupid question?

On Jan 18, 2008 10:49 AM, Jochem Maas [EMAIL PROTECTED] wrote:

 Eric Butera schreef:
  On Jan 18, 2008 9:31 AM, Jochem Maas [EMAIL PROTECTED] wrote:
  Eric Butera schreef:
  On Jan 17, 2008 9:54 PM, Shelley Shyan [EMAIL PROTECTED] wrote:
  Hi all,
 
  Maybe this is a somehow stupid question.
 
  I want to know how php could know whether session_start() has been 
  called, that is, whether session has been started.
 
  I Googled, but got little help.
 
  Thank you for help!
  Any tip is greatly appreciated.
 
  Regards,
  Shelley
 
 
 
  One other thing is you won't be able to start a session if headers
  have been sent.  It is a good idea to use output buffering to help
  aid with this.
  no it's not a good idea to use output bufferin to 'help aid' this.
  instead write code that is logically structured so that the
  initialization of your pages/app/scripts occurs BEFORE any output is 
  generated.
 
  to avoid spurious output of whitespace avoid including the trailing
  '?' is included php[-only] files. (and ignore whatever Tedd says
  on the subject ;-)
 
  If headers have been sent you'll get a nasty warning.
  if (headers_sent()) {
  echo oops!;
  }
 
  use code to avoid warnings.
 
 
  It can be a php.ini setting or you can simply call ob_start() on
  the first line of your script.
 
 
 
  I agree with you that it is ideal to do what you're saying but it
  isn't always 100% practical.  Sometimes the stuff we work on is
  handed down and in our purist world we'd like to change it, but
  can't.  So I think that you should recommend best practices for
  future creations, but blindly shooting down all alternatives isn't
  right.  My solution would get the job done rather than the OP
  refactoring the pages and not getting paid for it.  It would work
  and over time things could be tidied up on future revisions over time.

 still, it's not a good idea because that implies a concept that you
 are wanting to apply. you don't want to use output buffering if you can help 
 it.

 output buffering to overcome output being created before headers are
 [conditionally] sent in badly written code is a viable hack given
 certain budgetary and/or time constraints.

 what I'm saying is it's a viable solution to a immediate problem for
 which you don't have the time/money to fix properly - it's more than
 fine to enlighted the OP as such, I just don't think calling it a good
 idea is the right thing to do - it gives the impression that your
 giving it the seal-of-good-coding-practice-approval, and the OP might
 just take your word for it.

  Also, if you do what you've said and created your logic 100%
  perfectly, there should never be any use for headers_sent(), right?
  Headers shouldn't have been sent until you've specifically sent them.

 true, and they are not - but if you want to be sure to avoid cruft in
 the output and/or shit in the logs you program defensively for those
 occasions where somebody [else?] makes a mistake of some kind.


Fair enough, you win!  :)

Thank you all. Thank you very much. :-)

--
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] Word Wrap on highlight_file

2008-01-20 Thread Shelley Shyan

One solution I can think of is:
  $showCode = highlight_file($fileWithPath, true);
  echo str_replace('br /', br /\n, $showCode);

It may not be the best one. But it's not recommanded to use
   echo wordwrap($showCode, 70);
Because you may break br / into something like
br
/

Regards,
Shelley

-Original Message-
From: Tom Chubb [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 16, 2008 9:02 PM
To: PHP General List
Subject: [PHP] Word Wrap on highlight_file

Can anyone tell me how to wrap the results of highlight_file so it doesn't mess 
up the size of my table div?
I tried the following and doesn't work!


if ($ext == phps) {
   $showcode = highlight_file($pathtoscripts . $_GET['file']);
   echo wordwrap($showcode, 70);
} else {
   echo Nice try, but you are not authorised to view the source of files with 
a $ext extension! ;)\n; }

Thanks,

Tom

--
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] A stupid question?

2008-01-17 Thread Shelley Shyan
Hi all,

Maybe this is a somehow stupid question.

I want to know how php could know whether session_start() has been called, that 
is, whether session has been started.

I Googled, but got little help.

Thank you for help!
Any tip is greatly appreciated.

Regards,
Shelley



RE: [PHP] MSSQL

2008-01-08 Thread Shelley Shyan
Did you check that you have enabled MSSQL extension?
That is,
On XP system, you should have this line 'extension=php_msql.dll' in php.ini 
file and the leading ';' be removed.
On Ubuntu, you should also install mssql extension, which is a little more 
complex.

There should be no problem once you have managed mssql.
It talks to sql server 2005/2000 quite well.


Regards,
Shelley

-Original Message-
From: Alexis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 6:07 AM
To: php-general@lists.php.net
Subject: [PHP] MSSQL

Hi,

I am pulling my hair out trying to set up PHP to connect to SQL Server.

The office server, running Server 2003, has SQL Server on it.

One of my computers is running XP with Apache 2.2 and  PHP 5.2.3.
Another one has Ubuntu Gusty Gibbon, Apache 2.2 and PHP 5.2.3

Ideally I would like to get the Linux box to connect to the main server, but I 
can't even get it to recognise the server, let alone create a MSSQL link, so 
I'll start off with the windows box.

I have read all the various comments in http://ca3.php.net/mssql and have tried 
all the relevant ones but still no joy.
It just will not connect.


I have tried the ADO approach but get the following error:

Fatal error: Uncaught exception 'com_exception' with message 'bSource:/b 
Microsoft OLE DB Provider for SQL Serverbr/bDescription:/b 
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access 
denied.' in
D:\Apache2.2\htdocs\includes\mssqlinfo.inc:9 Stack trace: #0
D:\Apache2.2\htdocs\includes\mssqlinfo.inc(9):
com-Open('Provider=SQLOLE...') #1 D:\Apache2.2\htdocs\mssql.php(3):
include('D:\Apache2.2\ht...') #2 {main} thrown in 
D:\Apache2.2\htdocs\includes\mssqlinfo.inc on line 9


Does anyone have a definite and easy to understand set of instructions as to 
how to get PHP to talk to SQL Server please?

Cheers
Alexis

--
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] Which file called the function?

2007-12-20 Thread Shelley Shyan
Richard is right.

If you want to get where __FILE__ is exactly in, __FILE__ is the option.
Else, use $_SERVER['PHP_SELF']. (And this should be what you expected)


Regards,
Shelley


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Boget
Sent: Thursday, December 20, 2007 10:37 PM
To: PHP General
Subject: [PHP] Which file called the function?

Let's say I have the following 3 files

global.php
?
  function myFunc() { echo __FILE__; }
?

one.php
?
  include( 'global.php' );
  echo 'You are in file: ';
  myFunc();
?

two.php
?
  include( 'global.php' );
  echo 'You are in file: ';
  myFunc();
?

In each case, what is echoed out for __FILE__ is global.php.  Apart from 
analyzing the debug_backtrace array, is there any way that myFunc() would 
display one.php and two.php respectively?

thnx,
Christoph

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



[PHP] convert hex message to ascii msg, How?

2007-12-06 Thread Shelley Shyan
Hi all,

How could I convert a hex msg to ascii msg?
Is there a php function or sth?

Thanks.

Regards,
Shelley



[PHP] howto get .tar.gz content's filenames

2007-12-03 Thread Shelley Shyan
Hi all,

It may not be a php question, but I want to get the filename lists that a 
.tar.gz file contains and give it to an array.
How can I manage that?

Thank you very much for your consideration.

Regards,
Shelley

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

RE: [PHP] Input field

2007-11-13 Thread Shelley Shyan
1.Probably that's because the function mysql_real_escape_string() is turned on.
  You can check that in your php.ini configuration.

2. If you want to display them as you wanted, you can use stripcslashes() on 
your output contents.

3. Maybe phpmyadmin automatically stripped that out.

And

1. Any user input should be escaped before they went to database.
You can use htmlentities(), addslashes(), strip_tags(), etc...

2. You can encapsule those functions in a function, and use it for each user 
input.

3. No sure. Probably they do.
Anybody any ideas?


Regards,
Shelley

-Original Message-
From: Ronald Wiplinger [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 14, 2007 9:52 AM
To: PHP General list
Subject: [PHP] Input field

I added just into a input field

19 enclosure

which was displayed from the database as:

19\ enclosure


That gives me some questions:
1. where the protecting slash comes from?
2. how can I get it away when I want to display that field?
3. The slash is not to see in phpmyadmin, why not?

and:

1. what else do I need to take care with input fields and if they are going to 
a mysql database?
2. can I use a function for that kind of protection for each field - or even 
better just flag it in php to protect?
3. is HTTP_REFERER  session-id enough to make sure that no variables can be 
injected?

bye

Ronald

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

2007-11-12 Thread Shelley Shyan
It has, but you should install them manually...

Try help- Software updates - Find and install...


Regards,
Shelley

-Original Message-
From: Peter Ford [mailto:[EMAIL PROTECTED]
Sent: Monday, November 12, 2007 5:24 PM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP ide?

I've tried to use Eclipse PDT, and it's just generally horrible - the 
All-in-one has no Subversion support and no SSH support for deploying to the 
server properly. The debugging support worked well on the windows version, but 
I couldn't get it to work from Linux (with the same web server...) And the look 
and feel is so crowded and over-complicated.
Yuck.

Quanta+ can do this (mostly) right, although I have had some trouble
Quanta+ with
debugging.



[EMAIL PROTECTED] wrote:
 Andrew Peterson wrote:
 I'll try installed it again with none of the other nonsense.

 PDT has the so called ALL-IN-ONE thing, however I don't really trust it.

 I would suggest the following -

 a) Be sure you have the latest Java.

 b) Get the normal, traditional Eclipse.

 c) Update it (Help  Software updates  Find and install  Search for
 updates of the currently installed features). Repeat if needed.

 d) Go to Help  Software updates  Find and install  Search for new
 features to install and add the PDT site
 (http://download.eclipse.org/tools/pdt/updates/). Check the PDT site
 and the Europa Discovery Site and click Finish (I haven't done it for
 a while, so could be something has changed there). When you get the
 result, the Update manager might complain that PDT depends on something.
 In this case unfold the Europa Discovery Site result (by clicking the
 +, if you do not unfold it the next step might not work) and click the
 Select Required button. This should select the minimum you need. Let
 me know if you run into a trouble and I'll try to send you reproducible steps.

 And again, Eclipse is Java, so you need a decent machine.

 Iv

--
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 PDF files with more than one font?

2007-11-09 Thread Shelley Shyan
I often see that it uses .afm files, can it use .ttf format files?

If yes, how to?
Thank you very much.


Regards,
Shelley

-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2007 3:38 PM
To: Shelley Shyan; php-general@lists.php.net
Subject: RE: [PHP] Creating PDF files with more than one font?

 I want to create a pdf file with several fonts. Which tool is better,
 pdflib, ezpdf, ?
 Any suggestions?

I can't say which is better, but I use ezpdf and have been able to do 
multi-font stuff so that I can match corporate styles.

George in Edinburgh


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

RE: [PHP] PHP ide?

2007-11-08 Thread Shelley Shyan
Zend Studio or
PHPEd


Regards,
Shelley

-Original Message-
From: Hulf [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 08, 2007 6:02 PM
To: php-general@lists.php.net
Subject: [PHP] PHP ide?

Just wondering if anyone uses an IDE and if so what ones?

Ta,

H.

--
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] Creating PDF files with more than one font?

2007-11-08 Thread Shelley Shyan
Hi all,

I want to create a pdf file with several fonts. Which tool is better, pdflib, 
ezpdf, ?
Any suggestions?

Regards,
Shelley

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