Re: [PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-16 Thread Chris Jiang
Hey! That totally rocks! Thank you very much for this info. I'm really 
having nightmare with C in Zend Style during the entire weekend. A 
function works fine in pure GCC compiling mode but returns weird result 
in Zend Style.



Moriyoshi Koizumi wrote:

Hey,

Don't forget to have a look at Boost.PHP :)

http://github.com/moriyoshi/boost.php/wikis

Moriyoshi

On Sun, Nov 16, 2008 at 12:11 AM, Chris Jiang <[EMAIL PROTECTED]> wrote:

Hi all, it's my first time posting in this mailing list.

I've been trying to make a PHP extension for my project, and would really
like to use C++ instead of C to write the code. I've been searching for some
tutoral or manual for some time already, but not so lucky fining anything
useful for newbies like myself.

Yes, I've searched quite carefully on the search engine and the achive of
this mailing list. End up finding a really old (posted in 2004) thread by
someone signed as 'J', directing to a link sort of like
http://tutorbuddy.com/software/phpcpp. I guess this might be what I need,
but the article seems already out of date. I've found a translated version
of this article, and made a testing extension following the instructions,
however it didn't work.

The article was written for PHP 4.2.X, and the sample code is missing (the
link is broken). I'm currently working with PHP 5.2.5. Is it because PHP
5.2.5 is really different with 4.X? Or the document was not properly
translated?

Can someone be so kind to point me an URL of this original article?

Thank you all!

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-16 Thread Moriyoshi Koizumi
Hey,

Don't forget to have a look at Boost.PHP :)

http://github.com/moriyoshi/boost.php/wikis

Moriyoshi

On Sun, Nov 16, 2008 at 12:11 AM, Chris Jiang <[EMAIL PROTECTED]> wrote:
> Hi all, it's my first time posting in this mailing list.
>
> I've been trying to make a PHP extension for my project, and would really
> like to use C++ instead of C to write the code. I've been searching for some
> tutoral or manual for some time already, but not so lucky fining anything
> useful for newbies like myself.
>
> Yes, I've searched quite carefully on the search engine and the achive of
> this mailing list. End up finding a really old (posted in 2004) thread by
> someone signed as 'J', directing to a link sort of like
> http://tutorbuddy.com/software/phpcpp. I guess this might be what I need,
> but the article seems already out of date. I've found a translated version
> of this article, and made a testing extension following the instructions,
> however it didn't work.
>
> The article was written for PHP 4.2.X, and the sample code is missing (the
> link is broken). I'm currently working with PHP 5.2.5. Is it because PHP
> 5.2.5 is really different with 4.X? Or the document was not properly
> translated?
>
> Can someone be so kind to point me an URL of this original article?
>
> Thank you all!
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-15 Thread Chris Jiang
Thank you all for the reply. I guess I'll take a look at those document 
and samples, start playing around with it a bit. :D


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-15 Thread Pierre Joye
hi,

Take a look in pecl/rar for an example of a c++ based extension (or
some other pecl extensions)

On Sat, Nov 15, 2008 at 4:11 PM, Chris Jiang <[EMAIL PROTECTED]> wrote:
> Hi all, it's my first time posting in this mailing list.
>
> I've been trying to make a PHP extension for my project, and would really
> like to use C++ instead of C to write the code. I've been searching for some
> tutoral or manual for some time already, but not so lucky fining anything
> useful for newbies like myself.
>
> Yes, I've searched quite carefully on the search engine and the achive of
> this mailing list. End up finding a really old (posted in 2004) thread by
> someone signed as 'J', directing to a link sort of like
> http://tutorbuddy.com/software/phpcpp. I guess this might be what I need,
> but the article seems already out of date. I've found a translated version
> of this article, and made a testing extension following the instructions,
> however it didn't work.
>
> The article was written for PHP 4.2.X, and the sample code is missing (the
> link is broken). I'm currently working with PHP 5.2.5. Is it because PHP
> 5.2.5 is really different with 4.X? Or the document was not properly
> translated?
>
> Can someone be so kind to point me an URL of this original article?
>
> Thank you all!
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Pierre
http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-15 Thread Paul Biggar
Hi Chris,

On Sat, Nov 15, 2008 at 3:11 PM, Chris Jiang <[EMAIL PROTECTED]> wrote:
> I've been trying to make a PHP extension for my project, and would really
> like to use C++ instead of C to write the code. I've been searching for some
> tutoral or manual for some time already, but not so lucky fining anything
> useful for newbies like myself.


It looks like http://developers.facebook.com/phpembed/ will give you
what you're looking for.

Paul


-- 
Paul Biggar
[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Extending PHP with C++ (Newbie Question)

2008-11-15 Thread Chris Jiang

Hi all, it's my first time posting in this mailing list.

I've been trying to make a PHP extension for my project, and would 
really like to use C++ instead of C to write the code. I've been 
searching for some tutoral or manual for some time already, but not so 
lucky fining anything useful for newbies like myself.


Yes, I've searched quite carefully on the search engine and the achive 
of this mailing list. End up finding a really old (posted in 2004) 
thread by someone signed as 'J', directing to a link sort of like 
http://tutorbuddy.com/software/phpcpp. I guess this might be what I 
need, but the article seems already out of date. I've found a translated 
version of this article, and made a testing extension following the 
instructions, however it didn't work.


The article was written for PHP 4.2.X, and the sample code is missing 
(the link is broken). I'm currently working with PHP 5.2.5. Is it 
because PHP 5.2.5 is really different with 4.X? Or the document was not 
properly translated?


Can someone be so kind to point me an URL of this original article?

Thank you all!

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php