PHP problem

Status
Not open for further replies.

fsericl

New Member
Messages
20
Reaction score
0
Points
1
Since you move my web site some of my php script are not working but was working fine before. Any idea?

Regards,
Eric
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
No.

Maybe if you gave an URL to look at and then posted the code (with any sensitive data ******'ed out) we could check it out.

Tell us what it supposed to do and tell us any error messages you are getting.
 

fsericl

New Member
Messages
20
Reaction score
0
Points
1
I'm trying to send picture in my web site using a PHP script. Everything was working fine before you move my site.


This is my PHP script:
<?php
/*
Script Written By: Adam Khoury @ www.developphp.com
*/
// Set local PHP vars from the POST vars sent from flash
$todayDate = $_POST['todayDate'];
$Oldname = $_POST['Oldname'];
$Path = $_POST['Path'];
$filename = $_FILES['Filedata']['name'];
$filetmpname = $_FILES['Filedata']['tmp_name'];
$fileType = $_FILES["Filedata"]["type"];
$fileSizeMB = ($_FILES["Filedata"]["size"] / 1024 / 1000);
if (unlink($Path.$Oldname))
{
// Place file on server, into the images folder
move_uploaded_file($_FILES['Filedata']['tmp_name'], $Path.$filename);
}else//elseif($Oldname == "")
{
move_uploaded_file($_FILES['Filedata']['tmp_name'], $Path.$filename);
}
?>

Whats happen is everything seems to work fine on my site but the file is never save into the web site...

Eric L
 
Status
Not open for further replies.
Top