Jump to content


Photo

httppath


  • Please log in to reply
1 reply to this topic

#1 bmbc

bmbc
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 22 April 2006 - 01:08 PM

I don't know what I'm doing wrong but it's something simple:



$httppath = "http:www.mydomain.com/folder".dirname($_SERVER['PHP_SELF']);


the index.php is in the folder which has the code for uploading files - the file uploads fine but when it shows it's url , it ends up being:

http:www.mydomain.com//www.mydomain.com/folder/file.jpg

Can someone please tell me why?

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 22 April 2006 - 03:12 PM

Hmm, thats wierd, beca it works for me fine...
Try doing it this way, maybe it will help:
$folder=dirname($_SERVER['PHP_SELF']);
$httppath = "http:www.mydomain.com/folder";
$httppath.=$folder;

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users