Menu

Home

Anonymous

a collection of php examples "how do i do what"

in my opinion it's always good to have an example-project in your workspace ( i work with eclipse-pdt (http://www.zend.com/community/pdt/downloads)).

so when you need to look up "how do i do what" you easily find the right functionality without googling around all day. :)

hope you enjoy! and contribute!

ps: EVERYONE HAS WRITE ACCESS TO THE GIT REPOSITORY! SO PLEASE USE IT AN ADD NICE EXAMPLES! :) THANK YOU!

======how to commit via git?======

=====First time using Git=====

cd myproject
git init

add all your files. Use can use specific filenames or directories instead of '.'

git add .
git commit -a -m 'Initial commit'
git remote add origin ssh://developer212@git.code.sf.net/p/php-examples/code
git push origin master
git branch --set-upstream master origin/master # so 'git pull' will work later

=====Existing repository using Git=====

cd myproject
git remote add origin ssh://developer212@git.code.sf.net/p/php-examples/code
git push origin master
git branch --set-upstream master origin/master # so 'git pull' will work later


MongoDB Logo MongoDB