Jump to content

Recommended Posts

Are forms tabular data? :)

 

That depends. You can reasonably say that they are:

[pre]---------------------------

| Name      | Value      |

===========================

| First Name | __________ |

| Last Name  | __________ |

| Email      | __________ |

---------------------------[/pre]

The thing is just that making them a table makes it difficult to style it differently, so you're better off not doing it.

Err, PHP includes? Templates?

 

Uh yeah, but something has to trigger the change after the page has loaded.

 

Ey? I think what DEVILofDARKNESS was meaning was to manually edit each file, as opposed to a single template that you just edit once?

From http://us3.php.net/manual/en/function.require.php , http://us3.php.net/manual/en/function.include.php , http://us3.php.net/manual/en/function.require-once.php , http://us3.php.net/manual/en/function.include-once.php

 

require() is identical to include()  except upon failure it will produce a fatal E_ERROR  level error. In other words, it will halt the script whereas include() only emits a warning (E_WARNING) which allows the script to continue.

 

The include() construct will emit a warning if it cannot find a file; this is different behavior from require(), which will emit a fatal error.

 

The require_once() statement is identical to require() except PHP will check if the file has already been included, and if so, not include (require) it again.

 

The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. As the name suggests, it will be included just once.

 

I always use require_once(), myself.

Are you saying I didn't ask a quesition?

 

Because:

 

Yes, but what is the difference between

-include

-require

-require_once

 

was what I was responding to, then stating that I usually use require_once();

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.