Hi all,\n\nHow can i connect to a remote SFTP server through php script.\nAnyone please help me on this.\n\nThanks & Regards,\nIndrani
128338
You can find the necessary code and example here:\n\nhttp://us2.php.net/manual/en/function.ftp-connect.php\n\nGood luck!
56260
It could be something with your internet connect. SMTP is Simple Mail Transfer Protocol. It sends the mail by contacting the other server to which you want your mail sent... If it cannot reach another, your internet connecting might not be working correctly...
501518
If you don't have a mail client(outlook, thunderbird etc..) installed then it won't work.\nHere's a mailing script.. If your server support email relay then this shud work..\nsave the script below in a php page name it sendmail.php\n<?php\n$to = "emailaddresstosendto@domainname.com"\n$subject = "Your subject";\n$message=$_POST['text'];\n$from="FROM: emailaddresssentfrom@domainname.com";\n$headers = "MIME-Version: 1.0&#92;r&#92;n".\n   "Content-type: text/plain; charset=iso-8859-1&#92;r&#92;n".\n   "From: $from &#92;r&#92;n".\n   "To: $to &#92;r&#92;n".\n   "Date: ".date("r")."&#92;r&#92;n".\n   "Subject: ".$subject."&#92;r&#92;n";\nmail($to, $subject, $message, $from, $headers);\n?>\noverwrite your form in your page with this\n<form method="post" action="sendmail.php">\n<input type="text">  \n<input type="submit" value="send">\n</form>
25335
I suggest you simple technique.\n\nuse the input box in html like this\n\n<input type = file>\n\nand then this will actually bring you up 2 inputs. One for the button click and you can select the file. This makes the output of this operation as a complete file name with path, come into other textbox.\n\nNow you have to implement a script in either VBScript, ASP, PHP or Javascript to make a ftp connection to a known place ( if possible with other input as user name and password. As you dont want some arbitrary user to use your space for dumping his content ), and then upload it there.\n\nRemember, you cannot do this thing with out scripting.\n\nPHP code will work like this\n\nhttp://www.tizag.com/phpT/fileupload.php\n\n\nEnjoy,\nKranthi.\n\nThanks,\nKranthi.
324460
if i understand your problem, $_SESSION['test'] is not the same value from page to page...Right?\n\ni had that same problem when i used php.ini-recommended as my php.ini.\n\nSo i changed php.ini to php.ini-dist file. I haven't found out why but it may be a start.
214228
You'll most likely need to configure an SMTP server for outbound traffic.  Your ISP (internet service provider) can help you do this.  I recommend you contact them, not Yahoo! answers.  Alternatively, you could post your ISP and someone might be able to figure it out, but contacting your ISP yourself is the way to go really.
201485
download the componenet that makes php run at php.net and then that's basically wat u need to get started.. the coding is all up to you... w3schools.com should have some tutorials.
587506
Where are you trying to upload the code and pages?  \n\nIf you have a webhost, then they should have provided you with the information on how to move your code there.  Usually, I use FTP to connect to the server and move the code there.  Please provide more details if you want more detailed answers.
8337
This article explains how to create a secure PHP login script that will allow safe authentication. Features remember-me function using cookies, validates logins on each request to prevent session stealing.\n\nhttp://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/
219483
YEAH! Your question is easy because it's done all the time.\n\nI'll assume you have the database.\n\nFirst thing is your email template.  You can do this in the program or a better practice is to keep your emails either in a library or in separate files.  This males finding an email and changing it easier down the road.\n\nNext you write a program you bring the database and the email together like a maillist merge in wordprocessing.\n\nYou program will open the db, grab all the records you want to send the email to and for each one you\nll send the email message.\n\nNow the above is the logic to use no matter what type of server you are own.\n\nIf you are Apache with MySQL and PHP or a combo close then you'd use the MySQL connection your webhost setup as to how to acces it and Apache server email programs is usually SendMail.\n\nA combo of html and SendMail will be the email "code" part of your project.  The SendMail allows you to insert fields, the ones you'll pull from the database into the email.\n\nSo you can send mail with Dear John, etc...\n\nSendMail has greeting, salutaion, body sections which you can write as html or use scripting.  The trick is the receivers email must understand html and not block it and any scripting commands like Yahoo does.\n\nIf you're .NET the email namspace to learn more is System.Net.Mail, same logic applies, only thins has more stuff built in for you to play with.  The database or datasource can be Access, MSSQL, Oracle or MySQL and other dbs, it's Microsoft so more db makers are out there for the environment.\n\nNow, after you'd picked up the quick info on the command, you'll use save you fingers some headaches and go to a code site like CodeProject or DevSource and grab some free code doing emailing for the language and server you're using.  You may have to tweek the fields they'll use and of course your email not will be different.
284339
You can use PHP and read/write to a MySQL Database.\n\nHere is one good tutorial:\nhttp://webmonkey.wired.com/webmonkey/programming/php/tutorials/tutorial4.html\n\nIf you need additional help you can email me,\neoffice4u@gmail.com
536295
Ok first off , is the email a local server or isit a webemail server.??/ Now , enter your router and see if the ports 110 and 25 are open since both of them are used for email . Now , this 2 ports are only for NON SECURE conection . ok if you need more help then write me with more info so i can help you
87962
You can do this yourself easily with PHP. There are dozens of explanations online, or "PHP For Dummies" will walk you through it. All you need to know is if your Web hosting company supports PHP and allows you to use the PHP mail() function.
123908
If you're lucky, you can use the IMAP, POP3 and NNTP functions, specifically imap_listscan. If not, you have some coding ahead of you, using socket and network functions.\n\nVisit http://www.php.net/docs.php and choose your language for documentation.
472561
<?php\n\n$out = fopen("fileout.txt","a+");\n$l=fopen("file2.txt","r");\n$r=0;\nwhile ( ($str=fgets($l))!=null) {\n\n$f[$r]=$str;\n//fwrite($out,"$r[$r]&#92;n");\n\n#print_r ($f);\necho "<br>";\n$r++;\n\necho "<br>";\n}\n\necho "<form>";\necho "<input mode=off type=checkbox name=asc_rad>Ascending ";\nEcho "<br>";\necho "<input type=checkbox name=disc_rad >Descendig";\nEcho "<br>";\necho "<input type=checkbox name=rev_rad>Reverse";\nEcho "<br>";\necho "<input type=submit name=sbm value=DO!>";\necho "</form>";\nfclose($l);\nprint_r ($_REQUEST);\necho "<br>";\n\nIF ($_REQUEST[asc_rad]=="on" && $_REQUEST[sbm]=="DO!"){\nasort ($f);\nprint_r ($f);\n}else{\nIf($_REQUEST[disc_rad]=="on"&& $_REQUEST[sbm]=="DO!"){\narsort ($f);\nprint_r ($f);\n}\n}\nIF ($_REQUEST[rev_rad]=="on" && $_REQUEST[sbm]=="DO!"){\narray_reverse ($f);\nprint_r ($f);\n}\nfor($counter = 0; $counter < count($f); $counter++)\n{\nfwrite($out,"$r[$counter]&#92;n");\n}\n\n?>
616368
A cross-server distributed filesystem search would be QUITE difficult to implement in PHP alone. However, you could architect a script that runs on each server, and writes to a master database with file server, path info, and metadata.\n\nAssuming the files are in the same path on each box, you could use PHP to exec the Unix find command, with a matching pattern on image files (*.gif, *.jpg, *.jpeg, *.tiff, etc.). Then iterate through the result lines and make each one a write to a remote database.\n\nThat's just one idea. The problem is either really complicated or really easy. I can't quite tell what your problem space is, but this should give you some catalyst to get going. Good luck!
87169
Could always use a remote client such as Tight vnc, its pretty good, works with windows and unix. Just be careful which ports you leave open ;-)\n\nphil\n\nps. its open source