Jump to content

Eman_321

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Eman_321's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. write a function and just call that function, try onkeydown instead of onkeypress
  2. Hello, I have a shortened link, for example like http://bit.ly but I need to find out what url it really is.. I was told I could use javascript to make an asynchronous call to the page and get the header information or something, which will give me the status code if it is redirecting and the actual link..I am newbie, and I don't know wtf that is lmao.. Can someone tell me if there is a way I can get this done with javascript thanks.
  3. Great :'( The fact it is optional would make a user more likely to skip the field..I know, I have done it before..ah well. Thanks for the link to your thread, I will keep looking it up in case someone else or yourself finds something. Meanwhile, I'll attempt a temp soln.
  4. Hello, I was just wondering is there a way to get user information other than the screen name? I am using Epitwitter because it is the easiest to understand. But it doesn't retrieve user information like their name, age and so on. If there is another library that I can use, I can have a look at it. It has to be with php. Thanks
  5. I'm having a new problem When i upload a file, and i print out the the name, temp directory, and size. It prints the name alright. But it doesn't print out the temp path or the type. It works for file types like gif, png or music files. but not for tga or pdf files. I'm not sure why that's happening. Maybe you guys can have a look at the source code i uploaded [attachment deleted by admin]
  6. yep it works. All i had to do was change file name. Thanks
  7. Oh my God thanks very much man your explanation is spot on. I posted this question in 3 forums, and no one replied. So I could have many file upload options like so <input type="file" name="fileupload"/> <input type="file" name="fileupload"/> let's say about four of them. And I should imagine that if i do it right i can upload all of them with one foreach loop. Since the $_FILES can contain multiple arrays (i'm not so sure because they use the same name "fileupload"). I am going to try it now. I think I get it now thanks
  8. Hi, I'm a PHP beginner using Julie Meloni Sams Teach yourself to help me. My confusion is with this script <?php $file_dir ="/path/to/upload/directory" ; foreach($_FILES as $file_name => $file_array) { echo "path: ".$file_array["tmp_name"]."<br/>\n" ; echo "name: ".$file_array["name"]."<br/>\n" ; echo "type: ".$file_array["type"]."<br/>\n" ; echo "File name is" . " ". $file_name ; } ?> What I don't understand is the foreach statement foreach($_FILES as $file_name => $file_array) $_FILES is an associative array, right? So $filename should represent the key id and $file_array the value. but she is using the $file_array as if it is an array and accessing the values with associative index which confuses. I mean, let's say I declared a normal array. $array = array("Sarah" => "Jane", "John Smith") ; if i wanted to use a foreach loop i would do it like so foreach($array as $fname => $surname) { echo $fname ; echo $surname ; } $fname will print the first name and surname surname. I didn't use an indices to access the values. foreach($_FILES as $file_name => $file_array) can someone explain this to me? 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.