Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under php...

sinanata says...

       
Click here to download:
zoopa_ass_kicking_lifestream.zip (40 KB)

Tonite! I'm proudly announcing zoopa. An open source lifestreaming software.

We'll be developing our source and community at - http://zoopa.org - Today I gave you some clues about it.

It's community site and first screenshots will be ready soon.

We're open for any contribution.

Filed under: php

sinanata says...

I was thinking about Jon's sweetcron for a while. You know it's a simple lifestream engine made by Jon Yongfook Cockle. Recently I've heard that he stopped it's development cuz of his own business focus.

Since I left the mambo / joomla community before 3-4 years, I was thinking about releasing an open source product.

Nowadays I'm modeling smt in my mind. An open source software which's only for lifestream. After you install it in your domain, it posts your data to all social networks (facebook, posterous, tumblr, friendfeed, flickr, youtube etc.) and fetchs all your data from them. Analytics integration, comments, multi user usage, posting via web interface and posting via email.

I'm still working on it and before I start to build the community. I'm open for programming contribution to the project. I prefer php,mysql for it. What do you say?

Filed under: php

POPOEVER says...

由 Packt Publishing 主办的 2009 Open Source CMS Award 日前揭晓,WordPress 获得全场最佳开源 CMS 大奖,祝贺 Matt 和 WordPress 团队! 奖项分配 全场最佳 CMS (Overall Best Open Source CMS Award) WordPress: $4,000 MODx: $2,000 SilverStripe: $2,000......

 

Filed under: PHP

The PHP development team would like to announce the immediate
availability of PHP 5.3.1. This release focuses on improving the
stability of the PHP 5.3.x branch with over 100 bug fixes, some of
which are security related. All users are encouraged to upgrade to
this release.

Security Enhancements and Fixes in PHP 5.3.1:
- Added "max_file_uploads" INI directive, which can be set to limit the
 number of file uploads per-request to 20 by default, to prevent
 possible DOS via temporary file exhaustion. (Ilia)
- Added missing sanity checks around exif processing. (CVE-2009-3292, Ilia)
- Fixed a safe_mode bypass in tempnam() identified by Grzegorz Stachowiak.
 (CVE-2009-3557, Rasmus)
- Fixed a open_basedir bypass in posix_mkfifo() identified by Grzegorz
 Stachowiak. (CVE-2009-3558, Rasmus)
- Fixed bug #50063 (safe_mode_include_dir fails). (CVE-2009-3559,
 Johannes, christian at elmerot dot se)
- Fixed bug #44683 (popen crashes when an invalid mode is passed).
 (CVE-2009-3294, Pierre)

Key Enhancements in PHP 5.3.1 include:
- Fixed crash in com_print_typeinfo when an invalid typelib is given. (Pierre)
- Fixed crash in SQLiteDatabase::ArrayQuery() and SQLiteDatabase::SingleQuery()
 when calling using Reflection. (Felipe)
- Fixed crash when instantiating PDORow and PDOStatement through Reflection.
 (Felipe)
- Fixed bug #49910 (no support for ././@LongLink for long filenames in phar
 tar support). (Greg)
- Fixed bug #49908 (throwing exception in __autoload crashes when interface
 is not defined). (Felipe)
- Around 100 other bug fixes

For users upgrading from PHP 5.2 there is a migration guide available on
, detailing the changes between those
releases and PHP 5.3.

For a full list of changes in PHP 5.3.1, see the ChangeLog at http://www.php.net/ChangeLog-5.php#5.3.1

Filed under: php

Zend Server 4.0.6 is now available for download.

This maintenance release includes:

  • PHP 5.2.11
  • Zend Framework 1.9.5
  • Apache 2.2.14 for Windows, Mac OS (Zend Server CE only), and tarball distributions
  • Windows 7 support
  • Security and other bug fixes

Download Zend Server 4.0.6 »


** Note for Linux users: Starting with Zend Server 4.0.5, the Zend Server and Zend Server CE DEB/RPM repositories have moved to a unified location under http://repos.zend.com/zend-server. This was done in order to simplify migrations between PHP 5.2 and PHP 5.3, and between Zend Server CE and Zend Server.

If you have not already done so, please update your repository setup and follow the update procedure, as described here: http://forums.zend.com/viewtopic.php?f=8&t=4309

If your repository setup had already been updated for the 4.0.5 release, upgrading to 4.0.6 should be done using the normal upgrade methods described in the installation guide.

Filed under: php

I've been interested in web development / design for over 10 years. I've dabbled, dawdled, played and did a little here and there, but nothing fancy...ever. I know a little HTML, I've gotten much better at CSS, but from there my knowledge terminates. What's missing? PHP, MySQL, ie: server-side programming.

I'm working on a major project that will require an extensive MySQL database with heavy PHP scripts running on all pages of the site. I once took a seminar on MS Access which taught me a little about relational databases, which turns out to be important because that's the 'heart and soul' of MySQL.

I found a book, "PHP in a Nutshell" which I plan to get my hands on soon. I'm hoping this book will help launch me into a whole new world of understanding and website development. My site idea requires a great deal more knowledge and experience than I have currently, so here goes nothing.

I'll post a vague summary of my project in the near future. For now, check out my other project here.

Filed under: PHP

Andrew says...

Create /etc/php.ini and make it writable

cd /etc
sudo cp php.ini.default php.ini
sudo chmod 777 php.ini

In php.ini, find this line:

;date.timezone =

Uncomment it and insert your time zone (http://php.net/manual/en/timezones.php)

date.timezone =America/Vancouver

Restore php.ini permissions

sudo chmod 444 php.ini

Restart Apache

sudo apachectl restart

As promised. Hot tip - you should probably avoid Entropy just for now (certainly - they will update it).

For whatever reason - I had a myriad of problems attempting to get it to work with Apache on my new 64 bit machine. Once we switched back to the original Apache PHP5 module, it seemed to work properly.

Filed under: PHP

Andrew says...

Working in Web Development means you have to have a development environment installed on your local machine, in order to test and develop dynamic pages, using a web server (Apache,), a database (MySQL) and a scripting language (PHP). There are ways of getting those components installed in a bundle, like WAMP, LAMP or MAMP. But as a developer, you are more the manual type, right? So as I had to go through that installation process recently, this article documents the steps I went through.

Apache

OSX already comes with Apache installed, it is just a matter of starting the server. You can do this if you go to System Preferences > Sharing and check “Web Sharing”. The Apache default page should now be displayed at

Later on, you can use the following commands to start, stop or restart Apache:

$ sudo apachectl start
$ sudo apachectl stop
$ sudo apachectl restart

If you would like to change the DocumentRoot of the server, you need to edit the httpd.conf file:

$ sudo vi /etc/apache2/httpd.conf

In here, you need to change the DocumentRoot setting:

DocumentRoot "/Users/myUser/myNewWebroot/"
<Directory "/Users/myUser/myNewWebroot/">
...
</Directory>

PHP

PHP comes bundled up with Leopard as well. The important things to know here are where it got installed and where to find the configuration file.

Most likely, it got installed to:

/usr/local/php5

The configuration file should be located at:

/private/etc/php.ini

You only need to make sure that Apache knows that PHP is available, so edit httpd.conf:
$ sudo vi /etc/apache2/httpd.conf

And add the following lines (in the appropriate sections, to keep things tidy):

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

LoadModule php5_module libexec/apache2/libphp5.so

Finished with that, restart Apache, empty the browser cache and then load a php file for testing if it is correctly interpreted.

MySQL

Download the most recent dmg image from the MySQL site.

Before actually installing MySQL, I found it helps to restart the computer before proceeding with the installation. When running through the installation wizard, MySQL will get installed to:

/usr/local/mysql-VERSION

So, for example:

/usr/local/mysql-5.0.51b-osx10.5-x86/

Also, a symlink should have been created:

/usr/local/mysql -> mysql-5.0.51b-osx10.5-x86

You should also install the Preference Pane, which comes with the installation package as MySQL.prefPane

To start MySQL manually, run the following command:
$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start

You should also add MySQL to $PATH:
$ vi ~/.profile
$ export PATH=$PATH:/usr/local/mysql/bin
$ source ~/.profile

To check whether that was successful, run:
$ echo $PATH

The default settings for the root user are:

  • Username: root
  • Password: [leave blank]

Add-on: PHPmyAdmin

To get PHPmyAdmin installed, which comes in handy for managing your database(s), download the latest package from their download page. Extract that package to a directory somewhere in your DocumentRoot.

Open config.sample.inc.php with an editor of your choice and add the following details for your MySQL installation:

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'whatever'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

$cfg['Servers'][$i]['user']          = 'root';
$cfg['Servers'][$i]['password']      = ''; // use here your password

After you made those changes, save the file as config.inc.php.

PEAR

PEAR should also already be available on your Mac. The location is probably:

/usr/local/php5/bin/pear

It is a good idea to add the path to PEAR to $PATH, similar to setting the path for MySQL (see above). In addition, upgrade PEAR to the latest version like so:

$ sudo pear channel-update pear.php.net
$ sudo pear upgrade PEAR

Resources

Nice clean "how to" article. I'm looking for a really comprehensive one on Snow Leopard (I'll post it if I find it)- cause getting all this to run yesterday was kind of a pain.

Filed under: php

corrinely says...

I've been learning the Zend Framework for an upcoming project and have been using this book, Beginning Zend Framework, as a guide. It's informative and clearly written, but some of the example code is broken. The example of customizing views in Chapter 4 is missing some key code, I've pasted it below in hopes of saving someone else the frustration of figuring out what went wrong.

AccountController.php

defined('APPLICATION_PATH')  || define('APPLICATION_PATH', realpath(dirname(__FILE__)));  // Add this to the beginning of your file to define the application path.
public function updateAction()
{
$this->_helper->viewRenderer->setNoRender();  // This needs to be set so that the default view will not display.
$view = new Zend_View();      
$location = APPLICATION_PATH.'/views/scripts/artist/';  // Define the absolute path for your file.
$view->setScriptPath($location);  // Set the file location.
echo $view->render("update.phtml");  //  Add echo to the begininng of this statement.
}

update.phtml

defined('APPLICATION_PATH')  || define('APPLICATION_PATH', realpath(dirname(__FILE__)));  // Add this to the beginning of your file to define the application path.
$location = APPLICATION_PATH.'/views/scripts/includes/';  // Define the absolute path for your file.
$this->setScriptPath($location);  // Set the file location.
echo $this->render('header.phtml') ?>  //  Render the view.

Filed under: php

Spyros says...

Read this great article at http://net.tutsplus.com/tutorials/php/how-to-create-a-photo-gallery-using-the-flickr-api and learn how to make a photo gallery from your flickr stream in your website.

Filed under: php