bmbc Posted April 22, 2006 Share Posted April 22, 2006 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.jpgCan someone please tell me why? Quote Link to comment https://forums.phpfreaks.com/topic/8109-httppath/ Share on other sites More sharing options...
Orio Posted April 22, 2006 Share Posted April 22, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/8109-httppath/#findComment-29594 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.