Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8864587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:16:43+00:00 2026-06-14T16:16:43+00:00

Edit: The PHP and Dart script will run on client-side. I will run a

  • 0

Edit: The PHP and Dart script will run on client-side.

I will run a php script on my page load. Then i would like to access the php functions within dart scope. Is it possible or should i migrate everything to dart?

To be more specific;

  • I am tring to develop a facebook application (with facebook php sdk),
  • I have written several ‘Hello, World!’ web applications,
  • and that is all experience i got for now.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:16:45+00:00Added an answer on June 14, 2026 at 4:16 pm

    No. There is no clean way to communicate between Dart and PHP. With client-side Dart, you have the normal problem of client-side vs server-side scripting. With server-side Dart, as far as I can tell (researching with google), there is no interoperability between the two.

    Client-side vs Server-side Scripting

    In web development, there are two main classes of programming languages: server-side and client-side. Server-side languages are run on the web server and determine the response that the web server sends to reply to the HTTP request. Client-side languages are run on the client (read, browser) and manipulate the DOM, etc in the browser.

    Calling server-side code from client-side code would be like running a command on your friends computer from your computer without ssh. Directly calling a server-side function from a client-side language (function my_client_func() { my_server_func(); }) is impossible.

    Workarounds

    There are a number of ways to achieve this functionality. Two are AJAX and WebSockets.

    AJAX allows you to make HTTP requests asynchronously and act on the data when it arrives. You could create a mechanism to retrieve data from the server via special web pages, or something similar. You could make a page called facebook.com/apps/yourapp/function.php and call it with parameters like name=myFuncitonName&var1=something&var2=else, etc (function.php?name=myFunction...).

    WebSockets allows you to create a full-duplex TCP-esque. You could create a PHP WebSocket server that would call functions based on received WebSocket messages, though this could create a security hole.

    Server-side Language Interoperability

    Some server-side languages provide mechanisms to interoperate with other such languages. Dart does not seem to provide a mechanism to call PHP code.

    Workarounds

    Dart does provide a mechanism to run processes in the form of the Process class. You could use the Process class to call the PHP interpreter.

    Dart does provide interoperablility with C. Using Native Extensions, Dart code can call C functions. Based on this question, C code can call PHP functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using Vim to edit PHP files and would like to implement code
I have folders and pages /admin/add/index.php, /admin/edit/index.php & /admin/view/index.php which all are requiring page
How do I edit php.ini when my host doesn't give me access to the
I'm using TextWrangler to edit PHP code. I often run into the problem that
I have my index.php page that sends values over to edit.php via $_GET/html link.
Currently i have a working PHP edit script, which allows users to edit ads
Is there any existing php code that will allow me to edit and save
i try to edit the text of an XML file from my page edit.php.
I am using following RewriteRules : RewriteRule ^([a-zA-Z0-9]+)$ page.php?p=$1 RewriteRule ^e/([a-zA-Z0-9]+)$ edit.php?p=$1 The first
I have a form for editing notifications that looks like: <form action='edit.php' method =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.