Jason wrote to All <=-
Anyone do anything with PHP programming here? I need to try and setup
PHP to work with Synchronet. I'm one powerful man with PHP. There
isn't anything that I can do with it... Same with .NET.. So whats the haps? :)
Since we're on the subject, I've got a script in PHP I'd like to set
up, and I was wondering if there's a way to get information from a variable in PHP to a variable in SSJS? I was working on this last
week, and haven't been able to dig too deeply in it yet.
I've been using PHP with my Synchronet web server for a while now, and I haven't found a way to do that yet.. Not sure if you can, since the PHP
and SSJS environments are separate and distinct, so they don't see each other (as far as I know).
Nightfox
Anyone do anything with PHP programming here? I need to try and setup PHP t anything that I can do with it... Same with .NET.. So whats the haps? :)
Since we're on the subject, I've got a script in PHP I'd like to set
up, and I was wondering if there's a way to get information from a
variable in PHP to a variable in SSJS? I was working on this last
week, and haven't been able to dig too deeply in it yet.
Nightfox wrote to Dreamer <=-
Since we're on the subject, I've got a script in PHP I'd like to set
up, and I was wondering if there's a way to get information from a variable in PHP to a variable in SSJS? I was working on this last
week, and haven't been able to dig too deeply in it yet.
I've been using PHP with my Synchronet web server for a while now, and
I haven't found a way to do that yet.. Not sure if you can, since the
PHP and SSJS environments are separate and distinct, so they don't see each other (as far as I know).
Jason wrote to Nightfox <=-
I've been using PHP with my Synchronet web server for a while now, and I haven't found a way to do that yet.. Not sure if you can, since the PHP
and SSJS environments are separate and distinct, so they don't see each other (as far as I know).
Nightfox
In my coding, I haven't been able to make javascript and php work well with each other because php is processed on the server end. The
solution to that though was using javascript and ajax to make calls
back to a callback php file so that way i could manage and process data
on the server and deliver the results back to the browser.. I'm sure in
a situation like this, something could be done with ajax to pull
variables back from the ssjs side, or vice versa, using ssjs and ajax
you could pull back some processed results from a php file and display
it on the webpage.
Khelair wrote to Dreamer <=-
Re: Re: Hello World
By: Dreamer to Jason on Fri Nov 15 2013 10:31:00
Since we're on the subject, I've got a script in PHP I'd like to set
up, and I was wondering if there's a way to get information from a
variable in PHP to a variable in SSJS? I was working on this last
week, and haven't been able to dig too deeply in it yet.
This little nugget might be of some usage to your endeavors, my friend: http://php.net/manual/en/book.sockets.php. Peace be with you,
etc etc etc, ad infinitum...
I've been using PHP with my Synchronet web server for a while now,
and I haven't found a way to do that yet.. Not sure if you can,
since the PHP and SSJS environments are separate and distinct, so
they don't see each other (as far as I know).
That's what I've been thinking, too. I suppose I could work around that... perhaps use a temporary file. Doesn't have to be super fast.
I'm just starting out, so I gotta KISS. ;)
Yeah, I thought about using sockets, but it seems overkill to me at
the moment. Speed is not critical, and simplicity is important at the moment. Once I get a working draft running, I could implement
refinements.
Re: Re: Hello World
By: Dreamer to Jason on Fri Nov 15 2013 10:31:00
Since we're on the subject, I've got a script in PHP I'd like to set up, and I was wondering if there's a way to get information from a variable in PHP to a variable in SSJS? I was working on this last week, and haven't been able to dig too deeply in it yet.
I've been using PHP with my Synchronet web server for a while now, and I haven't found a way to do that yet.. Not sure if you can, since the PHP
and SSJS environments are separate and distinct, so they don't see each other (as far as I know).
Nightfox
Since we last talked, I have begun writing a library that will import
the synchronet variables from JavaScript and have them as variables in PHP. So far I have quite a few variables from Synchronet available in
PHP.
Since we last talked, I have begun writing a library that will import the synchronet variables from JavaScript and have them as variables in PHP. So far I have quite a few variables from Synchronet available in PHP.
That sounds interesting. I could probably make use of something like that.
Nightfox
<?php
echo("Hello World!");
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 30:32:37 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,217 |
Posted today: | 1 |