Hi! Some noob silly questions

Reply

Join Date: Feb 2007
Posts: 4
Reputation: Shu is an unknown quantity at this point 
Solved Threads: 0
Shu's Avatar
Shu Shu is offline Offline
Newbie Poster

Hi! Some noob silly questions

 
0
  #1
Feb 11th, 2007
Hi! I'm a newbie and have some silly questions.

PHP:
1. I want to inlude a txt file in array. I have an associative array.
What format does the data in txt file must be?
e.g. array I want to have:
  1. $m["foo"] = "text 1";
  2. $m["foo foo"] = "text 2";
  3. $m["abc"] = "text 3";

I put it into a page, but how to make it work with the external file?

2. How can I unit two web-pages (e.g. template and some data page) in one without include or a readFile functions?
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 4
Reputation: hradek is an unknown quantity at this point 
Solved Threads: 0
hradek hradek is offline Offline
Newbie Poster

Re: Hi! Some noob silly questions

 
0
  #2
Feb 13th, 2007
Originally Posted by Shu View Post
Hi! I'm a newbie and have some silly questions.

PHP:
1. I want to inlude a txt file in array. I have an associative array.
What format does the data in txt file must be?
e.g. array I want to have:
  1. $m["foo"] = "text 1";
  2. $m["foo foo"] = "text 2";
  3. $m["abc"] = "text 3";
I put it into a page, but how to make it work with the external file?

2. How can I unit two web-pages (e.g. template and some data page) in one without include or a readFile functions?
Try:

  1. $arrayVar = array('foo' => 'text 1', 'foo foo' => 'text 2', 'abc' => 'text 3');

Why are you trying to unit two web-pages and why do you not want to use include? You trying to do some old school frames or even iframes?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC