FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php sessions and css file?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php sessions and css file? [message #173675 is a reply to message #173674] Thu, 28 April 2011 00:30 Go to previous messageGo to previous message
sheldonlg is currently offline  sheldonlg
Messages: 166
Registered: September 2010
Karma:
Senior Member
On 4/27/2011 8:24 PM, Thomas 'PointedEars' Lahn wrote:
> sheldonlg wrote:
>
>> On 4/26/2011 1:08 PM, Alex Pavluck wrote:
>>> On Apr 26, 10:46 am, Alex Pavluck<apavl...@gmail.com> wrote:
>>>> protect.php
>>>> <?php
>>>> session_start();
>>>> // Call this function so your page
>>
>> There is no "function" being called here
>>
>>>> // can access session variables
>
> With emphasis on *here* (session_start()) *is* a function). Documentation
> comments should be pre-comments (and multiline comments, to distinguish them
> from disabling comments), not post-comments.

Yes, session_start() is, indeed, a function. However, I have never
encountered a comment set such as the above that was talking about prior
code (other than something like //end while loop). So, I looked for a
function below the commenting, found none, and made the appropriate
remark that no function is being called here.

(Furthermore, common practice is to use /* */ or /** */ for multiline
comments rather than a bunch of //.)

--
Shelly
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Adding a CDATA section
Next Topic: hai
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 17:27:59 GMT 2024

Total time taken to generate the page: 0.04412 seconds