Jump to content

arbol

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

arbol's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. no not ;, you need a } to finish the entire if statement. <?php if (($_FILES["uploaded_file"]["type"] == "image/jpeg") && ($_FILES["uploaded_file"]["size"] < 350000)) { // thats the opening bracket //create the directory if doesn't exists (should have write permissons) if(!is_dir("./files")) mkdir("./files", 0755); //move the uploaded file move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']); chmod("./files/".$_FILES['Filedata']['name'], 0777); } // thats what you were missing! ?>
  2. also it has a loop in it that goes on for a long time... my whole problem is to hide the screen while the loop goes on.
  3. hey. i made a php script that had some system() commands and some other functions, then compiled it with bamcompile into an exe. however, wenever i run the program, a console window stays up. is there any way to suppress the console window so it doesnt pop up wen i run an exe? and i already tried the -w option for hiding windows in bamcompile.. the entire program doesnt work if i do that.
  4. its my site so it does... im making a script to test web apps for sql injections so im trying to get the source of http://winsec.awardspace.com/phpBB2/index.php?id=' and check the source to see if there was any mysql errors, hence an sql injection vulnerability...
  5. still get the same error!! it worked for google, but when I tried my php page it didnt work!! is there a way to retrieve a php page at all??
  6. i get an error when i do that: Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /home/www/winsec.awardspace.com/arbolsphpfiles/testest.php on line 5 Warning: file_get_contents(http://winsec.awardspace.com/phpBB2/index.php?id=1): failed to open stream: Address family not supported by protocol in /home/www/winsec.awardspace.com/arbolsphpfiles/testest.php on line 5 wat can i do to fix this? thanks alot i appreciate ur help
  7. hey. I am making a web application testing script, and need some help. I want to make it so that I tell the script to go to http://site.com/php?p=1, and then retrieve the source code of the result page and store it in a PHP variable. Is this possible? I would appreciate any help greatly, since I am supposed to have this done by tommorow.
  8. hey. i have been trying for a week to get this to work, but it just wont! can someone help me out with this one?? thank you! the problem is that this code wont redirect to a php page, only html pages!! i desparately need help! thank you! [code] <?php $url = "http://www.jedit.org/index.php?page=download"; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($ch); curl_close ($ch); return $result; ?> [/code] Thank you!
×
×
  • 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.