On Wed, 22 Jan 2003 10:21:36 -0600, Chris Boget wrote:
This is a good Q&A site:
http://www.dpawson.co.uk/xsl/sect2/sect21.html
and XSLT-list here:
http://www.dpawson.co.uk/xsl/list.html
Jeff
> Sorry for the OT post but I know many of you use the above. I subscribed
> the the PHP-XML mailing
On Thu, 23 Jan 2003 00:14:07 +0800, Jason Wong wrote:
either use PHP to parse out the entirety of
the output or make your command pipe its
output to other commands such as sed & awk
before it gets to PHP.
> w | tail +3 | awk '{print $1,$3,$5}'
Jeff
> On Thursday 23 January 2003 00:10, Greg Ch
On Tue, 28 Jan 2003 16:20:20 +0100, Maxim Maletsky wrote:
>
I use PHP classes extensively and very often use classes
within other classes.
First off, I would make sure to take advantage of inheritence
as much as possible. I have heirarchies up to 4 deep for
some of my classes depending on how m
In <[EMAIL PROTECTED]>, Samuel Ottenhoff wrote:
> It is good that you are looking into classes and functions. The
> concept you are missing is that of "returning" a result.
>
> At the end of your function mysql_query, add a line:
>
> return $result;
>
> Then, when you call that function, m
In <[EMAIL PROTECTED]>, Yasuo Ohgaki wrote:
> Daniele Baroncelli wrote:
>
>> Hello,
>>
>> I would like to restyle one big site in XML and I would like some brief
>> straight info/suggestions.
>>
>> I am definitely interested in DOM XML, but as far as I can understand,
>> the module is still ex
In <[EMAIL PROTECTED]>, Chris Boget
wrote:
Either of these should work:
$str = preg_replace("/(\[[A-Z]+\])/","\\1",$str);
$str = ereg_replace("(\[[A-Z]+\])","\\1",$str);
e.g.:
\\1",$str);
//$str = ereg_replace("(\[[A-Z]+\])",&quo
In <[EMAIL PROTECTED]>, Vikram Vaswani
wrote:
There is an undocumented function in php4.0.6 that allows you
to specify an XSLT callback function for errors. You can
then create a function to parse out the error array created
by the callback function. It actually captures not only
errors but als
Hi,
i am using sessions for a web application and was wondering whether it's
possible to set the gc_probablity to < 1%. I tried with a value of 0.25
but it appears that the gc callback function still runs at 1%. I figure
that the value is an integer and rounds up the values but if someone
can tel
In article <9c1gqf$i3j$[EMAIL PROTECTED]>, "Wade"
<[EMAIL PROTECTED]> wrote:
well, in your first IF clause, you refer to my_type without the $.
For the else clause, you are outputting HTML while still inside
the PHP block.
try one of these:
} else {
?>
Select a Value One
In article <99u746$gra$[EMAIL PROTECTED]>, "Jeff Warrington"
<[EMAIL PROTECTED]> wrote:
Never mind everybody. It turns out that I had to set the
odbc_longreadline setting to make sure that the full serialized
session data was read from the DB.
Jeff
> hello all. I
hello all. I am attempting to register two session variables that are
in fact class instances. As per instructions, the definitions for these
classes are prepended to the files being loaded so the class defs
are present when the session starts.
If I do this on the first page:
session_start(
In article <[EMAIL PROTECTED]>,
"Janet Valade" <[EMAIL PROTECTED]> wrote:
if you include a hyphen in a character class, it must be the
last entry in the range, otherwise it is interepreted as the
range separator.
[0-9+.\()-]
is what you want (probably have to escape some of the
chars above).
In article <[EMAIL PROTECTED]>, "Joe
Sheble (Wizaerd)" <[EMAIL PROTECTED]> wrote:
depending on the nature of what you are doing, one of the things
that i like about using classes is the ability to group functionality
under a larger structure, the class. Instead of having a series of
disconnected
In article <059301c08981$7859a020$[EMAIL PROTECTED]>, "Remco
Chang" <[EMAIL PROTECTED]> wrote:
You need to find the ASCII codes for these characters and
include them in the range of acceptable chars in the ereg.
something like:
[\xc0-\xff]
where this represents a range of ASCII codes in octal
In article <000a01c08960$f60d33e0$6dc94382@hp>, "Fredrik Arild Takle"
<[EMAIL PROTECTED]> wrote:
$date = "20010101";
$newdate = strtotime($date);
$formatted = date("m d Y",$newdate);
list($mon, $day, $year) =
array(date("m",$newdate),date("d",$newdate),date("Y",$newdate));
> 1.
> $date = "200
In article <[EMAIL PROTECTED]>, "kaab kaoutar"
<[EMAIL PROTECTED]> wrote:
If you wish to include a hyphen in the allowed character list of a
pattern match, you must include it as the last character.
So what you want should be more like:
if (eregi("[^a-zA-Zëàéêêàäïüöûâç-]",$name)) {
print("
In article <94t6hv$903$[EMAIL PROTECTED]>, "Kumanan"
<[EMAIL PROTECTED]> wrote:
if (eregi("[^0-9]{3}",$co_area)) {
print("area code must be digits");
}
or
if (eregi("[^[:digit:]]{3}",$co_area))
if you use the POSIX regex fields.
> hi, im trying to fix this couple of hours but i couldnt
In article <[EMAIL PROTECTED]>, "Joseph H
Blythe" <[EMAIL PROTECTED]> wrote:
What is happening is that you are replacing the variable $replaced
on each iteration of the while loop. As a result, $replaced is only
storing the most recent match.
To see this, try this out:
$keywords = "foo";
$data
In article <005801c08668$e0459070$0201010a@shaggy>, "Jamie Burns"
<[EMAIL PROTECTED]> wrote:
I tried something like this and your examples worked:
$str = "";
if (eregi("=[[:space:]]*\"([^\"]+)|=[[:space:]]*([[:alnum:]]+)",$str,$regs)) {
print("yes - ".$regs[1].":".$regs[2]."\n");
}
since th
In article <[EMAIL PROTECTED]>, "Joel
Dossey" <[EMAIL PROTECTED]> wrote:
One way to fool browsers when making an image request is to append a
random string to the query string of the img src. In these situations,
adding 'rand=' can do the trick.
Jeff
> Greetings, I have a php script that gene
In article <[EMAIL PROTECTED]>, "Arcady Genkin"
<[EMAIL PROTECTED]> wrote:
http://reality.sgi.com/grafica/flash/dist.99.linux.tar.Z
Jeff
> Are libswf's sources available, or is it only distributed in binary?
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
In article <[EMAIL PROTECTED]>, "Randy"
<[EMAIL PROTECTED]> wrote:
I would be willing to bet that within the php.ini file, an entry such
as you listed would look for includes in:
if foo = location of php.ini e.g. /usr/local/lib/php.ini,
then ../include relative to foo is /usr/local/include/
s
In article <[EMAIL PROTECTED]>,
"Brandon Orther" <[EMAIL PROTECTED]> wrote:
You will want to apply a cast to the variables to force the addition
to be dealing with numbers.
So, if $var1 = "2" and $var2 = "3",
then
$var3 = (int) $var1 + (int) $var2;
print($var3);
will show 5
see: http://ww
23 matches
Mail list logo