Jump to content

Recommended Posts

Executing a script is not the same thing as reading a file. It doesn't matter if you know what you're asking if the people you're asking don't know what you mean.

 

I had no idea what a .so file was, but one quick Google search gave me the explanation of what it was, and adding the term "PHP" to that same search gave me the exact code to load a .so file.

 

We are not google. We don't appreciate people who don't do basic research, and waste our time with poor communication. Take responsibility for your part in getting help, and you'll actually get some.

Link to comment
https://forums.phpfreaks.com/topic/278662-read-so-file-in-php/#findComment-1433744
Share on other sites

So files cannot be executed directly by PHP, they are shared objects, made for C.

 

PHP extensions are packaged into shared objects, is what you really want to do to load an extension?

I am using php 5.3.10 and i check the dl() function but it is not working.

 

  Now what i can do.can you help me how to load .so file in php

Edited by CHRamesh
Link to comment
https://forums.phpfreaks.com/topic/278662-read-so-file-in-php/#findComment-1433918
Share on other sites

This? You'd have to write a PHP extension for it - PHP code alone won't be enough.

Hi,

 

I write some code in c and i use file function to open the .so file it will work fine . But how to load that file in php. 

 

  I am using php 5.3.10.In that dl() function is not working.What i can do.just tell me how to write php code.

Link to comment
https://forums.phpfreaks.com/topic/278662-read-so-file-in-php/#findComment-1433921
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.