Jump to content

rahul_jjj

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by rahul_jjj

  1. Hello.. I tried to click the browser back button from my application home page and it says "Warning: Page has Expired " . What could be the reason. Is that because of the form.
  2. I tried the same and it says "Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in " What all do I have to configure in php.ini file ?
  3. I am new to Php and I am using php5 with apache. I wanted to have a code which can send an email automatically from the system.. I have the below code with me... $to = "abcde@in.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = 'From: .'."test".' <xxxxx@in.com>'; $headers = "From: $from"; mail($to,$subject,$message,$headers); Can anyone advise me on this as I am not able to send eny email with this.
  4. Yes you are correct, I am trying to access from my computer. What do u mean by "try in a different computer".
  5. I am trying to get the IP address of the system through the below code, wherein it returns me the value as 127.0.0.1.. How do I get the real IP address. Can anyone advise.. Posted the code below, function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } echo $ip; return $ip; }
  6. I have a written a code in php with ajax for login validation..I have a login.php from where I am getting the request for Ajax and call the ajax.php something like this " xmlHttp.open("GET", "ajax.php", true); " I get the output as desired but when I change the content in ajax.php say for example if I change a string username as User it is not reflected when I refresh the page. It works when I use a new window. Browser used : IE Do I need to enable any browser setting to make this work in the same window. Anyone advise
  7. Can anyone post the code for login validation through Ajax in php
  8. I need to do a login validation in my php script. Can anyone advise how to implement the same.
  9. Where will I be able to find the ISP details.?
  10. I am using php5 and I am trying to send an email through my script. I have the following code, $to = "you@example.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "me@example.com"; $headers = "From: $from"; mail($to,$subject,$message,$headers); what do I configure in my php.ini file for smtp and sendmail_from variables to .. I have something like smtp = localhost and sendmail_from=abcde@yahoo.com Can anyone advise.. Rahul
  11. Yes I am using apache2.2.. sorry to confuse as I am parallely working with apache-tomcat 5.x for a java application.. I tried the above steps but I dont see any php5apache2_2.dll under php-5.2.6 and so when the server is started it gives me an error. Advise
  12. I have php5.x and apache5.x downloaded. I just wanted to know how to configure php5.x with apache and the playaround with php.ini file.. Can anyone advise
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.