Hello, I want to do define the following variable $url
$url = www.example.com/$link;
where $link is another predefined variable text string e.g. testpage.php
But the above doesn't work, how do I correct the syntax?
Thanks
...
Hi guys,
I was wondering why R# offers a variable name with a "class" suffix? When I am creating an instance of a class, why would I put a class suffix of my instance? Can there be any reason to have a such thing:
BusinessClass myBusinessClass = new BusinessClass();
Thanks.
...
Hi,
In PHP, say that you have some code like this:
$infrastructure = mt_rand(0,100);
if ($infrastructure < $min_infrastructure) $infrastructure = $min_infrastructure;
//do some other stuff with $infrastructure
$country->set_infrastructure($infrastructure);
$education = mt_rand(0,100);
if ($education < $min_education) $education = $min...
I am constructing a webcomic site, but the chapter order has changed significantly. I have manually written the conversions for myself in a form like this:
36 -> 26.1
37 -> 28
38 -> 28.1
39 -> 29
40 -> 30
41 -> 30.1
Basically, following this guide, I want to convert all urls like http://ww...
Hello I have the variable
$string[$k] = $function[$k]
defined within a foreach loop with index $k. I want $string to be defined as
$string[$k] = $function[$(k-5)]
except that isn't correct. So for $k=8 I would have
$string[8] = $function[3]
How do I achieve this?
Thank you
...
I am developing a tool to dump data from variables.
I need to dump the variable name, and also the values.
My solution: Store variable name as a string, and print the "variable name", followed by its value.
Is there any programmatic way to know the variable name?
...
I have a few SQL statements stored in text files. How do I pull these files into a string variable in SSIS so that I can use the same query in multiple places?
Answer to questions:
The queries are long and complex, something I'd prefer to edit in a real text editor, not inside the SSIS text boxes. I'd also like the queries to be edit...
Hello,
I am reviewing some perl code and ran across this line
$> = $<;
It's older code and I wish I could have been more descriptive in the title above (sorry folks). What does this line do?
...
I might be going about this the wrong way
I have a landing page that has a form on it. When i post that page the values of the from got to a page called mail.php
I wanted to add a captcha ( in this case re-captcha.com) to the first page to prevent people from spaming my job application site.
I am unsure how to use the php captcha to p...
So I'm doing some maintenance on a PHP site that is using $_SESSION variables. I started seeing some very very weird behavior and after hours of debugging I just figured this out. As an example, lets say I have a session variable setup like this:
$_SESSION['user']['id'] = 123;
$_SESSION['user']['firstname'] = 'John';
$_SESSION['user']['...
I have created a variable in my App Delegate and from my first View Controller, I am saving a value to the variable (in the App Delegate).
Here is how I'm saving the value to the variable in the App Delegate:
MyAppDelegate *DelegateVar = TheValue;
NSLog(@"%@", DelegateVar); // This NSLog outputs correct value
Later in the program, i...
Hey there,
I am using the following method to basically create a JSON string.
var saveData = {};
saveData.a = 2;
saveData.c = 1;
However the .a and .c don't cut it for what I need to do, I need to replace these with strings. So something like..
var name = 'wibble';
saveData.name = 2;
This would get accessed with
saveData.wibble
...
Hi
I have two variables, 'a' and 'b' in my javascript, and i want to add them together - i assume this code:
var a = 10;
var b = 30
var varible = a + b;
This, puts the two numbers next to eachother... any ideas why... the result should be 40?
Thanks!!
...
I would like to know If I can use a php function on a variable that contains delimiters like ' or ". I'm receiving a text content from my database and I would like to use: strip_tags($desc); on it but it does not work.
Here is an example of what it can contain using var dump:
string(1039) ""txt <a href=""/txt.php"" class=""txt"">txt</a...
Or better yet how do I dump all the variables in a given scope in jsp?
(In php you can use a function call to see all the system, global and user-defined vars and functions available...)
...
For the phone number: 234-567-8901, I would name variables like:
areaCode = "234";
exchange = "567";
What would an appropriate variable name be for "8901"?
...
I'm creating a learning application in Flash and am trying to figure out how to program a "back" button using ActionScript 3. I'm guessing that I need to set a variable to find the previous frame and then set an Event Listener to listen for the back button, but I don't know how to program the variable to find the previous frame, especial...
I want to allow the user to use lowercase or uppercase letters giving the value to the char type variable... Any help??
...
Please if you know, make a response.
thanks
...
Hi everyone,
I have a question and I hope somebody can help me out here. Well, I'm developing an application with Struts 1.3.10 and I have a struts form with an object that contains a property. That property is declared as the primitive type int and the problem comes when the app shows to the user zeroes(0) instead of nothing when I ret...