Hello,
I am configuring a gateway using iptables on centos 5.2. The gateway is using DNAT to send all traffic over port 80 on eth0 to a web load balancer. Everything works great externally however wget from an internal machine (including the gateway itself) returns "connection refused". ping and...
How can you modify the key of an array?
$array = array(one => 1, two => 2);
$array[one] = "changeTheKeyNotTheValue";
array
{
[changeTheKeyNotTheValue] => 1
[two] => 2
}
Thanks.
this is what I got:
var House = {
obj : null,
init : function()
{
// do something
},
build : function()
{
function onestory()
{
//do something
}
function twostory()
{
//do somthing
}
}
};
House.init();
What I want to be able to do is call...
I have been searching the web for hours for a solution. I have tried CURL (host does not support it), fsockopen (Can't get it to work how I want).
Here is what I want to do:
I have a username/password stored in database.
I want to submit this username/pass with the POST method to another...
Hello,
I am looping through every <td> of a named table and retrieving the first element of each <td> and do something if the first element in the <td> is <a>.
For every <a> element the HREF value will be something like:
<a...
Hello great people of tek-tips.
I am faced with a design option that can be argued for the ages. One script wonder or everything layed seperate?
So, I have about 10 PHP pages on my website, one for each top level category. The largest file being 45KB and the smalest being 17KB.
I really like...
Hi, I could not find a proper forum for this, so I picked the closest one that I thought someone would have the answer. Here is my question.
I am using WS_FTP LE to upload files to my remote web server. I have a directory that is about 5 folders deep from the "WWW" folder and I want to create a...
I have read that your page rank is improved for specific keywords when user search for a term then click on your link.
My question is what if I make a link on my site that is something like "Click Here To Support Us". Then scan through the google search results with my chosen keywords untill my...
While toying around I discovered a work-around to the problem of not being able to check if cookies are enabled untill a page reload is done. This method is almost completely hidden from the user. Let me know what you think =)
<?php
/**
*First set your cookie.
*/
$value = "Cookie Check"...
Can anyone please explain to me why this works (In their own words, I have already ready everything that exist about sessions trying to get it to work). I just want to make sure it works because that is how it should work before I move on and accept this logic. Here is the code:
<?php...
I have browsed around the forums and found quite a few people asking the same question with the same problem I have (just time differences) but no answer.
My problem is the session is expiering after 30 minutes of inactivity. After reading a few other post I have come to the conclusion that the...
Currently I am passing numerous global values from page to page through the URL (?value=value&....). I would like to pass them with <form method="post"> so they do not display in the URL but I am using <a href> links.
I know you can create a javascript generic form submitter but I would like to...
I have a table with the following pertinant fields:
completed
quarter
For each quarter there will be 10 records (40 records per year). A date will be inserted when each of the 10 requirements are fullfiled.
What I want to do is get the last date the 10 requirements are completed so I can see...
Greeting,
I got a pretty simple question here with probably a few line of code solution. Here is what I am doing in case there is an even better way...
I am making a CGI application with MySQL database. I have a page that needs to populate about 300+ HTML text boxes (Value="").
It would be...
I am trying to use WinMX (P2P Program) within a company network (Lot's of security) on Windows 2000 Pro.
I setup WinMX with CCProxy and the SOCKS5 is passing the connection request through the proxy server (The connection attempts appear in CCProxy). The IP addresses and DNS that WinMX passes...
I am using Perl/CGI with Javascript.
I print an HTML page with CGI which contains an HTTP link to my .js file.
I am not sure if there is a specific function call that causes it, but it appears to be completely random. It happens after about 30 Minutes. I am also not sure if it is a Javascript...
Is it possible to remove an array element by its actual value. For instance:
$input_Color=Green;
@array=(Red,Blue,Green,Yellow,Black);
splice(@array,$input_Color);
The problem is I do not know the value of $input_Color, and I would not know the index of which element to remove without creating...
Simple question, but I have always been lost when it comes to regular expression.
I need to convert a date that is given in the format "20050302" to "2005-03-02".
So I need a regex that will count 4 insert a "-" then count 2 and insert another "-".
I am going to be purchasing a Unix server to host my array of web sites. I know the basics of hardware, but when I started looking into hard drives all I could see is the different price, not the quality. I have noticed that there is about 2 or 3 names for each hard drive. For instance I have...
Here is what I am working with:
Palm Pilot (Havent purchased one, any suggestions?)
VB 6.0 (Some palm software says it supports this language which is ideal because I know it)
MySQL (Database)
CGI (Program developed in this language)
Here is what I have to do:
I have created a CGI program...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.