PHP short open tags were a quick way to enter the PHP code inside HTML pages through a simple <? instead of <?php. This practice is now deprecated.
To find all PHP’s short open tags ( <? ) inside an Eclipse project you have to enter a simple but effective regexp in the search panel:
To do this you have to select your project and press CTRL-H, then enter the following:
Press “search” and that’s it!
Please note that the regexp will cut off all valid <?xml declarations also!
Yes, sometimes it’s very frustrating… SELinux can be a rela pain in the ass.. so happens that you’ve configured your Apache server, you are ready to go… and all you get is a Forbidden page. Well if you have SELinux enabled, all you have to do is:
chcon -R -t httpd_sys_content_t /<documentroot>/
I had often the need to change massively ip addresses inside of text files. My current solution is quite simple:
currip=192.168.0.1; newip=192.168.0.2; sed -i -e "s/$currip\b/$newip/g" *.conf