After many hours of searching on keywords targeted at what I thought the problem was I confirmed my suspicion. Specific rules are needed for local packets. The following is my new NAT rules which solves my problem:
$GATE_ETH0 = Public IP of the firewall/gateway
$GATE_ETH1 = Private IP of the...
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...
I have ready many articles which proclaim to an object oriented style of PHP programming is the best, but I can only see about 3 different places where this model can be applied (and it is) but for the most part, everything is unique and can not fit into a model (or I can just not imagine a way...
Unique id's should almost always be set within the database. Using phpMyAdmin simply set the type as INT and the "extra" select box select "auto_incriment". Chances are, because the data is inserted then queried for the last entry in about .02 seconds you will never have to worry about selecting...
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...
There really is no point to do that. Microsoft actually updates their website very often so I am sure that time stamp is valid. If you put something like that on your website, even though it has not been updated it will be useless. Maybe it will show new visitors you update your website very...
Yes, you can open a window to type in the directory but I need to change back and forth between directories sometimes 3-5 times a minute.
I am developing, uploading a script to one directory, then testing if the script works by executing it, then checking if the file is properly created by the...
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...
This is a TIP post for people doing a PHP forum search for "Check if cookies are enabled" because I did not find any good ones for that query. If you do not like the method, post a better one.
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"...
I got it working by setting my own cookie with the PDPSESSID. I think the actual problem is the cookie session_start() sets is not sticking with the time parameter set (maybe syntax or implimentation), or maybe it is something else.
I am going to look into DB session management because I would...
Just let it sit there for a few hours with the following code and it still timed out.
What is even more strange is when I start a new session, then delete the cookie on the client that is created from session_start() it still keeps the current session values and I am not passing the PHPSESSID...
Ok, I think I finally got it. I can't do what I want to do with sessions! At least I finally got the sessions to register in the manner I expected. I think it is the combination of ini settings you gave me. This is what gives me the expected results of expiring at 20 seconds...
I am not sure I understand what you are asking, but I think I have done what you are asking for.
I am assuming by "pull down" you mean select boxes (HTML tag <select name="">)
If that is the case you can use the onchange command. I made the value appear in a text box with CSS applied. You can...
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.