Jump to content

DepretioN

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

DepretioN's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [code]return eval("return ($" . $key . " == 'Y');");[/code]
  2. Is that within a method in a class? $this is a reference to a current object. Did you copy and paste that code from somewhere else? If so use new variable names, dont use $this
  3. Show us code. PHP makes use of the same MySQL Client as MysqlAdmin
  4. Yes its possible and you answered your own question. Use double quotes.
  5. [!--quoteo(post=369030:date=Apr 26 2006, 10:59 PM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 26 2006, 10:59 PM) [snapback]369030[/snapback][/div][div class=\'quotemain\'][!--quotec--] I have learnt alot, I now know there is not just one set way to do everything, so I have been fighting with code trying to figure out ways to do things on my own, and things are coming together, I am having one problem here. I have a difficulty with any email script I create that gatheres form information, whenever I submit the form it emails it to me twice. Actually I ahve 2 questions. 1. Why does it email itself to me twice for each time I hit submit, is it somethign wrong with my script, or is there anyway to stop that. I know anything is possible with php but this is somethign I Don't know how to start with, I just began. 2. Why does it come into junk mail, at first it was, I set it to not junk in hotmail, and it worked, but if I ever send an email through php it is going to send it to junk mail, is there a way to change this at all, it will make it hard if I am every setting up email systems for people, or setting up something for, mailing lists, that is going to cause one major problem. [/quote] Is it an HTML E-mail? Hotmail sends most of those to Junk Mail. What happens when you hit submit? Does the script reload itself?
  6. Make sure your upload_tmp_dir in your php.ini is set to the folder you are trying to upload that file to. Does the file upload anyway as this is just a warning?
  7. Write the value to a text file. Each hit, pull the value from the text file, increment it, put it back in the text file.
  8. [code] function is_jpeg($image) {     $image_mime_type = mime_content_type($image);     if (("image/jpeg" == $image_mime_type) || ("image/jpg" == $image_mime_type))          return true;     else         return false; } [/code]
  9. do a var_dump($result_3) straight after your mysql_query. That query (unless you are in some wierd if statement) has nothing to do with the value of $i.
  10. For pushing files to your users, rather put the files in a directory like bin , or files ... and then in your code just use header("Location: files/filename.zip"); to start a normal download for the user rather than using php to push it. For uploads, I'm not sure if PHP loads it into memory or not, but you will need to change the upload_max_filesize directive in your php.ini to cater for 200MB. Edit: For large files you are always better off using ftp.
  11. Well, first of all... you really want to do alot more validation on the input being submitted to your form. But the code you are looking for ... put this after your query: [code] if ($result)     header("Location: add_call-success.php"); else     echo "Query failed, did not submit values"; [/code]
  12. Linux or Windows? And do you just need to transfer these files to and from servers? Or are you pushing the files to users?
×
×
  • 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.