Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a website that's been set up rather poorly (2000+ page files that has code copy/pasted for header+footer sections instead of setting up includes() for external files.)
I was wondering if there was a way I could write some sort of script or macro or something that will go through each file, find a specific snippet that starts with (for example) and ends with , and just deletes that specific section of code.
I don't have any experience with writing macros or anything else like this so if there's a program that exists or an add-on in sublime or something like that, It would be amazing if someone could point me in that direction. Otherwise, how should I get started in creating something that can do this for me?
Thanks for your help! Please let me know if I can answer any questions to clarify this.
Sublime text 2 or Sublime text 3 supports regex.
They also have features where you can 'find & replace'
If the website is hosted on a linux server you can look into sed . It is extremely powerful and you can have it search recursively on a directory if you pair it with a find command.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I work on one project, I used html2pdf by spipu but unfortunately I encountered problems at the end, such as problems with pictures and also rendering. My question is what would you recommend if I want to convert the automatically generated html into a php file to pdf on my own domain and site. My idea is something like this that my given html generated code, which already shows me a browser as it would convert to pdf (using html5 ...). Also, and this is probably the biggest problem I need to get rid of before and after element. I was looking at different kinds but some require api key and registering and then converting this html somewhere else, and I would like to avoid it.
I've used tcpdf in the past it works great and it's open source.
Take a look at their website they have plenty of examples that might get you going.
Wanted to mention this answer as a comment since the question is vague but my SO reputation prevents me from that still..
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Right now, I am using CI 3.0 . And for create report like invoice, monthly report sales, I using dompdf which is so spending time to debug coz dompdf not really support JS.
I was wondering a tools like crystal report , drag and drop report. I am not sure that PHP have like that.
I found php-reports, it looks interesting. But I dont know how to integrate it.
Perhaps, someone out there have solution to this PHP Reports, or maybe if you are share how to simplified creating a report in CI.
Thank You
maybe look at; http://www.hkvstore.com/phpreportmaker/
this questions lightly talks about using it; here
CI is great in that you are allowed to break the rules if you want. if its painful working inside the M-V-C approach then bend some rules or look at another method; like writing a library, or have your model generate more than just the dataset and include html ready for your CSS that your view just has to output (rather than parse).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have website and I need to build fast search engine for it. I have to search text in database or files (word, pdf) . I want too when I search a text the result the exact word or a text which have close writing, for example, I type "exemple" the result show "example" or "examples" even if this text is in database or in files(word, pdf). My website is in PHP and I don't work with any framework.
Can someone tell me a solution or give me a link tutorial about this.
Thanks
There are a bunch of solutions (e.g. do you want to index your files periodically of do you prefer ad hoc searches?).
Look up XML parsing and PDF parsing.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
i want to create an interactive code editor for my website,that people visit and try different language code and the online code editor interact with the person if he did something wrong and i was searching using Google to get some answers but didn't find any or i am unable to ask correct question! (so sorry for that and also for my English or something else),so i am here for the question which i need answer.
I need a script which can perform all the function/which i can implement in my website. OR
if you know the name of the scripts tell me i will buy it to implement it on my website. OR
you can give me a rough idea how i can create interactive code editor and the rest i will do.
Thank you for help and is my question in appropriate to ask?? than reply me in comment.
What language would you do to test their code online? php?
For syntax coloring online via a textarea you can use http://codemirror.net/
Basically you want to do this => http://www.compileonline.com/?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to design a Forum using Php but the problem I am facing is that I dont know how can I put a Post creator in it. As far as I know something like wysiwyg editor is used for it but how can I get it.
By Post creator I mean some thing like here on stackoverflow we are given an editor by which we post our questions. That is the same thing I need.
Thanks
There are several great WYSIWYG editors ; to name only two of the most-used, you could think about :
TinyMCE
CKEditor
In each case, I suggest you read their documentation, to see how they can be integrated into your website ;-)
Generally speaking, getting the data entered by the user will not be harder than reading an element of the $_POST array.
What you're looking for is called an RTE or Rich Text Editor. There are many around.
See here
You can also view the answer from here for something similar to what stackoverflow uses.