Jump to content

Archived

This topic is now archived and is closed to further replies.

bmbc

httppath

Recommended Posts

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?

Share this post


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

Orio.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.