**DO NOT BID IF YOUR ENGLISH IS BAD. IF YOU DON’T REALIZE IT, I WILL** I am looking for honest and reliable writers who can provide anywhere from 5-10 articles/blog posts in 24 hours. Here are the… (Budget: $30-250, Jobs: Articles, Blog, Copywriting, Ghostwriting, Reviews)
100 Forum Posts in SOUTH AFRICAN Forums. Start now. by MCZ
– Locate 100 SOUTH AFRICAN forums or blogs, relevant to the topic of our website. – We will provide you with the text to post in the 100 SOUTH AFRICAN forums that you’ll find. – URL Link to our website must be inserted in each posting… (Budget: $30-250, Jobs: Blog, Forum Posting, Link Building, Reviews, SEO)
Edit Flash Navigation and add drop down menu (repost, again by DreamInCode
I need a flash template navigation modified. The flash menu needs to be edited and a dropdown menu added. I will provide the navigation content to the winning bid. I need this done quickly, so if you can’t start now, please do not bid… (Budget: $30-250, Jobs: ActionScript, Animation, Flash, Website Design)
Joomla edits by pixeldesignhouse
I need a Joomla expert to make a few changes to a Joomla development site. Changes: Enable Rok Ajax Search Move menu to alternative module and retain appearance – remove bar where the menu was…. (Budget: $30-250, Jobs: Joomla)
J2ME mobile programming by Skywalker007
Need a programmer who can write code for mobile phones (Budget: $30-250, Jobs: J2ME)
100 Forum Posts in CANADIAN Forums. Start now. by MCZ
– Locate 100 CANADIAN forums or blogs, relevant to the topic of our website. – We will provide you with the text to post in the 100 CANADIAN forums that you’ll find. – URL Link to our website must be inserted in each posting… (Budget: $30-250, Jobs: Blog, Forum Posting, Link Building, Reviews, SEO)
UNIX or SQL questions Needing answers. by bradleysnider
If you consider yourself UNIX or SQL smart please bid $30 I only have a few questions and no work is required. (Budget: $30-250, Jobs: SQL, UNIX)
Web Articles by conextra
Need unique top-notch articles. Perfect grammar is a must. Starting rate is $ 0.25 for 100 words. Provide a sample of your unique text a smart description of your favorite drink (about 8-10 sentences)… (Budget: $30-250, Jobs: Articles, Blog, Copywriting, Proofreading)
Private Illustration project for Queenie by magentophreak
We know. Invalid description. Length of description must be at least 10 characters. <- lol? (Budget: $30-250, Jobs: Illustration)
## eBay USERS Needed ,$200 Per ITEM SOLD SUPER EBAY JOB ## by ga5ma63
*please* contact me NOW “at” : plpratt6 @ gmail dot com* *please* contact me NOW “at” : plpratt6 @ gmail dot com* You MUST have at least 3 positive feedback *** You MUST have at least 3 positive… (Budget: $250-750, Jobs: eBay, Sales, XXX)
10 PHP code snippets for working with strings
Automatically remove html tags from a string
On user-submitted forms, you may want to remove all unnecessary html tags. Doing so is easy using the strip_tags() function:
$text = strip_tags($input, "");
Source: http://phpbuilder.com/columns/Jason_Gilmore060210.php3?page=2
Get the text between $start and $end
This is the kind of function every web developer should have in their toolbox for future use: give it a string, a start, and an end, and it will return the text contained with $start and $end.
function GetBetween($content,$start,$end){ $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); return $r[0]; } return ''; }
Source: http://www.jonasjohn.de/snippets/php/get-between.htm
Transform URL to hyperlinks
If you leave a URL in the comment form of a WordPress blog, it will be automatically transformed into a hyperlink. If you want to implement the same functionality in your own website or web app, you can use the following code:
$url = "Jean-Baptiste Jung (http://www.webdevcat.com)"; $url = preg_replace("#http://([A-z0-9./-]+)#", '$0', $url);
Source: http://phpbuilder.com/columns/Jason_Gilmore060210.php3?page=2
Split text up into 140 char array for Twitter
As you probably know, Twitter only accepts messages of 140 characters or less. If you want to interact with the popular social messaging site, you’ll enjoy this function for sure, which will allow you to truncate your message to 140 characters.
function split_to_chunks($to,$text){ $total_length = (140 - strlen($to)); $text_arr = explode(" ",$text); $i=0; $message[0]=""; foreach ($text_arr as $word){ if ( strlen($message[$i] . $word . ' ') <= $total_length ){ if ($text_arr[count($text_arr)-1] == $word){ $message[$i] .= $word; } else { $message[$i] .= $word . ' '; } } else { $i++; if ($text_arr[count($text_arr)-1] == $word){ $message[$i] = $word; } else { $message[$i] = $word . ' '; } } } return $message; }
Source: http://snipplr.com/view.php?codeview&id=31648
Remove URLs from string
When I see the amount of URLs people try to leave in my blog comments to get traffic and/or backlinks, I think I should definitely give a go to this snippet!
$string = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $string);
Source: http://snipplr.com/view.php?codeview&id=15236
Convert strings to slugs
Need to generate slugs (permalinks) that are SEO friendly? The following function takes a string as a parameter and will return a SEO friendly slug. Simple and efficient!
function slug($str){ $str = strtolower(trim($str)); $str = preg_replace('/[^a-z0-9-]/', '-', $str); $str = preg_replace('/-+/', "-", $str); return $str; }
Source: http://snipplr.com/view.php?codeview&id=2809
Parse CSV files
CSV (Coma separated values) files are an easy way to store data, and parsing them using PHP is dead simple. Don’t believe me? Just use the following snippet and see for yourself.
$fh = fopen("contacts.csv", "r"); while($line = fgetcsv($fh, 1000, ",")) { echo "Contact: {$line[1]}"; }
Source: http://phpbuilder.com/columns/Jason_Gilmore060210.php3?page=1
Search for a string in another string
If a string is contained in another string and you need to search for it, this is a very clever way to do it:
function contains($str, $content, $ignorecase=true){ if ($ignorecase){ $str = strtolower($str); $content = strtolower($content); } return strpos($content,$str) ? true : false; }
Source: http://www.jonasjohn.de/snippets/php/contains.htm
Check if a string starts with a specific pattern
Some languages such as Java have a startWith method/function which allows you to check if a string starts with a specific pattern. Unfortunately, PHP does not have a similar built-in function.
Whatever- we just have to build our own, which is very simple:
function String_Begins_With($needle, $haystack { return (substr($haystack, 0, strlen($needle))==$needle); }
Source: http://snipplr.com/view.php?codeview&id=2143
Extract emails from a string
Ever wondered how spammers can get your email address? That’s simple, they get web pages (such as forums) and simply parse the html to extract emails. This code takes a string as a parameter, and will print all emails contained within. Please don’t use this code for spam
function extract_emails($str){ // This regular expression extracts all emails from a string: $regexp = '/([a-z0-9_\.\-])+\@(([a-z0-9\-])+\.)+([a-z0-9]{2,4})+/i'; preg_match_all($regexp, $str, $m); return isset($m[0]) ? $m[0] : array(); } $test_string = 'This is a test string... test1@example.org Test different formats: test2@example.org; <a href="test3@example.org">foobar</a> <test4@example.org> strange formats: test5@example.org test6[at]example.org test7@example.net.org.com test8@ example.org test9@!foo!.org foobar '; print_r(extract_emails($test_string));
Source: http://www.jonasjohn.de/snippets/php/extract-emails.htm
Like CatsWhoCode? If yes, don’t hesitate to check my other blog CatsWhoBlog: It’s all about blogging!
10 PHP code snippets for working with strings
Need icons made for web / mobile application by ccabell
Need icons for web / Mobile application. Please send portfolio and be prepared to do one sample icon. Paying $5 per icon. Samples of vectors are attaches, as well as samples of what we want the logos to look like… (Budget: $30-250, Jobs: Graphic Design, Illustrator, Photoshop)
15 – 400 word aticles on isc. subjects by apsmacart
15 – 400 word articles I need them within a weeks time Each title must woven into the article 3 or 4 times whilst maintaining the natural flow of the article. You must research the topics to provide original content… (Budget: $30-250, Jobs: Articles)
100 Forum Posts in SINGAPORE Forums. Start now. by MCZ
– Locate 100 SINGAPORE forums or blogs, relevant to the topic of our website. – We will provide you with the text to post in the 100 SINGAPORE forums that you’ll find. – URL Link to our website must be inserted in each posting… (Budget: $30-250, Jobs: Blog, Forum Posting, Link Building, Reviews, SEO)
PRIVATE FOR TUBEMAKER(FOR GOD SAKE DO NOT BID BANGALIS) by sehgals
HI WEL NEED TO TALK TO U PLZ BID AT 30 THANKS (Budget: $30-250, Jobs: Data Entry, Social Networking)