One solution I can think of is:
$showCode = highlight_file($fileWithPath, true);
echo str_replace('', "\n", $showCode);
It may not be the best one. But it's not recommanded to use
echo wordwrap($showCode, 70);
Because you may break into something like
Regards,
Shelley
-
t;
> 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,
> >>>>
> >>&
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
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 h
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: Thu
Hi all,
How could I convert a hex msg to ascii msg?
Is there a php function or sth?
Thanks.
Regards,
Shelley
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://
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
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
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
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
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 (
12 matches
Mail list logo