Likes Received By nico_swd
-
Freewebspace liked nico_swd's post in the thread How to extract internal links of site?.
Just a slight error in the pattern. This works for me. function fetch_links($url) { if...
Jun 16, 2007 -
gordi555 liked nico_swd's post in the thread very simple parsing of tags.
What do you want to replace this with? As for Google, it'd be something like "Regular expression tutorial". This site may as well...
Jun 15, 2007 -
krakjoe liked nico_swd's post in the thread PHP site that shows all emails sent to domain.
I'm not too familiar with IMAP, but here's something I wrote. (Yes I was bored, lol) <?php error_reporting(E_ALL); $imap_host...
Jun 15, 2007 -
SedNaX liked nico_swd's post in the thread php string/regex question...
You're better of using explode() in this case. list($name, $lastname) = explode('<br>', $demo); echo $name; // john echo $lastname;...
Jun 13, 2007 -
goscript liked nico_swd's post in the thread Need Help Fast: SELECT DISTINCT query.
SELECT DISTINCT number, id, text, number FROM paragraph ORDER BY rand() LIMIT 3 Try this.
Jun 7, 2007 -
computerzworld liked nico_swd's post in the thread Javascript in PHP????.
Try: echo '<a href="dropdb.php?name='.$row->Database.'" onClick="return confirm(\'Are you sure?\');">Delete</a>'; With the...
Jun 6, 2007 -
kkibak liked nico_swd's post in the thread Need data to contain only standard English characters.
Have a look at this page and the user comments, this should get you started: http://www.php.net/strtr
May 31, 2007 -
pasfile liked nico_swd's post in the thread need help - fatal error.
Seems like GD isn't installed or loaded. Try adding this at the top of your page: dl('gd.so'); // Or this if you're on a windows...
May 31, 2007 -
protocol96 liked nico_swd's post in the thread php mysql ' character issue.
www.php.net/mysql_real_escape_string
May 30, 2007 -
coderlinks liked nico_swd's post in the thread php copy files.
$source = './path/to/folder1/*.*'; function copy_files($file, $destination = './path/to/folder2/') { copy($file, $destination ....
May 29, 2007 -
DarrenC liked nico_swd's post in the thread American Date conversion.
function ukdate($usdate) { return date('d/m/Y', strtotime($usdate)); } // Outputs: 28/12/2006 echo ukdate('12/28/2006');
May 23, 2007 -
JEET liked nico_swd's post in the thread question about php and music files.
In the first lines of the code, replace this: private $id3v1 = bool; private $id3v2 = bool; With: private $id3v1l; private...
May 20, 2007 -
coderbari liked nico_swd's post in the thread array help please.
$words = 'toyota, bmw, audi, opel, audi, bmw, renault,,,,,'; $tmp = preg_split('/,\s*/', $words, -1, PREG_SPLIT_NO_EMPTY); asort($tmp);...
May 19, 2007 -
commandos liked nico_swd's post in the thread Help in regular expression.
$text = preg_replace(array('/[^\w-]+/', '/-{2,}/'), array('', '-'), str_replace('.', '-', $text)); This would allow only alphanumeric...
May 19, 2007 -
Subikar liked nico_swd's post in the thread help woth cloud tag.
It's poorly explained on this website, but where the function is marked, it's just supposed to start there. It should be closed later...
May 12, 2007 -
terryuk liked nico_swd's post in the thread I need to....
$color = 'white'; while (/* condition */) { $color = $color == 'grey' ? 'white' : 'grey'; echo $color; }
May 12, 2007 -
CodyRo liked nico_swd's post in the thread PHP - Converting IP to Country.
Has been answered here: http://www.programmingtalk.com/showthread.php?t=37920 Why do people always have to post on multiple forums? :(
May 11, 2007 -
decepti0n liked nico_swd's post in the thread Using curl to extract...
You're welcome. :)
May 9, 2007 -
commandos liked nico_swd's post in the thread Retrieving $_POST data question.
foreach ((array)$_POST AS $index => $value) { // $index = Field name // $value = Field value }
May 9, 2007 -
dp-user-1 liked nico_swd's post in the thread Looking for a simple PHP script ,could you help me ?.
<?php if (isset($_POST['url'])) { header('Location: '. $_POST['url']); exit(); } $links = array( 'Page 1' =>...
May 6, 2007