| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Nov 2003 
				Location: Toronto 
				
				
					Posts: 4,001
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				php help
			 
			Trying to put an upload file php script on my site. Am getting an error with this script: 
		
	
		
		
		
		
		
	
	Code: 
	<?php
if(!isset($_POST['Upload']))
{
	include("form_upload.inc");
} # endif
else
{
	if($_FILES['pix']['tmp_name'] hahahaha "none")
	{
		echo "<b>File did not successfully upload. Check the file size. File must be less than 500kB.<br>";
		include("form_upload.inc");
		exit();
	{
	if(!ereg("image",$_FILES['pix']['type']))
	{
		echo "<b>File is not a picture. Please try another file.</b><br>";
		include("form_upload.inc");
		exit();
	}
	else
	{
		$destination = '/home/asianr/public_html/'."\\".$_FILES['pix']['name'];
		$temp_file = $_FILES['pix']['tmp_name'];
		move_uploaded_file($temp_file,$destination);
		echo "<p><b>The file has successfully uploaded:</b>
			{$_FILES['pix']['name']}
			({$_FILES['pix']['size']})</p>";
			}
		}
	?>
line 30 shows up as Code: 
	$destination = '/home/asianr/public_html/'."\\".$_FILES['pix']['name'];  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Oct 2002 
				Location: Montreal, Quebec 
				
				
					Posts: 29,761
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 did you set your permissions ( chmod) at the proper level? 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	I know that Asspimple is stoopid ... As he says, it is a FACT ! But I can't figure out how he can breathe or type , at the same time ....  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Nov 2003 
				Location: Toronto 
				
				
					Posts: 4,001
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 yes the folders are at 777 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
			
			Join Date: Jan 2005 
				
				
				
					Posts: 2,961
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 fucked up quotes on or around 30 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	![]() ZangoCash - Turn Your Traffic Into Ca$h. $.40 Per Install - No Tier  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Feb 2005 
				Location: Budapest, Hungary 
				
				
					Posts: 534
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 icqed you 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Nov 2003 
				Location: Toronto 
				
				
					Posts: 4,001
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 copied it from a book, would you be able to paste the correct? I would really appreciate it 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Damn Right I Kiss Ass! 
			
		
			
			
			Industry Role:  
				Join Date: Dec 2003 
				Location: Cowtown, USA 
				
				
					Posts: 32,422
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Code: 
	if($_FILES['pix']['tmp_name'] hahahaha "none")
	{
		echo "<b>File did not successfully upload. Check the file size. File must be less than 500kB.<br>";
		include("form_upload.inc");
		exit();
	{
 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Damn Right I Kiss Ass! 
			
		
			
			
			Industry Role:  
				Join Date: Dec 2003 
				Location: Cowtown, USA 
				
				
					Posts: 32,422
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 WHEN EVER you get this error, it always means that you did not include enough closing brackets for an if or looping statement of some kind. So check your }'s or lack thereof. 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |