pplNet
-
Posts
8 -
Joined
-
Last visited
Never
Posts posted by pplNet
-
-
Hi all,
I've been having this problem for sometimes after the hosting company migrate the server from linux to win server.
My mail function now doesn't work at all.
So, is there any alternative way to send out email using php code instead of using mail function?
-
The code show in the plesk below here.
PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/php09fLgo' to <folder>
-
How I know I called the right tmp_dir?
$_FILES['uploaded']['tmp_name'] <-- this is the full path of the tmp_dir?
-
I am using hosted server, how am I able to defind my own upload_tmp_dir.
Cos i'm having this problem, either using move_uploaded_file or copy, system always generate this error.
PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/php09fLgo' to
-
Hi all,
I am totally confused about this thing "->"....
I know it appear during we call records like
$resource->field
we also use it in class method.
But in some cases I saw ppl use it in Array...
So, what is the meaning of "->"???
when we use it?
how we use it?
I found this from Joomla code
$arr[$i]->$key;
Please explain if anyone know.
Thanks for everyone!
-
sorry that you have to correct my coding....
-
totalAssign = 6ppl
Adults = 2
Children = 4
Room = 2
split them equaly in each room
averagePpl = round(6/2) // 6ppl / 2rooms then round it up
Note: averagePpl can be ur numbers of bed in a room.
RemAssign = totalAssign
RemAdultsAssign = adults
RemChildrenAssign = Children
foreach($rooms as $roomnumber){ 'assume that adults always set as priority then only children if RemAdultsAssign > averagePpl { $adults = averagePpl $remAdultsAssign = $RemAdultsAssign - $averagePpl $Remassign = $Remassign - $averagePpl }else{ $adults = $RemAdultsAssign $Remassign = $Remassign - $RemAdultsAssign $remAdultsAssign = 0 } //same concept goes to $children $insertSQL = "INSERT INTO bookings (roomNumber, adults, children) VALUES ( '$roomnumber', '$adults', '$children')"; $Result1 = mysql_query($insertSQL) or die(mysql_error()); }
alternative mail function
in PHP Coding Help
Posted
They just giving me an reason that mail function is disabled due to spamming issue...
I guess this is an stupid answer.
Anyhow, I need to find out the alternative way to send out mail using php code.
As I needed for such as forgot password, auto send an replaced password or even new registered member confirmation email.
By the way, how to use it?