I am making a website that will images on there, but the webpage will refresh every 15seconds but I want new images to appear on the site, is there anyway to do this?

Member Avatar
Member Avatar
+0 forum 1

Im a newbie and i am a student and new to php could anyone teach me how to upload image to database and view it.Please Help me or send the link for complete tutorial

Member Avatar
Member Avatar
-1 forum 1

I want to download "Bhavcopy.cvs" file form "bseindia.com" on everyday at 5 pm. automatically. So, I want php code that automatic download this file from "nse" website... Please help.. The URL goes as follows http://www.bseindia.com/download/BhavCopy/Equity/EQ140316_CSV.ZIP I want to build an automated function to automatically upload reports from a URL at end of the day if found on that URL. My question is the URL keeps changing daily with a date. I want to download this in csv and save it to my server automatically..A quick help will be really appreciated. Thanks in advance

Member Avatar
Member Avatar
+0 forum 1

<?php require('config.php'); if (!isset($_FILES['image']['tmp_name'])) { echo ""; }else{ $file=$_FILES['image']['tmp_name']; $image = $_FILES["image"] ["name"]; $image_name= addslashes($_FILES['image']['name']); $size = $_FILES["image"] ["size"]; $error = $_FILES["image"] ["error"]; if ($error > 0){ die("Error uploading file! Code $error."); }else{ if($size > 10000000) //conditions for the file { die("Format is not allowed or file size is too big!"); } else { move_uploaded_file($_FILES["image"]["tmp_name"],"upload/" . $_FILES["image"]["name"]); $location=$_FILES["image"]["name"]; $fname= $_POST['fullname']; $register="INSERT INTO image (image_id,location) values('$fname','$location')" or die("error".mysqli_errno($db_link)); $result=mysqli_query($db_link,$register); header('location:registation.php'); } } } ?>

Member Avatar
Member Avatar
-3 forum 3

Hi.. I want to upload a file with help of FileUpload control, in which, i want to save the file with a specific name or say a name entered in a textbox on a same page. for ex, if textbox contains "ABC" then the files should be uploaded with abc.jpg name. how can i restrict user to select only specific types of file in a fileupload control? also, how can i save an image in 3 different sizes at time of uploading? when user selects an image, it should be saved in some specific size in a specified folder with …

Member Avatar
Member Avatar
+0 forum 10

When our template goes mobile it has two compacted menus. Any idea how I can get rid of the top one? The one under the logo is correct, the one above is some left over code I can't seem to find. You can see them here with a mobile phone or most small tablets: https://webhost.pro/account/clientarea.php I have an image but don't see how to upload it here. Thanks!

Member Avatar
Member Avatar
+0 forum 3

Is it possible to upload a file in php without form tag browse button and upload button. if particular file exist in folder i want to upload that file to server..how it is possible

Member Avatar
Member Avatar
+0 forum 2

Hi People; I've got issue in uploading image in cake php. Thing is that, I have a form, where i have input type="file". I need to upload a file in a directory and save its path in database. In "view" its like... <tr><td> <?php echo $this->Form->input('field', array( 'type' => 'file', 'label' => 'Please Upload Signature of Sales Manager' )); ?> </td></tr> and in the "Controller" its like $dir = WWW_ROOT.'documents'; $slas= '\'; $filenamez= $this->data['Invoice']['field']['name']; $dir=$dir.$slas.$filenamez; echo $dir; move_uploaded_file($this->data['Invoice']['field']['tmp_name'],$dir); I'm getting this error.... SQL Query: UPDATE `acm`.`invoices` SET `last_modified` = '2013-06-24 10:10:16', `last_mod_by` = 'Admin User', `invoice_number` = '1306190003', `invoice_date` = …

Member Avatar
Member Avatar
+0 forum 7

How can i select the multiple files to upload at once using php?

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm using a function for uploading images on the server and database. The only problem is that I can not properly put to the various alerts for required fields or missing and with happened insertion message. For the moment my code, obviously wrong, is so: include_once 'function/upload.php'; if(isset($_POST['submit'])) { if(empty($_POST['title'])){ $error = "Manca il titolo"; } if(empty($_POST['description'])){ $error = "Manca la descrizione"; } if(!empty($_FILES['image']['name'])) { //call thumbnail creation function and store thumbnail name $upload_img = imgUpload('image','uploads/','',TRUE,'uploads/thumbs/','260','260'); //full path of the thumbnail image $thumb_src = 'uploads/thumbs/'.$upload_img; $success = "Caricato!"; } } Which is the right syntax to write the errors …

Member Avatar
Member Avatar
+0 forum 1

I'm Using **AdminLTE-2.3.0** template, **jquery.imgareaselect.js** I'm using bootstrap modal to submit form via ajax. Inside Modal I have preview of image before upload. And **imgareaselect** is not working well that I proceed further with image cropping. **ScreenShot of error is attached.** **Please help.** **Thanks.** **imgareaselect-animated.css** .imgareaselect-border1 { background: url(images/border-anim-v.gif) repeat-y left top; } .imgareaselect-border2 { background: url(images/border-anim-h.gif) repeat-x left top; } .imgareaselect-border3 { background: url(images/border-anim-v.gif) repeat-y right top; } .imgareaselect-border4 { background: url(images/border-anim-h.gif) repeat-x left bottom; } .imgareaselect-border1, .imgareaselect-border2, .imgareaselect-border3, .imgareaselect-border4 { filter: alpha(opacity=50); opacity: 0.5; } .imgareaselect-handle { background-color: #fff; border: solid 1px #000; filter: alpha(opacity=50); opacity: 0.5; } …

Member Avatar
+0 forum 0

HI.... im new to php, i ve a doubt. i want source code in php for the requirement as traited below. im creating a registration form with two image file uploading system. I need a source code in such way that, the inputs NAME, AGE, MOBILE NUMBER, image upload(ONE), image upload(TWO) should be saved in serialwise including photos in MS-WORD DOCUMENT in a directory i mention.

Member Avatar
Member Avatar
+0 forum 1

Dear All, I'm developing a php system which contains over 50000 images in a directory. Is there any tools which help me to do a search script to find a similar images in that directory. What I'm looking for is the user can upload the image and the script retreive exact or similar images. Thank you in advance and kind regards,

Member Avatar
Member Avatar
+0 forum 1

Hello, kindly ask your help regarding a function to upload images in two folders, one original image and the "Thumb" folder for thumbnails. Well, I entered the rand code to rename the file name. Loading is performed properly in the root folder (Original image) but not in the thumb folder. I tried some changes but with little success. This is the code: function Upload($field_name = '', $target_folder = '', $file_name = '', $thumb = FALSE, $thumb_folder = '', $thumb_width = '', $thumb_height = ''){ //folder path setup $target_path = $target_folder; $thumb_path = $thumb_folder; //file name setup $filename_err = explode(".",$_FILES[$field_name]['name']); $filename_err_count …

Member Avatar
Member Avatar
+0 forum 1

Hello, I ask your help in order to use this class. I need your explicit example is the code and form to use it properly. http://www.phpclasses.org/package/9683-PHP-Validate-and-add-watermark-to-uploaded-image-files.html#view_files $upload = new ImageOperations(); ext and the correct form. Thank you in advance for your help.

Member Avatar
Member Avatar
+0 forum 2

My acer keeps showing loading restore point no windows 7 starting after it fell blue windows screen start back again help pls

Member Avatar
Member Avatar
+0 forum 1

Hello, I want to simultaneously add multiple post ques to wordpress, for example i want to add 100x Animal Imgs, Food Imgs and Gamming Imgs to que at the same time so for every "X" mins it must post 1 animal pic, 1 food img, 1 gamming img. is there some way / plugin to do so? if yes can someone please help with this? Almost all the scheduler plugins i tried they allow you to schedule only 1 que. for multiple ques i had to setup a wordpress mu blog and schedule posts of each category on each sub-blog, …

Member Avatar
+0 forum 0

I am trying to upload file from postantivirus1.jsp after selecting the file from postantivirus.jsp Here is the code Postantivirus.jsp Anti Virus Software : </td><td><input type=file name="fname"><br/> <input type=submit value="submit"></td><td><input type=submit value="clear"> Postantivirus1.jsp String s=request.getParameter("fname"); System.out.println(s+" s"); FileInputStream fis=new FileInputStream(s); System.out.println(fis+" fis"); String s1=application.getRealPath("/"); String destFolder = s1 + "images/"; s1= destFolder +avno+".zip"; FileOutputStream fos=new FileOutputStream(s1); int x=0; while((x=fis.read())!=-1) { System.out.println(x); fos.write(x); } fis.close(); fos.close(); But I am getting following error on jsp page because system is not able to find the file due to insufficient path information, > java.io.FileNotFoundException: Branch2.java (The system cannot find the file specified) > how can …

Member Avatar
+0 forum 0

hi all i have got a problem with my profile photo upload script after converting to mysqli everytime i go to upload a image i get the following error: Strict Standards: Only variables should be passed by reference in /home/matureco/public_html/registration2.php on line 11 and the code for that section is as follows: //For Uploading Profie pic if(isset($_POST['sub1'])) { //$fn = date('U').$_FILES['userimage']['name']; $ext = end(explode('.',$_FILES['userimage']['name'])); ---THIS LINE--- $fn = date('U').".".$ext; $ft = $_FILES['userimage']['type']; $fs = $_FILES['userimage']['size']; $ftmp = $_FILES['userimage']['tmp_name']; move_uploaded_file($ftmp, "images/user_images/$fn"); $thumb = new Thumbnail('images/user_images/'.$fn); $thumb->resize(100,100); $thumb->save('images/user_images/smallthumb/'.$fn); $thumb1 = new Thumbnail('images/user_images/'.$fn); $thumb1->resize(405,540); $thumb1->save('images/user_images/bigthumb/'.$fn); If anyone can give me a idea what …

Member Avatar
Member Avatar
+0 forum 2

I was trying to use some code I found on here, but I can't get it to work.. Original question: https://www.daniweb.com/programming/web-development/threads/374722/update-database-with-ajax-and-with-different-input-names The code mostly works great for me, so thanks for this code but I have a problem. In the code it gives handlers for text input and textarea input and suggests adding extra handlers for other input types. I need to use radio buttons and checkboxes, but I'm awful at javascript and though I got radio buttons to work in Firefox, I can't get them to work on Safari. My page needs to work on iPad/Safari. I couldn't get …

Member Avatar
Member Avatar
+0 forum 17

anybody can help me??, if the structure form like this. <input type="file" name="image_1"> <input type="file" name="image_2"> <input type="file" name="image_3"> <input type="file" name="image_4"> i want to upload multiple image with a single action to codeigniter and save it to database, my database table image coloum : image_1, image_2, image_3, image_4,

Member Avatar
+0 forum 0

I am trying to allow my users to upload videos to my site and i have the php file upload but it will not work, it worked with images but once i changed it to video it stopped working this is the code <?php $allowedExts = array("mp4", "mov", "avi", "flv","mpg", "wmv", "3gp", "rm"); $extension = end(explode(".", $_FILES["file"]["name"])); if ((($_FILES["file"]["type"] == "video/mov") || ($_FILES["file"]["type"] == "video/avi") || ($_FILES["file"]["type"] == "video/flv") || ($_FILES["file"]["type"] == "video/mpg") || ($_FILES["file"]["type"] == "video/wmv") || ($_FILES["file"]["type"] == "video/3gp") || ($_FILES["file"]["type"] == "video/rm")) && in_array($extension, $allowedExts)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] …

Member Avatar
Member Avatar
+0 forum 6

I need to open this pptx-file. Can anyone help me with that? http://www.filedropper.com/testfileq9 Made in Microsoft PowerPoint 2010 and cannot been seen or open with any applications... If it can't be open, how can I fix the file.

Member Avatar
Member Avatar
+0 forum 3

Alo All, I am really really tired of searching for a simple file manager for PHP/Code Igniter. I am not looking for advanced one at all: 1. No MYSQL 2. NO user tracking 3. Basic File Operations (copy, move etc) 4. Multi upload (in anyway) I have tried fileman and it is great but it is hard to integrate with CodeIgniter for security reasons (session related). ElFinder also is freakishly complicated to integrate as is kcfinder. I was looking for a simple class driven solution that I can use thru require/include or something to that extent. Any tips? Also...I am …

Member Avatar
Member Avatar
+0 forum 1

Hello All, I have been working on a registration form for opencart for a while now. I think I am nearly there in how I have coded it. However I just do not know where I am going wrong with it. It is a standard form with text input fields and I just now need a file to be uploaded also on registration. I have added the upload button and added controller code just not working. I want it so it registers the path to the DB and then also uploads to a folder on the server. This is what …

Member Avatar
+0 forum 0

Hi everyone, I'm trying to upload an mp4 file on my localhost. The page continuously loads until giving me a Request Timeout. The file is 17Mb. I've tested an image file which is 95Kb and that uploads fine. I've changed various settings in my php.ini which I can see have taken effect via php_info(). file_uploads: On max_input_time: 300 max_execution_time: 300 post_max_size: 257M upload_max_filesize: 256M and for Apache Timeouts: Connection: 3600 - Keep-Alive: 5 The page loading seems to be mainly associated with the Apache setting which was orignally 60 seconds and is now reaching the hour due to the new …

Member Avatar
Member Avatar
+0 forum 9

In this example opening url in webview and showing progress Dialog for page. Show file chooser option on clicking file option for web form . Open new link from webview to external ............................ Read More

Member Avatar
Member Avatar
-2 forum 2

Following is my code effort.... I want to read first line of file(comma separated) & then create table in JavaDB but stuck here... Please someone help me how to do next???? public class DatabaseDAO { public void FileRead(String st) throws ClassNotFoundException, SQLException, IOException{ String []tokens=null; try{ try (FileReader fr = new FileReader("st"); BufferedReader br = new BufferedReader(fr)) { String line=br.readLine(); while(!"\n".equals(line)){ tokens = line.split(","); } Class.forName("org.apache.derby.jdbc.ClientDriver"); String url="jdbc:derby://localhost:1527/SmartMiner"; try (Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SmartMiner","PKG","diaaman")) { Statement stmt=con.createStatement(); String sql="CREATE TABLE SmartMiner"; stmt.executeUpdate(sql); con.close(); } } } catch(IOException ioEx){ System.out.println(ioEx); } } }

Member Avatar
+0 forum 0

Dear All, I am facing a weird problem, similar codings give different result. Why is this happening? I am saving both files as .php file. Please guide me. I really having headache with this form. Code 1: Working Fine (Non-bootstrap) <html> <head> TestPage <link rel="stylesheet" href="http://gsmtecharena.com/Testing/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://http://gsmtecharena.com/Testing/bootstrap/3.3.5/js/bootstrap.min.js"></script> </head> <body> <div> <?php include("img-upload.php"); ?> <form method="post" action="img-upload.php" name="registerform" id="registerform"> <fieldset> <label for="username">Username:</label><input type="text" name="username" id="user_id" /><br /> <label for="password">Password:</label><input type="password" name="password" id="ap_id" /><br /> <label for="email">Email Address:</label><input type="text" name="email" id="email" /><br /> <input type="submit" name="register" id="register" value="Register" class="btn btn-info" /> </fieldset> </form> <form name="Image" enctype="multipart/form-data" method="POST"> <table cellspacing=2 …

Member Avatar
Member Avatar
+0 forum 4

Good day everyone I just want to know whether its possible to upload a file using joomla that wouldnt be downloable at all, I tried saving the file as a read only pdf file but that still made the file downloable on the web. Taking into consideration that the internet is hard to contriol I just want to explore all possble suggestion prior to me concluding that it would be impossible. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 4

The End.