Thanks for your reply. I will try upgrading it.
If anyone else has experienced this problem, please let me know.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Colin Guthrie
Sent: Monday, June 02, 2008 10:50 PM
To: php-general@lists.php.net
Subject: [PHP] Re: APC +
On Tue, Jun 3, 2008 at 8:39 PM, VamVan <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> For example I have these email addressess -
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> What would be my PHP function[Regular expression[ to that can give me some
> thing like
>
> yahoo.com
> h
You can use this:
$str = '[EMAIL PROTECTED]';
preg_match('/[EMAIL PROTECTED]@(.+)/', $str, $matches);
var_dump($matches);//will be in $matches[1]
Or without regex:
echo substr($str, strpos($str, '@')+1);
Liran
- Original Message -
From: "VamVan" <[EMAIL PROTECTED]>
To:
Sent: We
Hello All,
For example I have these email addressess -
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
What would be my PHP function[Regular expression[ to that can give me some
thing like
yahoo.com
hotmail.com
gmail.com
Thanks
PJ,
I remember the days when this stuff seemed beyond mystical.
1. $dbh and $query are not "built-in" variables... but they need to be
defined somewhere earlier in the code. That could even be in a
different file if the file you're in has been included.
2. One trick to try is to use the php
On Tue, Jun 3, 2008 at 4:28 PM, PJ <[EMAIL PROTECTED]> wrote:
> I don't know if this is the right list, it seems php and postgresql are
> rather interdependent in the webside I am debugging :(, but here goes:
>
> I'm getting this error:
> pg_execute() [function.pg-execute]: No
> array passedE_
I don't know if this is the right list, it seems php and postgresql are
rather interdependent in the webside I am debugging :(, but here goes:
I'm getting this error:
pg_execute() [function.pg-execute]: No
array passedE_WARNING
for this line of code:
if( !($r=pg_execute($dbh, $query)) )
I've had this problem. It's because of the that surrounds your
XML. Your php configuration probably has short tags enabled. I have had to
use php to output this
' ; ?>
On Tue, Jun 3, 2008 at 7:25 AM, Robert Huff <[EMAIL PROTECTED]> wrote:
>
>I'm working on a project that involves co
What is the error message you are getting?
On Tue, Jun 3, 2008 at 11:37 AM, Robert Huff <[EMAIL PROTECTED]> wrote:
> Robbert van Andel writes:
>
> > I've had this problem. It's because of the that
> > surrounds your XML. Your php configuration probably has short
> > tags enabled.
>
>
Robbert van Andel writes:
> I've had this problem. It's because of the that
> surrounds your XML. Your php configuration probably has short
> tags enabled.
Negative, Prior research found this problem, and the short
tags setting, which was promptly set to "OFF",
Stut wrote:
On 3 Jun 2008, at 18:35, Yui Hiroaki wrote:
Sorry I still have a problem.
Let's take a step back. What are you *actually* trying to do. I'm
assuming it's not just printing out Hello and Good. What is the real
problem you're trying to solve and what are the constraints that are
c
On Tue, Jun 3, 2008 at 1:43 PM, Lic. Eduardo R. Hernández Osorio <
[EMAIL PROTECTED]> wrote:
> Hello.
>
> I have a problem with a Desktop Edition MS SQL Server servant, when I try
> to get connected to crosswise of PHP functions to this, it provokes an
> error and I can not achieve the connection
Hello.
I have a problem with a Desktop Edition MS SQL Server servant, when I try to
get connected to crosswise of PHP functions to this, it provokes an error
and I can not achieve the connection. However when I try the same operation
on an Standard Edition MS SQL Server servant I am able to accompl
On 3 Jun 2008, at 18:35, Yui Hiroaki wrote:
Sorry I still have a problem.
Let's take a step back. What are you *actually* trying to do. I'm
assuming it's not just printing out Hello and Good. What is the real
problem you're trying to solve and what are the constraints that are
causing you
Sorry I still have a problem.
I separete files belows;
-My.php---
word=$getword;
}
public function buff(){
echo $this->word."";
}
}
?>
--
--b.php
buff();
?>
--
Thank you for everyone who helps me!
I got a message what I want.
Thank you!
Yui
2008/6/4 Jim Lucas <[EMAIL PROTECTED]>:
> Yui Hiroaki wrote:
>>
>> The code is blelow;
>> -b.php
>> > function __autoload($class_name) {
>> include_once $class_name . '.php';
>> }
LKSunny <[EMAIL PROTECTED]> wrote:
> two table, tablea and tableb
> tablea
> uid, col1, col2, col3
> 1,xx, xx, xx
> 2,xx, xx, xx
> 3,xx, xx, xx
> tableb
> id, uid, col1, firstdata
> 1, 1, xx, 1
> 2, 2, xx, 0
> 3, 2, xx, 0
> 4, 1, xx, 0
>
> i want query tablea, and join tableb, u
Yui Hiroaki wrote:
The code is blelow;
-b.php
buff();
?>
---
--My.php--
buff();
Class My{
private $word;
function __construct($getword){
$this->word=$getword;
}
public functio
On 3 Jun 2008, at 17:12, Yui Hiroaki wrote:
The code is blelow;
-b.php
buff();
?>
---
--My.php--
buff();
Class My{
private $word;
function __construct($getword){
$this->word=$getword;
}
The code is blelow;
-b.php
buff();
?>
---
--My.php--
buff();
Class My{
private $word;
function __construct($getword){
$this->word=$getword;
}
public function buff(){
echo
Robert Huff wrote:
I'm working on a project that involves converting HTML to
XHTML. Not strictly sure this is a PHP issue, but testing (so far)
has eliminated other possibilities.
Can someone offer suggestions why, on the same server (Apache
2.2.8), this works:
Te
I'm working on a project that involves converting HTML to
XHTML. Not strictly sure this is a PHP issue, but testing (so far)
has eliminated other possibilities.
Can someone offer suggestions why, on the same server (Apache
2.2.8), this works:
Testing html
This isn't a PHP question at all. It's a MySQL question.
However, answers are below, with forwards to the appropriate lists for
archiving purposes.
On Mon, Jun 2, 2008 at 9:19 PM, LKSunny <[EMAIL PROTECTED]> wrote:
> two table, tablea and tableb
> tablea
> uid, col1, col2, col3
> 1,xx, xx
Didn't read everything but if you just don't want duplicates, can't select
distinct help you?
Atenciosamente,
www.softpartech.com.br
Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
Excelência em Softwares Financeiros
-Mensagem original-
De: LKSunny [mailto:[E
Quoting Yui Hiroaki <[EMAIL PROTECTED]>:
Please look at my.php
my.php load
$obj=new My("Hello");
$obj->buff();
so, if a.php load, it absolutely got "hello" in load b.php
Regards,
Yui
2008/6/3 Thijs Lensselink <[EMAIL PROTECTED]>:
Quoting Yui Hiroaki <[EMAIL PROTECTED]>:
Thank you for a go
Please look at my.php
my.php load
$obj=new My("Hello");
$obj->buff();
so, if a.php load, it absolutely got "hello" in load b.php
Regards,
Yui
2008/6/3 Thijs Lensselink <[EMAIL PROTECTED]>:
> Quoting Yui Hiroaki <[EMAIL PROTECTED]>:
>
>> Thank you for a good suggest!
>>
>> Somehow, I have to exe
Quoting Yui Hiroaki <[EMAIL PROTECTED]>:
Thank you for a good suggest!
Somehow, I have to execute my.php also.
This program have to run.
1)My.php
2)b.php
My.php show "Hello" -> it is OK,
b.php shows
"Hello"
"Good"
it is NOT good. I need to get only "Good"
Please give me a suggestion.
Rega
Thank you for a good suggest!
Somehow, I have to execute my.php also.
This program have to run.
1)My.php
2)b.php
My.php show "Hello" -> it is OK,
b.php shows
"Hello"
"Good"
it is NOT good. I need to get only "Good"
Please give me a suggestion.
Regards,
Yui
2008/6/3 James Dempster <[EMAIL PRO
Thank you for a good suggest!
Somehow, I have to execute my.php also.
This program have to run.
1)My.php
2)b.php
My.php show "Hello" -> it is OK,
b.php shows
"Hello"
"Good"
it is NOT good. I need to get only "Good"
Please give me a suggestion.
Regards,
Yui
2008/6/3 James Dempster <[EMAIL PRO
I suggest you don't put code other than class structures in class files.
Also don't execute My.php just execute b.php which though __autoload
includes My.php.
-b.php
buff();
$objref=new My("Good");
$objref->buff();
---
--My
HI!
I had mistake in code in php.
When I excute My.php, it say "Hello"
When I excute b.php, it say
Hello
Good
I would like to execute b.php and show
only "Good"
If you know it ,please teach me!
Here is code below;
-b.php
buff();
?>
-
On Tue, Jun 3, 2008 at 12:06 AM, James Dempster <[EMAIL PROTECTED]> wrote:
> This is most likely a character encoding issue. Check that the html encoding
> is set to the same type as what your storing it as in mysql.
>
Thanks James, it certainly was a character encoding issue. My dev box
didn't ha
I don't see how it's possible for you to get "Hello" after "Good", when the
file that cause's "Hello" is required to do "Good"
/James
On Mon, Jun 2, 2008 at 2:00 PM, Yui Hiroaki <[EMAIL PROTECTED]> wrote:
> Please take a look at code.
>
> a.php
>
> $obj=new my("Hello");
> $obj->b
33 matches
Mail list logo