Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hello Mr. Ullman I just wanted to take a quick minute and thank you for your books, for me as a new programmer I have no words to thank you for your imparted knowledge in the books.


I was working on chapter 12 and for the most part I am able to figure this stuff out.


Regarding the question, I'm just not sure what I'm supposed to put in the red highlighted area in my code:



// Start defining the URL...

// URL is http:// plus the host name plus the current directory:

$url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']);


is it something like:


$url = 'http//mysite.com(the adress)/webhostinghub(host)/siplog(username)/publichtml(directory)... here, wouldn't I need the password?


I guess the question is how specific or in a real world example how are we to fill this out.


Also in the HTTP_HOST field are we to fill anything else out here?


Thank you for your time and knowledge,



Link to comment
Share on other sites

I was going to reply today, but it looks like you've figured it out. Kudos. In the future, please keep the original post in place and then add your solution. That way other people might be able to benefit from your experience, which is what the forums are all about.

Link to comment
Share on other sites


  • Create New...