Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This PHP code is made to help people using the ActionScript 3 AlivePDF library to save PDF files from a Flash app to a server.
ActionScript 3 AlivePDF save code:
_pdf.save(Method.REMOTE, "save.php", Download.ATTACHMENT, "MyFile.pdf");
0
1010
posted 12 years ago by vamapaull
Set a variable by getting the URLs id with PHP. Find the the option with the name value that is equal with the variable and add "selected" to it.
0
963
posted 12 years ago by LadyLoomis
Navigating the DOM in jQuery is incredibly simple and thats to phpQuery you can do the same in php. Below are some examples of how it's used, the key change bing that instead of $() you use pq(), and instead of a . you used ->. Theres alot more detai...
0
1024
posted 12 years ago by FatFolderDesigner
This sorts a multi-dimensional array by one of the values in the array. Sorts in Desc order (most recent date first).
0
964
posted 12 years ago by bitsculptor
Show and hide content based on whether or not a user has clicked the 'Like' button of an app.
0
789
posted 12 years ago by the_construct
Getting files, folders, file count, folder count in a directory with php and writing them to a web page
1
1591
posted 12 years ago by duzenz
I like using public properties, as they greatly aid in API development and proper encapsulation. Here's my solution for having the ease of public variable getting without the dangers of public variable setting.
0
840
posted 12 years ago by phpexpert