php .NET and ANSI C

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Since you already have the .net version.. You could try to call that library via the dotnet extension... (Haven't had the time to try it out though..)
AlecH
Forum Commoner
Posts: 27
Joined: Fri Feb 24, 2006 4:22 pm
Location: New Hampshire

Post by AlecH »

If you are coming from .NET 2.0 to PHP that doesnt really make any sense to me unless of course its a hosting issue. I started developing ASP.NET a couple of months ago after finsihing some courses and found it took alot less work to make a fully functional application in ASP.NET isntead of PHP.

Also, PHP was written in C, I know PHP2, 3, and 4 were however not sure about PHP5, but I would assume so. I also think what he meant by "they are very similar" was the syntax and the similar structures of if, else, and elseif that you find in PHP as well as C.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

AlecH wrote:If you are coming from .NET 2.0 to PHP that doesnt really make any sense to me unless of course its a hosting issue. I started developing ASP.NET a couple of months ago after finsihing some courses and found it took alot less work to make a fully functional application in ASP.NET isntead of PHP.
In my experience that is true, but it also means you usually end up with a site that only works as expected with Internet Explorer. For an intranet this is probably acceptable, but i'm not so sure how much sense it makes on the world wide web... Anyway, that's not what this thread is about...


If i understood it well the OP is trying to offer access to his library from as much systems as possible... Which explains why he's looking for options to allow PHP <-> library communication.
ngungo
Forum Commoner
Posts: 75
Joined: Thu Jun 08, 2006 10:45 pm

Post by ngungo »

Hi AlechH,

Besides the response from Tim and you were right about hosting issue, my project of the Vietnamese grammar parser would gain more favor if it is written in php, an open source programming language. As a nature of the project I need to rally as many linguistists as possible.

to Tim,

I looked into the possibility of calling .NET function from php, it seems awkward (if not impossible) because of hosting issue again.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Since you expect problems with your hosting provider in order to load the dotnet extension, i don't think a custom extension is a solution either...
ngungo
Forum Commoner
Posts: 75
Joined: Thu Jun 08, 2006 10:45 pm

Post by ngungo »

I thought dotnet extension have to be in IIS, isn't it?

I dón't understand. Would you elaborate more, please!
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Afaik you only need a .net runtime (thus for linux etc you could use mono).. Should further look into this.
Post Reply