Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6330401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:51:46+00:00 2026-05-24T17:51:46+00:00

Here is what we have :- We currently have a file system like this

  • 0

Here is what we have :-

We currently have a file system like this

$price = ‘3.00’; – this in turn is then included into a different file for use within the template system.

what we want to do may seem a bit long winded but it seems the easiest to us to get around.

what we are going to have is one file which will static price and will be updated via a .net application so all the .php contains is 3.00

then… we come back to the main file and this is where we are getting stuck

we have tried methods like this

<? 
$file = file_get_contents('/home/habbo/www/order/pricex2.php');
echo $file;
$price = '$file';
?>

we have tried to put an include within the = ‘ ‘; bit and that doesnt seem to work and im not too sure how we are meant to add it , i thought the $file might of worked but it just simple outputs the $file

is there much i am doing wrong

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:51:46+00:00Added an answer on May 24, 2026 at 5:51 pm

    Erm, I think you need:

    $price = $file;
    

    or (slower):

    $price = "$file";
    

    Since PHP variables are not interpolated within single-quoted strings.

    You can convert it into a floating point number like this:

    $price = floatVal($file);
    
    // or
    $price = (float)$file;
    
    // or (icky, but..)
    $price = $file + 0.0;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a csv file that I'm parsing with an example from here:
I'm not sure if this is even possible but here goes: Currently I have
This feels like an extremely n00b question, but here goes... I have a series
We currently have a form with the standard multi-select functionality of here are the
Here is the thing. I currently have a tabBar controller, with several navigation controllers
Currently i have some interfaces (stripped down for here): public interface IJobGroup { string
Ok here is what I am currently trying to do. I have a class
I have this query which works correctly in MySQL. More background on it here
I'm doing some Wave file handling and have them read from disk into an
I have downloaded and added this very simple, one file, php web file explorer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.