Click here to Skip to main content
15,887,485 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: Things needed to create a webmail system Pin
xiaomahe20-Jun-09 5:01
xiaomahe20-Jun-09 5:01 
GeneralRe: Things needed to create a webmail system Pin
Marc Firth25-Jun-09 2:40
Marc Firth25-Jun-09 2:40 
QuestionI am posting data to another site but it doesnot work... Pin
Khawar Abbas115-Jun-09 0:33
Khawar Abbas115-Jun-09 0:33 
AnswerRe: I am posting data to another site but it doesnot work... Pin
Marc Firth15-Jun-09 3:36
Marc Firth15-Jun-09 3:36 
QuestionPayPals Add To Cart Button for one off items Pin
Member 373991012-Jun-09 21:35
Member 373991012-Jun-09 21:35 
AnswerRe: PayPals Add To Cart Button for one off items Pin
Member 373991013-Jun-09 19:43
Member 373991013-Jun-09 19:43 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Marc Firth14-Jun-09 21:54
Marc Firth14-Jun-09 21:54 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Member 373991015-Jun-09 3:19
Member 373991015-Jun-09 3:19 
First off Neonlight thanks for your response

<?php if(file_exists($myFile)){ ?>
Html button code here
<?php
unlink($myFile); }?>

The button code exists as part of a html page advertising the item. Why would the button code be placed there is it important or would the Html button code placed anywhere on the html page matter.
<?php if(file_exists($http://domain/file_to_delete.html)){ ?>
<?php
unlink($http://domain/file_to_delete.html); }?>

I may have got the bull by the horns. PHP is not my thing I will have to do a course.

I was under the impression that the unlink function actually deleted files. but you are giving me the impression that it unlinks reference to the file is that so?.

aAs I said above the button code sends a potential customer to a Paypal cart then onto a Paypal checkout. That I have no control over. However in the button code there are two url's one a success "The customer bought" The other a cancel.

Now as I intend to only offer one item and not wanting two people buying the same item I was thinking of using a onload command in the success page to delete the advertised item page so no one else can purchase it. Now if the unlink function can remove the button that would be terrific. I know I could use the Zen cart but that would be overkill for the few items I have around the house to sell.

I can create the buttons within the Palpal site and they will handle inventory but it is a hassel when to create your own code is so easy. I did not invent it Paypal has instructions.

I like a lot of people have things like old golf sets photography gear and old kids stuff and its time I downsized and it is too good to dump.

Anyway thanks again I will study the function load it up to my server and delete away

Terry

GeneralRe: PayPals Add To Cart Button for one off items Pin
Marc Firth15-Jun-09 3:32
Marc Firth15-Jun-09 3:32 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Member 373991015-Jun-09 3:51
Member 373991015-Jun-09 3:51 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Marc Firth15-Jun-09 4:27
Marc Firth15-Jun-09 4:27 
GeneralRe: PayPals Add To Cart Button for one off items [modified] Pin
Member 373991015-Jun-09 15:02
Member 373991015-Jun-09 15:02 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Marc Firth17-Jun-09 0:32
Marc Firth17-Jun-09 0:32 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Marc Firth17-Jun-09 22:07
Marc Firth17-Jun-09 22:07 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Member 373991017-Jun-09 22:53
Member 373991017-Jun-09 22:53 
GeneralRe: PayPals Add To Cart Button for one off items [modified] Pin
Marc Firth17-Jun-09 22:58
Marc Firth17-Jun-09 22:58 
GeneralRe: PayPals Add To Cart Button for one off items [modified] Pin
Member 373991018-Jun-09 12:27
Member 373991018-Jun-09 12:27 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Marc Firth18-Jun-09 21:52
Marc Firth18-Jun-09 21:52 
GeneralRe: PayPals Add To Cart Button for one off items Pin
Member 373991018-Jun-09 22:53
Member 373991018-Jun-09 22:53 
QuestionImage Upload Problem Pin
indian2212-Jun-09 1:46
indian2212-Jun-09 1:46 
AnswerRe: Image Upload Problem Pin
Marc Firth15-Jun-09 3:39
Marc Firth15-Jun-09 3:39 
AnswerRe: Image Upload Problem Pin
Syed M Hussain17-Jun-09 5:29
Syed M Hussain17-Jun-09 5:29 
Questionpipeing proc_open() output over a period of time Pin
SalilJain7-Jun-09 6:56
SalilJain7-Jun-09 6:56 
AnswerRe: pipeing proc_open() output over a period of time Pin
Marc Firth11-Jun-09 22:02
Marc Firth11-Jun-09 22:02 
News[Announce] PyJumble v1.0.0 Pin
PavanPareta5-Jun-09 3:40
PavanPareta5-Jun-09 3:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.