RE: [PHP] A stupid question?

2008-01-20 Thread Shelley Shyan
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

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,

[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

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:

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

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.

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

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

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

[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