Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-19-2006, 01:52 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
access a C library with php?

is there a way to access functions in a c library with php?
__________________
Mike
sde is offline   Reply With Quote
Old 12-19-2006, 02:18 PM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 651
DJMaze is on a distinguished road
The only ways i know is by writing your own PHP extension or an executable as wrapper.
There could be problems with executables though when the process need to stay running as seperate process.
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 12-19-2006, 04:31 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
thanks DJM, i was hoping you would reply.

i was told today by a company we contract to that they could interface with a C library natively in PHP (not custom extensions) and when i prodded for the details, the confidence dropped and they said they tested it a long time ago and would have to email me the details.

if there is a solution, i will update this thread.
__________________
Mike
sde is offline   Reply With Quote
Old 12-20-2006, 08:43 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I suppose two other (not very appealing) ways would be to write a simulator/interpreter for c code, or to write a compiler that outputs php code. Both seem pretty labor intensive.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a good Image Loading/Writing Library in C teknomage1 Platform/API C++ 3 07-23-2006 08:41 PM
JavaScript: How Do I Access PHP Functions From Within JavaScript? markster HTML, XML, Javascript, AJAX 2 06-15-2006 07:35 AM
PHP Extension Ideas in C sde Standard C, C++ 2 08-01-2005 02:20 PM
C# + Access Newbie_Toy MS Technologies ( ASP, VB, C#, .NET ) 1 11-10-2004 11:53 PM


All times are GMT -8. The time now is 11:30 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting