AJAX + PHP Maker Plugin

Chat about anything not covered in these forums, but keep it civil!

Post » Wed Oct 01, 2014 3:48 pm

Well As you see I have problem with understanding the concept of making PHP Coded file in an internet server (by the way is Dropbox is considered a server?) and load data via AJAX Plugin. It just exceed my understanding ability. So I was wondering if there was a plugin which helps you to modify or create a PHP File and load data from it. I would be grateful because whatever I do, I just don't get it. :(
ImageImageImageImageImage
B
53
S
15
G
5
Posts: 852
Reputation: 11,321

Post » Wed Oct 01, 2014 4:30 pm

It possibly would be hard to make a plugin that can create PHP files. I myself currently trying hard to learn a bit of PHP, to communicate with mysql. But then again, as a non coder, it would be great if I can create a PHP file to communicate with mysql through C2 event system. I'm not sure the degree of difficulty to pull this off, I guess we need some insight from traditional coder from the community.

@Naji how do you intend to use the PHP? I don't get your post, are you trying to create a server side logic or a database server? For server side logic, the MP already capable of that, but for the database, there is no option to have a readable, reliable and transferable database now except if you write your own PHP traditionally and communicate it with sql.

Let see @Ashley opinion on this.

PS: Anyone knows any IDE or software or whatever that can make PHP much more approachable for a code-blind person like me? Just like javascript to C2 kind of thing.
B
28
S
8
G
4
Posts: 553
Reputation: 4,914

Post » Wed Oct 01, 2014 4:45 pm

@DuckFaceNinja , Actually I don't know what to say since I don't understand SQL & AJAX & JSon etc.. (as my topic says) but what i want is to save data online and retrieve it in my game. Like Online Highscore system. Just To save data online and use it in the game.
ImageImageImageImageImage
B
53
S
15
G
5
Posts: 852
Reputation: 11,321

Post » Wed Oct 01, 2014 4:51 pm

Naji wrote:@DuckFaceNinja , Actually I don't know what to say since I don't understand SQL & AJAX & JSon etc.. (as my topic says) but what i want is to save data online and retrieve it in my game. Like Online Highscore system. Just To save data online and use it in the game.

This means you need PHP+mysql, similar to what I need except that I have a considerably much complex ambition to go for. Let see what people have to say. ;)

There's a possibility that there are softwares that can do this, but I don't know what I should be looking for. So far PHP generator I've seen are not intuitive at all, might been better if I learn PHP through and through, but I'm still hoping that there will be such a thing as PHP in event system exist.

Been on search a bit just now, a lot of mention on node.js to communicate with mysql though, maybe it's possible to access mysql through javascript after all.
B
28
S
8
G
4
Posts: 553
Reputation: 4,914

Post » Wed Oct 01, 2014 9:08 pm

Compiling events to PHP is not going to happen! Insanely complicated and kind of a weird idea.
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,226

Post » Thu Oct 02, 2014 3:37 am

Lol that explain the lacking presence of visual programming for PHP.
B
28
S
8
G
4
Posts: 553
Reputation: 4,914

Post » Thu Oct 02, 2014 6:24 am

Actually I won't consider PHP as a good language as it has some quirks that should be fixed since years ago. That's why I've switched to Node.js as my main server-side backend recently because of it's simplicity and language (no more PHP :D)
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Post » Thu Oct 02, 2014 6:42 am

Herks wrote:Actually I won't consider PHP as a good language as it has some quirks that should be fixed since years ago. That's why I've switched to Node.js as my main server-side backend recently because of it's simplicity and language (no more PHP :D)

It would be great if somebody can make a plugin around node.js to support communication to mysql. I think it should go well because it is javascript?

Btw, if the code to communicate with mysql is on the client side, that would be security issue right?

Noob Findings: NoFlo
Will this tool allow me to achieve what I need? It mentioned node.js in the overview.
B
28
S
8
G
4
Posts: 553
Reputation: 4,914

Post » Thu Oct 02, 2014 7:43 am

@naji

to answer one of your other questions...

dropbox is not considered as a "server" with respect to things like PHP. dropbox can share files out, but it does not provide you with an ability to run programmes on it.. php running server-side with MySQL requires something like Azure/Amazon or similar service, or a dedicated machine.
B
7
S
3
G
1
Posts: 184
Reputation: 1,352

Post » Thu Oct 02, 2014 2:18 pm

First of all, PHP has no event loop: it was designed to receive input, do some work, then return the results. It implements a concept called "shared-nothing architecture" which means a script doesn't share anything with another script. Implementing a "loop forever" script in PHP means overriding so many settings that no out-of-the-box host will want to touch your scripts.
This, among many other things, means a direct construct-to-php conversion will never work.

Herks wrote:It would be great if somebody can make a plugin around node.js to support communication to mysql. I think it should go well because it is javascript?

It is possible to create a plugin to save construct2 things to MySQL, and then create a companion php script that you can run on a webserver, but if you're going to do that, you might as well make a company that provides this as a service.

Also, unfortunately, the store still doesn't accept plugins as submissions...

Herks wrote:Actually I won't consider PHP as a good language as it has some quirks that should be fixed since years ago. That's why I've switched to Node.js as my main server-side backend recently because of it's simplicity and language (no more PHP :D)

Everything you said is true (Nothing beats PHP in terms of speed of development, though!)
Also, I'd argue that the main advantage of moving to Node.js is increasing code reuse, since you can start coding in javascript and never leave.

DuckfaceNinja wrote:Btw, if the code to communicate with mysql is on the client side, that would be security issue right?

Yes, but if you get someone to develop this for you, they won't do it like that.
Besides, if you don't know server-side programming, you probably don't know SQL either.
There are many ways to guarantee security while keeping code on the client.

DuckfaceNinja wrote:Noob Findings: NoFlo
Will this tool allow me to achieve what I need? It mentioned node.js in the overview.

No, it won't.
But it's a very nice tool, thanks for posting it!
B
36
S
8
G
8
Posts: 532
Reputation: 6,903

Next

Return to Open Topic

Who is online

Users browsing this forum: mudrez and 2 guests