473,801 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Complete Amature

1 New Member
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_VERSIO N="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.or g> (http://www.0x00.org/phpCache)
gzdoc.php <catoc@163.ne t> and <jlim@natsoft.c om.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 "$includedi r = "<c:/program files/selectbf/php/include/jpcache/jpcache-config.php>";

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

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

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

Any help is greatly apperciated!
Dec 29 '07 #1
1 1478
Markus
6,050 Recognized Expert Expert
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_VERSIO N="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.or g> (http://www.0x00.org/phpCache)
gzdoc.php <catoc@163.ne t> and <jlim@natsoft.c om.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 "$includedi r = "<c:/program files/selectbf/php/include/jpcache/jpcache-config.php>";

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

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

// 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($includ edir);
[/php]
Will suffice :)
Dec 29 '07 #2

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

Similar topics

0
1164
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 lisp-version, nice for the hungry. What do I need to do to get this to work? I have hippie-expand mapped to F7 (not S-tab) but I'm not sure how I can get hippie to "know" about the above complete function
3
4784
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 completing DoSomething() if i add 'Console.ReadLine() to Main() then console waits until
4
2391
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
1446
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 discusses basic record navigation only. If there are no examples on the internet, maybe someone could recommend a good book that covers this subject in detail .... maybe Microsoft is hinting that we should not use bound controls ???? They were...
5
2221
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 parts of your page. But in my application there are situation when I first notice on the server -- so AFTER sending an AJAX request -- that I have to update the complete page instead of only some parts. And what do I do now???
4
7680
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 = new Image(); I.complete yields "true". Seems a bit odd -- obviously there's no src given yet, so is it
1
3924
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 10000ms. I need to provide an answer as why this is happening. It happens one or twice evrryweek, I restart the server and the problem gets resolved. Please help. When I see the nohup.out file, the detailed error message is as:- Last Checkin :...
1
1499
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 ComboBoxes on the main entry screen. These are configured to use the Suggest Append auto-complete feature with the List Items as the data source. Functionally, it works great and really helps speed up the entry process. However it appears that when...
3
4023
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 the browser has this config turned on. any ideas why it doesnt work on my local web application (.net 2)? thanks
0
3634
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 Restore. It can be found by: Start >> All Programs >> Maintenance >> Backup and Restore Center Backing Up Your Data and PC Backup my files If you only want to back up your important files and data, Backup and Restore Center gives you this option.
0
10515
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
10291
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
10049
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
9100
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
7589
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
5479
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
5616
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4156
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
3771
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.