I am looking to put a code on my WP blog that will pull in 2 files, having a hard time finding one searching in google... The first file I want it to pull from a list of keywords - or better yet - a list of spinable keywords making them longtail if possible, the second file I want it to pull from a list of URLs so it makes spun internal backlinks with my keywords
Random PHP code needed
4
I am looking to put a code on my WP blog that will pull in 2 files, having a hard time finding one searching in google...
The first file I want it to pull from a list of keywords - or better yet - a list of spinable keywords making them longtail if possible, the second file I want it to pull from a list of URLs so it makes spun internal backlinks with my keywords
I have one, but it only pulls from 1 file and I do not want to manually enter in all the URLs and keyword combos
<?php
$fcontents = join ('', file ('randomlinks.php'));
$s_con = split("~",$fcontents);
$link_no = rand(0,(count($s_con)-1));
echo $s_con[$link_no];
?>
any help would be great as this code pulls from the randomlinks.php and it has to be formatted like this:
<a href="mylink">keyword</a>
~
<a href="mylink">keyword</a>
~
<a href="mylink">keyword</a>
If I could make it pull from a second file inside randomlinks, that is what I am looking for...
<a href="mylink">getkeywords.php</a>
and format it exactly like the other file
KEYWORD1
~
KEYWORD2
~
ECT...
The first file I want it to pull from a list of keywords - or better yet - a list of spinable keywords making them longtail if possible, the second file I want it to pull from a list of URLs so it makes spun internal backlinks with my keywords
I have one, but it only pulls from 1 file and I do not want to manually enter in all the URLs and keyword combos
<?php
$fcontents = join ('', file ('randomlinks.php'));
$s_con = split("~",$fcontents);
$link_no = rand(0,(count($s_con)-1));
echo $s_con[$link_no];
?>
any help would be great as this code pulls from the randomlinks.php and it has to be formatted like this:
<a href="mylink">keyword</a>
~
<a href="mylink">keyword</a>
~
<a href="mylink">keyword</a>
If I could make it pull from a second file inside randomlinks, that is what I am looking for...
<a href="mylink">getkeywords.php</a>
and format it exactly like the other file
KEYWORD1
~
KEYWORD2
~
ECT...
- slamriot
- [1] reply
- JohnyData
- [1] reply
Next Topics on Trending Feed
-
4