[Solved] How to setup multiple site in live server?

Sure, it works exactly the same as on local server but instead of editing hosts file you have DNS server, which can translate domains to IP adresses. Next, Apache server splits requests into domains by Host header in HTTP request. 1 solved How to setup multiple site in live server?

[Solved] How to read file on Linux server from Windows?

You will need a SFTP client to read the files. You cant directly replace the path with hostname. You should try something like paramiko for file ready. A quick sample: client= ssh_client.open_sftp() file = sftp_client.open(‘your_filename’) try: for line in file: #Do whatever you want for each line in the file finally: file.close() solved How to … Read more

[Solved] What is the most simple way to sent HTTP Post request to server

If you don’t want to fight with the JRE internal HttpURLConnection then you should have a look at the HttpClient from Apache Commons: org.apache.commons.httpclient final HttpClient httpClient = new HttpClient(); String url; // your URL String body; // your JSON final int contentLength = body.length(); PostMethod postMethod = new PostMethod(url); postMethod.setRequestHeader(“Accept”, “application/json”); postMethod.setRequestHeader(“Content-Type”, “application/json; charset=utf-8”); … Read more

[Solved] mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user ‘uname’@’localhost’ (using password: YES) in /all_pts.php on line 16 [duplicate]

mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user ‘uname’@’localhost’ (using password: YES) in /all_pts.php on line 16 [duplicate] solved mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user ‘uname’@’localhost’ (using password: YES) in /all_pts.php on line 16 [duplicate]

[Solved] How do i upload an image to my mysql database with php? [duplicate]

You don’t need to store image directly into to database. Just store the image name in the database and fetch it when you want to show. For e.g. $target_dir = “uploads/”; $target_file = $target_dir . basename($_FILES[“fileToUpload”][“name”]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST[“submit”])) … Read more

[Solved] send email by using codeigniter library via server

thanks… i done it with same code… just change the port then its working…. here is code function do_email($msg=NULL, $sub=NULL, $to=NULL, $from=NULL){ $this->load->library(’email’); $config = array(); $config[‘protocol’]=’smtp’; $config[‘smtp_host’]=’localhost’; $config[‘smtp_port’]=’587′; $config[‘charset’]=’utf-8′; $config[‘newline’]=”\r\n”; $config[‘wordwrap’] = TRUE; $config[‘mailtype’] = ‘html’; $this->email->initialize($config); $this->email->from($from, $system_name); $this->email->to($to); $this->email->subject($sub); $this->email->message($msg); $email = $this->email->send(); } solved send email by using codeigniter library via … Read more