User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,480 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,807 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2317 | Replies: 48
Reply
Join Date: Mar 2008
Posts: 153
Reputation: Suomedia is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

  #21  
Mar 27th, 2008
You should use the entire code I posted in my last post as datingavenue.php (replace the file). In your form you already have:

<form method="POST" action="datingavenue.php"

That is all that is needed. You already have the variable "Picture" in your form and you can see it in my code as:

$_FILES['Picture']['name']

Please make adjustment to your new datingavenue.php where I indicated above (you must have the correct file system path to your images upload directory and its permissions need to be set to 777 - writable).


Matti Ressler
Suomedia
Last edited by Suomedia : Mar 27th, 2008 at 1:22 pm.
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

  #22  
Mar 31st, 2008
i published the site again with the new script but i get an error message that displays as follows

Parse error: syntax error, unexpected $end in /usr/home/conti634/public_html//Dating 20Avenue/Dating 20Avenue 20sign 20up.htm on line 156

I also applied the the same attachment to my other scripts and also experience the same problem.
what could be the problem
Reply With Quote  
Join Date: Mar 2008
Posts: 153
Reputation: Suomedia is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

  #23  
Mar 31st, 2008
You have a missing closing curly bracket } in your code.


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 240
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: Serious problem with attchments-please help

  #24  
Mar 31st, 2008
Indent your code, find an unclosed brace { and close it.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

  #25  
Mar 31st, 2008
Okay. Which means i cancel the ?> at the end because thats what gives the error even when i copy the script you ultered for me ( thanks again for that ). Will the script still function if i don't end with ?>
Reply With Quote  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

  #26  
Apr 1st, 2008
I closed all the brackets but still have the same problem ( it says unexpected end once again ) what could be the problem. PLEASE HELP
Reply With Quote  
Join Date: Mar 2008
Posts: 153
Reputation: Suomedia is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

  #27  
Apr 1st, 2008
Please use the attachment option (the paper clip) and attach a zip of your files to your next post.


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

  #28  
Apr 2nd, 2008
hey there. i have attached the files in a zip folder called php files. Hope you can pick up my mistakes
Attached Files
File Type: zip php files.zip (6.7 KB, 4 views)
Reply With Quote  
Join Date: Mar 2008
Posts: 153
Reputation: Suomedia is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

  #29  
Apr 2nd, 2008
In each of the files that have the error (3 in the attachment) add a closing curly bracket } before the very last ?> in each file.

With your $path variable, it MUST be a full file system path, eg. /home/suomedia/public_html/upload/ or use:

$_SERVER['DOCUMENT_ROOT'] . '/uploads/'

Also, you are far better to use a PHP redirect than javascript:

<?php
header("location: success.htm");
?>


Matti Ressler
Suomedia
Last edited by Suomedia : Apr 2nd, 2008 at 4:53 pm.
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

  #30  
Apr 2nd, 2008
The full file system is the way the folders are structured in the site ?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 2:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC