GetDotted Domains

Viewing Thread:
"PHPing again"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sun 20/10/02 at 21:43
Regular
Posts: 787
I like including stuff on my websites, thing is, I need to arrange the same data on 2 pages, the way I currently do it is to have 2 files and include each one where it's needed (obviosuly)

I'm guessing this must be pretty simple,
read the file,
find the data,
include the data into the page,

Thing is, I have no idea of the kind of script I need, evrything I currently have doesn't do this kind of thing, anyone know how I can or where I can find out how to, please :)
Thu 24/10/02 at 22:59
Regular
"IT'S ALIVE!!"
Posts: 4,741
Ok, i'm getting a new domain this weekend..hopefully, i'll buy some databases and learn a bit o MySql, maybe knock some people on the head to give me a helping hand :D *grabs hold of cjh so he can't run away*

I know it's a lot better than text files..yadda, yadda, yadda, but if it was easy everyone would learn it and get big buck wages.
Thu 24/10/02 at 22:45
Regular
"It goes so quickly"
Posts: 4,083
Well, in that case, I don't have a direct answer right now, but I'll keep keep it in mind, see if I can come up with something.

Though, I would just say keep is simple and stick all the values in one file and just leave it there :oP but thats just me :o)
Thu 24/10/02 at 22:33
Regular
"IT'S ALIVE!!"
Posts: 4,741
Thats what i've done already :p
I want one file with all the date so I only have to update one page :D
Wed 23/10/02 at 23:38
Regular
"It goes so quickly"
Posts: 4,083
Now your just getting picky :oP

Maybe, have one file, data1.php, with:

$name = "";
$mail = "";
$dob = "";

and data2.php with

include("data1.php");
$age = "";
$url = "";

How does that sound??
Wed 23/10/02 at 23:18
Regular
"IT'S ALIVE!!"
Posts: 4,741
data page = 5 string of info:

$name = "";
$age = "";
$mail = "";
$url = "";
$dob = "";

page 1 needs: $name, $mail, $dob,
page 2 needs: all

but when I update at the moment, I have 2 pages od the data and have to include it seperatly, I want to be able to call some of the data from the page without taking all of it.

Kinda like what MySql does but with text files :)
Tue 22/10/02 at 23:30
Regular
"It goes so quickly"
Posts: 4,083
Maybe, but I'm still none the wiser :oP. Sorry.

So, you've got say, 5 pages of info.
You want these details to be included into 2 different pages??
- BUT, you only want certain data available to the 2nd page?

Wrong again???
Tue 22/10/02 at 22:30
Regular
"IT'S ALIVE!!"
Posts: 4,741
Heh, that wasn't what I needed to do Fog and master were just examples :p

I've got few pages of data which need to be included into 2 pages, 1 has about 10 strings, the other has 3 but they use the same info. :)

I think i explained it better that time.
Mon 21/10/02 at 23:52
Regular
"It goes so quickly"
Posts: 4,083
I'm unable to help you directly with what you want, but could I ask you something. Why not just include the fog.php file in both pages?? You wouldn't have to use the second variable for the second page, but it would save you from having to do what your after.

Maybe there is a simple way of doing what your looking for, but I, unfortunatly, don't know what it would be, sorry.

Just seems to me that your making more work for yourself than is needed :o).
Mon 21/10/02 at 21:25
Regular
"IT'S ALIVE!!"
Posts: 4,741
erm, yeah that would have answered my question, thing is, I wrote that about 3 times, had to get it right y'see, but as you can see...I didn't :/

What I meant was, I already have that date in fog.php

fog.php:

$fname = "Fog";
$lname = "master";
?>

thing is, I want to include both strings fron fog.php into one page, and only the $fname into another page, how do I do this? :D
Sun 20/10/02 at 22:40
Regular
"It goes so quickly"
Posts: 4,083
I may have missunderstood what you wanted, so sorry if I did.

Why not just have the data you want aranged into a seperate file, and include that file in the 2 pages you mentioned.

Does that sound right, or have I got the wrong impression as to your request?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Impressive control panel
I have to say that I'm impressed with the features available having logged on... Loads of info - excellent.
Phil
Brilliant service.
Love it, love it, love it!
Christopher

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.