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

Linux, Apache, MySQL, PHP

 
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 
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 
Again thanks.

Now I will see what mess I can get myself in. Just so you know what I am after my intended site is http://mrtworld.com I am trying video and other means to advertise. I do sell software (Using Rapidq basic and AHK) My main site gets 500 hits a day so I can link. This is a hobby I am retired and well on my way to making my first million/10,000. Still it keeps me out of mischief.

I will post back when I have a working system. You never know you may have stuff you want to sell. I intend to make an automatic site creator. Basic is so easy to manipulate text and RQ works well in Vista. AHK (AutoHotKey) makes a great companion.

Ain't life great. Live well and long
Terry

As an after thought I would tackle the problem this way.
for each item I have for sale I will create a Item_Name.txt file basicly blank but existing.
using your suggestion
I shall create a "If not Fileexists(Item_Name.txt)
Else" condition where the Else will point to an "ItemSold Page"
Obviously on a successful sale I will unlink the Item_Name.txt file.

I now have the solution and need to design the structure o I do not have to modify many pages manually

I will put a test set of pages up and run it in PayPals sandbox.

Well I have it

<br />
<?php  $F = File_Exists("item_sold");<br />
  		If ($F == "1")header 'Location:http://www.mydomain.com/itemforsale.php' );<br />
 		Else header( 'Location: http://www.mydomain.com/sorry.html' );<br />
  ?><br />


The success page(one for each item) will have the unlink of the item_sold above

I found that the buy now button was the best option in this case.

So Marc with the insight you have given me it has awakened my knowledge of C I programmed in over 20 years ago which makes php come to life, I did not realise the syntax was so simular.

It was not long ago I could not even spell programer now I are one

Till my next major requirement Marc stay well, I may need you Wink | ;)

Terry

modified on Tuesday, June 16, 2009 6:59 PM

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 
QuestionPHP and code flow... Pin
angusmann4-Jun-09 18:50
angusmann4-Jun-09 18:50 
AnswerRe: PHP and code flow... Pin
Marc Firth4-Jun-09 22:03
Marc Firth4-Jun-09 22:03 
GeneralRe: PHP and code flow... Pin
AtliThor5-Jun-09 8:52
AtliThor5-Jun-09 8:52 
GeneralRe: PHP and code flow... Pin
angusmann5-Jun-09 15:13
angusmann5-Jun-09 15:13 

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.