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 an open source web application that has many files, which is why I want to debug it in real time:
While I am surfing the web application, I want it to show me the physical path on localhost for the URL requested as well as all the files that are used to render this specific page.
Is there any tool for this?
You can use the Xdebug function traces feature.
Since you already use Xdebug, you just have to add some configuration in your php.ini:
xdebug.auto_trace=On # Start tracing before the script is run
xdebug.collect_params=4 # Show full variable contents and variable name
The trace file will, by default, be written to /tmp. On Windows you better set that yourself with xdebug.trace_output_dir=C:\somedir
PHP has also something built-in, but its not as nice.
You can use xDebug with PHPStorm and Google Chrome plugin as described on JetBrains wiki page
I would suggest phptrace.
phptrace is a low-overhead tracing tool for PHP.
It can trace all PHP executing, function calls, request information during run-time. And provides features like Filter, Statistics, Current Status and so on.
It is very useful to locate blocking, heavy-load problems and debug in all environments, especially in production environments.
Features:
low-overhead, when extension loaded and trace is off
stable,
running on Qihoo 360 and tested on main-stream frameworks
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 4 years ago.
Improve this question
I am working with a PHP web application that has a MS SQL back end. The development copy is hosted on a Windows server.
There will be a few developers joining me on the project, and I need some sort of source control so that (obviously) we don't over-write each other's work. But since a PHP/SQL project has to be run from the server, we can't each work with local copies and then push the updates to the server...we all have to be working on the server itself.
So I have three questions:
My initial thought was a simple check-in, check-out system, which should be ok for our small team of 3-4 programmers. So, what is (currently) a good program for that?
I also thought about each developer having his own folder in the wwwroot folder, his own full copy of the program, then pushing updates to a master copy, also on the same server. Is there a good program for doing that (file merging and conflict management)?
Which method do you think would be better?
Run servers all your local machines. There’s lots of ways of doing this. If you’re using Laravel, it has a server built in php artsian serve. PHP 7 also has its own server built in.
Use a version control system like Git. You can learn here
Do this as soon as you can!
Sadly however, this question is not a suitable Stack Overflow question, so will be likely be closed soon. Good luck!
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 Webapp where user can upload documents(pdf, doc, rtf, txt etc) and want to check for virus before them getting uploaded. I am running this server on centos instance and using PHP for the webapp.
What Anti virus do you think are best for this kind of functionality. I am fine with any paid solution also, but it should have latest database for virus and can scan efficiently.
Thanks
I found a list on antivirus software for ubuntu, and they should be LSD compatible, so they should work on Centos. You can use the link above the check if they are.
The list is here, and wikipedia also contains a list of linux antiviruses.
I am not sure if they all suit your needs, but I know that AVIRA has a command line scanner.
Here are some sample lines of code:
scancl / --defaultaction=ask
scancl /var/www -z --defaultaction=repair,delete
Do you need the antivirus program itself to live on your centos OS, or are you open to connecting to the antivirus solution running on another server (or hosted solution)?
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 tried few on my android phone and they only highlight HTML/Javascript even though they offer shortcuts for php tags they don't have PHP highlighting. someone knows of one that highlights php?
P.S. dont get me wrong i am not going to program on phone, just in case i need to fix error or two on the go...
You can check out my app - Android Web Developer. It contains a lot features, e.g.:
Support all major web languages and formats: PHP, JavaScript, CSS, HTML
A lot of ways to reach your project ( FTP, FTPS, SFTP, WEBDav and growing)
Code highlighting
Code completion
Error checking
Hardware keyboard support (e.g hotkeys)
Code beautifying with one click
Tablet ready UI
Line numbering
Quick preview of your page
Highlighting the current line
Search and replace with regular expressions
Unlimited Undo/redo
Full screen mode
Recent projects
Periodical autosaving
Rename/create/delete/copy-paste files inside you project
I think it's most convenient for web developers than any that now exist in google play
http://www.touchqode.com/blog/010_php_ftp_support_in_new_version.htm#php
Use a SSH Client if you're going to fix an error or two. You don't need some IDE with tag support for your mobile device if you're not coding, would take up to many resources IMHO
connectbot
http://code.google.com/p/connectbot/
http://jsharkey.org/downloads/ssh.html (Video)
Learn VI
http://www.eng.hawaii.edu/Tutor/vi.html (I'm sure there are a ton of tutorials)
UPDATE (From your comment):
Use SSH to login to the server you wish to edit the PHP file on, I would suggest sftp. From there you can navigate to the file using commands like cd /var/www/public_html/ and edit files like this vi file.php.
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
Currently I am using cPanel's file manager to access my files, NotePad++ to edit them with syntax highlighting, and uploading them back to the server again using cPanel. Am I doing it wrong (I believe I am)? Is there a better way of doing this.
I can access my server using FTP.
I tried nearly every IDE out there and the two I liked best were Aptana Studio http://www.aptana.com and Netbeans http://www.netbeans.org
I ended up sticking with Aptana because I liked the dark backgrounds and I had a slight issue with Netbean's code completion.
Both IDEs are free and will allow you to connect through FTP.
Emacs has a mode called Tramp which allows you to edit files remotely. It will take care of transferring them to and fro using some protocol. It has ftp support.
Well on Windows I was using FAR+Colorer+WinSCP (or FTP) plugin for ages exactly for the online editing.
It is not an IDE but just a file explorer(a powerful one)/text editor though.
You could use Eclipse using the Remote System Explorer for that.
You simply have to create a new project and where Eclipse asks for the project location choose RSE, add your FTP/SMB/SSH/... connection and you're good to go.
There's also a PHP plugin for Eclipse.
If you want to stick to Notepad++, there's also a FTP plugin you might want to use.
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've found this online file explorer called enCode eXplorer. It was just what I was looking for; a simple, clean, free, easy-to-edit system, completely made up of one php file. The only problem I have with it is that it can only open relative subdirectories, which is not what I'm after.
Would anyone be able to suggest another product similar to this, but which can also display directories outside it's own directory/ subdirectories (so, for example, display a directory on another drive)?
I am not as interested in very detailed web file explorers like eXtplorer (extplorer.sourceforge.net) or AjaXplorer (sourceforge.net/projects/ajaxplorer). I'm more looking for a more simpler, editable explorer.
phpFileManager is a file manager based on a single PHP file with the capability to browse/manage outside of document root. It also allows browsing other drives as well. I have used it only on my Win7 desktop under Apache 2.2 and PHP 5.2.11. I have yet to run it on Linux.
It doesn't seem too difficult to edit or customize. The only difficulty I had initially was that I had to update the opening PHP tag in source from '<?' to '<?php'. The other gotcha I experienced was changing the configuration file using the built-in configuration HTML form. It seems to open itself up and modify a serialized PHP object in the opening comment at the source file.
I've found a decent alternative : Indexer! :D
Update (Dec 2013):
I have noticed the above link is now dead, so here is the file contents of indexer.zip hosted on Pastebin:
indexer.php
README
indexer_old_version_dont_use_anymore!.php
If you're interested you can view the (now dead) page using the Wayback Machine:
Indexer page
Indexer demo
Update 2019 :::
Besides the above, do also look at;
https://extplorer.net/
https://github.com/kalcaddle/KodExplorer
https://www.file-gator.com ( paid )
https://github.com/servocoder/RichFilemanager