|
Posted by Jerry Stuckle on 03/02/07 22:57
affiliateian@gmail.com wrote:
>> Try adding this before your implode:
>>
>> echo $filename . "<br>\n";
>> echo "<pre>\n";
>> print_r(file($filename));
>> echo "</pre>\n";
>
> ok, added it and still got implode error. Commented out implode line
> and got an echo to show, but no url or title. Here is what we have.
> Any ideas?
>
> <?php
> $url=$_SERVER['SCRIPT_URI'];
> $file=explode("/",$url);
> $filename=$file[(count($file)-1)];
> echo $filename . "<br>\n";
> echo "<pre>\n";
> print_r(file($filename));
> echo "</pre>\n";
> //$content = implode('', file($filename));
> preg_match("/<title>(.*)<\/title>/i", $content, $match);
> $title = $match[1];
> $link=removedtodisplayproperlyhere.com/submit?url='.
> $url.'&title='.urlencode($title);
> ?>
> <a href='<?php echo $link;?>'>Link to stumbleupon</a>
>
You got an echo to show - but was it the right information?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|