PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Bug Tracker (http://www.phpdig.net/forum/forumdisplay.php?f=27)
-   -   $pu['file'] (http://www.phpdig.net/forum/showthread.php?t=957)

Pulsar-san 05-24-2004 01:43 AM

$pu['file']
 
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 03: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 06:24 AM

If you'd like to know more about the function phpdigGetSiteFromUrl, you can read about it in the documentation here.

Hope it helps. :)


All times are GMT -8. The time now is 05:02 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.