recent searches:
include functions ,
variable functions ,
post functions...
If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.
PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.
Portability
Assuming it to be on, or off, affects portability. Use get_magic_quotes_gpc() to check for this, and code accordingly.
Performance
Because not every piece of escaped data is inserted into a database, there is a performance loss for escaping all this data. Simply calling on the escaping functions (like addslashes()) at runtime is more efficient.
Although php.ini-dist enables these directives by default, php.ini-recommended disables it. This recommendation is mainly due to performance reasons.
Inconvenience
Because not all data needs escaping, it's often annoying to see escaped data where it shouldn't be. For example, emailing from a form, and seeing a bunch of \' within the email. To fix, this may require excessive use of stripslashes().
Another Useful functions:
zend-api.zend-check-magic-method-implementation | security.magicquotes.whynot | security.magicquotes.why | security.magicquotes | security.magicquotes.disabling | ref.mime-magic | ref.imagick | language.oop5.magic | language.oop.magic-functions | function.set-magic-quotes-runtime | function.imagick-zoom | function.imagick-writeimages | function.imagick-writeimage | function.imagick-wave | function.imagick-unsharpmask | function.imagick-transparent | function.imagick-transformrgb | function.imagick-threshold | function.imagick-swirl | function.imagick-spread | function.imagick-solarize | function.imagick-shear | function.imagick-sharpen | function.imagick-shade | function.imagick-setfontstyle | function.imagick-setfontsize | function.imagick-setfontface | function.imagick-setfillopacity | function.imagick-setfillcolor | function.imagick-setdpi | function.imagick-setcompressiontype | function.imagick-setcompressionquality | function.imagick-set-image-quality | function.imagick-set-image-comment | function.imagick-scale | function.imagick-sample | function.imagick-rotate | function.imagick-roll | function.imagick-resize | function.imagick-reducenoise | function.imagick-readimage | function.imagick-read | function.imagick-raise | function.imagick-pushlist | function.imagick-profile | function.imagick-prev | function.imagick-poplist | function.imagick-ordereddither | function.imagick-oilpaint | function.imagick-normalize | function.imagick-next | function.imagick-newimagelist | function.imagick-negate | function.imagick-motionblur | function.imagick-mosaic | function.imagick-modulate | function.imagick-minify | function.imagick-medianfilter | function.imagick-magnify | function.imagick-level | function.imagick-ispaletteimage | function.imagick-isopaqueimage | function.imagick-ismonochromeimage | function.imagick-isimagesequal | function.imagick-isgrayimage | function.imagick-iserror | function.imagick-implode | function.imagick-image2blob | function.imagick-goto | function.imagick-getwidth | function.imagick-getnumbercolors | function.imagick-getmimetype | function.imagick-getmagick | function.imagick-getlistsize | function.imagick-getlistindex | function.imagick-getimagetype | function.imagick-getimagefromlist | function.imagick-getimagedepth | function.imagick-getheight | function.imagick-getdpiy | function.imagick-getdpix | function.imagick-getcolorspace | function.imagick-getcanvas | function.imagick-gaussianblur | function.imagick-gamma | function.imagick-free | function.imagick-frame | function.imagick-flop | function.imagick-flip | function.imagick-flatten | function.imagick-first | function.imagick-failedreason | function.imagick-faileddescription | function.imagick-error | function.imagick-equalize | function.imagick-enhance | function.imagick-emboss | function.imagick-edge | function.imagick-drawrectangle | function.imagick-drawpoint | function.imagick-drawline | function.imagick-drawellipse | function.imagick-drawcircle | function.imagick-drawarc | function.imagick-drawannotation | function.imagick-destroyhandle | function.imagick-despeckle | function.imagick-crop | function.imagick-convert | function.imagick-contrast | function.imagick-composite | function.imagick-clonehandle | function.imagick-chop | function.imagick-charcoal | function.imagick-border | function.imagick-blur | function.imagick-blob2image | function.imagick-begindraw | function.get-magic-quotes-runtime | function.get-magic-quotes-gpc |
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.