473,657 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is wrong with this <<< syntax ??

Ok, pretty new to this php stuff, but good with perl/python etc.

What is wrong with this php document ???

I get this error:

Parse error: syntax error, unexpected $end in
E:\xampp\worksp ace\test1\fragm ents.php on line 7

from this doc ...

===== start doc
<?
print <<<EOF
asdf
EOF;
print <<<EOFX
asdf
EOFX;
?>
===== end doc

Jul 17 '05 #1
3 1728
On 25 Mar 2005 07:39:44 -0800, "andrew" <ak****@msn.com > wrote:
Ok, pretty new to this php stuff, but good with perl/python etc.

What is wrong with this php document ???

I get this error:

Parse error: syntax error, unexpected $end in
E:\xampp\works pace\test1\frag ments.php on line 7

from this doc ...

===== start doc
<?
print <<<EOF
asdf
EOF;
print <<<EOFX
asdf
EOFX;
?>
===== end doc


Nothing's wrong with what you've posted, it works fine.

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
NC
andrew wrote:

What is wrong with this php document ???

I get this error:

Parse error: syntax error, unexpected $end in
E:\xampp\worksp ace\test1\fragm ents.php on line 7

from this doc ...

===== start doc
<?
print <<<EOF
asdf
EOF;

print <<<EOFX
asdf
EOFX;
?>
===== end doc


Make sure EOF; and EOFX; are immediately followed by
line breaks (there should not be any blank spaces
after them).

Cheers,
NC

Jul 17 '05 #3
It's your hoster. They must have it turned off in php.ini. Tell use
errors/whats going on thats wrong..maybe can directly point it out ^_^

Jul 17 '05 #4

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

Similar topics

8
3002
by: Eric Bragas | last post by:
What is this? <img src="{$ ImagesDir}/photo.gif"> I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type of variable obviously, but can somebody tell me what it's called so I can research how it works? thanks.
2
1944
by: John D | last post by:
can anyone explain why a site would use this in their page <!--<BR>--> Presumably it is hiding the <BR> from ... ??? TIA John
58
4657
by: Jeff_Relf | last post by:
Hi Tom, You showed: << private const string PHONE_LIST = "495.1000__424.1111___(206)564-5555_1.800.325.3333"; static void Main( string args ) { foreach (string phoneNumber in Regex.Split (PHONE_LIST, "_+")) { Console.WriteLine (phoneNumber); } } Output: 495.1000
8
4680
by: stefano | last post by:
HI, I have aproblem with XHTML radio button. <form name=" form"> <input name="radio" type="radio" onclick="return false" /> <input name="radio" type="radio" onclick="return false" /> <input name="radio" type="radio" onclick="return false" /> </form> I want that when the radio is clicked, it is not checked. in other word I want the click has no effect on the radio.
2
2468
by: Roka | last post by:
Hi, all. I'm in Fedora Core 4 .I noticed that a lot of types are defined in stddef.h of Stantard C. I usually include files from /usr/include , but my stddef.h looks like in /usr/lib/gcc/i386-redhat-linux/4.0.0/include/stddef.h. Should I include the file from that path?? I noticed people never include from that path.(Also in many linux programming books) I see ptrdeff_t or size_t or ssize_t also defined in other head files of...
5
2005
by: dotnetnoob | last post by:
i got xml file that have <bac:BACnetDevicesand <bac:BACnetDevicetag how do you make a xpath query with that type of tags this is the query that i come up with /Site/Networks/Network/bac:BACnetDevices/bac:BACnetDevice/@InstanceNumber but i got "undefined namespace prefix -'bac'" error
1
1356
by: mahesh.kanakaraj | last post by:
Hi folks, I just have a doubt on whether the below DTD declaration for an element is valid or not. <!ELEMENT e_name ( ( stu * | ( vw , x ) + ) + ) > ^ ^ ^ ^ ^ ^ ^ ^ ^ 1 2 3 4 5 6 7 8 9
5
1434
by: Osamede Zhang | last post by:
I just can't understand what appSettings means, how it work thanks for your read osamede
0
8420
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4173
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.