Jump to content

e-man

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

e-man's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [!--quoteo(post=370438:date=May 2 2006, 02:56 AM:name=2RIP)--][div class=\'quotetop\']QUOTE(2RIP @ May 2 2006, 02:56 AM) [snapback]370438[/snapback][/div][div class=\'quotemain\'][!--quotec--] how can i make the code so when i add/remove links, i don't have to go through all the pages to change them.. i know it has to do with <?php include ('navigation') ?> but can someone guide me to how i should do use this code? [/quote] Here are several good tutorials: [a href=\"http://php.codenewbie.com/articles/php/1489/Using_Includes_to_streamline_the_design_process-Page_1.html\" target=\"_blank\"]includes 1[/a] [a href=\"http://cyberstar-designs.comstar-media.com/resorces/php-includes/index.php\" target=\"_blank\"]includes 2[/a] [a href=\"http://www.alistapart.com/articles/keepingcurrent/\" target=\"_blank\"]include 3[/a] and you can always search php.net....
  2. [!--quoteo(post=370361:date=May 1 2006, 09:31 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ May 1 2006, 09:31 PM) [snapback]370361[/snapback][/div][div class=\'quotemain\'][!--quotec--] From the manual: [/quote] Thanks, I searched the php docs for those functions and tried this snippet: [code]<?php setlocale(LC_ALL, 'es_ES@euro'); echo strftime("%A %d %B %Y"); ?>[/code] On my own server (php 4.3.1) it works as it should (i.e. I get the date in Spanish martes 02 mayo 2006), on the test server (php 4.1) nothing happens. Even running this snippet: [code]<?php $loc_de = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'); echo "Preferred locale for german on this system is '$loc_de'"; ?> [/code] on the test server gives nothing. I'm assuming I need at least 4.3, anyone know if this is a known issue?
  3. I use this snippet of php to put the current date on a HTML page: [code]<?php $today = date("F j, Y, g:i a"); echo $today; ?>  [/code] which gives me March 10, 2001, 5:16 pm (in English) Is there any way of doing this in Spanish and German as well, I mean have the name of the month appear in Spanish or German? Any help welcome! PS the server this runs on only has php 4.1 if this helps...
×
×
  • 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.