Jump to content

pedro84

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by pedro84

  1. Thank You. I apply what You write and I get blank page. What did I make wrong?
  2. [code]<?php $lang = addslashes($_GET["lang"]); require_once("include/language/". $lang .".inc"); echo $language["welcome"]; ?> <form action='index.php' method='get'> <select name='lang'> <option value='EN'>English</option> </select> <input type='submit' value='Change Language'> </form> [/code] I use this for test and i get error [code] Warning: main(include/language/.inc): failed to open stream: No such file or directory in c:\usr\apache\httpd\html\index.php on line 3 Fatal error: main(): Failed opening required 'include/language/.inc' (include_path='.') in c:\usr\apache\httpd\html\index.php on line 3[/code] I've got files made. BTW Have I put this code : [code]<?php $lang = addslashes($_GET["lang"]); require_once("include/language/". $lang .".inc"); echo $language["welcome"]; ?>[/code] in all my pages?
  3. Thank You. But how to make lang switcher?
  4. Hello again! I'm PHP  neewbie, but I'm writing my first website, with huge help from good people. I have problem. I want to make multilingual site based on lang files [code]define ('LOGIN', "Login");[/code] But I don't know how to start, I found some articles over the internet, but I don;t understand them:) Greetings, Pedro Juan  Alvaredo-Kowalski [Spanish-Polish Surname:)]
  5. Hello Again:) I have splitted my source for the files: header.php content.php footer.php menu.php Source [part]: [code]<div id="bckg"></div> <div id="left"> <div id="menu"> <ul class="menu_t"> <li class="menu_item_lefth">&nbsp;Michael-Schenker.com</li>[/code] My source is div based. I have serious problems with my template. I don't know where I have to include files to make pages with different content. Do I have to put my tamplate in index.php? Or can it be juest like I've splitted it? header.php content.php footer.php menu.php? I have read many tutorials but I haven't found what I'm looking for [:) U2] Thanks in advance for help Greetings Pedro
  6. I fixed them. I have next question: How to make structure as follow: _root =>index.php data => files ex. discography How to make them? I tried but I got errors that cannot find path:| Sorry for my  maybe stupid questions but I want to make it good. Thank You once again.
  7. Another question. Do I have to have css link in all pages? How to include it?
  8. Sorry for makin' new topic but I have next problem... I have just installed Smarty System. It looks nice. But I have questions about it: 1. can I move files from libs directory anywhere? they are in my root directory, but I don;t want to:) I tried do  it but I can;t. I'm too stupid:( 2. Second and last, how to create..pages different than index.php??  :'( Forgive my, but I'm n00bie to php. I prefered HTML+CSS. Greetings Pedro
  9. Don't understand at all:) But when I'm validating my source is it good:)
  10. WElcome Everyone! I wanna to ask You some questions: index.php [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Michael-Schenker.com</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/> <link href="style.css" rel="stylesheet" type="text/css"/> </head> <?php include('includes/header.php'); ?> <?php include('includes/menu.php'); ?> <?php include('includes/content.php'); ?> <?php include('includes/footer.php'); ?> [/code] ew. included file [code]<?php echo "<div id=\"footer\"><p id=\"copy\">Copyright 2006 Michael-Schenker.com</p></div>\n"; echo "</div>\n"; echo "</div>\n"; echo "</body>\n"; echo "</html>\n"; ?>[/code] Am I doing it right? Is it good way to make my site validating?
×
×
  • 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.