473,218 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,218 software developers and data experts.

Question to php-settings

Hi, sorry, maybe a stupid question, but anyway

i have some php-scripts with things like this

echo <snip> _("Name:") ; <snap>

it is not possible to see this page in my browser

when I change this in

echo <snip> ("Name:") ; <snip>

the page is loaded.

I think it's an php-setting, but which ?

Can anyone help me

tia
Hans-Jürgen
Jul 17 '05 #1
3 1330
Hans-Jürgen Lommel said the following on 25/06/2005 15:50:
Hi, sorry, maybe a stupid question, but anyway

i have some php-scripts with things like this

echo <snip> _("Name:") ; <snap>

it is not possible to see this page in my browser

when I change this in

echo <snip> ("Name:") ; <snip>

the page is loaded.

I think it's an php-setting, but which ?


can you post the whole line, rather than snipping it?
--
Oli
Jul 17 '05 #2
On Sat, 25 Jun 2005 16:50:07 +0200, Hans-Jrgen Lommel
<ha**********@hjlommel.de> wrote:
Hi, sorry, maybe a stupid question, but anyway

i have some php-scripts with things like this

echo <snip> _("Name:") ; <snap>

it is not possible to see this page in my browser

when I change this in

echo <snip> ("Name:") ; <snip>

the page is loaded.

I think it's an php-setting, but which ?


I'd guess: http://uk.php.net/manual/en/function.gettext.php

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #3
Oli Filth wrote:
Hans-Jürgen Lommel said the following on 25/06/2005 15:50:
Hi, sorry, maybe a stupid question, but anyway

i have some php-scripts with things like this

echo <snip> _("Name:") ; <snap>

it is not possible to see this page in my browser

when I change this in

echo <snip> ("Name:") ; <snip>

the page is loaded.

I think it's an php-setting, but which ?


can you post the whole line, rather than snipping it?

OK here is it, it's a part of login.php and belongs to the
squirrelmail-package.
I got the hint that it is a shortform of GetText and I trie a Test-Script
from the php-manual

<?php
// Set language to German
setlocale(LC_ALL, 'de_DE');

// Specify location of translation tables
bindtextdomain("myPHPApp", "./locale");

// Choose domain
textdomain("myPHPApp");

// Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo now

// Print a test message
echo gettext("Welcome to My PHP Application");

// Or use the alias _() for gettext()
echo _("Have a nice day");
?>

On my Suse-Machine I see the text,
on my eisfair-Server not.

Ups, what to do ?
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stijn Goris | last post by:
Hi all, I have a question regarding the header function. I send a browser to a certain page (eg first.php ) wich sends no output to the browser. This page sends the browser to another page (eg...
3
by: ..\\Dutch./.. | last post by:
Hi all I created a webshop and thats working great But i have a small problem which i cant get solved. When a customer checks out he sees a confirmation page which he can print. That same...
3
by: New to PHP | last post by:
I have 3 computers with Ethernet connection to a local router box(SMC7008ABR) and on the wan side to Verizion DSL. I was able to install Apache and PHP on one of the PC with XP Home edition. How...
24
by: tom pester | last post by:
Hi All, I am learning php an I am amazed how easy a PHP noob like me can acheive so much in little time. I am planning to take part in the community and noticed these 3 newsgroups : ...
3
by: alucard001 | last post by:
Hi all! I am a newbie in PHP and I have a question on using $_SESSION. To keep it short, here is the code: A.php: <?php if($_POST == 'USER' && $_POST == 'PWD'){ $_SESSION = 1;
2
by: kimshapiro100 | last post by:
Question on PhP, MySQL I am thinking of a consumer internet business for which I will have to have a database driven site built. I am thinking of using PhP, MySQL as the main technologies...
2
by: yawnmoth | last post by:
The PHP license states the following: 4. Products derived from this software may not be called "PHP", nor may "PHP" appear in their name, without prior written permission from group@php.net. ...
56
by: tasteless | last post by:
Hi guys, I need really hard questions (about 10) about PHP programming (some of elements OOP as well, but no MySQL questions - this is different part), this questions needs to be very hard, but...
0
by: Patriot89 | last post by:
I have a quick question in reference to php file extenstions... I have code for example like this... This is all located on this site www.ixalliance.com/BHS/Default (This is my nav.php file) ...
25
by: Mark | last post by:
so, i'm making a website. let's say i have header.php, footer.php and content.php. now in index.php I simply want to include the 3 pages. easy enough to do. but let's say the user navigates to...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.