473,811 Members | 2,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parse error: parse error, unexpected ':' in ......./wp-rss2.php on line 1

2 New Member
Admitedly I am a total newbie to PHP. Can someone see the extra "." in this code?

Thanks!

<?php if (empty($wp)){ require_once('w p-config.php');wp ('feed=rss2');} header(Content-type:text/xml; charset='.get_s ettings('blog_c harset')', true);
$more = 1;?> <?php echo "<?xml version=\"1.0\" encoding=\"get_ settings('blog_ charset').\"?". ">"; ?>
<!-- generator="word press/<?php bloginfo_rss('v ersion') ?>" -->
<rss version="2.0"
xmlns:content=" http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http ://wellformedweb.o rg/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
<?php do_action('rss2 _ns'); ?> >
<channel>
Oct 6 '06 #1
2 2968
1harsh789
5 New Member
header(Content-type:text/xml; charset='.get_s ettings('blog_c harset')', true);

must be
header('Content-type:text/xml; charset='.get_s ettings('blog_c harset'), true);
Oct 6 '06 #2
HDavis
2 New Member
That was quick!
Many thanks
Oct 6 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1745
by: Jan Pieter Kunst | last post by:
Dear people, How is it possible that this gives a parse error: if (! empty($this->zoekopdracht->get_gezochte_vraagnummers())) $vraagnummers_bijhouden = TRUE; -> Parse error: parse error, unexpected '(', expecting ')'
1
2297
by: Janwillem Borleffs | last post by:
Q: I'm getting an unexpected $ or $end parse/syntax error, what's causing this? A: This is caused when an expression is started with an opening brace, but the closing brace is omitted. Examples: if ($condition) { .... // No closing brace; the error is thrown
6
19034
by: Ehartwig | last post by:
I recently created a script for user verification, solved my emailing issues, and then re-created the script in order to work well with the new PHP 5 that I installed on my server. After submitting user information into my creation script, I get the following error from the page that is suppose to insert the user data into the database, create a code, then send an email out for verification. Parse error: parse error, unexpected $end in...
0
2634
by: lpinho | last post by:
Hi There, I've generated a C# file from a wsdl file using wsdl.exe utility. Then I created a console application and made a call to the method generated, first I got the error: "The request failed with HTTP status 407: Proxy Access Denied." Then I added a proxy validating and proxy credentials and got this:
0
1034
by: jinapaia | last post by:
hi, i am getting a message Parse error:parse error, unexpected $...please help with this code: <?php require_once('db_login.php'); $sdbh = ""; $expire = 900; function sess_open($save_path, $session_name){ global $dbhost, $dbuser, $dbpasswd, $sdbh; if (! $sdbh = mysql_pconnect($dbhost, $dbuser, $dbpasswd)){ echo mysql_error();
1
6846
by: soidariti | last post by:
database error - parse error, unexpected $, expecting kEND AddUserAuthorisationToUsers.rb migration file 1. class AddUserAuthorisationToUsers < ActiveRecord::Migration 2. def self.up 3. drop_table :users 4. 5. create_table :users, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8' do |t| 6. t.column :first_name, :string
1
1414
by: basswhizz | last post by:
Hi guys im having trouble with somethings else now can you help out thanks!! Im getting this error message Parse error: syntax error, unexpected $end Here's my code cheers!!] <?php // Connects to your Database mysql_connect("aldridge3", "root", "") or die(mysql_error()); mysql_select_db("dwalk96") or die(mysql_error());
1
6474
by: FightClubDiego | last post by:
Hey.. I've been working on these sign up / log in forms for my new Game Site, and everything else in the game works but the registration!! I keep ketting the unexpected $end and Im tired of it! Here is the code... SOMEBODY PLEASE HELP ME!! I'm going crazy! haha <?php //This contains user stuffs switch($_GET) { case 'newuser': new_user_form(); break; case 'newusersub': new_user_submit(); break; case 'edituser': edit_user_begin(); break;...
5
2192
by: Joshr35 | last post by:
I keep getting this same error on my store front page login area. Parse error: syntax error, unexpected '{' Here's the actuall php script: <?php if ( (!strstr($_SERVER,'login.php')) and (!strstr($_SERVER,'create_account.php'))
1
1607
by: lucasstark | last post by:
I have the following XML File: I want to parse the file so that I can add each node to a database: So I need to parse the bottom node and say: admissions, application. Then go up a level and extract "the admissions application" <Token Type="TOP" Dectiption="" > <Token Type="SBARQ" Dectiption="" > <Token Type="WHNP" Dectiption="" > <Token Type="WP" Dectiption="wh-pronoun" >What</Token> </Token> <Token Type="S"...
0
9734
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
10395
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...
0
9211
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5564
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
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4352
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
3
3027
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.