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,

 

Adan

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...