Jump to content

toreachdeepak

Members
  • Content Count

    44
  • Joined

  • Last visited

Everything posted by toreachdeepak

  1. Hello, How to we pass the non ascii string as input argument to the PHP Script ? For example below argv[1] - hi_INargv[2] - 100argv[3] -"हिंदी का अनुवा" $ php voxom_tts_integ.php hi_IN 100 "हिंदी का अनुवा"But I am not able to pass the hindi or non ascii text as argument to PHP Script Regards Deepak Bhatia
  2. How do we get the error_type means E_WARNING or E_ERROR ?
  3. Hi, Thanks in advance. How do we check whether the php function called generates which error ? For example, if I set the wrong timezone then I get E_NOTICE date_default_timezone_set('Asia/Kolkata'); But how do we check which E_WARNING/E_NOTICE etc is generated. Regards Deepak Bhatia
  4. Hi, I want to feature to enter english and other languages in my website input box. I mean where I enter the text, I can choose the language to enter. Regards Deepak Bhatia
  5. Hi,I have a web site which works only in IE. I am using the hyperlink of the same web site in my website.Now I open my website in Firefox, the link to the website if clicked will open in Firefox which it doesn't support.Can I set my hyperlink in the anchor tag to always open in Internet Explorer ?RegardsDeepak Bhatia
  6. Hi,When I do readfile and if there is a space character in the file name then the downloaded file doesn't give file name after after then.How can make a work around for this ?I am thinking making a copy of the file replacing space character in file by a dash character (using copy function).RegardsDeepak Bhatia
  7. Hi,Anybody implemented Kerberos Authentication using PHP.Thanx in advance.RegardsDeepak Bhatia
  8. Hi,We are not able to understand the first string to be matched in the below preg_match function'/^exact:[\s\S]*Project Manager:$/'preg_match('/^exact:[\s\S]*Project Manager:$/',$this->selenium->getText("//div[@id=adminreport]/div/form/table/tbody/tr[6]/td[1]/b"))===========================================================================^: Start of string$: end of string1. What is the meaning of exact ?2. If * has a special meaning why it is not coming \*
  9. Firstly index1.php is called to serialize and then index2.php is called to unserialize. But index2.php is not showing the content============================File1 - index1.php<?php class xyz123 { public $one = 1; public function show_one() { echo $this->one; } } $a = new xyz123; $s = serialize($a); // store $s somewhere where page2.php can find it. file_put_contents('store', $s);?>==========================================================File 2 - index2.php<?php // this is needed for the unserialize to work properly. $s = file_get_contents('store'); $a = unserialize($s); // now use the function show_one() of the $a object. echo $a;?>==============================
  10. Yes you are absolutely right, we had firewall issues in which McAfee was disabling the play of the video.
  11. I am also surprised because the example given by W3School should work.http://www.w3schools.com/media/tryit.asp?f..._videoaviobject
  12. Hi,I tried to see this example given on W3schools, but it is not running on internet explorer.RegardsDeepak Bhatia<html><body><h2>Playing The Object</h2><objectclassid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><paramname="FileName"value="http://www.ananova.com/about/vap_windows_check.wmv" /></object></body></html>
  13. Hi,When I click a link, I should get a page without Browsers menus etc. Please help.RegardsDeepak
  14. Thanks for your reply.Actually we have a long term plan of making the company intranet with various contents like company news, employee interactions thru blogging, employee database maintainance and lot of other features.So I have suggested Drupal because I have heard in the long run Drupal is better than Joomla and Wordpress, though these also have certain advantages.Please share your specific experieces on any CMS you have used till now.RegardsDeepak Bhatia
  15. Hi,Which one is a good content management system - PHP based ?RegardsDeepak Bhatia
  16. toreachdeepak

    Mail Function

    Hi,I am not sure why does below program doesn't send mail to $to. Even though I get "Mail Sent". This is happening on linux.<?php$to = 'b.kumar@nechclst.in';$subject = 'the subject';$message = 'hello';$headers = 'From: deepak.bhatia@nechclst.in' . "\r\n" . 'Reply-To: deepak.bhatia@nechclst.in' . "\r\n" . 'X-Mailer: PHP/' . phpversion();if(mail($to, $subject, $message, $headers)){ echo "Mail Sent";}else{ echo "Mail not sent";}?>
  17. Hi,The mail is working fine on windows but on linux it is giving problem.Could this be due to apache is running with ssl ?RegardsDeepak
  18. Yes even my spam folder is not showing anything though I get "Mail Sent" message.
  19. Hi,For the code below, the web page waits for a minute or so and then prints "Mail Sent". The mail returns true means ut has worked.<?php$Name = "Da Duder"; //senders name$email = "deepak.bhatia@nechclst.in"; //senders e-mail adress$recipient = "deepak.bhatia@nechclst.in"; //recipient$mail_body = "The text for the mail..."; //mail body$subject = "Subject for reviever"; //subject$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfieldsmail($recipient, $subject, $mail_body, $header); //mail command ?><h1>Mail Sent</h1>
  20. Actually my email address is deepak.bhatia@nechclst.in, I had put that just for example.Will it possible to guide me in this regard ?ThanksDeepak
  21. Hi,The php mail function is not working on linux.Please help in understanding which settings are required.I have done following settings on my linux machine; For Unix only. You may supply arguments as well (default: "sendmail -t -i").sendmail_path = /usr/sbin/sendmail -tsendmail_from = myemail_addressThanksDeepak
  22. Hi,How do I access the members of oContextMenuItems ? Is it array of array ? var oContextMenuItems = { "tdclass01": [ "Edit Row0,Column1", "Cancel Row0,Column1" ] };ThanksDeepak
  23. Hi,I am generally using the function definition of the Javascript function as given belowfunction abc(){..............................}But in the Yahoo user interface it is given as YAHOO.example.BasicRemote = function() {}();Is it correct as per Javascript standards ? ThanksDeepak
  24. Hi,When I use Date function of PHP on windows machine, it doesn't give me the correct date when date changes at 23:59:59 hours in nighy on "WINDOWS Machine". When I set the correct country, the I get the correct date change at 23:59:59.But on linux, this issue is not coming.Please help me in this regard.Deepak Bhatia
×
×
  • Create New...