This is probably a very strange request.
I need to programmaticaly (via code) change the IP where a domain name is pointing to.
IE: xyz.com points to 100.100.100.100
setIP('xyz.com','100.100.100.100');
I know this [code] is practically impossible, however, what I need is to do this via domain host API etc or other possible ways you ...
What is with these microsoft browsers? Does microsoft ever do a good job at anything...
Anyways, I have a relative positioned div inside another div. The inside-div is positioned with percentage (left: 0%; top:13%).
My problem is that in all IE versions the div is displayed some pixels further down than where it is displayed in Chrome,...
Actually, I am facing a codebase where developpers decided to use 'AND' and 'OR' instead of '&&' and '||'. I know that there is difference in operators precedence (&& goes before 'and'), but with given framework (prestashop to be precise) is clearly not a reason.
So, my question: which version are you using? Is 'and' more readable than '...
This question may expose my ignorance as a web developer, but that wouldn't exactly be a bad thing for me now would it?
I have the need to store user-state information. Examples of information that I need to store per user. (define user: unauthenticated visitor)
User arrived to the site from google/bing/yahoo
User utilized the search ...
$city=array('delhi','noida','mumbai','noida');
$name=array('ankit','atul','ramu','manu');
i want to create a 2 dimensional array using the two arrays above,with the name of the cities as keys and the corresponding names as the values.the names must be sorted.
plz help me
...
Hello everybody.
Before I start a disclaimer, I should add a little disclaimer, that I am relatively new to Cocoa development and C in general.
However I do have a copy of 'Cocoa Programming for Mac OS X 3rd edition' by Aaron Hillegass, which I am working through and using as a base, if anybody has a copy I am using the 'AmaZone' exam...
Hello,
When a user enters his login information and hits submit, i want to check if the user already exists or not.
So, i have the following two questions
1. Which hook is needed to be implemented , for the case when user hits the submit button on the login form. I need the username entered by the user.
2. How to check if a user already...
I have a JS array, which I convert to JSON
JS
mycode[0][0]=true
mycode[0][1]="element1"
mycode[0][2]=400
mycode[0][3]=150
mycode[0][4]=148
mycode[0][5]=148
turned into JSON:
[
[
true,
"element1",
400,
150,
148,
148
]
]
Now I push this to PHP
PHP code:
$decoded = jso...
Here's the php script I'm using on a linux environment:
<?php
include("../_inc/odbcw.php"); //connect string
$cat = $_GET["cat"];
if($_GET["st"]){$crs_query = "select crs_no, title, credits, abstr, prereq, coreq, lab_fee from xxx where active = 'Y' and cat = '".$cat."' and spec_top = 'Y' and prog='UNDG' order by crs_no";}
else {$crs...
Can a PHP function return a lot of vars without array?
I want like that:
<?php
public function a()
{
$a = "a";
$b = "b";
$c = "c";
}
echo a()->a;
echo a()->b;
echo a()->c;
?>
How can I access to $a,$b,$c vars?
...
I am creating something like eazy installer\setuper for my CMS. When user downloads .zip with my CMS and unpacks it into some folder on his php server he sees a file - install.php and a zip folder named - Contents.zip I need some php function to extract files from that Contents.zip zip file and than delete that file. (if it is possible I...
This has been bugging me every since I started to use Python - in PHP you have this ability to use a string as a key in an array. PHP calls these associative arrays. Python calls these dictionaries.
Does anyone know of a premade chart that will let me see what the different terminology is in different languages. For example:
PHP ...
Is there any good (eazy to understend, small - not lotof code lines) sample of working with google openid? (php) -
What I need is to see how to get users name from google openId ;
a good way of how to integrate openid into my current users DB (tooday in DB I have table user with name and pass)?
and how to get any Idea about if useri...
Hi all.
I think I have a performance problem in my apache server.
I have apache server on solaris 10 with php and some flash client applications.
The clients get data from server in XML formation with HTTPService requests.
sometimes the data doesn't arrive and sometimes it does.
maybe performance in the apache server or in the php (maybe...
Hello,
My server is running php 5.3 and My wordpress install is spitting these errors out on me causing the my session_start() to break.
Deprecated: Assigning the return value of new by reference is deprecated in /home//public_html/hub/wp-settings.php on line 647
Deprecated: Assigning the return value of new by reference is deprecat...
To be specified:
function getLength($str)
{
//function i need
}
$str1 = 'aabbcccc';
$str2 = 'aabbccccaaaaa';
echo getLength($str1); //will get 4
echo getLength($str2); //will get 5
Any good ideas?Thanks in advance!
...
Hi,
Please any one tell me will webservice using nusoap helps to Pass PHP Session one site to other site. I need to pass the user session to my other site using PHP/Ajax/SOAP call
...
I have several classes that are basically interfaces to database rows. Since the class assumes that a row already exists ( __construct expects a field value ), there is a public static function that allows creation of the row and returns an instance of the class.
Here's a pseudo-code ( so there are mistakes and missing improvements in ...
how to download folder from some ftp server into your server home directory and give to that directory rights? (like all files in this directoy have all or non rights...) not using special libs if it is possible...
how to do such thing?
...
I've been asked to create a bespoke advertisement system despite suggesting open source alternatives such as OpenX and DoubleClick for Publishers (the former Google Ad Manager).
I've got the basics of the system set up, i.e. uploading creatives, creating positions and a mechanism to place creatives within positions; however, the area I'...