Ok lets get PHP to turn it into hex. But can we then also make it able to take a copy of that code and put that into the player. This is beacuse some devices don't support PHP!
Offline
johnnydean1 wrote:
Ok lets get PHP to turn it into hex. But can we then also make it able to take a copy of that code and put that into the player. This is beacuse some devices don't support PHP!
We have to use PHP or JS. Now I prefer PHP because it is widely supported unlike JS as people turn it off on their browser. And PHP is easy to get the hand of an learn!
Thats why I want the viewer to be decoded in PHP!
Offline
wei2912 wrote:
I think JS. PHP is mostly used for servers.
Yes, people, PHP is on the sever, NOT the client. So The client does not have to run PHP. I was thinking that we use PHP to read the file into an array of bytes (like I did above.) Then parse it into an array of objects and send it to JS, but I don't really know how to send it. NXIII???
EDIT: Typo.
Last edited by MathWizz (2010-10-06 08:42:11)
Offline
I think PHP will be better to understand the file. maybe parce it into our 'text based scratch' language. Remember the [say 'hello'] ect... sort of blocks.
Then we get JS and HTML5 to understand that!
Offline
Daffy22 wrote:
I think PHP will be better to understand the file. maybe parce it into our 'text based scratch' language. Remember the [say 'hello'] ect... sort of blocks.
![]()
Then we get JS and HTML5 to understand that!![]()
Yeah! That's what I'm trying to do. I've almost got the project info done!
Offline
Daffy22 wrote:
okay lets do one step at a time:
1. converting project to hex (tick)
2. undertstanding all the numbers. (need to do)
If we get JS to write a temp file (can they write to files - it's been a while since I used JS) Could we even get PHP to turn it to hex then wer have string with the hex version of the file!![]()
In IE you can use JS with an ActiveX control to write to a file. But hardly anybody uses that useless browser for anything other than downloading Firefox, so it's not much help. I can post the code if you want though.
Offline
TheSuccessor wrote:
Something I've been working on (not finished yet, but view source to see what I'm doing): HTMLgames.
Bump.
Offline
MathWizz wrote:
wei2912 wrote:
I think JS. PHP is mostly used for servers.
Yes, people, PHP is on the sever, NOT the client. So The client does not have to run PHP. I was thinking that we use PHP to read the file into an array of bytes (like I did above.) Then parse it into an array of objects and send it to JS, but I don't really know how to send it. NXIII???
![]()
EDIT: Typo.
I would say, actually, that you might be better off sending a GIANT byte array to JS and parsing it there; that way you don't need to convert PHP objects to JS objects with nothing but strings.
Offline
nXIII wrote:
MathWizz wrote:
wei2912 wrote:
I think JS. PHP is mostly used for servers.
Yes, people, PHP is on the sever, NOT the client. So The client does not have to run PHP. I was thinking that we use PHP to read the file into an array of bytes (like I did above.) Then parse it into an array of objects and send it to JS, but I don't really know how to send it. NXIII???
![]()
EDIT: Typo.I would say, actually, that you might be better off sending a GIANT byte array to JS and parsing it there; that way you don't need to convert PHP objects to JS objects with nothing but strings.
Oh, that makes sense, but I was wondering how you would send anything to JS with PHP...
Offline
MathWizz wrote:
nXIII wrote:
MathWizz wrote:
Yes, people, PHP is on the sever, NOT the client. So The client does not have to run PHP. I was thinking that we use PHP to read the file into an array of bytes (like I did above.) Then parse it into an array of objects and send it to JS, but I don't really know how to send it. NXIII???![]()
EDIT: Typo.I would say, actually, that you might be better off sending a GIANT byte array to JS and parsing it there; that way you don't need to convert PHP objects to JS objects with nothing but strings.
Oh, that makes sense, but I was wondering how you would send anything to JS with PHP...
I wrote a function that converts strings, arrays, dictionaries and numbers, but you can't really send user classes.
Offline
Hello. I just wanted to know how much progress you guys have made.
Offline
militarydudes wrote:
Hello. I just wanted to know how much progress you guys have made.
![]()
Check the Progress forum on our website!
(link in my sig)
Offline
nXIII wrote:
MathWizz wrote:
nXIII wrote:
I would say, actually, that you might be better off sending a GIANT byte array to JS and parsing it there; that way you don't need to convert PHP objects to JS objects with nothing but strings.
Oh, that makes sense, but I was wondering how you would send anything to JS with PHP...
I wrote a function that converts strings, arrays, dictionaries and numbers, but you can't really send user classes.
AHHHH!!!! I KNOW THAT! Oops... I had caps on.
Lets say I have the string "Hello World!", how would I send that to JS?
EDIT: I figured it out. I'm still a n00b at PHP.
Last edited by MathWizz (2010-10-06 18:42:59)
Offline
MathWizz wrote:
nXIII wrote:
MathWizz wrote:
Oh, that makes sense, but I was wondering how you would send anything to JS with PHP...
I wrote a function that converts strings, arrays, dictionaries and numbers, but you can't really send user classes.
AHHHH!!!! I KNOW THAT! Oops... I had caps on.
Lets say I have the string "Hello World!", how would I send that to JS?
EDIT: I figured it out. I'm still a n00b at PHP.![]()
I use
echo '"' . $str . '"'
Is that what you're doing?
Last edited by nXIII (2010-10-06 19:03:15)
Offline
nXIII wrote:
MathWizz wrote:
nXIII wrote:
I wrote a function that converts strings, arrays, dictionaries and numbers, but you can't really send user classes.AHHHH!!!! I KNOW THAT! Oops... I had caps on.
Lets say I have the string "Hello World!", how would I send that to JS?
EDIT: I figured it out. I'm still a n00b at PHP.![]()
I use
Code:
echo '"' . $str . '"'Is that what you're doing?
Yep...
Offline
okay, so we think we can decode the sb file. Has anyone done that yet?
PS: IE is awsome, but I do prefer firefox on certain occations but to be honest IE has some good features FF doesn't have!
Offline
Daffy22 can you work on turning the .sb into hex please!
EDIT
Actually can you then turn a project into diffrent scripts
Last edited by johnnydean1 (2010-10-07 11:31:38)
Offline
Daffy22 wrote:
okay, so we think we can decode the sb file. Has anyone done that yet?
PS: IE is awsome, but I do prefer firefox on certain occations but to be honest IE has some good features FF doesn't have!![]()
I'm working on it...
Try chrome! That's my all-time favorite!
Offline
Hey MathWizz can you reguarly post you code!
Offline
johnnydean1 wrote:
Daffy22 can you work on turning the .sb into hex please!
I DID THAT!!!!
This is my code so far.
Last edited by MathWizz (2010-10-07 11:28:42)
Offline
I can learn a single language in a few days. Which should I start?
PHP or JavaScript? Which do we need more right now?
Offline