Cannot open in Dreamweaver, to edit maybe because of this line " ?php defined('SYSPATH') or die('No direct access allowed.');"

Because of  this line "<?php defined('SYSPATH') or die('No direct access allowed.');" at the onset of my php script I can not open my site in dreamweaver. How do I define the "syspath" for dreamweaver so it can be opened?
Please assist me if possible to open my site in dreamweaver. I contacted tech support who were unable to assist me and referred me to the forums. If anyone know how to resolve this please let me know. Thanks

Now that I have found the "index.php" file and uploaded it to wamp/www, I am not quite sure how to proceed to successfully integrate it in my localserver files for use in dreamweaver.   For quick reference the syspath definition is:
// Define the absolute paths for configured directories
define('APPPATH', realpath($application).DIRECTORY_SEPARATOR);
define('KOMODPATH', realpath($komodules).DIRECTORY_SEPARATOR);
define('MODPATH', realpath($modules).DIRECTORY_SEPARATOR);
define('COMMONPATH', realpath($common).DIRECTORY_SEPARATOR);
define('SYSPATH', realpath($system).DIRECTORY_SEPARATOR);
Please advise. Thank you.
Below I have pasted the full "index.php" script.
<?php
* Debug variable used in Bootstrap, this will setup the Kohana::$environment =  Kohana::DEVELOPMENT;
* Seted to TRUE:
*  - disables the cache, 
*  - enable the profiler in the bottom of the page
*  - Enable logs for anything (false=only ERRORs)
*  - Displays the full error stack instead of friendly page
define('OC_DEBUG', FALSE);
* Where the application for Open Classifieds is installed.
$application = '/oc';
* The directory in which your external modules are located.
$modules = $application.'/modules';
* The directory in which the Kohana resources are located. The system
* directory must contain the classes/kohana.php file.
* @see  http://kohanaframework.org/guide/about.install#system
$system = $application.'/kohana/system';
* The directory in which KO modules are located.
* @see  http://kohanaframework.org/guide/about.install#modules
$komodules = $application.'/kohana/modules';
* The directory where common Open Classifieds files are
* @see https://github.com/open-classifieds/common
* @see https://github.com/open-classifieds/openclassifieds2/blob/master/CONTRIBUTING.md
$common = $application.'/common';
* The default extension of resource files. If you change this, all resources
* must be renamed to use the new extension.
* @see  http://kohanaframework.org/guide/about.install#ext
define('EXT', '.php');
* Set the PHP error reporting level. If you set this in php.ini, you remove this.
* @see  http://php.net/error_reporting
* When developing your application, it is highly recommended to enable notices
* and strict warnings. Enable them by using: E_ALL | E_STRICT
* In a production environment, it is safe to ignore notices and strict warnings.
* Disable them by using: E_ALL ^ E_NOTICE
* When using a legacy application with PHP >= 5.3, it is recommended to disable
* deprecated notices. Disable with: E_ALL & ~E_DEPRECATED
ini_set('display_errors', 'On');
# Error reporting may look like this but E_ALL is only what we need
error_reporting(E_ALL & ~E_DEPRECATED);
* End of standard configuration! Changing any of the code below should only be
* attempted by those with a working knowledge of Kohana internals.
* @see  http://kohanaframework.org/guide/using.configuration
// Set the full path to the docroot
define('DOCROOT', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);
// Make the application relative to the docroot, for symlink'd index.php
if ( ! is_dir($application) AND is_dir(DOCROOT.$application))
    $application = DOCROOT.$application;
// Make the modules relative to the docroot, for symlink'd index.php
if ( ! is_dir($modules) AND is_dir(DOCROOT.$modules))
    $modules = DOCROOT.$modules;
// Make the modules relative to the docroot, for symlink'd index.php
if ( ! is_dir($komodules) AND is_dir(DOCROOT.$komodules))
    $komodules = DOCROOT.$komodules;
// Make the common module relative to the docroot, for symlink'd index.php
if ( ! is_dir($common) AND is_dir(DOCROOT.$common))
    $common = DOCROOT.$common;
// Make the system relative to the docroot, for symlink'd index.php
if ( ! is_dir($system) AND is_dir(DOCROOT.$system))
    $system = DOCROOT.$system;
// Define the absolute paths for configured directories
define('APPPATH', realpath($application).DIRECTORY_SEPARATOR);
define('KOMODPATH', realpath($komodules).DIRECTORY_SEPARATOR);
define('MODPATH', realpath($modules).DIRECTORY_SEPARATOR);
define('COMMONPATH', realpath($common).DIRECTORY_SEPARATOR);
define('SYSPATH', realpath($system).DIRECTORY_SEPARATOR);
// Clean up the configuration vars
unset($application, $modules, $komodules,$common, $system);
// OC install
if (file_exists(DOCROOT.'install/install.lock'))
    // Load the installation check
    return include DOCROOT.'install/index'.EXT;
* Define the start time of the application, used for profiling.
if ( ! defined('KOHANA_START_TIME'))
    define('KOHANA_START_TIME', microtime(TRUE));
* Define the memory usage at the start of the application, used for profiling.
if ( ! defined('KOHANA_START_MEMORY'))
    define('KOHANA_START_MEMORY', memory_get_usage());
// Bootstrap the application
require APPPATH.'bootstrap'.EXT;
if ( ! defined('SUPPRESS_REQUEST'))
     * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
     * If no source is specified, the URI will be automatically detected.
    echo Request::factory()
        ->execute()
        ->send_headers()
        ->body();

Similar Messages

  • Duh.. cannot open calendar page to edit it.  What key option works??? Thanks

    Duh.. cannot open calendar page to edit it.  What key option works?? 
    First time in 20 years with Mac I am asking this kind of question.
    Thanks

    Found it>>> return and both mouse keys !!!!????????

  • CS4 "You cannot open the application Adobe InDesign CS4 because it is not supported on this archit

    Just installed CS4. Ai and Ps open fine. i get this prompt with InDesign.
    You cannot open the application Adobe InDesign CS4 because it is not supported on this architecture.
    any clues on how resolve this?
    thanks!

    I'm having exactly the same problem with InDesign from CS4 Design Standard (Photoshop and Illustrator both work), and I don't know what to do. I've called up the Adobe support line five times, and received five different answers, none of which have worked (and on three other occasions, my call was dropped, once after an hour on hold).
    One of the Adobe tech support people said to me "None of CS4 works with either 10.5.8 or Snow Leopard. We will issue a patch for that soon" - which directly contradicts what Adobe itself says on this site. I also went to see a Mac Genius, who couldn't help either.
    I have a 2GHz Macbook with 2GB RAM running 10.5.8. I've run the uninstall, and the Adobe Clean Script, I've repaired permissions on my drive (which isn't case sensitive), restarted, reinstalled, tried installing on an external drive and then tried downloading the trial, in case it's the install CD - nothing works. 
    Any suggestions, anyone? Might there be a problem with my library that is stopping the install? Something else?? I bought CS4 for InDesign primarily, this is not good.

  • I just burned to disc an album of photos I created in Pages but I cannot open the file on the disc because "the format is not valid".  What does this mean and how do I correct it ?

    I just burned to disc an album of photos I created in Pages but I cannot open the file on the disc because "the format is not valid".  What does this mean and how do I correct it ?

    There are numerous thread about the same matter in this forum
    I hope you'll find your answer
    https://discussions.apple.com/search.jspa?resultTypes=&dateRange=all&peopleEnabl ed=true&q=the+format+is+not+valid&containerType=14&container=2084&username=&rank By=relevance&numResults=15

  • 2146827284Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space

    Hi Experts,
    I am getting below error when Exporting data from my one web application to the Excel 2010 on Windows Server 2008 R2 ,
    02/29/2012 18:54:50
    Type : System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b11a5c481859e569
    Message : -2146827284Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space.
    • To make more memory available, close workbooks or programs you no longer need.
    • To free disk space, delete files you no longer need from the disk you are saving to.
    The disk space is 30 GB free, I have cleared all the temp files, increased the virtual memory & internet temp files size to max but no luck

    You want to use this one here - MMC
    comexp.msc /32
    THAT will launch the MMC process
    as 32 bit then you'll the Microsoft Excel Application.
    Right Click -> Properties.
    What I did at this point was to select the Identity tab and then select "The Interactive User" (the default was "The launching user").  My app pool was already running as "LocalSystem".  I believe by running it as the Interactive User now that it
    has the right permissions to save workbooks.
    Everything worked after this.
    This was a tough one!
    R. Matt Sampson

  • After adding MIME type in sharepoint server, file click opens a popup for file to open as readonly or edit, How to avoid this popup

    After adding MIME type in sharepoint server,
    File click opens a popup for file to open as readonly or edit, How to avoid this popup
    Popup Details:
    You are about to open --> File Details
    How would you like to open --> ReadOnly, Edit
    OS: Window 7
    Jagadish

    this is likely caused by the library requiring check-out/check-in. For a file to be editable, the file needs to be checked out.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • I cannot open iCloud documents on my MAC I went to preferences etc and it did not give me access. My error says I need an updated version of numbers but I have the latest version

    Mac OSX 10.4
    Processor 3.06
    Numbers 2.3 (554)
    I cannot open iCloud documents on my MAC I went to preferences etc and it did not give me access. My error says I need an updated version of numbers but I have the latest version

    You cannot access iCloud on a Mac running Mac OSX 10.4.  Are you sure, the system version is correct?
    If you are running iWork '09 (iWork 09 9.0.1) on your Mac with Numbers 2.3, you must at least have MacOS X 10.5.6 installed.
    if you want iCloud support for iOS apps, you need the iWork 9.3 update,see:  About the iWork 9.3 Update
    And this update requires OS X Lion v10.7.4
    Is your iMac compatible with Lion or later?

  • Something software related prevented me from being able to boot up my iMAC. The remedy was to wipe the computer of all soft wear and re-inatall everything via my time capsule. All good there.. but now I cannot open Ai and a box stating"Licensing for this

    Something software related prevented me from being able to boot up my iMAC. The remedy was to wipe the computer of all soft wear and re-inatall everything via my time capsule. All good there.. but now I cannot open Ai and a box stating"Licensing for this product has stopped working" and to reference error code 150:30. How do I get my Ai to open?

    Run the cleaner tool and reinstall it properly.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Download CS6 products
    Mylenium

  • Cannot open VI file in edit mode.

    I cannot open a VI project that I was working on. Every time I try to open the file it gives me a message that "not enough memory to complete this operation".
    This is a large project and I need to be able to access the block diagram.
    This happens when I try to open it in edit mode.
    Thanks.
    Message Edited by Minguccio on 01-06-2006 11:41 AM

    Minguccio,
    I've done some poking around and may have found some useful information. This error will ocurr if you have too many (and I mean a ton) of controls on the front panel. I haven't heard of this error since LabVIEW 5.1 though and we've upgraded the number of controls you can have on your front panel since then. However, try deleting some controls from your front panel to see if this helps out.
    My investigation also lead me to tcp errors. Are you using tcp\ip anywhere in your programming? I found this discussion that may help out if that's the case.
    Let us know what you find.
    Best Regards,
    Chris C
    Applications Engineering
    National Instruments
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

  • HT201441 i receive your support thru (forgot password) email.the problem now is i cannot open the file using my  ipad.because its asking for apple account and the problem is forgot password and security details when i make apple id.im the owner

    apple, my prroblem now is i cannot open the ios diagnostic using my ipad. the screen shows hello,language,and countrry.and sign in.the email address
    that i'm using before to sign in.and to activate my ipad (forgot password) is stiill i'm using now.i'm the owner of his gadget.i recieve ios diagnostic thru email send by apple.is there any other way to open this support.i'm using now my windows8 laptop,and i havve a new apple id.tnxs

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple. I don't know where you originally posted this question, but it's only just appeared in the Using iPad forum.
    If you can't remember your password then you can reset it via http://iforgot.apple.com
    If you can't get it reset via that site then you will have to contact Support in your country, they should be able to reset it for you (they can also reset your security questions if you've forgotten their answers).
    Contacting Apple about account security : Contact Apple for help with Apple ID account security - Apple Support
    If your country isn't on that page then try this form to contact Support : https://www.apple.com/emea/support/itunes/contact.html

  • When I install firefox version 4, it is in offline mode and I cannot open it. How do I get around this problem.

    when I install firefox version 4, it is in offline mode and I cannot open it.

    In version 3.6.17, click '''File''', then click '''Work Offline '''to remove the checkmark.
    In version 4.0.x right click a blank part of the Tab Bar and then click "Menu Bar". This will reinstate the text links. Then do the same as above.
    To revert to the layout without the text links, repeat the same steps.
    Sometimes, in FF4, you can hit the ALT key to toggle the text links on and off, but I've noticed in posts from other users that it doesn't always work.

  • Cannot open PDF files in my Hotmail account since this week. Hotmail says it is due to Firefox.

    Cannot open PDF files in Hotmail while using Firefox. Using Google Chrome there is no problem. I already have Adobe Reader installed on my PC.

    Hi Zwann,
    Have you looked at the [[Opening PDF files within Firefox]] Knowledge Base article? There is a lot of useful information in there. They actually list 2 different PDF plugins. I'd give both a try if you are having issues.
    Hopefully this helps!

  • I cannot open my e.mails in virgin media. This is a recent problem only. They used to open ok. I can open them with explorer and I can open my Yahoo mail ok. Feels like a config. problem, any suggestione ?

    Firefox is my browser. Until recently, I was able to open my virgin e.mails ok. Now I can't. I haven't made any setting changes. I can open my Yahoo mail ok, just not my virgin mail. Virgin tell me its a browser (incompatibility) problem. I can open my Virgin mail if I use Internet Explorer. I can get to my Virgin mail page ok, I can see I have mail etc., it just won't let me open that mail. All I get to see is the title of the mail but no content.

    ''grapevine [[#question-1049472|said]]''
    <blockquote>
    when I open my e mails on Safe-mail with Firefox I cannot open my HTML messages. It just comes as a blank page and says new tab at the top of the screen. I dont have this problem if I use Internet Explorer, but I much prefer to use Firefox and it is a nuisance having to use Internet Explorer just to open my HTML messages, and I get an awful lot of them.
    Can you help solve this problem please?
    </blockquote>

  • Cannot open ddms.bat on android sdk because Java is not in my path

    I'm trying to open the ddms.bat (Dalvik Debug Monitor) but it won't let me because Java is not in my path.
    Some things you should know: 1. I barely know what I'm talking about so please walk me through any advice you give me, I'm brand new to all of this. 2. I'm only trying to get ddms.bat to open because I want to take android screenshots without rooting my Nexus One. 3. I'm using a laptop PC with Windows 7 64 bit. 4. Following directions from some site, I moved the entire Java file from C:\Program Files to C:\Program Files (x86)
    I've downloaded jre, jdk, and eclipse. For some reason eclipse wont open, its giving me some error about could not open C:\Program Files\Java\jre\lib\amd64\jvm.cfg
    Using a website that I googled, I was able to put C:\Program Files (x86)\Java\jre1.6.0_21\jre\bin into the PATH but I don't know if I did the user variable correctly because the website told me to enter "classpath" as the variable and "." as the value.
    Main Questions:
    1. How do I put Java in my path?
    2. How can I get the Eclipse application to open?
    3. Should I move Java back to C:\Progam Files rather than keeping it C:\Progam Files (x86)
    4. In order to get ddms.bat to open do I need jre, jdk, and eclipse or can I do with only one or two of them? And if so which ones do I need?
    EDIT: I've moved the Java folder back to C:\Program Files and then tried to open ddms.bat and now cmd is giving the error that java.lang.UnsatisfiedError: Cannot load 32-bit SWT libraries on 64 bit JVM
    What does that mean, and how can I fix it?
    Also I've managed to get eclipse to open.
    EDIT2: Got it to work somehow, that was really complicated but I'm just happy I got it. Heres the imgur link : imgur.com/ucBpY.png
    Edited by: TaeKwonDonkey on Jul 30, 2010 9:04 PM
    Edited by: TaeKwonDonkey on Jul 30, 2010 9:42 PM
    Edited by: TaeKwonDonkey on Jul 30, 2010 9:43 PM

    TaeKwonDonkey wrote:
    I'm trying to open the ddms.bat (Dalvik Debug Monitor) but it won't let me because Java is not in my path.
    Some things you should know: 1. I barely know what I'm talking about so please walk me through any advice you give me, I'm brand new to all of this.You might want to try familiarizing yourself with basic Java before using it to run a debugger of Java (or near-Java) code. Multiple layers of roughly the same thing can be hard to grok.
    4. Following directions from some site, I moved the entire Java file from C:\Program Files to C:\Program Files (x86)What do you mean by that? "entire Java file" doesn't really make sense.
    I've downloaded jre, jdk, and eclipse. For some reason eclipse wont open, its giving me some error about could not open C:\Program Files\Java\jre\lib\amd64\jvm.cfgWell if it's looking for Java under that path, but you moved it to a different directory, that means it won't be able to find Java.
    Using a website that I googled, I was able to put C:\Program Files (x86)\Java\jre1.6.0_21\jre\bin into the PATH but I don't know if I did the user variable correctly because the website told me to enter "classpath" as the variable and "." as the value. CLASSPATH and PATH are two entirely different things.
    Main Questions:
    1. How do I put Java in my path?You choose a sane standard place to put it there. Set the PATH environment variable to point to the bin/ subdirectory under your Java directory.
    2. How can I get the Eclipse application to open?Don't even use Eclipse yet. It's just adding more layers, and that makes each layer harder to learn.
    Also, I've come to feel that Eclipse is usually more trouble than it's worth.
    3. Should I move Java back to C:\Progam Files rather than keeping it C:\Progam Files (x86)Probably. Why did you do that?
    4. In order to get ddms.bat to open do I need jre, jdk, and eclipse or can I do with only one or two of them? And if so which ones do I need?You probably just need the JRE (unless ddms.bat compiles things for some reason) but if you're planning to do any Java programming, you might as well install the JDK (it includes the JRE too).
    EDIT2: Got it to work somehow, that was really complicated but I'm just happy I got it. Heres the imgur link : imgur.com/ucBpY.pngRegardless, I advise you to skip Eclipse. You want to learn how this thing works, not how to click on things.

  • You cannot open the application "Disk Utility.app" because it is not supported on this type of Mac.

    I mounted a disk image, which popped up a message about Disk Utility not being supported on this type of mac. I ignored it because the image seemed to be mounted, and I was able to drag the app icon out of the image and into my application folder.
    Then I tried to launch the app and it wouldn't launch because it "may be corrupted" or something along those lines. I didn't pay close attention because I thought hey, it was just a bad download, I'll try again.
    Now I can't open Disk Utility. Every time I try I get this message. I've seen a similar message a few times since updating to Mavericks with other applications (one I can remember is Text Wranger occasionially complains it can't open a file, but it can, and trying again usually gets it to work... This previous experience led to my cavalier approach to the Disk Utility wierdness)
    How can I get Disk Utility working again?

    You will need to locate the Terminal app in your Mac's Utilities folder. It looks like this:
    Find it by selecting Utilities from the Finder's Go menu.
    Open Terminal.
    Copy (triple-click to select the entire line) and Paste the following line into the Terminal window, followed by the Return or Enter key:
    file /Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility
    Copy and paste the results of that command in a reply.

Maybe you are looking for