C

This is a discussion on C within the PHP Language forums, part of the PHP Programming Forums category; Anybody know of a way to use C from php ? Thanks...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-20-2003
LC
 
Posts: n/a
Default C

Anybody know of a way to use C from php ?

Thanks


Reply With Quote
  #2 (permalink)  
Old 08-20-2003
Nikolai Chuvakhin
 
Posts: n/a
Default Re: C

"Jeffrey Silverman" <jeffrey@jhu.edu> wrote in message
news:<pan.2003.08.20.13.30.50.245904@jhu.edu>...
> On Wed, 20 Aug 2003 15:22:11 +0200, LC wrote:
>
> > Anybody know of a way to use C from php ?

>
> If you write a C program, you can access it via system() or passthru()
> or a couple of other similar functions.


Alternatively, if you have a library written in C (*.dll on Windows
or *.so on Linux) you can link it to it using dl() function.

Cheers,
NC
Reply With Quote
  #3 (permalink)  
Old 08-21-2003
KAH
 
Posts: n/a
Default Re: C

"LC" <laurent.chenu@adhocsys.net> wrote in news:3f4375fd$0$9620$7a628cd7
@news.club-internet.fr:

> Anybody know of a way to use C from php ?


Look at the Zend API docs in the manual. Here's the chapter on extension
creation:
http://www.php.net/manual/en/zend.creating.php

KAH
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0