PHP Programmer

marusia

Compromised Account
Joined
Oct 25, 2010
Messages
1,138
Reaction score
2,353
Hi Hi.

I'm looking for a php programmer for a quick project.

This is an idea of what I need:

ListA.txt contains:
hi
hello
good morning

ListB.txt contains:
tom
john
dan

The sentence will be like this

$ListA, is your name $ListB?

So the random output will be for example

hello, is your name dan?

Shouldn't take long. I'll pay $30. Skype me at Marusia1052 if you're interested. First come, first serve.
 
interested, i've no skype.
you want this as an example with a.txt b.txt and a test.php you can upload or test it in local using easyPHP for ex...
 
Code:
<?php

$listA= file_get_contents("listA.txt");
$listB= file_get_contents("listB.txt");

$listA = explode("\n",$listA);
$listB = explode("\n",$listB);

$i = array_rand($listA);

echo($listA[$i]." is your name ".$listB[$i]."?");

?>

Here you go.
 
Last edited:
Code:
<?php

$listA= file_get_contents("listA.txt");
$listB= file_get_contents("listB.txt");

$listA = explode("\n",$listA);
$listB = explode("\n",$listB);

echo ($listA.", is your name".$listB."?");
?>

Edit: Wait, give me a second. Forgot the random part.

perfeto. a small logic for Randomness is needed in it. thats it
 
Thanks guys. I already paid someone $30 for that. I'll keep you in mind the next time I need some PHP. :-)
 
Thanks guys. I already paid someone $30 for that. I'll keep you in mind the next time I need some PHP. :-)
Marusia,

I've got two guys that regularly do PHP for me, and just hired a 3rd (designer/WP themer) on a trial basis. Also my webmaster does PHP on her own. Just send me what you need and I'll pass it on. Something like this costs me less than $2.

B
 
Back
Top