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 9 years ago.
Improve this question
I'm working on my first opensource project, and I found useful do do an html generator class, treating the html elements as php objects, but now I don't know if it really makes sense in the real world.
Have you ever needed an html generator class for you projects?
If your answer is yes, what would you find useful on it?
If someone wants to help in the project, you are welcome to the repository on github.Github repo
Thank you.
This approach, although liked by many at first sight, always fails a reality check.
Please learn about templates - the only way to go in dealing with HTML from PHP applications.
You need them only if you are some outsourced worker from India or China. Otherwise do not use them since you have potential to ruin your career and credibility.
Those tools are built for doing very dirty code without any future prospects.
Related
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 1 year ago.
Improve this question
Is reactjs (or nextjs) suitable for classic website? I will develop website for kindergarten. Is it good or bad idea to go with react? Of course as multiple page app... Or will be better idea to use PHP (with laravel)? I don't know PHP much (And laravel). On the other side I know reactjs+nextjs+expressjs and I want to improve in it, so i think it could be good idea to use this project for learning and training...
What do you think? Should I use rather reactjs+nextjs+expressjs or PHP+Laravel?
Thanks for every opinion! :)
PS: In my country is VPS very cheap, so it is not problem to use expressjs (nodejs) for kindergarten website...
You could also go with next export, and serve the website via cdn for example.
Read more at https://nextjs.org/docs/advanced-features/static-html-export
I would go with nextjs anyways, it’s opinionaited anyways whichever someone recommends, and you want to code in that and learn that, so why not.
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 2 years ago.
Improve this question
I want to make an online recruitment system(web) for my project in school. What are the language I need to learn except PHP. Thanks for the answer guys.
Not very proper question, you might find the answer by googling.
Anyway, You might need so far:
HTML: It will be like the skeleton of your page.
CSS: Basic knowledge would be a plus for understanding how to make it pretty.
MySQL: Unless you want a static page, you would need DB in order to save the data itself. Useful for manage cookies, sessions, users, etc.
My advice - Download some HTML free template and use it as base. Integrate it with PHP for DB connection and usage.
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 8 years ago.
Improve this question
I'm currently using mysql_query() to approach DB.
I understand that this method will be removed in the future so I want to learn a new api.
What in your opinion is the best way and why? PDO or mysqli? or there is another one I haven't heard about?
Thank you.
I'm going to offer what I consider to be the best way to handle database stuff: Build your own class. In my case, this class just wraps mysql_* functions, however if I wanted to it would be really easy to change to a different one (such as if mysql_* gets removed). I only have to change a single file, and instantly the entire project is using a new API.
Believe me, do this right at the start and you will save yourself a LOT of work if and when you decide to change things around!
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 9 years ago.
Improve this question
I have looked at languages such as PHP, Python, Ruby and Skala. However, I haven't found any language that meets the requirement below:
I'm looking for a language that is lax enough to quickly write a web application prototype with (without bothering with best practices), but is also sophisticated enough to support me when trying to "refactor to design patterns".
Is there a language/web framework specifically created for this purpose? An example would be PHP, optionally acting like Java if the developer requires it.
Refactoring bad code "to design patterns" has nothing to do with the language's sophistication.
You can really try any of the mentioned languages and see which one is the easiest for you to learn, you can't go wrong with any of them.
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.