Jump to content

ahsn

Members
  • Posts

    7
  • Joined

  • Last visited

ahsn's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. @AbraCadaver, thank you for your help, but that echos all the countries. I ONLY want to echo this line: 'In Africa there are: Kenya, Libya, Somalia.' I tried but couldn't. @Psycho, thank you for your help, though it echos all the continents and countries, your codes look promising but I want to echo ONLY this line: 'In Africa there are: Kenya, Libya, Somalia.' Can you please alter the codes to do that?
  2. I have this array: <?php $continents=array("Asia"=>array("Bangladesh","India","Pakistan"), "Europe"=>array("England","France"), "Africa"=>array("Kenya","Libya","Somalia")); ?> Now I would like to echo: In Africa there are: Kenya, Libya, Somalia. How can I do that? Can anyone please help me? Thanks in advance.
  3. I mean, I used (in different ways): glob("/path/to/directory/*.html") to load the complete site; but couldn't
  4. @requinix, thanks for help, but couldn't solve. If I run that code, it shows a empty page. But I have 3 html files and a css file linked to each other in a folder named 'dd' and I would like to make php show my complete site in browser when I run index.html file. Is there a way to do that?
  5. I can make php read a particular file with readfile() function when needed, but how do I make php read a folder of html files. Because we know a full website has many html pages along with css files. I just want to load a site of many html pages when a condition is fulfilled ,i.e. after successful login. Could anyone please tell me how do I do that?
  6. @davidannis, thank you very much for the codes.
  7. I am a newbie in php and learning it eagerly. Anyway, I would like to make a program which will take two numbers from users and then show the result at the same page. Could anyone please show me the coding to do that?
×
×
  • 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.