php-general Digest 6 Jun 2007 10:58:30 -0000 Issue 4832
Topics (messages 256140 through 256161):
Re: works in 4.4.2 - breaks in 5.2.1
256140 by: Richard Lynch
Re: returning the index number part2
256141 by: Richard Lynch
Re: indexes and arrays
256142 by: Richard Lynch
Re: Making thumbs same size
256143 by: Richard Lynch
Which simple XML functions to use?
256144 by: Marten Lehmann
256145 by: Jochem Maas
php_ldap.dll and PHP 4.4.7
256146 by: Mike Walsh
Re: Draw function diagram
256147 by: Khorosh Irani
explode string at new line
256148 by: Davi
256149 by: heavyccasey.gmail.com
256150 by: Davi
256151 by: Chris
256152 by: Davi
256154 by: Jim Lucas
256156 by: Chris
256158 by: Paul Novitski
export to csv
256153 by: Haig (Home)
256155 by: Jim Lucas
Re: undefined GD function [SOLVED]
256157 by: C.R.Vegelin
second/custom PEAR/PECL installation. possible? how?
256159 by: Jochem Maas
checking the aspect ratio of an images
256160 by: blueboy
Re: Strings
256161 by: itoctopus
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Does the xmlString print out?
Cuz my first guess is they turned off RAW_POST_DATA in the upgrade, so
it's just blank...
On Tue, June 5, 2007 11:34 am, Jim Berkey wrote:
> I'm familiar with actionscript, but pretty new to php . . .I have a
> guestbook script that worked fine until my host upgraded to php 5.2.1
> - can anyone tell me what part of my if statement or variable is
> breaking in 5.2.1? I send the new data with Flash using
> xml.sendAndLoad, to the xml file via standalone php file shown below.
> tia,
> jimbo
>
> <?php
> $file = fopen("guestbook.xml", "w+") or die("Can't open XML file");
> $xmlString = $HTTP_RAW_POST_DATA;
> if(!fwrite($file, $xmlString)){
> print "Error writing to XML-file";
> }
> print $xmlString."\n\n";
> fclose($file);
>
> exit;
> ?>
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
This will tell you how:
<?php
var_dump($_FILES);
?>
On Tue, June 5, 2007 11:16 am, blueboy wrote:
>
> if I have an array of 3 images
>
> <table class="signup_table">
> <tr>
> <td> 1.</td>
> <td><input name="userfile[]" type="file"></td>
> </tr>
> <tr>
> <td> 2.</td>
> <td><input name="userfile[]" type="file"></td>
> </tr>
> <tr>
> <td>3.</td>
> <td><input name="userfile[]" type="file">
> </td>
> </tr>
> </table
>
> How do I access the filename? Like this?
>
> echo $fileName1 = $_FILES['userfile']['name'][0];
> echo $fileName2 = $_FILES['userfile']['name'][1];
> echo $fileName3 = $_FILES['userfile']['name'][2];
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
On Tue, June 5, 2007 10:01 am, blueboy wrote:
> I have an array of facilities, how do I define them all in one go
> so I do
> not get the undefined index error?
>
>
http://php.net/isset
You also could make an array of checkboxes instead of hand-typing all
that...
$facilities = array(5=>'Credit Cards Accepted', 6=>'Towels',
7=>'Luggage Storage');
foreach($facilities as $f_id => $f_name){
$checked = isset($_POST['facilitiies'][$f_id]) ? 'checked="checked"
: '';
?><input name="facilities[<?php echo $f_id?>]" <?php echo $checked?>
/><?php
}
> input name="facilities[5] " type="checkbox" id="facilities[5] "
> value="Credit Cards Accepted" <?php if ($_POST['facilities'][5]!='') {
> echo
> 'checked="checked" '; }?>>
> Credit Cards Accepted </td>
> <td><input name="facilities[6] " type="checkbox" id="facilities[6]
> "
> value="Towels" <?php if ($_POST['facilities'][6]!='') { echo
> 'checked="checked" '; }?>>
> Towels </td>
> <td><input name="facilities[7] " type="checkbox" id="facilities[7]
> "
> value="Luggage Storage" <?php if ($_POST['facilities'][7]!='') { echo
> 'checked="checked" '; }?>>
> Luggage Storage </td>
> <td><input name="facilities[8] " type="checkbox" id="facilities[8]
> "
> value="Telephone/Fax Facilities" <?php if
> ($_POST['facilities'][8]!='') {
> echo 'checked="checked" '; }?>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
On Mon, June 4, 2007 1:44 am, Humani Power wrote:
> Hey hi!!.
> //get dimensions of the thumbnail
>
> $thumb_width=$width*0.10;
> $thumb_height=$height*.10;
It's really up to YOU to choose the thumbnail constant size
and to decide what to do about the aspect ratio
You could crop or fill with black, or transparent or...
But making the thumbnail be 1/10th the original is your problem.
Here is one possibility:
$thumb_width = 50;
$thumb_height = ($height/$width) * 50;
You now have an image 50 wide and proportional height to the original.
Here is another:
$thumb_height = 50;
$thumb_width = ($width/$height) * 50;
That one is 50 tall and proptional width to original.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
Hello,
mostly dealing with XML through the Perl-module XML::Simple I'm looking
for a simple solution within PHP. PHP4 and PHP5 is available but the DOM
XML-stuff seems to be bloated.
What I'm looking is a function that receives an XML-document as a
string, which parses the document which all its tags and attributes and
which then returns an associative array.
Is there anything available which comes close to my expectations?
Regards
Marten
--- End Message ---
--- Begin Message ---
Marten Lehmann wrote:
> Hello,
>
> mostly dealing with XML through the Perl-module XML::Simple I'm looking
> for a simple solution within PHP. PHP4 and PHP5 is available but the DOM
> XML-stuff seems to be bloated.
>
> What I'm looking is a function that receives an XML-document as a
> string, which parses the document which all its tags and attributes and
> which then returns an associative array.
>
> Is there anything available which comes close to my expectations?
simpleXML, which although it actually returns objects allows array like
access by virtue of the fact that the objects implement the necessary array
overload
interfaces available in SPL.
some usage examples:
http://lerdorf.com/php/flickr_api.phps
http://talks.php.net/show/torkey06/16
http://www.devshed.com/c/a/PHP/Loading-XML-Strings-with-simpleXML-in-PHP-5/1/
>
> Regards
> Marten
>
--- End Message ---
--- Begin Message ---
I have upgraded my development area to PHP 4.4.7 and I can no longer use the
LDAP extension. I only have 4-5 extensions enabled (GD2, PDF, ZIP, IMAP,
LDAP) but I get the following error from LDAP:
PHP Warning: Unknown(): Unable to load dynamic library
'./extensions\php_ldap.dll' - The specified module could not be found. in
Unknown on line 0
All of the other extensions are loaded just fine. Anyone know what is
causing this? The extension is where it is supposed to be.
Mike
--
Mike Walsh - mike underscore walsh at mindspring dot com
--- End Message ---
--- Begin Message ---
Hi
I worked alittle with gd
It is my code for y(x)=sin(x)+cos(x):
function Graph($rangeLow, $rangeHigh, $step)
{
$img = ImageCreate($this->width, $this->height);
$background_color = imagecolorallocate($img, 0, 0, 0);
$white = ImageColorAllocate($img, 255, 255, 255);
imageline($img, $this->width/2, 0,$this->width/2 , $this->height,
$white);
imageline($img, 0, $this->height/2, $this->width, $this->height/2,
$white);
for ($x=rangeLow;$x<=$rangeHigh,$x+=$step)
{
y=sin(x)*cos(x);//custom function
//i dont know what should write here but i know that I should
write imageline() function
}
header("Content-type: image/jpeg");
ImageJpeg($img);
imagedestroy($img);
}
could anyone write a simple code that complete this code
I want to learn it
I dont want to use any software package
Thanks
On 6/6/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Tue, June 5, 2007 4:36 pm, Khorosh Irani wrote:
> Hello
> I have a function like (y(x)=sin(x)) that i convert it to post fix and
> then
> execute it.means that i coud get y for each x value
> now I have a simple question
> I want to draw diagram of function.
> how I should do this
> I dont work with gd and also i donot now how I should done this.but i
> think
> that i should get a range for x and get y for each x but i dont know
> how I
> shold draw diagram after this
Start working with GD would be my first answer...
If you can't use GD, then I would guess that somewhere "out there"
there may exist a software package that you can pass "sin(x)" to it,
and it will create a graph for you... No idea what it's called,
though...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
Hi all.
I've the fowlling string:
$_POST["my_text"]="hi...\nthis is my multi-line\ntext";
Can I use explode to have something like:
$str[0]="hi...";
$str[1]="this is my multi-line";
$str[2]="text";
$str=explode($_POST["my_text"],'\n');
TIA and sorry the *very* poor english.
--
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
--------------------------------------------------------
Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
Please don't do top-posting, put your reply below the following line.
--------------------------------------------------------
pgpTZkG4gXPiO.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
That's exactly correct. Except I /think/ you should use "\n" instead of '\n'.
On 6/5/07, Davi <[EMAIL PROTECTED]> wrote:
Hi all.
I've the fowlling string:
$_POST["my_text"]="hi...\nthis is my multi-line\ntext";
Can I use explode to have something like:
$str[0]="hi...";
$str[1]="this is my multi-line";
$str[2]="text";
$str=explode($_POST["my_text"],'\n');
TIA and sorry the *very* poor english.
--
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
--------------------------------------------------------
Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
Please don't do top-posting, put your reply below the following line.
--------------------------------------------------------
--- End Message ---
--- Begin Message ---
Em Terça 05 Junho 2007 23:52, [EMAIL PROTECTED] escreveu:
> That's exactly correct. Except I /think/ you should use "\n" instead of
> '\n'.
>
Thank you for the reply... =)
I'll check this... BTW:
array explode ( string $delimiter, string $string [, int $limit] )
So, I was wrong...
The right way, probaly, is:
$str=explode("\n",$_POST["my_text"]);
Thank you very much.
--
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
--------------------------------------------------------
Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
Please don't do top-posting, put your reply below the following line.
--------------------------------------------------------
pgprJuY8H59S4.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Davi wrote:
Em Terça 05 Junho 2007 23:52, [EMAIL PROTECTED] escreveu:
That's exactly correct. Except I /think/ you should use "\n" instead of
'\n'.
Thank you for the reply... =)
I'll check this... BTW:
array explode ( string $delimiter, string $string [, int $limit] )
So, I was wrong...
The right way, probaly, is:
$str=explode("\n",$_POST["my_text"]);
If it's coming from a <textarea> you'll want to use "\r\n" because a
textarea uses both a carriage return (\r) and newline (\n) to separate.
Otherwise each element of the array will have a \r on the end which may
end up causing you some issues later on.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Em Quarta 06 Junho 2007 00:18, Chris escreveu:
> Davi wrote:
> > Em Terça 05 Junho 2007 23:52, [EMAIL PROTECTED] escreveu:
> >> That's exactly correct. Except I /think/ you should use "\n" instead of
> >> '\n'.
> >
> > So, I was wrong...
> > The right way, probaly, is:
> >
> > $str=explode("\n",$_POST["my_text"]);
>
> If it's coming from a <textarea> you'll want to use "\r\n" because a
> textarea uses both a carriage return (\r) and newline (\n) to separate.
>
> Otherwise each element of the array will have a \r on the end which may
> end up causing you some issues later on.
>
Yes. Is a textarea. Thank you very much! =D
--
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
--------------------------------------------------------
Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
Please don't do top-posting, put your reply below the following line.
--------------------------------------------------------
pgpmrQmqnOQhF.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Chris wrote:
Davi wrote:
Em Terça 05 Junho 2007 23:52, [EMAIL PROTECTED] escreveu:
That's exactly correct. Except I /think/ you should use "\n" instead of
'\n'.
Thank you for the reply... =)
I'll check this... BTW:
array explode ( string $delimiter, string $string [, int $limit] )
So, I was wrong...
The right way, probaly, is:
$str=explode("\n",$_POST["my_text"]);
If it's coming from a <textarea> you'll want to use "\r\n" because a
textarea uses both a carriage return (\r) and newline (\n) to separate.
Otherwise each element of the array will have a \r on the end which may
end up causing you some issues later on.
I was wondering about this, I seem to recall that window/mac/*nix all do
it differently.
With a little Google'ing I came across this.
http://www.sitepoint.com/forums/printthread.php?t=54074
This was written in 2002, so I am not sure about the Mac = "\r".
Since they are using *nix now, it could be "\n" not sure
But the article had this to say:
Line breaks
People want to know how they can retain textarea line breaks in HTML.
You should store text in the database in its original format (e.g. with
just newlines) and then use nl2br() to convert newlines to HTML <br />
tags on display (thanks to the people here for teaching me that :)).
That's all good, except for one problem with nl2br(): it doesn't seem to
convert \r newlines (edit: this has now been fixed in PHP 4.2.0).
Windows uses \r\n newlines; *nix uses \n; Mac uses \r.
nl2br() works correctly on text from Windows/*nix because they contain
\n. However, if you get text from a Mac, nl2br() will not convert its
newlines (again, fixed in PHP 4.2.0). To remedy this, I use the
following bit of code to convert \r\n or \r to \n before inserting it
into the database. It won't hurt anything and ensures that nl2br() will
work on the \n only newlines on display. Also, it has the side effect of
saving 1 byte in the database per newline from Windows (by storing only
\n instead of \r\n). :)
PHP Code:
$txt = preg_replace('/\r\n|\r/', "\n", $txt);
Hope this helps
--- End Message ---
--- Begin Message ---
Jim Lucas wrote:
Chris wrote:
Davi wrote:
Em Terça 05 Junho 2007 23:52, [EMAIL PROTECTED] escreveu:
That's exactly correct. Except I /think/ you should use "\n" instead of
'\n'.
Thank you for the reply... =)
I'll check this... BTW:
array explode ( string $delimiter, string $string [, int $limit] )
So, I was wrong...
The right way, probaly, is:
$str=explode("\n",$_POST["my_text"]);
If it's coming from a <textarea> you'll want to use "\r\n" because a
textarea uses both a carriage return (\r) and newline (\n) to separate.
Otherwise each element of the array will have a \r on the end which
may end up causing you some issues later on.
I was wondering about this, I seem to recall that window/mac/*nix all do
it differently.
With a little Google'ing I came across this.
http://www.sitepoint.com/forums/printthread.php?t=54074
This was written in 2002, so I am not sure about the Mac = "\r".
Since they are using *nix now, it could be "\n" not sure
But the article had this to say:
Line breaks
People want to know how they can retain textarea line breaks in HTML.
You should store text in the database in its original format (e.g. with
just newlines) and then use nl2br() to convert newlines to HTML <br />
tags on display (thanks to the people here for teaching me that :)).
That's all good, except for one problem with nl2br(): it doesn't seem to
convert \r newlines (edit: this has now been fixed in PHP 4.2.0).
Windows uses \r\n newlines; *nix uses \n; Mac uses \r.
nl2br() works correctly on text from Windows/*nix because they contain
\n. However, if you get text from a Mac, nl2br() will not convert its
newlines (again, fixed in PHP 4.2.0). To remedy this, I use the
following bit of code to convert \r\n or \r to \n before inserting it
into the database. It won't hurt anything and ensures that nl2br() will
work on the \n only newlines on display. Also, it has the side effect of
saving 1 byte in the database per newline from Windows (by storing only
\n instead of \r\n). :)
PHP Code:
$txt = preg_replace('/\r\n|\r/', "\n", $txt);
Fair enough :)
I guess my thinking was since a textarea is a html 'standard' it would
be consistent across all browsers/systems. I guess not :)
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
At 6/5/2007 10:50 PM, Jim Lucas wrote:
Windows uses \r\n newlines; *nix uses \n; Mac uses \r.
...
PHP Code:
$txt = preg_replace('/\r\n|\r/', "\n", $txt);
Another way to write that PCRE pattern is /\r\n?/ (one carriage
return followed by zero or one linefeed).
I recall also running into \n\r although I can't recall which system uses it.
As an alternative to PCRE, we can pass arrays to PHP's replace functions, e.g.:
$txt = str_replace(array("\r\n", "\n\r", "\r"), "\n", $txt);
Regards,
Paul
__________________________
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--- End Message ---
--- Begin Message ---
Hi everyone, I have a small problem when exporting mysql into csv format.
The export works fine. The problem is, if the mysql table has a carriage
return, opening the csv file in excel will display a square box where the
carriage return is.
Displaying the table on a web page is fine.
Thanks for any help.
Haig
<?php
$csv_output = 'column1';
$csv_output .= "\015\012";
$result = mysql_query("select * from table");
while($row = mysql_fetch_array($result))
{
$csv_output .= '"'.$row[column1].'"';
$csv_output .= "\015\012";
}
header("Content-type: application/vnd.ms-excel");
header("Content-disposition: attachment; filename=" .
date("Y-m-d")."_my_report".".csv");
print $csv_output;
exit;
mysql_close();
}
--- End Message ---
--- Begin Message ---
Haig (Home) wrote:
Hi everyone, I have a small problem when exporting mysql into csv format.
The export works fine. The problem is, if the mysql table has a carriage
return, opening the csv file in excel will display a square box where the
carriage return is.
Displaying the table on a web page is fine.
Thanks for any help.
Haig
<?php
$csv_output = 'column1';
$csv_output .= "\015\012";
$result = mysql_query("select * from table");
while($row = mysql_fetch_array($result))
{
$csv_output .= '"'.$row[column1].'"';
In a more recent post, the op asked a question that is related to this,
in a way.
Here is what I think your solution would look like
$data = preg_replace("!\r\n|\n|\r!", "\r\n", $row['column1']);
$csv_output .= '"' . $data . '"';
Reason being is that Windows uses "\r\n" for line endings. More than
likely you are outputting "\n" This would cause windows to display one
of those funky boxes that you are talking about.
PS. be sure and use quotes around your array key names, otherwise you
might cause a PHP Notice on different systems.
$csv_output .= "\015\012";
}
header("Content-type: application/vnd.ms-excel");
header("Content-disposition: attachment; filename=" .
date("Y-m-d")."_my_report".".csv");
print $csv_output;
exit;
mysql_close();
}
--- End Message ---
--- Begin Message ---
Thanks for your advice,
As mentioned, I am using IIS 5.1 and ..
the problem was solved "after" restarting my machine.
BTW, IIS can also restarted with iisreset.
Regards, Cor
----- Original Message -----
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "C.R.Vegelin" <[EMAIL PROTECTED]>
Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2007 11:30 PM
Subject: Re: [PHP] undefined GD function
getimagesize is okay, because it's not really really a GD function,
even though it's lumped in there...
Did you restart Apache? (or the whole machine if you run IIS)?
On Mon, June 4, 2007 5:38 am, C.R.Vegelin wrote:
Hi All,
I am testing some GD functions, but I'm getting "undefined function"
errors.
I checked php.ini and changed
;extension=php_gd2.dll
to
extension=php_gd2.dll
The php.ini file contains: extension_dir = "c:/php/ext"
and this directory does contain php_gd2.dll (version 5.2.0.0)
I am using Windows XP, PHP 5.2.0 and IIS 5.1.
The function getimagesize($filename); is okay,
but imagecreatetruecolor($width, $height); says "undefined function".
I would appreciate some hints.
TIA, Cor
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
I have a [gentoo] server with 2 apache installations ...
the std distro apache runs with php4 which includes an installation
of PEAR and PECL.
the second apache is compiled by hand and runs with php5 (also compiled
by hand) - obviously both of these are installed somewhere other than
the default. the [custom] php5 installation does not include PEAR/PECL
(when I built/installed it I skipped that because I was worried I'd get a
conflict
with the existing PEAR/PECL install and break something).
I would like to add the APC extension to the php5 setup, normally this is
as involved as doing the following:
> pecl install apc
only in this case that would install APC in the php4 setup.
the question is how do I go about getting a second/custom PEAR/PECL setup
running
which I can use with/for the php5 setup. is this even possible? or
am I stuck with a manual download, compile and install of APC for the
php5 setup as described here for instance:
http://carroll.org.uk/archives/2006/02/02/alternative-php-cache-apc-on-debian)?
tia,
Jochem
PS - STWF is giving me no joy, everything I find assumes the pecl/pear commands
are setup and running.
PPS - sorry for the overuse of the word 'setup' :-P
--- End Message ---
--- Begin Message ---
I want to force users to insert landscape rather portrait images. I don't
want to be too pedantic about it but they do need to have an approximate 4x3
aspect ratio.
This is my code so far.
$max_height = "500"; // This is in pixels
$max_width = "500"; // This is in pixels
list($width, $height, $type, $w) =
getimagesize($_FILES['userfile']['tmp_name']);
if($width > $max_width || $height > $max_height)
{
}
--- End Message ---
--- Begin Message ---
I noticed that too :)
--
itoctopus - http://www.itoctopus.com
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote:
>> do you notice the totally weird string delimiters in your original post?
>> using either single quotes or double quotes (if you want variables named
>> inside
>> the string to be interpolated). read up on php strings here:
>>
>> http://php.net/string
>
> He's probably using MS-Word to write code... those look very similar to
> dumb-quotes. Have you notice they open with a superscript 3 and close
> with a superscript 2?
>
> Cheers,
> Rob.
> --
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting |
> | a powerful, scalable system for accessing system services |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for |
> | creating re-usable components quickly and easily. |
> `------------------------------------------------------------'
--- End Message ---