PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Bug Tracker

Reply
 
Thread Tools
Old 05-24-2004, 01:43 AM   #1
Pulsar-san
Green Mole
 
Join Date: May 2004
Location: France
Posts: 8
$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' ?
__________________
Webmaster of www.fanfic-fr.net
Responsible for www.mylinea.com/fanfictions/
Pulsar-san is offline   Reply With Quote
Old 05-24-2004, 03:02 AM   #2
Pulsar-san
Green Mole
 
Join Date: May 2004
Location: France
Posts: 8
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.

Last edited by Pulsar-san; 05-24-2004 at 03:58 AM.
Pulsar-san is offline   Reply With Quote
Old 05-24-2004, 06:24 AM   #3
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
If you'd like to know more about the function phpdigGetSiteFromUrl, you can read about it in the documentation here.

Hope it helps.
vinyl-junkie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:30 PM.


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