OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
PHP Code Snippets: You Need to Know What Browser is Running
By admin ( 2008-09-20  7449 views. )
While developing a CSS heavy site using Joomla there are times where you just have to know - is this IE or not. Luckily (really not luck, the PHP folks always have a toolset available that you might need) the PHP standard library has a function to determine the browser capability.

At this point $browser is either "IE" or something else. That is really all you care to know typically. Then can do all the neato CSS different things you want to do.

By the way, the $browsercap has a boatload of other stuff that you may care about.
 

 
PHP Code Snippets: Minimal Cross Site Scripting Hints
By admin ( 2007-10-11  7420 views. )
A common attack on web sites is to plug in HTML code directly into a form field and attempt to gain control over some part of the site.
 

 
PHP Code Snippets: Encryption using PHP
By admin ( 2007-10-11  7457 views. )
PHP has a built-in function to encrypt a string, crypt(clear, salt) that would allow for an easy mechanism for encrypting strings, such as passwords for applications.
 

 
PHP Code Snippets: Generating a Checksum in PHP
By admin ( 2007-10-11  7497 views. )
PHP has two built-in functions that enable easy generation of a checksum: md5() and sha1().
 

 
PHP Code Snippets: How to Rebuild the Symfony Data Model Layer
By admin ( 2006-12-26  7211 views. )
I find that when developing I would normally use some other tool, such as phpmyadmin, to modify the structure of an existing database that I am using in a Symfony project.

These are the steps to update the Symfony data model code generated from an acompanying MySql database. I find I have to run these steps often while developing the application.

Assuming you are shelled into the root of your application directory. Also assumes that propel.ini points to your database.

1) We generate the schema using step 1.

This will generate the schema.yml file in your app/config directory.

2) While YML is nice, we really need XML so, we use this step 2command.

Again, this is quite verbose and not really human readable.

3) Finally, generate the code we use in base and peer classes using step 3.

The actual database access layer code is generated in the app/lib/model directory with names like Tablename.php and TablenamePeer.php. You normally use these objects for all database access.

This also generates all the BaseTablename.php and BaseTablenamePeer.php files in your app/lib/model/om directory. These are used as base classes in the previous code set.

This the first of a series of shorts on developing in Symfony
 

 
Item(s) 1 to 5 of 57.   Go to page: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting

Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005