Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 13-01-2012, 10:28 AM   #1 (permalink)
VIP
 
RazorbladeXtreme's Avatar
 
Join Date: May 2008
Location: Jaipur
Posts: 187
Default Reading Wrox for PHP


I've started learning PHP and found that people prefer Wrox from an old thread of this forum.

My question - Is this book really reliable ?
The page 55 here says that $path in setcookie() is used to define path where the cookie is stored. I tried experimenting to store cookie at a custom location and see what is inside cookie. When I failed after a few tries, I referenced PHP: setcookie - Manual which says something else.

Encountering an error so early in the book makes me question the correctness of this book. Is this really the right book for PHP ?
__________________
Twitter: twitter.com/SharmaTushar
Facebook: facebook.com/tushar.sharma
RazorbladeXtreme is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 13-01-2012, 10:36 AM   #2 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: Reading Wrox for PHP

Both the page says same. Check again.
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is online now   Reply With Quote
Old 13-01-2012, 10:44 AM   #3 (permalink)
VIP
 
RazorbladeXtreme's Avatar
 
Join Date: May 2008
Location: Jaipur
Posts: 187
Default Re: Reading Wrox for PHP

Quote:
Originally Posted by php.net
The default value is the current directory that the cookie is being set in
as far as I can guess, this suggests the directory level at which the cookie was set, so pages at similar and deeper levels within the same tree can access the cookie.


Quote:
Originally Posted by Worx
Path (the directory where the cookie will be saved — the default is usually sufficient; this is optional).
strikes to me as the cookie file will be saved in the directory specified in the path. I tried the method on php.net and no file was being saved.
__________________
Twitter: twitter.com/SharmaTushar
Facebook: facebook.com/tushar.sharma
RazorbladeXtreme is offline   Reply With Quote
Old 13-01-2012, 11:05 AM   #4 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: Reading Wrox for PHP

Look where the cookie will be saved is defined in php.ini

And that path is optional parameter. If you provide the path it'll set the cookie on that path otherwise the default path that's set in php.ini

That's the thing written there, but for simplicity they should have wrote "The default value is the current directory that the cookie is being set in php.ini" to make it more comfortable.
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is online now   Reply With Quote
Old 13-01-2012, 11:44 AM   #5 (permalink)
VIP
 
RazorbladeXtreme's Avatar
 
Join Date: May 2008
Location: Jaipur
Posts: 187
Default Re: Reading Wrox for PHP

w3schools says that too and I'm most comfortable with its statement. I'll leave it here as most probably this will not be thing involved in general development of website.
What I hope is that this book will present topics in a manner that I rely on it for building my foundation in PHP.
__________________
Twitter: twitter.com/SharmaTushar
Facebook: facebook.com/tushar.sharma
RazorbladeXtreme is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2