Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. There is a correct time for downloading, it's gonna be until 23:59 Central Time Zone (-5GMT).
  2. Get CrossOver for FREE now! -> http://flock.codeweavers.com/
  3. The onsubmit event occurs when the submit button in a form is clicked. It should be here, <form method="POST" onsubmit="dosubmit()">
  4. The most important, what's the model of your graphic's card?
  5. Unlike Windows, most hardware is natively supported in Ubuntu and does not require separate drivers to work. The Linux system is absolutely independent from windows system. I think it could be a good idea to post out the hardware' specifications of the machine.
  6. Yep, you are right. It's my mistake..
  7. @Christian, don't you see something wrong here: @mysql_select_db(DATABASE_NAME, $database_connection) or die(((SITE_MODE == "development") ? mysql_error() : "An error occured! Please check your database exists!"));
  8. Your ternary operator syntax is wrong. You cannot use it to assign two values as you are attempting to do. EDIT: The syntax is maybe okay, but you cannot use it in this way.....
  9. Try, <?php //This is the directory where images will be saved $target = "images"; //This gets all the other information from the form $first_name=$_POST['first_name']; $last_name=$_POST['last_name']; $email=$_POST['email']; $img_name=basename(($_FILES['image']['name'])); $tmp_name = $_FILES["image"]["tmp_name"]; // Connects to your Database include "connect.php"; //Writes the information to the database mysql_query ( "INSERT INTO `database`(`first_name`,`last_name`,`email`,`image`) VALUES ('$first_name','$last_name','$email','$img_name')" ); //Writes the photo to the server if(move_uploaded_file($tmp_name, $target.'/'.$img_name)) { //Tells you if its all ok echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory"; } else { //Gives and error if its not echo "Sorry, there was a problem uploading your file."; } ?> EDIT: You also had two errors in your sql string (two extra commas) I removed them...
  10. ls is a Unix command. I don't see any errors in this script. What permissions do you have to the image directory? EDIT: Also, check whether your html form has enctype=multipart/form-data.
  11. Your directory is images/, no images. basename( $_FILES['image']['name']) . EDIT: just delete this line - $target = $target . basename( $_FILES['image']['name']);
  12. No, that's no possible! You have to have a constants.php file in the same directory or you are handling a different file or you have more including files. Copy/paste this code to check where are you.. echo dirname(__FILE__);
  13. I remember you Why are you using single quotes around it, in the very first post ? PS: It should be, if (!$config['text']['emptyMessage']) $config['text']['emptyMessage'] = CNT_TXT_EMPTYMESSAGE;
  14. How did you define it? Could you post the code, please?
  15. Thanks @reguinix, now it works fine I have a few different scripts to send a mass of email running by cron in 0, 5, 10, 15, 20 min.. When the script is done, I want to rewrite the content with php exit function. Thank you again buddy Solved
  16. Hi friends, When I try to run the script by cron - it doesn't do anything. It works just fine running through the browser. <?php $pageName = basename($_SERVER['PHP_SELF']); file_put_contents($pageName, ''); ?>
  17. What is the status of your database? For Fedora / RHEL / CentOS Linux : su -c 'service --status-all | grep mysqld' or su -c '/etc/init.d/mysqld status' оr su -c 'service mysqld status'
  18. Congrats Barand.
  19. I'm thinking that your hosting provider it's blocking your ssl connection on port 465 to googlemail.com.. Why the same port works just fine to yahoo.com, I don't have an answer
  20. Is it a shared hosting server?
  21. Where do you execute the script - from a local machine or remote one ? I've tested it from my local server and got a successfully message.
  22. Try, $arrMain = array('the' , 'main' , 'array'); $arrTemp = array('some' , 'array' , 'stuff'); $resTemp = array_diff($arrTemp, $arrMain); echo '<pre>'.print_r($resTemp, true).'</pre>';
  23. Yep, the maximum length of time to run the script is 425 seconds.. After that the script goes down.. :-\
  24. I'm really going to think about that Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.