Jump to content

Recommended Posts

 

I want to create a php file that I will include in all my files to enable my scripts  find  specs.conf file which they require in order to execute. I was thinking of something like

 

 

<?php

// define  specs.conf name and path

define("specsname", "Specs.conf");

define("specspath", "home/ragley/config/space.conf");

<?

 

Now, let's suppose this was working, I would then include it in all of my scripts that need to use specs.conf

Please  assist  me find out why it doesn't work.

 

 

 

Pleeeeease????

 

I want to create a php file that I will include in all my files to enable my scripts  find  specs.conf file which they require in order to execute. I was thinking of something like

 

 

<?php
// define  specs.conf name and path
define("specsname", "Specs.conf");
define("specspath", "home/ragley/config/space.conf");
?>

 

Now, let's suppose this was working, I would then include it in all of my scripts that need to use specs.conf

Please  assist  me find out why it doesn't work.

there is little wrong with your define statement.  Usually it is best practive to use uppercase for your constants, but that is neither here nor there.

 

Try turning on errors in your php.ini file or use ini_set() <- look in the manual.  And see where the error may lie.

 

It is probably down to spelling or you directory path.

 

Are you meant to use "specsname" instead of "space.conf" it seems there is no need to use that constant!

 

as themistral says, it is unclear what u are asking and i know it can be frustrating, but many people will ignore your pleas if you don't ask nicely.

 

good luck

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.