473,387 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Complete Amature

1
Hey guys, I have a problem with a php page Im trying to encode. The error im reciving is:
Parse error: parse error, unexpected ':' in /home/content/l/d/b/ldbrauer/html/selectbf/include/jpcache/jpcache.php on line 40
The code is as follows:

[PHP]<?php

$JPCACHE_VERSION="v2";

/*
jpcache
Copyright 2001 - 2003 Jean-Pierre Deckers <jp@jpcache.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

/*
Credits:

Based upon and inspired by:
phpCache <nathan@0x00.org> (http://www.0x00.org/phpCache)
gzdoc.php <catoc@163.net> and <jlim@natsoft.com.my>
jr-cache.php <jr-jrcache@quo.to>

More info on http://www.jpcache.com/

*/

// Set the includedir to the jpcache-directory
$includedir = "<c:/program files/selectbf/php/include/jpcache/jpcache.php>";

// Configuration file
require "$includedir = "<c:/program files/selectbf/php/include/jpcache/jpcache-config.php>";

// Standard functions
require "$includedir = "<c:/program files/selectbf/php/include/jpcache/jpcache-main.php>";

// Type specific implementations
require "$includedir = "<c:/program files/selectbf/php/include/jpcache/type/$JPCACHE_TYPE.php>";

// Start caching
jpcache_start();
?>[/PHP]

Any help is greatly apperciated!
Dec 29 '07 #1
1 1469
Markus
6,050 Expert 4TB
Hey guys, I have a problem with a php page Im trying to encode. The error im reciving is:


The code is as follows:

[PHP]<?php

$JPCACHE_VERSION="v2";

/*
jpcache
Copyright 2001 - 2003 Jean-Pierre Deckers <jp@jpcache.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

/*
Credits:

Based upon and inspired by:
phpCache <nathan@0x00.org> (http://www.0x00.org/phpCache)
gzdoc.php <catoc@163.net> and <jlim@natsoft.com.my>
jr-cache.php <jr-jrcache@quo.to>

More info on http://www.jpcache.com/

*/

// Set the includedir to the jpcache-directory
$includedir = "<c:/program files/selectbf/php/include/jpcache/jpcache.php>";

// Configuration file
require "$includedir = "<c:/program files/selectbf/php/include/jpcache/jpcache-config.php>";

// Standard functions
require "$includedir = "<c:/program files/selectbf/php/include/jpcache/jpcache-main.php>";

// Type specific implementations
require "$includedir = "<c:/program files/selectbf/php/include/jpcache/type/$JPCACHE_TYPE.php>";

// Start caching
jpcache_start();
?>[/PHP]

Any help is greatly apperciated!
See on line 40 - you close the double quote. This, in essence is what you want, but in practice it's actually closing the first double quote.

You've already assigned the directory URL to a variable, so there's no need to state it again:
[php]
// Set the includedir to the jpcache-directory
$includedir = "<c:/program files/selectbf/php/include/jpcache/jpcache.php>";

// Configuration file
require($includedir);
[/php]
Will suffice :)
Dec 29 '07 #2

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

Similar topics

0
by: Dustin Lee | last post by:
Seems like py-complete.el offers some cool features, if I could only get it to work. >From the file ;; 1. hippie-expand support via try-complete-py-complete-symbol, ;; just like the...
3
by: mvdevnull | last post by:
static void Main(string args) { DoSomething(); } static void DoSomething() { for (int i=0; i<=10; i++) { CallAsyncMethod(); } } my problem is when i run the app console exists without really...
4
by: Faw | last post by:
What is NP-complete? How do we prove that a problem is NP-complete? How do you rank NP, NP-complete, NP-hard?
1
by: skootr | last post by:
Has anyone seen any COMPLETE bound form examples? By complete, I mean a form that has Add/Edit/Delete capabilities. Every example I've seen on the 'net, in books, and in the VB.Net Resource Kit...
5
by: Martin | last post by:
Hello NG, I've been doing some AJAX for a few weeks now. The basics worked fine so far, but now I've got the following problem which I can't solve: With AJAX you typically update/replace only...
4
by: Weston | last post by:
I've been playing around with some means of testing image loading, and noticing that the "complete" property seems to default to true. Trying the following in the squarefree javascript shell: I...
1
by: piyushgpt1 | last post by:
My company has a web application running on JBoss-2.4.4_Tomcat-4.0.1. It works fine for a few days, but once or twice in a week, getting the exception :- Error : Runnable did not complete within...
1
by: glasssd | last post by:
Hi, I was hoping someone might have some ideas on how I can hack around a problem I'm having with the auto-complete feature of the ComboBox. I have a data entry application that uses a pair of...
3
by: TS | last post by:
I am using IE 7. I have a website running on my local machine (localhost) and auto complete doesnt work for any of the textboxes, but going to web sites on the internet does support this so i know...
0
Niheel
by: Niheel | last post by:
The importance of backups can never be emphasized enough. In Vista Ultimate and Windows Server 2008, there is a built in feature to take care of backups called Windows Complete PC Backup and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.