I recently just installed a ssl cert and do i use https for the whole site or just for the checkout.php and cart.php and login.php files?
whats the proper way to use https?
I have 2 more questions, when a customer purchases something, a finalized photo gets uploaded to our folders, now my questions are:
what is the proper command to use when u want a php file to execute longer then 30 seconds for bigger photos and slower connection?
how can i protect that folder from other people but still be able for a customer to see the picture he uploaded in his account with out stumbling on other peoples photos with out using a db to store the pictures?
for example mysite.com/files/pictures/
Now my questions are:
Code: [Select] $query = "INSERT INTO info (fname, lname) VALUES ('$fname','$lname')";
$result = mysql_query($query);
$custid = mysql_insert_id();
$custok = mysql_affected_rows();
$query = "INSERT INTO productb (customer_id, quantity, price, total) VALUES ('$custid','$quantity','$price','$total')";
$result = mysql_query($query);
$prodid = mysql_insert_id();
$prodok = mysql_affected_rows();
if($tname1 != null){
$fname1 = $prodid . 'a' . getmimetype($ftype1);
if(@move_uploaded_file($tname1, "$updir$fname1")){
}else{
mkdir($updir, 0755);
move_uploaded_file($tname1, "$updir$fname1");
}
}
Now that's the code i use now. What im trying to do is when a customer purchases a item, he uploads a photo. Now whats the proper way to handle the photo that will be used with a shopping cart system(btw i used _SESSION to store cart info)?
How long does the uploaded fie stay in the temp directory before i have to move it, because i was thinking it can stay there until the customer pays then it can be moved with the code above.
How do i make that photo private, so only the customer sees when he logs in his account to review the order.
btw im using paypal as a payment system.
single page with referrer to show correct page
I have a simple website with a couple of different pages. I would like to be able to in a div tag with a php require or even inside the same page be able to show whatever link is clicked on that part
Snapshot from video
anyone knw how to make a snapshot maker from avi n mkv format.for example if i give a direct link (mysite.com/song.avi) then it will give a snapshot in jpg format
server trace logs
could any one tell me from where do i get error logs in xMII??I want to check the reason for dtabase connection failure
INSERT data problem!
After having an string with apostrophes ', double quotes " or any other special characters, successfully escaped through one of themany php functions availables to escape, what other
upgrade from 4.7 to ECC 6.0
Hi all,
First root of a number
Hi, I can't find any function in php to give me the first root of a number.Is there any built-in function for it? For example: 81 => 39 => 364 => 2256 => 2I wrote this
Standard DES encryption script?
Can anybody point me to a tutorial or a short script that shows how to encrypt some text with salt into standard DES?I know about the crypt()-function, but I'm currently writing a PHP script that
Problem with variable declaration in switch statement
Hello, I am having some trouble assigning a value to a variable inside a switch statement. What I am trying to do here is trip an error if the user has already added an item in the shopping cart.
php ajax - two drop down list with a submit button
i have created a form with 2 drop-down list and a submit button. I would like to know how to pass the selected values from the two drop down list to external javascript file and only will pass it
Inter Company -- Resources Related Billing (Services Industry)
Hello,