Hi guys,
I am trying to locate the location of file being displayed in php.
I have a small file which can be included by any file wither from root or from inside any folder.
i need to print out the location of the.
for long explanation: my config file is config.php located in root location of website i.e localhost/site1/test/. It con...
I need to keep track of location and distance like oodle.com does. I don't want it bundled into the url, so I am using cookies.
I use that info on many parts of the page, like the header, sidebar, widgets... etc.
Where can I put the code so that I can access it without a call to cookies... or can I just ask for $_COOKIE['value'] anywh...
Hello.
I am using Captivate 5. I have a text field where the user enters their name. Once entered I am able use it throughout the presentation. If the user leaves however, the variable is lost.
Is there an easy (or maybe not so easy) way to store it externally so when they return it remembers what that variable was? And perhaps where t...
$variable =1;
How i can do it?
I need insert variable 1 2 3 4 5 ...
in @"Event" or @'Event'
...
Hi there, I'm pretty new to programming and so I"m making this program in C++ that will take a number and find it's prime factors, which works great! Unless it's too big for an int variable. Now then I tried to change all of the int variables to long long variables so it wouldn't matter, but this doesn't seem to fix the problem. The prog...
Hi
I'm relatively new to Ruby on Rails 3 and hope to integrate Ambethia's Recaptcha plugin into my app.
In following what looks like Rails 2 documentation, it's asked to place the following into environment.rb
ENV['RECAPTCHA_PUBLIC_KEY'] = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
ENV['RECAPTCHA_PRIVATE_KEY'] = '6Lc6BAAAAAAAAKN3DRm6...
I have a form I've created, and on completion they are asked to select person they want it emailed too from a drop down list.
My issue is how do I add that variable to the $mailer.
right now it is written like this
$mailer -> AddAddress('[email protected]','First Last');
how do i get my variable in there
$mailer -> AddAddress($email...
How can I append this URL variable to the list?
I am fiddling around with this: http://jsfiddle.net/Y2ER7/4/
JS:
$(function() {
var pic = "http://jqueryui.com/demos/droppable/images/high_tatras3_min.jpg";
// doesn't work
$("<li><img /></li>").attr("src", pic).appendTo("#album ul");
$("<li><img src='pic' /></li>").appe...
Hey,
I'd like to do something like this with PL/SQL:
for ACCOUNT in account_cursor
loop
for related_data in (select something from table where some_column = ACCOUNT.column)
loop
endloop;
endloop;
(caps for emphasis)
I'm away from my dev environment so I can't test this out, so please ignore any minor syntactical...
I declare a variable which gets it's value through another event out of a select-box. Since there are different events which change the variable (lets name it z), I want to get informed when the variable gets changed.
So my question is: What is the best way to get informed when a variable gets changed?
z.change(function(){}); throws an ...
Okay I do apologise that I'm out of my depth here. I'm not the kind of person to rely on places like this and any help towards improving my PHP & MySQL knowledge is greatly appreciated!
I have this query which is called to collect information about users who are registered on our wordpress site.
$verified = $wpdb->get_results("SELECT w...
in c# i have a:
a = !a
(if false makes it true, if true makes it false)
in sql i want to do the same with a BIT variable
something like:
declare @a bit
set @a = 1
select @a
set @a = not (@a)
select @a
can i?
i could always do an IF, but this would "look better" :)
...
I have a section of code that I'm stumped on how to handle. The Selected options on the drop down menues are not being picked up on the second PHP page. That is to say the variables error, error1 & error2 on the second page remain blank. I had the same issue with other variables, but was able to fix them with $_POST, but not sure how ...
I managed to create a new line for each only with :
$content1= hot("britney") ? "britney found" : "";
$content2= hot("gaga") ? "gaga found" : "";
$content3= hot("carol") ? "carol found" : "";
$filename = 'result.txt';
$handle = fopen($filename, 'a');
fwrite($handle, "$Content1\r\n");
fwrite($handle, "$Content2\r\n");
fwrite($handle, "...
I have the following codes:
require("class.XMLHttpRequest.php");
function hot($news){
$url="https://localhost/search.aspx?search=".$news."";
$ajax=new XMLHttpRequest();
$ajax->setRequestHeader("Cookie","Cookie: host");
$ajax->open("GET",$url,true);
$ajax->send(null);
if($ajax->status==200){
$rHeader=$ajax->getResponseHeader(...
char x [1000];
x = 'hello';
.....
clear contents of x???
What would i use to clear x? I'm not able to re-initialise it, use strcpy(x, '/0') or free().
...
i have the following code:
which uses an array to write the result to file
i want to create another array to read the celebities aray from another file
<?php
require("class.XMLHttpRequest.php");
function hot($news){
$url="https://localhost/search.aspx?search=".$news."";
$ajax=new XMLHttpRequest();
$ajax->setRequestHeader("Cookie"...
My group does a lot of test automation with JM. Typically we have a properties file which has a bunch of variables defined. These in turn are mapped to "User Defined Variables" of which we have a number of different sets.
These are in referenced throughout the rest of the jmx - I find it diffucult as there are so many variables in so m...
Ok here is an example of what I'm dealing with at the moment:
@implementation ECHOAppDelegate
...
@end
@interface PtyView (PtyPrivate)
-(void)startTask;
-(void) didRead: (NSNotification *)fileNoty;
@end
@implementation PtyView
...
-(void)startTask {
//starts task
}
@end
Now, if I wanted to "trigger" startTask from the EC...
WCF will match this:
http://localhost:8888/test/blahFirst/blahSecond/sdfsdf,wwewe
to this:
[OperationContract]
[WebGet( UriTemplate = "test/{first}/{second}/{val1},{val2}" )]
string GetVal( string first, string second, string val1, string val2 );
Is there a way to make the va11, val2 be a variable length list of parameters? So it co...