What to know in php to translate in node.js? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I m pretty new to php (not ignorant, but I never did any real project with it). And I have been assigned to translate some php file (some are 1kSLOC) in node.js.
Where can I find a quick start on PHP, I have tried tutorial, but I just need to understand what s going on, not the reason behind, and searching and reading PHP API is quite slow.
EDIT:
It seems I ve been misunderstood, I m not searching to learn php on scratch, I know the basics behind it, I just need something to quickly recall me of the syntax.
This is a good example of what I m searching for the operator

There won't be a silver bullet tutorial describing how to translate custom code.
If you're not familiar with PHP, you'll need to go line by line and interpret the code with the aid of the PHP Documentation.
Once you've done this, refactor in node.js.
In the end, they're both scripting languages. As such, most of the language constructs (conditionals, loops, etc) are the same.

Related

What is Codeigniter, CakePHP, Laravel, Zend and Symfony? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am a PHP developer and I want to increase my knowledge. So I am trying to understand some online scripts. I see some folders named ( Zend, Symfony.. etc ) and I read about code igniter.
However, I still didn't understand anything of what I want to know.
What is and when to use each of them?
What are the features they provide?
With which should I start with?
Codeigniter, CakePHP, Laravel, Zend and Symfony frameworks
I know this may be a duplicate question but I really need a complete answer that I really did not find.
Thanks :)
I think that you should start from learning MVC pattern that is used in all of mentioned frameworks, if you're not already know what it is.
The next thing are requirements - what you need or what you expect from framework? There are some things that frameworks cannot do. You can check and compare what each framework can or cannot do for you. Note every part that you discovered.
Some frameworks are easy to start, others need advanced knowledge. Check the examples in docs.
Next step could be your own testing to code something.
This is really too general question, that was asked and answered many times not only here (at stackoverflow), but at many other websites too. Just add some important keywords and search. All in your hands.
They are php frameworks
https://laravel.com/docs/5.5
https://www.codeigniter.com/
Just google tutorials for (one of the frameworks) and work your way through them. There are plenty of resources out there.
I would start with codeigniter first since the learning curve is less steep

Is it possible to create a pure PHP Storm Topology? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
According to the Getting Started with Storm book from O'Reilly:
There is a way to specify topologies in a non-JVM language. Since Storm topologies are just Thrift structures, and Nimbus is a Thrift daemon, you can create and submit topologies in any language you want. But this it out of the scope of this book.
I know the book is a little outdated, but I'm hoping this tidbit is possible.
Is there a way to submit a pure PHP Storm Topology?
From the documentation it says (as one of the key properties of storm)
Programming language agnostic: Robust and scalable realtime processing
shouldn't be limited to a single platform. Storm topologies and
processing components can be defined in any language, making Storm
accessible to nearly anyone.
You can probably look here for similar things.
Closest documentation of this that I've found:
https://github.com/nathanmarz/storm/wiki/Using-non-JVM-languages-with-Storm
It mentions where to get started. I guess I just have to do more research on this.

searching for a great php overview [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
as the title reads I'd like to find a webpage which presents an overview of the php language cause it's been a little while since I stopped to program server scripts.
By overview I see a page with the basic writing of the language (variable writing and the types, the control flows, some writing recommandations and some common functions about arrays and string manipulation) of course without the explicative text that generally comes with tutorials, I just want to refresh my memory about the basis.
I used google to find my request but not seeing anything like this on the first page.
I prefer asking here cause I trust in the stackoverflow community. If you have a personal page that refers to my wanting feel free to post back
edit: this sheet seems to be fine if you want php get the surface of your brain back
http://www.emezeta.com/weblog/emezeta-php-card-v0.1.png
I would say this:
http://oreilly.com/catalog/phppr/chapter/php_pkt.html
Combined with this:
http://www.addedbytes.com/cheat-sheets/php-cheat-sheet/
One great source to find information is actually stackoverflow. Whatever specific problem you encounter, the answer is sure to be found on this site :)
Good luck, PHP is fun!

Transitioning from Coldfusion to PHP [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am getting ready to learn PHP. I am looking for advice from other ColdFusion developers out there who have made the transition. I'm also looking for a guide showing some tag equivalencies (fingers crossed). Thanks!
Not sure why you just accepted a terribly biased answer like Best solution: stick with ColdFusion or Railo :) from ColdFusion is just better.
However, if you are looking at an idea of commands I would say start by looking at some common string / functions in php by going through things that might matter to you like:
arrays (http://us.php.net/manual/en/function.array.php)
strings (http://us.php.net/manual/en/function.echo.php)
You could also look at some frameworks (MVC - similar to coldfusion MVC frameworks):
CodeIgniter (http://codeigniter.com)
CakePHP (http://cakephp.org/)
Hope that helps, rather than give a blatantly one sided answer.
There are large differences between CF & PHP however both are beginner friendly (from my perspective) and offer great documentation.

Has anyone here tried PHP On Pie? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I created this framework to fill what I felt was a need for a PHP-like framework that was really efficient. My goal is to make it into a real open-source project, but since I have never launched a popular open-source project, I could use some feedback and advice.
My question is, has anyone here used it, and if so, what was your experience?
Whether you have or haven't, do you have any advice for the non-programming aspects? What is it missing, in terms of
Documentation
Out of the box ease of use
Community features and support
Whatever else I can't think of right now.
Basically any advice on how I can take it from its current state and make it at least somewhat popular?
http://phponpie.com
I saw this before, but I wasn't sure at all why I should use this instead of Zend Framework or Symfony, so as zerkms said, it seems like just another framework.
The code quality has some question marks about it as well. The code seems to mix and match PHP4 and PHP5 styles (no visibility declaration on some class methods, some class constructors used PHP4-style constructors...) and it had inconsistent file naming (interface iDb in Db.php) and inconsistent coding style, even in the same file.
Not sure how easy it would be to unit tests apps written with this either.

Categories