473,566 Members | 3,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: Q re Include & how it works - newbie

Twayne wrote:
>Hi,

Like it says' newbie to PHP.

Perhaps someone could provide me with a plan language of how Includes
work.
In my reading, it says you place the Include(somefil e) and it's as
though that file were suddenly at that point of whatever file is
including it. OK, sort of makes sense and I can see it happen in the
sandbox. Pretty standard stuff, I think.

include is just the same as if you copied and pasted the code into the
including page.
That's the verification I was looking for I think. There are times that
doesn't seem to be so, but perhaps I'll looking at the wrong side of the
tree in the wrong forest ... I think I let POST usages confuse me.
>
....
>>

Did you look at the source code in your browser? You're outputting
the text in fillInCheck.php before anything - including the doctype.
This makes your entire page invalid. Browsers might now show it.
D'oh! No, I hadn't thought of looking at the souce in my browser!
Nothing like being half-armed and half-fast, huh? Guess I better switch
"newbie" to "rank newbie" ;-)

ANYway: Thanks; that's embarassing enough I won't soon forget it!

Regards,

Twayne
Jun 27 '08 #1
0 1165

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2310
by: BlueFrog | last post by:
Hey, Anyone got any ideas why I wouldn't be able to output a value stored in the session array in a particular include file - I am using session_start() but to no avail. Joe
9
4067
by: Yuri | last post by:
Hello, I'm a c++'s newbie. In a BinarySearchTree data structure I found this definition: void insert( const Comparable & x, BinaryNode<Comparable> * & t ) const; What does " *& " mean? It' s a pointer to a reference? or what? Thanks Yuri >
20
11252
by: William | last post by:
Original question: "Give a one-line C expression to test whether a number is a power of 2. " Answer: if (x && !(x & (x-1)) == 0) My question: Why does this expression work?
2
1682
by: Mr Newbie | last post by:
Ive got the basic idea behind DataBinding Expressions, but I have a couple of questions, Ok its four actually :) Q1.) It would appear that if you use Page.DataBind that all child controls and the page get bound to their respective DataSources, is this correct ? and if so why would you need to individually bind controls, why not jsut use...
1
1422
by: dirk van waes | last post by:
Hello everyone, Being complete newbie in asp.net I am trying to make an example which works with a very simple database. First I made my project in VS- vb.net, draging an oledbconnection and an oledbdataadapter from the toolbox into my form. Everything worked fine on my local computer. I was able to search, update, delete and insert...
4
1816
by: Arpan | last post by:
The following code works fine: <script runat="server"> Dim strName As String = "Arpan" Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) Page.DataBind() End Sub </script> <form runat="server">
32
1694
by: Evan Jou | last post by:
Hi there, I'm starting to learn php and need a php editor for windows. Can you recommend what you think the best editor available in the market? I've tried some free html editors and was not satisfied with them. I need one that is simple and neat, but can display different color on different part of the script if you know what I mean. Your...
32
2525
by: Joe | last post by:
I am just starting to use Object Oriented PHP coding, and I am seeing quite often the following (this example taken from a wiki): $wakka =& new Wakka($wakkaConfig); What exactly is the =&, and why is it different from = ?
2
2628
by: bvdamme | last post by:
Hello, In my httpd error_log file I get following error : PHP Warning: include(http://filuntu/php/includes/header.php? mask_menu1=1111&amp;mask_menu2=111111&amp;terug=/php/hoofdmenu.php) : failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required\r\n in /mnt/vg_hdg_3/alegra/website/php/hoofdmenu.php on line 43
0
7673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8109
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.