Jump to content

httppath


bmbc

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?
Link to comment
https://forums.phpfreaks.com/topic/8109-httppath/
Share on other sites

Archived

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

×
×
  • Create New...

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.