PDA

View Full Version : $pu['file']


Pulsar-san
05-24-2004, 02:43 AM
In robot_functions.php you make a call to parse_url($url)
and set this:
settype($pu['file'],'string');

The problem is that 'file' is not a valid component of the parse_url function and, of course, is always empty.

only these compenents ares valid:
scheme
host
port
user
pass
path
query
fragment

So, what is supposed to be 'file', 'query' ?

Pulsar-san
05-24-2004, 04:02 AM
I forgot to say in which function:
function phpdigGetSiteFromUrl($id_connect,$url)

[Edit:]
Ok, I think that I see what is wrong.
The call to phpdigRewriteUrl should be:
$subpu = phpdigRewriteUrl($pu['path'].$pu['query'].$pu['fragment']);

At least, that's how I understand what you're doing in that function.

vinyl-junkie
05-24-2004, 07:24 AM
If you'd like to know more about the function phpdigGetSiteFromUrl, you can read about it in the documentation here (http://www.phpdig.net/navigation.php?action=api#toc20).

Hope it helps. :)