PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I am using a the define() function in php
i have it set like :
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Use double quotes "my title go's here" or use a backslash to escape the quote 'my title go\'s here'
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
$uploaddir = "images/photo_contest/";
//echo($uploaddir);
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
# echo '<pre>';
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "Thank you $customer_first_name for submittig your image ";
mail("MyEmail@domain.com", "$uploadfile was uploaded","$uploadfile was uploaded" );
} else {
echo "<span class='commingSoon'> The File was not Uploaded\n </span>";
}
But I want to rename the file as soon as it gets uploaded i know i should add something here