programers: question for ya

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #1

    programers: question for ya

    what is the PHP equivalent to $! in Perl if any?
    * Mainstream ? $65 per sale
    * new male contraception
  • Zester
    Confirmed User
    • Jul 2003
    • 5344

    #2
    bump----------
    * Mainstream ? $65 per sale
    * new male contraception

    Comment

    • Zester
      Confirmed User
      • Jul 2003
      • 5344

      #3
      wwwwwwwell?
      * Mainstream ? $65 per sale
      * new male contraception

      Comment

      • Calvinguy
        Confirmed User
        • Oct 2002
        • 1752

        #4
        No idea... what do you want to do?

        Comment

        • Zester
          Confirmed User
          • Jul 2003
          • 5344

          #5
          Originally posted by Calvinguy
          No idea... what do you want to do?
          i'm trying to write to a file, it fails but i'm not getting an error message
          * Mainstream ? $65 per sale
          * new male contraception

          Comment

          • Calvinguy
            Confirmed User
            • Oct 2002
            • 1752

            #6
            @ is a "shut up" sign.... if it's in front of php commands no error message will be shown

            Comment

            • Zester
              Confirmed User
              • Jul 2003
              • 5344

              #7
              Originally posted by Calvinguy
              @ is a "shut up" sign.... if it's in front of php commands no error message will be shown
              nope , don't have that
              * Mainstream ? $65 per sale
              * new male contraception

              Comment

              • broke
                Confirmed User
                • Aug 2003
                • 4501

                #8
                Post the code.
                Perfect Gonzo

                Comment

                • Zester
                  Confirmed User
                  • Jul 2003
                  • 5344

                  #9
                  Originally posted by broke
                  Post the code.
                  PHP Code:
                  
                  $handle = fopen ($filename, "w");
                  if(!fwrite ($handle, $content)){ echo "Data insert failed!"; die;}
                  fclose ($handle); 
                  
                  * Mainstream ? $65 per sale
                  * new male contraception

                  Comment

                  • Zester
                    Confirmed User
                    • Jul 2003
                    • 5344

                    #10
                    any ideas ?
                    * Mainstream ? $65 per sale
                    * new male contraception

                    Comment

                    • Nathan
                      Confirmed User
                      • Jul 2003
                      • 3108

                      #11
                      If it does not work but no errors are displayed, check the php.ini if errors are turned off, if so check your apache error log, they might be there.
                      "Think about it a little more and you'll agree with me, because you're smart and I'm right."
                      - Charlie Munger

                      Comment

                      • kowntafit
                        Confirmed User
                        • Jan 2004
                        • 4667

                        #12
                        Code:
                        if (fwrite($handle, $somecontent) hahahaha= FALSE) {
                            echo "Cannot write to file ($filename)";
                        }
                        Last edited by kowntafit; 01-15-2005, 06:49 AM.

                        This is where my next million is coming from!

                        Comment

                        • broke
                          Confirmed User
                          • Aug 2003
                          • 4501

                          #13
                          What happens if you run this code?

                          The hahahaha should be a double =

                          PHP Code:
                          if (!$handle = fopen ($filename, "w")) {
                            if(fwrite ($handle, $content) hahahaha FALSE) { 
                                echo "Data insert failed!"; 
                              die;
                            } 
                            
                            echo "Success, wrote ($content) to file ($filename)";
                            fclose ($handle); 
                          
                          } else {
                            echo "File open failed!";
                            die;
                          } 
                          
                          Perfect Gonzo

                          Comment

                          Working...