39,326 Topics
| |
Hi, I want to upload files from one remote server to another using CURL I used following to upload a text file in "localhost/uploads/example.txt" to another machine http://192.168.0.202/example/ <?php $ch = curl_init(); $data = array('name' => 'Foo', 'file' => '@localhost/uploads/example.txt'); curl_setopt($ch, CURLOPT_URL, 'http://192.168.0.202/example/'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch); … | |
hi, i already reach to the end of my project, however there are still minor features i want to add in for the upload. When the user upload their pictures, i need to create a folder for that particular user and store the picture inside, means different user for different … | |
Im developing a simple attendance system for my organization im updating the checkin and checkout on session base so when the user get login and its session created i stored the the time in database and when he logout and the session and distroyed i update the field of checkout … | |
Dear all, I have a problem to count the total of receiving items.. but when I run this code I output of the total displayed "1".. not "5"...here my code.. hope someone can help me to count the total of receiving.. <?php include 'connection/db_connect.php'; ?> <form name="form1" method="post" action=""> <table … | |
Hi everyone, I'm sure there are people who are using highCharts framework. I'm having a trouble passing the values to jquery code from PHP json. Your help is so appreciated. This is my php section <?php header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 01 Jan 2013 00:00:00 GMT'); // The JSON standard … | |
**I have a string** $string =" HTTP/1.1 200 OK Connection: close Date: Tue, 25 Sep 2011 14:09:35 GMT Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Server: Apache-Coyote/1.1 Content-Length: 12881 Content-Type: text/xml;charset=utf-8 Client-Date: Tue, 25 Sep 2012 14:09:35 GMT Client-Peer: 123.46.53.940:8080 Client-Response-Num: 1 <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Header/> <soap-env:Body> <PlexViewResponse Command="rtrv-ngfs-subscriber-v2" … | |
first thank you for solving privious problems. I am working on codeigniter . i am making signup form in which countries dropdown list is required. i am unable to make this drop down list with table country in my database.Can any one help me. | |
if($username&&$password) { $connect = mysql_connect("localhost","root","") or ("Couldn't connect!"); mysql_select_db("phplogin") or die ("Couldn't find db"); $query = mysql_query("Select * FROM users WHERE username='$username'"); $numrow= mysql_num_rows($query); i just wont to know the IF statement when it stars what is his function in the code. | |
<?php /********************************************************************************* * Filename: index.php * * PHP 4.0 + MySQL + AJAX *********************************************************************************/ //------------------------------- // index CustomIncludes begin include ("./common.php"); include ("./Header.php"); include ("./Footer.php"); // index CustomIncludes end //------------------------------- session_start(); //=============================== // Save Page and File Name available into variables //------------------------------- $sFileName = "index.php"; //=============================== //=============================== // index PageSecurity … | |
Can i restrict a file to direct download.suppose in my domain i am having a upload folder in which i am having a exam.pdf file then it should not be downloaded by accessing url http://www.mydomain.com/upload/exam.pdf . If it is possible then please tell me the way. | |
Hello everyone, Im new in web development, Im using localhost (XAMMP),I'm trying to make my website which basically allows users to compile and run their submitted java program on my server(my web page).Essentially, I want when the users click a button(upload) they upload file from file source(e.g desktop or anywhere … | |
Hello, Is it possible to use a PHP code to create a drop-down list that automatically inserts a word from MySQL table after writing a character? For example when I type "a", all the entries beginning with "a" show in order, then I type "n", then all entries begins with … | |
Dear experties, I have a problem to insert checkbox value which is checked by user into multiple database..when I run this code, only one row inserted into database, but I had checked more than 3 checkbox.. Here is my code, please help me.. form.php <form id="form" name="form" method="post" action="dbase.php?id=<?php echo … | |
I'm trying to create an xml document without converting html entities but when I create and save the file with DOMDocument the < and > characters are converted to < and > so trying to wrap copy within <![CDATA[]]> is proving problematic. Example of my code below: // Initiate the … | |
Hey everyone, I was doing a search on good tutorials on how to use the mail function. I thought it would be as easy as what PHP api tells me how to use it. I stored the value of mail() in a variable if the variable is true then I … | |
Hi everybody, I'm wondering where I went wrong. The idea is I'm trying to get data from the database and display in this format Question 1: Answer: Answer: Answer: Answer: Question 2: Answer: Question 3: No answers etc.. foreach($posts as $post){ $id = (int)$post['id']; $comments = get_comments($id); //getting the answers … | |
Hi I want users to be able to upload new images that overwrite old images but I am struggling. The original upload and naming works fine but I want any new images to have the same name, so I unlink the original before uploading the new image, is this the … | |
What's up everyone. A few months ago I followed a website tutorial on how to make a custom CMS and it worked for me on my web server. Well I just recently installed MySQL + phpMyAdmin on my laptop under the localhost of my machine (i have a mac if … | |
Hi, I am creating an application using php. I want to send a mail from my application with attachments. I get the from-address and to-address from the user at run time. Then, how i set the SMPT, port number and other details of the from-address in phpmailer class or smtp … | |
# Hello,# ##I'm new at this forum.The problem is that my footer is gone when i click the submit botton because of the die function in my php script. I want it to prompt for empty fields and if not empty, it will insert values into my database. I found … | |
hey guys i am trying to send email using php mailer but the problem i think i have is the smtp whenever i changed in php.ini is not updated in the phpinfo (it still shows localhost) so i assume that i would have a problem connecting to a host and … | |
Hi everybody, I have a container (DIV) which would be resized using the correct aspect ratio. favorite Now I would like to dynamically resize all the elements inside that container using jQuery, anybody plz help me. $('.movable') .draggable() .resizable(); $('.moveable') .resizable({ start: function(e, ui) { alert('resizing start') }, resize: function(e, … | |
I'm Running xampp on windows 7 64 bit Proffessionial, I've searched google and everywhere, I just keep finding wanna be form builders that are super lame... I'm trying to host this form for our intranet, ( internal network ). My question is what do I need to replace in here … | |
I am using this code and when i try to insert the a value in the 4th field after tdno, it doesn't insert all the values in the database. please help! <?php error_reporting (E_ALL ^ E_NOTICE); //connect to the database $connect = mysql_connect("localhost","root","root"); mysql_select_db("rizal",$connect); //select the table // if ($_FILES[csv][size] … | |
Am trying to get my script to read in a directory and search for a a file, if the file doesnt exist it should print"that it doesn't exist" then add Notinfolder in an array. Please assist <?php $connection = ftp_connect($server); $login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); if (!$connection || !$login) { … | |
i added this code to my index.php (joomla ja-purity file 1.5) <?php if($this->countModules('user6')) : ?> <table class="nopad user6user7"> <tr valign="top"> <?php if($this->countModules('user6')) : ?> <td> <jdoc:include type="modules" name="user6" style="xhtml" /> </td> <?php endif; ?> <?php if ($this->countModules('user6') and $this->countModules('user7')) : ?> <td class="greyline"> </td> <?php endif; ?> <?php if ($this->countModules('user7')) : … | |
I'm brand new to php with ldap. I have this problem weeks ago. The company I'm working in assigned me to test their resource management system, they want me to use the dummy users on the database, but whenever I try to use them, I can't access the system, but … | |
Hi, I am uploading images to a server to be used as profile pics similar size to those on facebook, however I don't know much about images etc. so could someone suggest the maximum size I allow people to upload? I want the pictures to be high quality but not … | |
#Code for INSERT INTO into database and if fields are null, it will prompt for null fields.# | |
Hi Team, This is my first thread from Daniweb.. I observed Daniweb is great support for PHP Developers... I am planning to integrate this Tiny Editor in my website for mathematical calculations. As per my observation Our math expression images saved in Codecogs server. In future is there any trail … |
The End.