/    Sign up×
Community /Pin to ProfileBookmark

Can’t see the error….

hi,
i have this very simple upload script, that i’m trying to modify.
basically, something is wrong w/ my direcotory structure, because i keep getting a CHMOD error, but when i upload a file, it flashes an error on the page, and then redirects somewhere else.

how can i see that error?

you can see it here:

[url]http://www.xrumxrum.com/test/upload/upload.php[/url]

if you try it, upload a [b].txt[/b] file, and see what happens.

any help would be greatly appreciated!
Thanks!

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@DARTHTAMPONMar 30.2007 — New Text Document.txt was uploaded successfully.

Upload File

Uploaded files:

wisin & yandel - de otra manera - reggae rokeao.mp3 x

New Text Document.txt x

seemed to work just fine for me. What are the filenames for the file you are getting an error on?
Copy linkTweet thisAlerts:
@MadamZuZuauthorMar 30.2007 — sorry, i think i was playing w/ it while you were uploading.

anyway, i figure out what my problem was already.

if anyone is interested:

my upload directory should have been

$upload_dir = "../../test1/test2/downloads/";

instead of

$upload_url = "http://x.com/test1/test2/downloads/";


stupid begginer mistake ?
Copy linkTweet thisAlerts:
@DARTHTAMPONMar 30.2007 — use of absolute links are never a good idea. When I first go into webdev I found this out the hard way when the 30 pages I was working on all had absolute and then I switched servers. I had to then go though and change every single link in the pages which took alot of time.

Sometimes the simplist mistakes provide you with the best learing tools.
Copy linkTweet thisAlerts:
@MadamZuZuauthorMar 30.2007 — hey, even though the error is somewhat fixed now.... i changed it back to the way it was, so you can see the "flashy" error message. can you please try it again?

if it ever happens again, how can i "freeze" that error, to be able to actually read it?


Thanks!
Copy linkTweet thisAlerts:
@DARTHTAMPONMar 30.2007 — are you using a redirect?
Copy linkTweet thisAlerts:
@aj_nscMar 30.2007 — one of two ways

1) comment out the redirect line in your script

2) add or die(); to the end of your move_uploaded_file line
Copy linkTweet thisAlerts:
@MadamZuZuauthorMar 30.2007 — Thanks!
×

Success!

Help @MadamZuZu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...