This days I'm migrating from domainA.com to domainB.com and I need to replace the links in so many files at time.
The best way I found to do this is this:
Find all PHP files with the "domainA.com" string inside it:
find . -name "*.php*" -type f -print0|xargs -0 grep "domainA.com" >> smaCat.log
Replace all PHP it with command:
find ./* -name "*.php*" -type f -exec sed -i 's/domainA.com/domainB.com/g' {} \;
Friday, July 18, 2008
Thursday, July 17, 2008
IE6 and transparent PNG
Usually we develop a webpage using png images, it really looks better at IE7 and Firefox. But when we try to see that webpage with IE6 it doesn't shows the PNGs transparency :-(
For preventing this you can add this JavaScript Library to your webpage and just with an include like this:
Makes your webpage compatible with any transparent PNGs.
Download - Home
For preventing this you can add this JavaScript Library to your webpage and just with an include like this:
Makes your webpage compatible with any transparent PNGs.
Download - Home
Wednesday, July 16, 2008
Symfony Step1
A few days ago I started a symfony project, and there is some comandos that i will share width yours....
Creating a project
$ mkdir /home/sfprojects/askeet
$ cd /home/sfprojects/askeet
$ symfony init-project askeet
Creating an application on your project
$ symfony init-app frontend
After do that you created a new application called frontend that can be accessed from :
http://localhost/frontend_dev.php/
By default you can see the symfony default webpage of a symfony project.
See you tomorrow!!!
Creating a project
$ mkdir /home/sfprojects/askeet
$ cd /home/sfprojects/askeet
$ symfony init-project askeet
Creating an application on your project
$ symfony init-app frontend
After do that you created a new application called frontend that can be accessed from :
http://localhost/frontend_dev.php/
By default you can see the symfony default webpage of a symfony project.
See you tomorrow!!!
Subscribe to:
Posts (Atom)