Victor Spång Arthursson wrote:
Have been playing around a bit with this code, but I can't get it to
work with international characters… For example, if I feed my function:
function split_bokid($bokid)
{
if
(preg_match('/^([a-zåäö]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/
i',$bo
echo "Welcome to my homepage Mom. See my brand new wife!":
You must echo out what happened to your old wife before you send new
wife to the brower.
If he kept the old wife, he needs to talk to both wives. If not,
replacing the colon with a semicolon might help.
I have problem with PHP Codes
[EMAIL PROTECTED] wrote:
$string = 'ab12345-1';
if (preg_match('/^([a-zåäö]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/i',
$string,
$m='')) {
echo $m[1]; // -> ab
echo $m[2]; // -> 12345-1
}
g. martin luethi
You can replace {0,1} with a question mark and [0-9] with \d (digit).
Also, and I
think
An object-oriented way of doing it: keep the extra result in a member variable and
get it separately. You might not find this necessary, but it gets more useful
in more complex cases.
class MyClass {
var $num;
Function MyFunc(){
if(isset($_POST['var'])){
$sql = mysql_query("select * from
Freedomware wrote:
"Sorry but you haven't really stumbled onto a pot of gold here or
anything."
Hmmm... it sounds like using PHP with style sheets isn't a recommended
practice.
I wouldn't do it unless I had a good reason to do it. The reason that's
cited on the page you referred to
is to have di
Donald Tyler wrote:
Yes that is true. But I would strongly recommend against doing that.
You should never include anything over HTTP. Its extremely messy, 100%
insecure and just a very very bad idea.
My spontaneous reaction is to agree with you. On the other hand, are
SOAP or XML-RPC over
HTT
ctly what you say it does. I made an include file
like this:
';
?>
If you inlude that using HTTP, it outputs "Hello world!"
Seems like a strange thing to do, outputting PHP code on a Web page, but
it's not without conceivable usefulness.
-Original Message-
Fro
Nick Wilson wrote:
if a script calls antohter like 'include('http://site.com/index.php');
Why would I get a syntax error on line 1 of index.php when it looks like
this:
What's the deal there?
Many thanks for any insight ;-)
I've never tried to do an include via HTTP, so maybe I'm clueless, b
Alessandro Vitale wrote:
I would like to get the last insert id... anyone has some experience in
using the PEAR::DB_Common::nextId() ?
Yes. You have a PEAR DB object $db, and you do:
$id = $db->nextID('Documents');
$db->query("INSERT INTO Documents (id,title,text) VALUES
($id,'Title','Text')")
Roger Spears wrote:
Hello Everybody,
I have found a solution and/or the root of the problem. I googled on
the topic of "MS-Word" + "smart quotes".
That lead me to this site:
http://www.rpgtimes.net/rpgtimes/guide.php?guide=1
It seems that the default for Word is to have smart quotes to "on".
Roger Spears wrote:
Marek Kilimajer wrote:
> I don't know what the character is but if you paste it into the
> textarea, ord() will tell you.
>
When I run ord(), it returns the value of 19. I'm guessing that is a
hex value. And when I look that up on the ascII table, it says:
19 DC3 (Device Con
11 matches
Mail list logo