Jump to content

lucerias

Members
  • Posts

    101
  • Joined

  • Last visited

    Never

Everything posted by lucerias

  1. If my SMTP is not hosted on local, how do i know the SMTP for the server which it is currently working on? Thank you.
  2. Now i can see the changes on list after i restarted apache but still encounter error shown as below. Thank you. Warning: 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 C:\Apache Group\Apache2\htdocs\examples\code.php on line 58
  3. May i know how to on sendmail? Thank you.
  4. I use PHP 4.3.9, below is part of email configuration [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = MYEMAIL@Email.com ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = Thank you.
  5. I have set a value to the sendmail_from because i want to make use of mail function. But when i checked my info.php, it is still null value for sendmail_from. I have two php.ini which located at PHP folder and system32. I modfied both but still can't see the update on my info.php list. Thank you.
  6. May i know is there internet resource that provides the idea of PHP underlying internet working principles, i am not familiar with setcookie, $_REQUEST, $_POST and $_GET etc because i did software development before but not web based application. Thank you.
  7. How to echo the $blah parameter in a class? I have problem with the code below. class LogClass {     var $blah; // a couple of variables in the class     $blah="string";         function info($str) // a class function     {         echo $str;     } } $page = "blah.php"; // or wherever the variable for page is coming from $log = new LogClass;  // assign $log as a log class $log->info("this page is $page"); // call the class function echo ($log->$blah) ; ?>
  8. May i know what is the meaning of the following code and what is the -> sign about? Sorry for asking this kind of question, i am new to php world. I have read through some web resource but still fail to obtain the concept from the example provided. Thank you. $log->info("This page is $page"); 
  9. Thanks for your code but why the output is "St ing" instead of "String" and what is the meaning of this syntax "&" $value = "St\ring"; stripslashes_checkstrings[b](&$value);[/b] echo $value;
  10. I have started my learning on php few weeks ago, i found that the 'global' and 'local' really mess me up, i can't keep myself stick to way of using them because in VB and other languages, a predefined variable can be passed in function and overwrite the previous value if necessary. However, when comes to php, i must be alert of that all the time since i had established the "No care" habit on it. Anyone can help me to solve the following code problem, the idea is to stripslashes the $value, which is a string defined locally and used in function and echo the final result eventually. Thank you. <?php $value="St\ring"; function stripslashes_checkstrings($value) {      global $value;           if(is_string($value))     {         stripslashes($value);  }    return $value;    }       stripslashes_checkstrings($value); echo $value; ?> I did this by referring to the following code, <?php $a = 1; $b = 2; function Sum() {   global $a, $b;   $b = $a + $b; } Sum(); echo $b; ?>
  11. Thank you printf, your explanation is impressive.
  12. Thanks guys, i know that it returns bool true or false but what is this config about? I am not asking on or off but the purpose of magic_quotes_gpc() itself.
  13. Can anyone explain get_magic_quotes_gpc() to me? i have gone through the definition of PHP from site but can't really get the point. Thank you.
  14. May i know how to config my php.ini to deliver email. Can you guys show me the coding of sending email? I use php version 4.3.9. Thank you.
  15. Sorry guys, i take your time because of my carelessness, i overlooked the exclamation mark. Very sorry.
  16. I have problem of retaining the parameter value shown as the following code. The pre-assigned value for $Parameter1 is written on page and however, when it goes through the outter if statement, the value is lost because when i do the checking on the value of Parameter1 through the inner if, it returned false or null value. The idea here is i want to check whether the array is null and pass the $Parameter1 value based on the check on array accordingly. echo $Parameter1; if(!isset($Array)) {              if (!isset($Parameter1))         {             echo "true";         }        else         {             echo "false";          } }
  17. Can you guys provide URL resources for the setup of PHP 2.0.52, MYSQL 4.0.22 and Apache 2.0.52 on windows? I have successfully done the setup but i am looking for a more precise setup instruction which covers only the necessary steps.
  18. Can you guys provide URL resources for the setup of PHP, MYSQL and APACHE? I have successfully done the setup but i am looking for a more precise setup instruction which covers only the necessary step.
  19. No, it happens randomly on any page.
  20. I found my php site encounters a serious problem, which is sometimes i clicked the 'Back' button of explorer, it would show "Action canceled Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable", this is really a serious problem to user and happens quite frequently. However each and every function of the php site works properly and only 'Back' can trigger this to happen. There is no a fix page where causes this problem, it happens randomly in any page when click the 'Back', may i know how to solve this problem. Thank you.
  21. I am currently trying hard to understand the connection of each and every PHP modules. However, i found that it is really difficult to track by looking the code. I once went through the HTML, but one page can link more than one module and it is quite confusing. May i know is there any other way to learn about that effectively? Thank you.
  22. May i know is there any PHP editor, which can be used to display not only the code but also the GUI view without really executing them by using browser. Or any suggestion on editor that it is user friendly? Thank you.
  23. Sorry, is there any difference between the coding i provided and you posted later. I have already tried but it can't work. Thank you.
  24. Is there any way apart from this $_GET["Parameter"]? It is because i read a book and the example in book is done in this way: echo $Author. Thank you.
  25. Thanks, it works. What if i want to display the parameter together with a string?
×
×
  • 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.