I've written a shared library (lib*.so) in c++ and would like to use it in a website.
I'm not a PHP programmer, but i've seen a howto.
My webhost runs Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635.
I do not know what this means but:
1. Can I create my own php extensions when another party is hosting my web pages
2. If I can, is the above server compatible with what I'll do (it seems to me it runs windows, and my library is in linux)
3. Is the extension writing a job for a php developer or c++ developer (from what i see in the howto above it seems to demand knowledge of both languages)
c++ shared library to php extension
Page 1 of 13 Replies - 1320 Views - Last Post: 21 April 2011 - 07:10 AM
Replies To: c++ shared library to php extension
#2
Re: c++ shared library to php extension
Posted 21 April 2011 - 03:25 AM
Hey.
I know little about building extensions (nothing, really), but I can tell you that most hosts will be hesitant about including custom extensions. It's always kind of risky. - I would at least make sure they will before you spend a lot of time on it.
Also:
"Apache/2.2.17 (Unix) ..."
I know little about building extensions (nothing, really), but I can tell you that most hosts will be hesitant about including custom extensions. It's always kind of risky. - I would at least make sure they will before you spend a lot of time on it.
Also:
Quote
(it seems to me it runs windows, and my library is in linux)
"Apache/2.2.17 (Unix) ..."
#3
Re: c++ shared library to php extension
Posted 21 April 2011 - 05:13 AM
Yes it demands knowing both languages, primarily C++. Whether your host will allow you to host your own extensions is a question for them. If you write your PHP extensions without any OS-specific functions it should probably run on any system.
#4
Re: c++ shared library to php extension
Posted 21 April 2011 - 07:10 AM
You will need to write the extension in C++ and to use it on a PHP interface.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|