dennismonsewicz
Members-
Posts
1,136 -
Joined
-
Last visited
Everything posted by dennismonsewicz
-
Can php trigger another php script?
dennismonsewicz replied to bobinindia's topic in PHP Coding Help
Sorry actually after re-thinking this, I don't think you can use cookies -
[SOLVED] IE problem but not in Firefox
dennismonsewicz replied to Asheeown's topic in PHP Coding Help
no I live in the United States and for some reason I woke up this and thought it was saturday, I was late for work because of this lol. My boss just laughed at me -
problem with adding seasion information in mysql query
dennismonsewicz replied to gli's topic in PHP Coding Help
sorry yeah try this: $result = mysql_query('UPDATE users SET skypename= '$skypename' WHERE id='" . $_SESSION['id'] . "'") -
Can php trigger another php script?
dennismonsewicz replied to bobinindia's topic in PHP Coding Help
I think you may be able to use cookies and then write an if statement that says if cookie last this long then execute this script. Then again I could be way off base on this one -
[SOLVED] IE problem but not in Firefox
dennismonsewicz replied to Asheeown's topic in PHP Coding Help
ah gotcha, sorry i read the question wrong. Then again I have thought it was saturday all day today -
problem with adding seasion information in mysql query
dennismonsewicz replied to gli's topic in PHP Coding Help
Try this: $result = mysql_query('UPDATE users SET skypename= '$skypename' WHERE id="' . $_SESSION['id'] . '"') -
[SOLVED] IE problem but not in Firefox
dennismonsewicz replied to Asheeown's topic in PHP Coding Help
my question would be why would you want to load the new page in a new tab or new window? That is very annoying -
aight I shall give it a shot. Thanks for all of your help
-
gotcha... I will try your suggestions. I was just wondering cause I know using AJAX you can trim an image so I was wondering if it was possible using a website as the source instead of an image
-
sorry for my bad english, I don't know what i was thinking lol. So a user loads a page in a frame and using php and ajax they can select an area of the screen they would like to take a screenshot of. Is there a way to do this?
-
aight i will check it out... Is there anyway to use this so that a user can select the screen shot he or she is wanting to use?
-
Is there a way to take a screen shot using php and ajax controls? Like if you load the page in a frame and using ajax controls to take the screenshot
-
yes, I typically use classes anyway, but thats just a personal preference
-
Div class allows you to implement the same style to several html entities VS div id is unique Note: a DIV (or any HTML entity for that matter) can have both an id and a class
-
craygo you rock! It worked! I had forgotten about the enctype! *note to self - before proceeding add enctype
-
here is my input code: echo "Add a file? <input type='file' name='uploadedfile'>";
-
Well its A LOT of code, cause I am modifying a calendar script to include an upload. It is about 900 lines of code. I wouldn't want you to bore yourself to death with 900 lines lol. I don't understand why the script isn't working though everything is set the way that it should be
-
no, it just displays there was an error uploading the file...
-
$target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); $_FILES['uploadedfile']['tmp_name']; if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } my code above does not work, any help?
-
I fixed the problem
-
ok did that and still it is not deleting it out of the dir
-
Code: $query2 = mysql_query("SELECT * FROM uploads where id = " . $id . ""); $row = mysql_fetch_array($query2); $filename = $row['name']; $imgdir = "imageuploads/"; unlink($imgdir . $filename); For some reason the above code does not work. Any ideas?
-
How to create a thumbnail on the fly
dennismonsewicz replied to adam291086's topic in PHP Coding Help
Try this thread: http://www.phpfreaks.com/forums/index.php/topic,191420.msg859481.html#msg859481 -
I got my script to work. The reason I am using flash is so that we can have multiple file uploads at one time instead of having to select one at a time. Do you know of a better way?
-
I have the following script that uses Flash to upload multiple files. <form id="form1" action="index.php" method="post" enctype="multipart/form-data"> <table width="500" style="margin-left: 25px;"> <tr valign="top"> <td> <div id="flashUI1" style="display: none;"> <fieldset class="flash" id="fsUploadProgress1"> <legend>Large File Upload Site</legend> </fieldset> <div> <input type="button" value="Upload file (Max 100 MB)" onclick="upload1.selectFiles()" style="font-size: 8pt;" /> <input id="btnCancel1" type="button" value="Cancel Uploads" onclick="cancelQueue(upload1);" disabled="disabled" style="font-size: 8pt;" /><br /> </div> </div> <div id="degradedUI1"> <fieldset> <legend>Large File Upload Site</legend> <input type="file" name="anyfile1" /> (Any file, Max 100 MB)<br/> </fieldset> <div> <input type="submit" value="Submit Files" /> </div> </div> </td> <!--<td> <div id="flashUI2" style="display: none;"> <fieldset class="flash" id="fsUploadProgress2"> <legend>Small File Upload Site</legend> </fieldset> <div> <input type="button" value="Upload file (Max 200KB)" onclick="upload2.selectFiles()" style="font-size: 8pt;" /> <input id="btnCancel2" type="button" value="Cancel Uploads" onclick="cancelQueue(upload2);" disabled="disabled" style="font-size: 8pt;" /><br /> </div> </div> <div id="degradedUI2"> <fieldset> <legend>Small File Upload Site</legend> <input type="file" name="anyfile2" /> (Any file, Max 200KB)<br/> </fieldset> <div> <input type="submit" value="Submit Files" /> </div> </div> </td>--> </tr> </table> </form> Here is my JS that loads the flash variables: <script type="text/javascript"> var upload1, upload2; window.onload = function() { upload1 = new SWFUpload({ // Backend Settings upload_url: "upload.php", // Relative to the SWF file (or you can use absolute paths) post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"}, // File Upload Settings file_size_limit : "102400", // 100MB file_types : "*.*", file_types_description : "All Files", file_upload_limit : "10", file_queue_limit : "0", // Event Handler Settings (all my handlers are in the Handler.js file) file_dialog_start_handler : fileDialogStart, file_queued_handler : fileQueued, file_queue_error_handler : fileQueueError, file_dialog_complete_handler : fileDialogComplete, upload_start_handler : uploadStart, upload_progress_handler : uploadProgress, upload_error_handler : uploadError, upload_success_handler : uploadSuccess, upload_complete_handler : uploadComplete, // Flash Settings flash_url : "includes/swfupload/swfupload_f8.swf", // Relative to this file (or you can use absolute paths) swfupload_element_id : "flashUI1", // Setting from graceful degradation plugin degraded_element_id : "degradedUI1", // Setting from graceful degradation plugin custom_settings : { progressTarget : "fsUploadProgress1", cancelButtonId : "btnCancel1" }, // Debug Settings debug: false }); upload2 = new SWFUpload({ // Backend Settings upload_url: "upload.php", // Relative to the SWF file (or you can use absolute paths) post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"}, // File Upload Settings file_size_limit : "200", // 200 kb file_types : "*.jpg;*.gif;*.png", file_types_description : "Image Files", file_upload_limit : "10", file_queue_limit : "2", // Event Handler Settings (all my handlers are in the Handler.js file) file_dialog_start_handler : fileDialogStart, file_queued_handler : fileQueued, file_queue_error_handler : fileQueueError, file_dialog_complete_handler : fileDialogComplete, upload_start_handler : uploadStart, upload_progress_handler : uploadProgress, upload_error_handler : uploadError, upload_success_handler : uploadSuccess, upload_complete_handler : uploadComplete, // Flash Settings flash_url : "includes/swfupload/swfupload_f8.swf", // Relative to this file (or you can use absolute paths) swfupload_element_id : "flashUI2", // Setting from graceful degradation plugin degraded_element_id : "degradedUI2", // Setting from graceful degradation plugin custom_settings : { progressTarget : "fsUploadProgress2", cancelButtonId : "btnCancel2" }, // Debug Settings debug: false }); } </script> Now how in the blue world do I send the files to a PHP page to handle what I need it to do?