I'm using Zymic, its a great hosting but it doesn't support the php gettext extension. I'm planning to buy some hosting in the future, but from now I want the simplest solution in order to replace the function of gettext, in this case I want to display different text (English, Spanish, Chinese, etc...) without modyfing the file too much ...
This is not exactly my code but it looks a lot like it
I have 2 tables of type CTable. They work in the same way as normal arrays but can be allocated dynamically and resized. So lets just pretend that they are arrays right now
One table has object references
MyObj obj1;
MyObj obj2;
MyObj table1[10];
table1[0] = obj1;
table1[1] = obj...
Hi,
I'm trying to use load to reload a portion of the current page (long story why) but am having an issue with the variable syntax.
Here is the snippet of code:
var pathname = window.location.pathname;
$('#menu').load("/cms.php #menu");
I woudl like to replace /cms.php with the variable, but am having issues with the corrent syntax...
In the following javascript code there is [] being assigned as the value of a variable, what does it mean?
var openTollDebug = [];
...
When the run the following code, everything works fine until $i = 5. After that I get Uninitialized string offset notices, even though the arrays seem to be getting populated correctly. I get this notice when running locally but not when I check it on the remote server. Both are running v5.2.11. I assume the output is different from loca...
Hello, i need to get part of string into variable. (note, i will always use exactly 4 names)
var names = "Andrew Peter Bob Mark"
I need to get the last one to
var last = "Mark"
Thanks for help in advance
...
How can I include a variable in a printf expression?
Here's my example:
printf "%${cols}s", $_;
Where $cols is the number of columns
and $_ is a string.
The statement results in an "Invalid conversion" warning.
The problem ended up being that I forgot to chomp the variable. Gah. Thanks everyone.
...
Hello. I am making an "updating" pages with JS jquery..
But in my updateit.php i just get Undefined index on all my fields. I dont know why.
Here's the form:
<form action="javascript:updateit()" method="post">
<b>+ Giv points for at være online:</b><br>
Points hvert. <input type="text" size="1" id="gpe" name="gpe" value="<?=$row["gpe...
Is it possible to use session in J2me? I am trying to develop a Blackberry application. I want to get some text from a class(page) and use in another class(page). May be something like the we do in app.net as:
Class1
{
session("myVariable") = Textbox.Text;
}
//a new class
Class2
{
TextBox2.Text = session("myVariable").toString(...
I'm creating a lightbox for a website i'm creating, no i don't want to use one already made, i want to make my own.
when the user clicks on a somewhere on the website, i have jquery grab that 's title attribute, and stick it into an image src, and then inject that image tag into .overlay_content
everything works except it wont grab th...
I have a problem with setting the size of my array. In my code I have:
class Test {
public:
....//Functions
private:
string name[];
};
Test() {
//heres where i want to declare the size of the array
}
Is this possible?
...
I'm trying to take the id of a mouseover and strip out part of the ID, to leave me with just the core text I need to act on.
My mouseover will return an id such as "nevadaActiveArea", but I need to manipulate that string down to just "nevada". All the searches I've run speak to how to do this on the contents of some element, but I just ...
I have a Java Struts app in Eclipse and I'm looking for a way to see the values of request and session's variables (as the NetBeans display them), when running the app on Tomcat.
For some reason, the "Variable View" in debuggin mode is always empty, no way to fill it with variables I need to follow. Internal or external browser, no diff...
I want to grab a php file, evaluate any php, then store the contents in a variable.
We'll call this.. page.php
<?php
$content = "Hello World.";
?>
<html>
<head>
<title><?php echo $content ?></title>
</head>
<body>
<?php echo $content ?>
</body>
</html
And I want to put that into a variable by calling a function from another file.
...
I have a code with the following sequence of lines:
Socket echoSocket = null;
... something ...
echoSocket = new Socket("taranis", 7);
I do not understand why we want to have a first line. Well I know that Java is unable to define a type of the variable from its value. It's why first we need to tell that echoSocket is variable which h...
The code works when I declare $lang like this (at the top of the index file):
index.php (with php variable declaration at the top):
<?php
$lang = 'es';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv...
Hi,
I am trying to have a file path like 'C:\Programfiles\file.txt' but i would like to have file.txt be a variable that i can change whenever i need to. I am trying to compare 2 directories then copy files from one to another if they arent already there. i have this code so far.
import os
import shutil
A= set(os.listdir(r"C:\Users\Mor...
Hi,
Why do two different instances of the same class are using their variables as if they where static variables?
I do not want to synthesize those variables.
But without synthesizing- both instances refer to their variables as if they where the same one.
Any way to go around it?
Why is that so?
Thanks-
Nir.
...
How can I make the code below work, so that both puts display 1?
video = []
name = "video"
name[0] = 1
puts name[0] #gives me 1
puts video[0] #gives me nil
...
I'm developing a Python module in C that parses a very efficient protocol which uses dynamic integer sizes. Integers sent using this protocol can range in size from the equivalent of C's 'short' to a 'long long.'
The protocol has a byte that specifies the type of variable being sent (from short to long long), but I'm not sure how to dea...