1

COM class is accesible in windows but isn't in linux .can you help me plz ?

      <?php
       if(isset($_POST['submit'])){
       $Browserhandle = $Browser->HWND;
       $Browser->Visible = true;
       $Browser->Fullscreen = true;
       $Browser->Navigate($_POST['url']);

       while($Browser->Busy){
       com_message_pump(10000);
       }
       $img = imagegrabwindow($Browserhandle, 0);
       $Browser->Quit();
       imagepng($img, 'screenshot.png');
       }

      ?>

1 Answer 1

3

Yes, COM is a Windows-only extension.

http://php.net/manual/en/com.requirements.php

Sign up to request clarification or add additional context in comments.

3 Comments

so which class is uesd instead of COM class in linux
None, there's no alternative.
so how cane we get screen shot in linux from url

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.