Jump to content

srinivas6203

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by srinivas6203

  1. Hi Barand Thanx for ur reply. But these type of equations comes from database dynamically. According to u, can you give me some code snippets. Thanq
  2. Hi I have one problem to calculate number equation using php. How can i calculate the following equation using php (((1000)11.11%)+((1000)65.66%)65.63%)/((56425)87.87%) I want final value. Can any one tell me pls. Thanq
  3. HI $update = "update sip set outbound_cid = '" . $_POST['outcid'] . "',never_override_cid = '" . $_POST['keepcid'] . "',max_chan = '".$_POST['maxchans'] . "',disable_trunk = '".$_POST['disabletrunk'] . "',monitor_trunk_failures = '".$_POST['failtrunk']. "',monitor_trunk_failures_stat = '" . $_POST['failtrunk_enable'] . "',dial_rules = '" . $_POST['dialrules']."',dialrules_wizard = '".$_POST['autopop']."',outbound_dial_prefix = '".$_POST['dialoutprefix']."',trunk = '".$_POST['channelid']."',peer_details = '".$_POST['peerdetails']."',user_context = '".if(isset(!$_POST['peerdetails'] && !$_POST['userconfig'])) $username_c."',user_details = '".$_POST['userconfig']."',register_string = '".$_POST['register']."' where id = '".$trunk_id."'"; In the above can u find out any error. I got a error like Parse error: syntax error, unexpected T_IF Thanq
  4. go through this http://www.zapatec.com/website/main/products/prod1/demo.jsp#example1.html
  5. Hi i have flash related graph. It showing staticstics. I want to display a calendar above the graph. If we have drag the calendar onto the graph, calendar goes back to the flash file. Can anyone know
  6. Thanx for ur reply. Can u send me sample scripts.
  7. Hi all I am doing a website. when user edit his account total details are stored into the database. Then he click "apply changes" link, a .conf file will be generated with his total details fetching the values from database. Total these task working fine. But management asking as "When user edit his account then only 'apply changes' link will be come. The link will be there until he click that link. If he click that link .conf file will be generated with his modified details. otherwise the link will be there until he click that. any idea pls thanq
  8. Hi dilum Thanx for ur reply. I am asking about ajax confirmation dailogue box. Not a normal javascript. I hope u will be understood. Thanq
  9. Hi all I want to delete some item from my website. If i click on "delete" link, the ajax confirmation dailog box have popup. Can any one send links or scripts Thanq
  10. Thanx for ur reply $dh="/var/www/admin/"; //`sudo chmod 777 $dh`; $file="additional.conf"; $fullpath=$dh.$file; `sudo chmod 777 $fullpath`; $create_file=fopen($fullpath,"w+"); $sql=mysql_query("select * from table"); while($row=mysql_fetch_array($sql)) { $content =$row['field']"; } file_put_contents($fullpath, $content); fclose($create_file); if($create_file) { header('location:index.php'); } else { echo "file not generated"; } here $content ="host=***provider ip address*** username=***userid*** secret=***password***"; This is the code.
  11. Hi i am generating one file with data which was getting from database table using php. The data was as following. host=***provider ip address*** username=***userid*** secret=***password*** But this data was displayed in file as follows host=***provider ip address***^M username=***userid***^M secret=***password***^M type=peer I dont want to print this '^M' character. Why because, because of this character i will be face so many problems according to the security. Can any one help me out. pls
  12. Problem was solved by using following script. Thanx for every cooperation. $dh="/var/www/admin/"; `sudo chmod 777 $dh`; $file="test.txt"; $fullpath=$dh.$file; `sudo chmod 777 $fullpath`; $create_file=fopen($fullpath,"w+"); $stringData = 'sample'; fwrite($create_file, $stringData); fclose($create_file);
  13. I tried by the using of following script. But i got errors. $path="var/www/files/"; $file=$path."test_file.txt"; $fp=fopen($file,"w"); //echo file_put_contents($file,"Hello World. Testing!"); fwrite($fp, 'sample data'); fclose($fp); I got following errors: Warning: fopen(var/www/files/test_file.txt) [function.fopen]: failed to open stream: No such file or directory in /var/www/admin/conf_changes.php on line 11 Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/admin/conf_changes.php on line 13 Warning: fclose(): supplied argument is not a valid stream resource in /var/www/admin/conf_changes.php on line 14 Please help me out.
  14. Thanks for your reply friends. Can you send me scripts please.
  15. i am doing website using php and mysql on Linux. I want to generate .conf file using php and mysql. i want to fetch values from database table and generate conf file.
  16. Nothing there The Little Guy The auto increment id was adding to prefix. Not concatenate. if id is "1" and prefix is 999. After using your script the id is 999+1 means i get the id is "1000". but i want 9991
  17. Hi The Little Guy Thanq for ur cooperation. I tried that script wha u have to send. the auto increment id was added (+) to prefix by using your script. Example: Auto increment id is 1. Our prefix is 999. After update the table the id value is 1000 (999+1). But i want 9991.
  18. I am doing one website using php and mysql. Afeter complete the registration the user details stored into the database. At this time i want to prefix some number to auto increment id. For example user id is 3. I want to prefix some 999 to that id. Finally i want to store the id as "9993". Is this possible. If that is not possible. there is another way. make the number using some loop with starting 9991 to etc. Make sure those numbers are unique and must starts with 999. Per each registration i have put the number into database as user id. Can any one help me.
  19. hi all I want to print email from file. the file contains like this. time="" register=no mailserver=mail.google.com email=nani@gmail.com password=xxxxxxxxxxxxxxxx status="online" From this i want to get email and print it on to the browser. i con't use line wise print. because that file will change the order every time , That means , now email row was in 4th line. after refresh the browser that email row might be go into the 2nd or last line etc. So first i want find word "email=" and then retrieve correspondent email "nani@gmail.com" and print that email. like wise remaining fields. can any one send me script or url's. please its urgent. thanq
  20. use fpdf.org for pdf creation use php mailer for mail attachment
  21. Thanx neil.johnson . its working. Thanq to ignace
  22. hi neil.johnson How can i compare this and how can i get email. can u tell me the code.
  23. Hi all I have some bunch of data like this. askdhasdkf[sld[askfsdjflasjdajjdljkd;askd;ad[addjljdlaldajdjad "jshdkjshdsd@gmail.com" sajdkasjdlsjd dsakdhal sjdlasjdksajdjsapj kdpsoakdpoa skdklasdsa daddasd dadsadj asjdoijdo; iqwueiqe pqjlnd sandsahdsj dghkjshd kadsadsakhdkjsahdkjd. In the above paragraph there is a email id "jshdkjshdsd@gmail.com". I want to get that email id. I am not using database. Is there any possibility to get that email id from that paragraph using php. Kindly tell me ASAP. Its urgent. Thanq
×
×
  • 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.