Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rob51383

    centos iptables dnat connection refused only in local network

    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...
  2. rob51383

    centos iptables dnat connection refused only in local network

    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...
  3. rob51383

    Modify array key

    How can you modify the key of an array? $array = array(one => 1, two => 2); $array[one] = "changeTheKeyNotTheValue"; array { [changeTheKeyNotTheValue] => 1 [two] => 2 } Thanks.
  4. rob51383

    Call a function inside a class

    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...
  5. rob51383

    Submit form data

    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...
  6. rob51383

    Parse href

    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...
  7. rob51383

    One script wonder?

    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...
  8. rob51383

    after a succesful update, get data from mysql?

    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...
  9. rob51383

    php email

    You have to escape the special character ", try <img src=\"image.jpg\" alt=\"image one\">
  10. rob51383

    One script wonder?

    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...
  11. rob51383

    Automatic Timestamp Like microsoft.com

    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...
  12. rob51383

    FTP CWD File

    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...
  13. rob51383

    FTP CWD File

    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...
  14. rob51383

    Redirect user to click your google link

    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...
  15. rob51383

    Check if cookies are enabled

    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.
  16. rob51383

    Check if cookies are enabled

    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"...
  17. rob51383

    Session timeout

    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...
  18. rob51383

    Session timeout

    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...
  19. rob51383

    Session timeout

    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...
  20. rob51383

    Immediate reaction from pulldown

    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...

Part and Inventory Search

Back
Top