ginocote
-
Posts
13 -
Joined
-
Last visited
Never
Posts posted by ginocote
-
-
Hi, how can i integrate your script in that?
<div class="chunk" style="padding:0 5px;"> <ul id="maintab" class="shadetabs"> <li class="selected"><a href="#" rel="tcontent1">Description[/url]</li> <li><a href="#" rel="tcontent2">Listen[/url]</li> <li><a href="#" rel="tcontent3">Tab 3[/url]</li> <li><a href="#" rel="tcontent4">Tab 4[/url]</li> <li>Dynamic Drive</li> </ul>
So, the next one will be "maintab2" ect
Thank's
-
You need to put code in code tags [ code ] and [ /code ] without spaces
I don't see anywhere how i can edit my last message.
Cheer
-
Hi, how can i integrate your script in that?
<div class="chunk" style="padding:0 5px;">
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="#" rel="tcontent1">Description</a></li>
<li><a href="#" rel="tcontent2">Listen</a></li>
<li><a href="#" rel="tcontent3">Tab 3</a></li>
<li><a href="#" rel="tcontent4">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>
So, the next one will be "maintab2" ect
Thank's
-
Hi, i use a java scrip to expand content from a rss feed.
It doesn't work because when all feed are showing, all javascrit have the same ID and each ID shoud be unique,
can i create with php or javascritp a new ID for each java script created in this php loop with my result?
Like increment by one for each result?
I can add php into result because it's not inside javascript.
like
maintab1
maintab2
maintab3
But each element are not in the same php bloc code.
Cheer
Thank's
-
hi,
i found this script to check backlink and i think it can be usefull for the script i'm looking for.
I need a script that will look for all movie file in a website url like .mpeg .avi .wmv ect... and will not give other results than that.
and the result will be clickable to another script i did.
something like: http://www.myotherscript.com/webpage.php?url=http://www.theresultwefind.com/video.mpeg
Can someone help with that ?
[code]
<?
$text['N/A'] = "Ikke HTTP";
$text[OK] = "Valid hostname";
$text[FEJL] = "Invalid hostname";
$text[Død] = "No response";
$text[100] = "Continue";
$text[101] = "Switching Protocols";
$text[200] = "OK";
$text[201] = "Created";
$text[202] = "Accepted";
$text[203] = "Non-Authoritative Information";
$text[204] = "No Content";
$text[205] = "Reset Content";
$text[206] = "Partial Content";
$text[300] = "Multiple Choices";
$text[301] = "Moved Permanently";
$text[302] = "Found";
$text[303] = "See Other";
$text[304] = "Not Modified";
$text[305] = "Use Proxy";
$text[307] = "Temporary Redirect";
$text[400] = "Bad Request";
$text[401] = "Unauthorized";
$text[402] = "Payment Required";
$text[403] = "Forbidden";
$text[404] = "Not Found";
$text[405] = "Method Not Allowed";
$text[406] = "Not Acceptable";
$text[407] = "Proxy Authentication Required";
$text[408] = "Request Timeout";
$text[409] = "Conflict";
$text[410] = "Gone";
$text[411] = "Length Required";
$text[412] = "Precondition Failed";
$text[413] = "Request Entity Too Large";
$text[414] = "Request-URI Too Long";
$text[415] = "Unsupported Media Type";
$text[416] = "Requested Range Not Satisfiable";
$text[417] = "Expectation Failed";
$text[500] = "Internal Server Error";
$text[501] = "Not Implemented";
$text[502] = "Bad Gateway";
$text[503] = "Service Unavailable";
$text[504] = "Gateway Timeout";
$text[505] = "HTTP Version Not Supported";
function specialconcat($base,$path) {
$base = ereg_replace("(.*/)[^/]*","\\1", $base);
$path = ereg_replace("^(\.){1}/", "", $path);
if (ereg("^/", $path)) {
$base = ereg_replace("^(http://([^/]+))/{1}(.*)", "\\1", $base);
}
return $base.$path;
}
function sortarray($arr) {
if (count($arr) == 0) return $arr;
reset($arr);
while (list($key,$value) = each($arr)) $newarr[$value] = $key;
reset($newarr);
while (list($key,$value) = each($newarr)) $sortedarr[] = $key;
return $sortedarr;
}
function firstArd($url) {
$urlArray = parse_url($url);
if (!$urlArray[port]) $urlArray[port] = "80";
if (!$urlArray[path]) $urlArray[path] = "/";
if ($urlArray[query]) $urlArray[path] .= "?$urlArray[query]";
$sock = fsockopen($urlArray[host], $urlArray[port]);
if ($sock) {
$dump .= "GET $urlArray[path] HTTP/1.1\r\n";
$dump .= "User-Agent: Z-Add Link Checker (http://w3.z-add.co.uk/linkcheck/)\r\n";
$dump .= "Host: $urlArray[host]\r\nConnection: close\r\n";
$dump .= "Connection: close\r\n\r\n";
fputs($sock, $dump);
while($str = fgets($sock, 1024)) $headers[] = $str;
fclose($sock);
flush();
for($i=0; $i<count($headers); $i++) {
if (eregi("^HTTP/[0-9]+\.[0-9]+ 200", $headers[$i])) $location = $url;
if (eregi("^Location: ", $headers[$i])) $location = eregi_replace("^Location:( )?", "", $headers[$i]);
}
}
$location = trim($location);
return $location;
}
function check($url) {
if (!eregi("^http://", $url)) {
if (eregi("^mailto:", $url)) {
$url = trim(eregi_replace("^mailto:(.+)", "\\1", $url));
list($brugernavn, $host) = split("@", $url);
$dnsCheck = checkdnsrr($host,"MX");
if ($dnsCheck) $return[code] = "OK";
else $return[code] = "ERROR";
}
else $return[code] = "N/A";
}
else {
$urlArray = parse_url($url);
if (!$urlArray[port]) $urlArray[port] = "80";
if (!$urlArray[path]) $urlArray[path] = "/";
$sock = fsockopen($urlArray[host], $urlArray[port], &$errnum, &$errstr, 10);
if (!$sock) $return[code] = "Død";
else {
$dump .= "HEAD $urlArray[path] HTTP/1.1\r\n";
$dump .= "User-Agent: Z-Add Link Checker (http://w3.z-add.co.uk/linkcheck/)\r\n";
$dump .= "Host: $urlArray[host]\r\nConnection: close\r\n";
$dump .= "Connection: close\r\n\r\n";
fputs($sock, $dump);
while($str = fgets($sock, 1024)) {
if (eregi("^http/[0-9]+.[0-9]+ ([0-9]{3}) [a-z ]*", $str)) $return[code] = trim(eregi_replace("^http/[0-9]+.[0-9]+ ([0-9]{3}) [a-z ]*", "\\1", $str));
if (eregi("^Content-Type: ", $str)) $return[contentType] = trim(eregi_replace("^Content-Type: ", "", $str));
}
fclose($sock);
flush();
}
}
return $return;
}
function liste($url) {
global $Comments;
global $otherLinks;
global $removeq;
$text = implode("", file($url));
$text = eregi_replace("<!--([^-]|-[^-]|--[^>])*-->","", $text);
while (eregi("[:space:]*(href|src)[:space:]*=[:space:]*([^ >]+)", $text, $regs)) {
$regs[2] = ereg_replace("\"", "", $regs[2]);
$regs[2] = ereg_replace("'", "", $regs[2]);
$regs[2] = preg_replace("/(\s.+)/" , "" , $regs[2]);
if ($removeq) $mylist[] = ereg_replace("\?.*$", "", $regs[2]);
else $mylist[] = ereg_replace("#.*$", "", $regs[2]);
$text = substr($text, strpos($text, $regs[1]) + strlen($regs[1]));
}
$mylist = sortarray($mylist);
for($i=0; $i<count($mylist); $i++) {
$temp = "";
if (!eregi("^(mailto|news|javascript|ftp)+:(//)?", $mylist[$i])) {
if (!eregi("^http://", $mylist[$i])) $temp = specialconcat($url, $mylist[$i]);
else $temp = $mylist[$i];
}
else {
if ($otherLinks) $temp = $mylist[$i];
}
if ($temp && $temp != $url) $return[] = $temp;
}
if (count($return) != 0) return $return;
else return false;
}
if ($url && !eregi("^http://", $url)) $url = "http://$url";
if ($url && (eregi("^http://[0-9a-z.-@:]+", $url) || !eregi("^http://.*/.*[|><]", $url))) {
if ($removeq) $url = ereg_replace("\?.*$", "", $url);
$urlArray = parse_url($url);
if (!$urlArray[port]) $urlArray[port] = "80";
if (!$urlArray[path]) $urlArray[path] = "/";
if ($urlArray[query]) $urlArray[path] .= "?$urlArray[query]";
$uri = "http://".$extra.$urlArray[host].$urlArray[path];
while($uri != firstArd($uri) && $trin++ < 5) {
$uri = firstArd($uri);
$steps[] = $uri;
}
}
?>
<form action="<? print basename($PHP_SELF) ?>" name="submitform">
<label for="url">Enter URL:</label><br />
<input name="url" id="url" size="40" value="<? $uri ? print $uri : print $url ?>" /><br />
<label for="removeq">Remove querystring</label> <input type="checkbox" name="removeq" id="removeq" value="1" <? if ($removeq) print "checked"; ?> /><br />
<input type="submit" value=" Check " /> <input type="reset" value=" Reset " /><br />
</form>
<p>
<?
if ($uri) {
$liste = liste($uri);
if (is_array($liste)) {
print "<table summary=\"Results\" class=\"thin\">\n";
print "<tr><th>Status</th><th>Description</th><th>URL</th></tr>";
for($i=0; $i<count($liste); $i++) {
if ($i == count($liste)-1) $printTemp = $uri;
else {
$procent = number_format($i*100/count($liste),0,".","");
$printTemp = "$procent% - $liste[$i]";
}
$check = check($liste[$i]);
$code = $check[code];
$check[contentType] ? $contentType = ereg_replace(";.*$", "", $check[contentType]) : $contentType = "Unknown";
$statCode[$code]++;
$statContentType[$contentType]++;
print "<tr>
<td>$code</td>
<td>$text[$code]</td>
<td>";
if (eregi("^text/html", $contentType) && ereg("^(2|3)+[0-9]{2}", $code)) {
print "<a href=\"./".basename($PHP_SELF)."?url=".rawurlencode($liste[$i])."\">".rawurldecode($liste[$i])."</a>";
}
else print rawurldecode($liste[$i]);
print "</td></tr>\n";
}
print "</table>\n";
}
else print "<p><b>I didn't find any links.</b></p>";
if (count($statCode) >= 1) {
while(list($key, $value) = each($statCode)) {
$procent = ereg_replace('(\.)?0+$', '', number_format(($value*100/count($liste)),2,".",""));
$space = "";
for($i=0; $i<$procent/3; $i++) $space .= " ";
$print_statsCode .= "<tr><td>$text[$key]</td><td>$value</td><td> $procent% </td></tr>\n";
}
print "<p><b>Response Codes:</b></p>";
print "<table summary=\"Response Codes\" class=\"thin\">";
print "<tr><th>Status </th><th>Number </th><th>Percent </th></tr>";
print $print_statsCode;
print "</table>";
}
if (count($statContentType) >= 1) {
while(list($key, $value) = each($statContentType)) {
$procent = ereg_replace('(\.)?0+$', '', number_format(($value*100/count($liste)),2,".",""));
$space = "";
for($i=0; $i<$procent/3; $i++) $space .= " ";
$print_statsContent .= "<tr><td>$key</td><td>$value</td><td> $procent% </td></tr>\n";
}
print "<p><b>Content-Type:</b></p>";
print "<table summary=\"Content-Type\" class=\"thin\">";
print "<tr><th>Content-Type </th><th>Number </th><th>Percent</th></tr>";
print $print_statsContent;
print "</table>";
}
}
if ($url && !$uri) print "<p><b>Invalid adress.</b></p>";
?>
[/code]
Thank you
[/code][/code][/code][/code][/code][/code] -
[quote author=ronverdonk link=topic=106289.msg425044#msg425044 date=1156976318]
Why don't you make an INDEX.PHP on your
[url=http://scripts.toolurl.com/parseurl/parse_url.php?url=http://www.phpfreaks.com/forums/]http://scripts.toolurl.com/parseurl/parse_url.php?url=http://www.phpfreaks.com/forums/[/url]
site and put the following code in:
[code]<?php
header("Location: http://www.toolurl.com/search-domains.php?url=www.phpfreaks.com");
?>[/code]
Or do I misunderstand the question?
When you want to break down the url, you can use the parse_url command, see [url=http://nl3.php.net/manual/en/function.parse-url.php]http://nl3.php.net/manual/en/function.parse-url.php[/url]
Ronald 8)
[/quote]
I need a php scripts in this redirection to parse the url for this example:
http://www.phpfreaks.com/forums/index.php
and transforme it to
www.phpfreaks.com
witch scripts i should use to take my result www.phpfreaks.com and send it to the redirect script?
And the redirect scripts to work should be the first line of a web page, we can send the result www.phpfreaks.com at the beginning of the page. -
Any help for this redirection?
-
Hi,
I have this scripts and i want to take the result to redirect to a webpage.
[code]<?php
$url = trim($_GET["url"]);
$a = str_replace('www.', '', parse_url($url));
echo 'Lien vers <a href=http://www.toolurl.com/search-domains.php?url=www.' . $a['host'] .'>'. $a['host'] . '</a>';
?>[/code]
this is my test page:
http://scripts.toolurl.com/parseurl/parse_url.php?url=http://www.phpfreaks.com/forums/index.php
many test on this page: the last two result are the good one.
i want to take a full url and redirect it to the www.toolurl.com search: for this example it will redirect to this page: http://www.toolurl.com/search-domains.php?url=www.phpfreaks.com
resume:
when someone will go to: http://scripts.toolurl.com/parseurl/parse_url.php?url=http://www.phpfreaks.com/forums/index.php
he will be automaticly redirect to: http://www.toolurl.com/search-domains.php?url=www.phpfreaks.com
Thank you to help -
Hi,
I just made a Ajax scripts directory and want help to add interesting ajax
scripts and tutorial in it.
You can add your ajax scripts, files, tutorial and your ajax website link
www.scriptsajax.com -
Hi,
I got this script and it's working well.
for opening a .txt file and open it in a php webpage.
[code]<?
$filename = "some_text_file.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
$contents=explode("\n", $contents);
echo "<table><tr>";
$i=-1;
$a=-1;
while($a < count($contents)){
$i++;
$a++;
if($i==3){
echo "</tr><tr>";
echo "<td>$contents[$a]</td>";
$i=0;
}else{
echo "<td>$contents[$a]</td>";
}
}
echo "</tr></table>";
?> [/code]
I want to modify it.
can someone help me with this?
How can i do to make each word or phrase become a link?
For example i have these keywords in my text files
Computer
laptop
website hosting
ect....
each word or phrase have to become a query link.
[code]
<a href="http://www.mysite.com/search?q=computer">Computer</a>
<a href="http://www.mysite.com/search?q=Laptop">Laptop</a>
<a href="http://www.mysite.com/search?q=Website Hosting">Website+Hosting</a> [/code]
i need to place a .gif image before each link, like a little arrow.
This is for my website
http://www.composantinformatique.com
This is my results
http://www.composantinformatique.com/scripts/menufromtext1ligne.php
The .txt file
http://www.composantinformatique.com/scripts/links.txt
Than you to help -
Hi,
I finally find how to read this external file with my search query
http://www.sedo.com/search/keysearch.php4?key=keyword
But i'm not finish yet and need some help
Here my search page who query the file below
http://www.toolurl.com/testsearchkeywords11.php?url=games
i enter the word games to show a result, you can enter any word you want.
Now i want that all my results become link to go to a external page.
[url=http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cx]games.cx[/url]
[url=http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cg]games.gp[/url]
etc....
Here the first link target to: http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cx
As you see all link begin the same but the extension after the keyword=
change acording to the results
all link should be blank. Here my php code
[code]<?php
$file = fopen("http://www.sedo.com/search/keysearch.php4?key=$_GET[url]", "r") or die("Couldn't open file");
$str = fread($file, 400);
echo $str = explode('#', $str);
echo "<tr align=center><td colspan=3>Keywords return " . sizeof($str) . " results on Sedo auction</br>";
foreach($str as $item){
echo $item . "<br>";
}
?>[/code]
How can i link all results to the right extension?
BTW, how to remove this "Array" text in my result page? -> ArrayKeywords return .....
Tank you for your help
Gino
www.toolurl.com -
Help to request a external web page
Hi need help to show a external webpage results from a keyword search in my website.
I don't know very musch about PHP
In my website, we can find many informations about domains names
[url=http://www.toolurl.com]www.toolurl.com[/url]
In my main search, i want to add the Sedo api search request.
Sedo page results for keyword book: http://www.sedo.com/search/keysearch.php4?key=book
for this example i placed the keyword "book" at the end
I want to show the result in my web page in a table
book.bz#book.gr#book.fm#book.gs#book.es#
And the results should be clickable (blank link) so i can redirect user to Sedo with my affiliate number
The link will send user to someting like that ([url=http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info]make a offer for book.info[/url]):
[url=http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info]http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info[/url]
i just begin i for now, i only find how to grab the plain information with this code:
[code]<?php
$fichier = fopen("http://www.sedo.com/search/keysearch.php4?key=book", "r"); //ouverture en lecture/ecriture
$str = fread($fichier, 500); //lecture du fichier
echo $str; //affichage du contenu du fichier
fclose($fichier); //fermeture du fichier
?>[/code]
here the my test page: http://www.toolurl.com/testsearchkeywords.php
I need 3 things
replace the word book with the search query
put my results in a table
All results become a link to Sedo with my affid and the right keyword results
One of these result could look like that
[url=http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info]book.info[/url]
Thank you to help me
Gino
Need help for increment numbers
in PHP Coding Help
Posted
Any help?