PHP - Moved: How To Add/include An Existing Website In Php Eclipse.
This topic has been moved to Editor Help (Dreamweaver, Zend, etc).
http://www.phpfreaks.com/forums/index.php?topic=306796.0 Similar TutorialsThis topic has been moved to Editor Help (Dreamweaver, Zend, etc). http://www.phpfreaks.com/forums/index.php?topic=307438.0 I'm trying to use this script known as SimpleImage.php that can be found here <a href="http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php">link</a> I'm trying to include what is on the bottom of the page to my existing script can anyone help me I've tried several ways but its not working. Code: [Select] <?php session_start(); error_reporting(E_ALL); ini_set('display_errors','On'); //error_reporting(E_ALL); // image upload folder $image_folder = 'images/classified/'; // fieldnames in form $all_file_fields = array('image1', 'image2' ,'image3', 'image4'); // allowed filetypes $file_types = array('jpg','gif','png'); // max filesize 5mb $max_size = 5000000; //echo'<pre>';print_r($_FILES);exit; $time = time(); $count = 1; foreach($all_file_fields as $fieldname){ if($_FILES[$fieldname]['name'] != ''){ $type = substr($_FILES[$fieldname]['name'], -3, 3); // check filetype if(in_array(strtolower($type), $file_types)){ //check filesize if($_FILES[$fieldname]['size']>$max_size){ $error = "File too big. Max filesize is ".$max_size." MB"; }else{ // new filename $filename = str_replace(' ','',$myusername).'_'.$time.'_'.$count.'.'.$type; // move/upload file $target_path = $image_folder.basename($filename); move_uploaded_file($_FILES[$fieldname]['tmp_name'], $target_path); //save array with filenames $images[$count] = $image_folder.$filename; $count = $count+1; }//end if }else{ $error = "Please use jpg, gif, png files"; }//end if }//end if }//end foreach if($error != ''){ echo $error; }else{ /* -------------------------------------------------------------------------------------------------- SAVE TO DATABASE ------------------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------- */ ?> This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=358003.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=348130.0 This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=315590.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=315539.0 I wrote a scrit which mounts an external device, makes some backups then umount the device. Everything works ok when I run the script under Eclipse PHP debugger but fails to unmount the device if I run it as localhost. this is the code Code: [Select] $umount = '/bin/umount -f '.$drive; .... u_mount($umount, $error=512); .... This is the called function Code: [Select] function u_mount($cmd, $error) { $output = array(); $return_var = 0; $return_var = exec($cmd, $output, $return_var); $return_var = $return_var + $error; .... some checks } In both cases (Eclipse and localhost) $return_var is always 0 but in localhost the umount is not executed and the device is still mounted Any idea? Thanks in advance Gally This topic has been moved to Editor Help (Dreamweaver, Zend, etc). http://www.phpfreaks.com/forums/index.php?topic=308819.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=308660.0 This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=346775.0 The PHP code sends me an email from the server, but the user input is empty or "blank". I only receive: "From: \ Email: \ Subject: \ Message: " and that's it. How do I fix my PHP and/or HTML code to receive user input from the form? Attached is my existing HTML and PHP code that doesn't send me any "user input" from the form. Thanks to anyone who can help!!
This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=347705.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=323879.0 This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=332328.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=352099.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=321745.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=344960.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=358814.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=307157.0 This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=320065.0 |