try this,
if you need more entities to be included,
just refer to
`http://www.w3.org/2003/entities/iso8879/isolat1.ent' or find out its
charcode by yourself.
]>
farm lettuces with reed avocado, crème
fraîche, radish and cilantro
On 10/13/05, jonathan <[EMAIL PROTECTED]> wrote:
> I'm now get
I don't know if these are equal.
What about \r\n line endings?
And what about \r line endings (from old Macs)?
I guess file() handles all of these cases (didn't test it though)
and your code doesn't (with \r you'll get a one line file!).
AllOlli
--
PHP General Mailing List (http://www.php.net/)
Hi guys
I have a rather simple setup:
A few forms chained after each other (the first leds to the second which
leeds to the third and so on)
I´m using sessions - and starting each page like this:
header('Expires: ' . gmdate('D, d M Y H:i:s', (time() + (60 * 10))) . '
GMT');
session_cache_li
I am working on a redirect script to log "out"'s. I was trying to do
it with a header redirect:
Does this seem like it should work? It doesn't. What is the correct
syntax for these things? You can see the 'prototype' at
http://lyricslist.com: Just click on the logo or the word "Song
Lyrics" above
SOunds like your form is using POST which does what you desribe to avoid
submitting the same info twice. only way I know is to use GET but that
would put al data in the URL.
Søren Schimkat wrote:
Hi guys
I have a rather simple setup:
A few forms chained after each other (the first leds to
On Sun, Oct 16, 2005 at 05:04:09PM +0200, Dotan Cohen wrote:
> header ("Location: ".$url);
> ?>
>
> Does this seem like it should work? It doesn't. What is the correct
> syntax for these things?
That code should work, and the example on your site seems to work for
me. The only thing you should ma
On 10/16/05, Paul Waring <[EMAIL PROTECTED]> wrote:
> On Sun, Oct 16, 2005 at 05:04:09PM +0200, Dotan Cohen wrote:
> > header ("Location: ".$url);
> > ?>
> >
> > Does this seem like it should work? It doesn't. What is the correct
> > syntax for these things?
>
> That code should work, and the examp
On Sun, Oct 16, 2005 at 05:25:12PM +0200, Dotan Cohen wrote:
> You say that it worked for you? Where did it take you? It _should_
> take you to another lyrics site. Did you stay on http://lyricslist.com
> or go somewhere else?
If I go to lyricslist.com and click the logo or the "Song Lyrics" link,
Hi guys!
I'm getting crazy about the following error working with QuickForm +
FrontBuilder for a sign up form.
As usual, login / passwd are shown in form by FB:
[..]
$auth = DB_DataObject::factory('auth');
$fb_auth =& DB_DataObject_FormBuilder::create($auth);
$frm_auth =& $fb_auth->getFo
It's because PHP is trying to convert different var types into a common var
type and then compare them when you use ==. === means compare value AND type
so that's why it fails.
Your string, 'Some kind of string' is getting converted down to the lowest
common denominator, an int. Since there a
I have a list like this:
235 Some info
12323 other 5 things
No number on this line!
43 something or other
I need to remove the first number from each line, so that I will get this:
Some info
other 5 things
No number on this line!
something or other
So I tried:
$data=preg_replace("//n[ ]*[
Try this:
^[ ]*[0-9]*[ ]*
This will also strip out any blank spaces at the beginning of the line.
--
Anas Mughal
On 10/16/05, Dotan Cohen <[EMAIL PROTECTED]> wrote:
>
> I have a list like this:
> 235 Some info
> 12323 other 5 things
> No number on this line!
> 43 something or other
>
> I nee
Dotan Cohen wrote:
I have a list like this:
235 Some info
12323 other 5 things
No number on this line!
43 something or other
I need to remove the first number from each line, so that I will get this:
Some info
other 5 things
No number on this line!
something or other
So I tried:
$data=p
On 10/16/05, Darvin <[EMAIL PROTECTED]> wrote:
> Dotan Cohen wrote:
> > I have a list like this:
> > 235 Some info
> > 12323 other 5 things
> > No number on this line!
> > 43 something or other
> >
> > I need to remove the first number from each line, so that I will get this:
> > Some info
I want to create an array like this:
$myArray=array(
array('orange','A very bright color'),
array('blue','A nice color like the ocean'),
array('yellow','Very bright like the sun') ...etc...
)
Sort of like a small database in memory. Then I want to compare each
of the rows coming ou
It's also could be vim.
-Original Message-
From: Hodicska Gergely [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 15, 2005 9:48 PM
To: php general help
Subject: Re: [PHP] editor
>> I read somewhere about an editor, which has built in support for
>> phpdocumentator and creating unit tes
Assuming that you are also accepting partial matches... (e.g. if you had
a sentence with something like, "Mr. LeBlue says hello", and
that should be a match for "blue")
If $mysqlString contains 1 sentence from the mySQL database(I assume
you've a loop or something that'll fetch 1 string per ite
Hello,
what have you been trying for comparison so far that has not been
working?
if you have php 5, you would want to use stripos, which is case-
INsensitive, not strpos, which is the opposite.
Also, note the warning on the man page. you would want to use a
triple equals sign "!===false"
sorry, I am mistaken here. I forgot that "!==" is the same
functionality as a "===", in that the comparison is made by value
*and* type.
On Oct 16, 2005, at 11:26 PM, Jordan Miller wrote:
Also, note the warning on the man page. you would want to use a
triple equals sign "!===false" because
one more thing... if you have php <5 and >= 3.0.6, you could use
stristr for case insensitive comparison without having to deal with
the slower and more cumbersome regex.
On Oct 16, 2005, at 11:18 PM, Minuk Choi wrote:
Assuming that you are also accepting partial matches... (e.g. if
you
I am trying to set up some validation for my php form with the email
field using the following code:
if(!eregi("^(.+)@(.+)\\.(.+)$",$_POST['email']))
{
$error_msg .= "Your email appears to be invalid.";
$ok = "false";
}
I am trying to accomplish not being able to enter anything other than
a va
In a "almost idle desktop machine" always takes arround 0.04.
The measured is on a server when it was with low traffic (average load
arround 0.7)
ac wrote:
where did these time measured?
on a heavily loaded server or on your own almost idle desktop machine ?
On 10/14/05, Ruben Rubio Rey <[
Richard Lynch wrote:
On Fri, October 14, 2005 6:29 am, Ruben Rubio Rey wrote:
if(file_exists($filename)){
$modified_date=filemtime($filename);
if(time()<($modified_date+1 * 24 * 60 * 60)){
$handle = fopen($filename, "r");
$contents = fread($handle, f
23 matches
Mail list logo