u/ambiversive
In this archive from Jan 2009 to Jan 2012
- 63
- posts
- 177
- comments
- 12
- media
- 2.3k
- score
Requesting feedback on this little experiment of mine. It is a bare-bones link aggregating/caching web proxy- very unpolished, insecure
github.com/ambiversive/nomySeeking opinions on an alternative side bar menu .. made using just CSS and unicode
Can anyone recommend a plug-and-play secure image upload php class/script?
Is it necessary to ensure the referer for forms is your server?
$ref = $SERVER['HTTP_HOST']; $srv = $SERVER['SERVER_NAME']; if($ref != $srv){ die(); } Is there any point to this code?
What's the best way to handle long operations?
Let's say you wanted to parse and output the results of hundreds of rss feeds. You could do it all in one file, which might take a few minutes to return. Then you'd want to cache the output of that file to a static file so you didn't have to wait a few minutes every time you wanted to see the list....
Why would CDATA in the feed cause this RSS parse function to fail?
function getItems(){ $doc = new DOMDocument(); $doc->load($this->url); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(
Can we have a discussion about ways humans might realistically defend themselves against killer robots?
Here's a screencast demonstrating the RSS reader in my php-app ASG
improvise.it/rss.htmWould anyone like to help me out by modifying lastRss.php to accept Atom?
github.com/ambiversive/asg/blob/master/classes/c...Is this a dangerous snippet?
<?php $SESSION['something] = $POST['something']; Assuming $SESSION['something] is never used as a test for anything important elsewhere, and is stripped of tags before being output, and only used in parameterized PDO queries.
Does anyone have any experience porting a php application to a standalone executable?
If so, what tools do you recommend? What functionality is lost in the process? Does it work with MySQL?
So I'm using wget to fetch a backup for my link aggregator, but redirects are fuxing me up.. help?
So I'm using wget like this: wget -E -H -k -K -p $url -P ../cache/ And it works fine if the link is simple enough and doesn't redirect. I just point to /cache/$url and voila, I have a backup. But if the site redirects, I get screwed! For example: http://www.bbc.co.uk/go/rss/int/news/-/news/entertain...
Seeking feedback on my CMS
It's been posted here before, and I've tried to take all the critiques into account. Features: OOP/MySQL/PHP/HTML/CSS/JS/Jquery/scrollTo+LocalScroll Documents organized in tree hierarchy, each document can act as directory Every edit of a document saves a new revision with the old document Chat inte...
If you were making a link aggregator with PHP and wanted to save copies of the contents of the links, what would you do?
You could save the contents of the link using fopen(), no problem. But that is the most naive method. You'd be left with a jumble of junk that wouldn't display properly without fetching all the other files it is dependent on. If we're just after the content of the page, we could use something like b...
I'm opening the chat for improvise.it, would anyone like to attempt to hack it or break it?
This is a very stripped down version of my site, it puts new users in a restricted feature-minimum user group. There are only three forms involved from the public perspective- register, login, and (after login) the command-line. The command line strips tags for restricted users, and prepared stateme...
Describe one important architecture consideration that must be considered when building a complex, database-driven, interactive, multi-user website
So I'm a terrible software architect, but I'm trying to get better. These are the topics I'm studying in that effort and I think having clear descriptions of these concepts all in one place would be beneficial. Some entries in this list are jokes, please beware. Frameworks Hashing Encryption Form ke...
RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library
hasin.wordpress.com/2011/09/11/rsa-encrypting-an...I wrote this code that uses PHP to generate the code for a PHP class based on any arbitrary table structure, comments?
pastebin.com/an4xAfjGAlternatives to eval?
Let's say you wanted to keep code in a database then execute it at certain places. Eval works, but I've been told by numerous people that it is cumbersome and incorrect. So what would be the optimal method of executing code stored in a db?