Jump to content

gregaryb

Members
  • Content Count

    22
  • Joined

  • Last visited

Everything posted by gregaryb

  1. My attempt to use PHPMail has failed since I have no idea how to install a github library in CPANEL. It seems as though CPANEL is wedded to PEAR package and mail2 and mime php libraries are available as PEAR packages and easy to install. And they seem to do more or less the same job as PHPMail. However how the buggery do you make them work???? If I insert any of this sample code in my web page I get various errors about unable to open streams due to the include statements or unknown identifiers (e.g. Mail_mime) if I leave out the include statements. <?php in
  2. I did see that but same problem......can't find any sample code that does not generate an error along the lines that it can't find PHPmailer. Is PHPMailer native to php or is it something additional you have to install or enable on the back end.....in one's CPanel?
  3. I give up in frustration! I need some sample code to send an email with an attachment, using the function mail(...), that does not generate this error message: Error with PHP mail(): Multiple or malformed newlines found in additional_header
  4. I have done this with text file before but I can't gt it to work with a binary file. I am trying to send a .xls file and this is what I am getting when I open up the file attachment in MS Excel: UEsDBBQAAAAIACtT8ERHkkSyWAEAAPAEAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbK2UTU7DMBCF 95wi8hYlblkghJp2QWEJlSgHMPakserYlmf6d3smaQsIiUDVbmJF9nvf+Hns0WTbuGwNCW3wpRgW A5GB18FYvyjF2/wpvxMZkvJGueChFDtAMRlfjea7CJix2GMpaqJ4LyXqGhqFRYjgeaYKqVHEv2kh o9JLtQB5MxjcSh08gaecWg8xHr0wP1kD2UwlelYNY+TWSWI32H+HBfuJ7GEvbNmlUDE6qxVx4XLt zQ9qHqrKajBBrxqWFJ3NdesifwUi7Rzg2SiMCZTBGoAaV+xNj+QpVGrlKHvcsvs+8w
  5. No I didn't spot that reply but thanks anyway. After a short stint writing some user documentation (as a programmer), at my last IT job some years ago, I realised why programmers generally make such poor manual writers. I had to totally change my mindset in order to make the documentation of any use to the testers. The Paypal developer website epitomises 'programmer' designed documentation unfortunately...
  6. For something that is now, in hindsight, very simple to implement, all this namespace business seems, to me, to be completely unnecessary layers of complexity.
  7. This (in written form) is what paypal needs to put on their developer website: https://www.youtube.com/watch?v=t_7GA1BZXPs This makes sense to me, and now I have an understanding of how the whole express checkout process works. But it wasn't easy to find and only after several very frustrating blind attempts with other sdk and class packages from github. After this Paypals details on key/value pairs now means something to me. Hope it helps others who are experiencing the same frustration that I have had to endure over the past week.
  8. For christ sake can some one PLEASE point me in the direction of SIMPLE paypal integration system that DOES NOT require bloody Composer, or any other irritating baggage. And that does not have components scattered across GitHub in multiple zip files. And that can be used via one SIMPLE include statement. I found this https://github.com/paypal/rest-api-sdk-php. Great! Except that it uses PHP "uses" statements and my web server's version of PHP apparently does not support it. So I proceeded to replace all the "uses' statements with explicit "requires" statements so
  9. https://getcomposer.org/doc/01-basic-usage.md Where do you type one of these? curl -sS https://getcomposer.org/installer | php or if you don't have curl php -r "readfile('https://getcomposer.org/installer');" | php In the top of a web page between <?php ?>? In your web hosting service account login some where?
  10. I worked out a javascript solution but I can't figure out how to do it with just CSS. <nav class="navigation"> <ul class="NavMenu"> <li class="NavMenuItem"><a href="index.php">Home</a></li> <li class="NavMenuItem"><a href="CompanyProfile.php">Company Profile</a></li> <li class="NavMenuItem"><a href="Contact.php">Contact Details</a></li> <li class="NavMenuItem"><a href="Store.php">Store</a> <div class="NavMenuItemArrow"><a href="#" id="NavMenuItemArrow" onclick="doOnClick('NavMe
  11. See attached images. Or here is the website if you want to play with it: http://www.gregsindigenouslandscapes.com.au/EasyWebStore/index.php# It may make it a little easier to view the source without the PHP. I have a nav menu on the left where one of the items has a little arrow. When you click the arrow a popup menu appears below it. If you click it again the popup menu disappears. The problem is the popup menu is displaying over the top of an image below the nav menu. I would prefer it to push the images down but I can't figure out how to do this. HTML <nav class="
  12. See attached images. I have a nav menu on the left where one of the items has a little arrow. When you click the arrow a popup menu appears below it. If you click it again the popup menu disappears. The problem is the popup menu is displaying over the top of an image below the nav menu. I would prefer it to push the images down but I can't figure out how to do this. HTML <nav class="navigation"> <ul class="NavMenu"> <li class="NavMenuItem"><a href="index.php">Home</a></li> <li class="NavMenuItem"><a href="CompanyProfile.php">
  13. It is bloody Epression Web causing these problems. Even though I am not using Expression Web to edit my .css file it still keeps trying to re-format the code. Often when I try to save the .css in notepad.exe I get a message saying the file has changed and do I want to re-load it. Occasionally I have hit the wrong response and then I find all my css/php code $%&@# up. Then it takes me ages to get it all working again. The single quote was probably a result of this. I ended up having to remove all the CSS code and then put it back one bit at a time until I found all t
  14. I am in the process of getting rid of all my ids and switching to classes. But I am now having trouble getting my popup menu working again. When the mouse hovers over the <a></a> element in blue, I want to select the <div></div> element in green. But this CSS code does not work li > a:hover div{....} li > a:hover + div{....} So what is the correct way to select this element? I also wish to select this element <div class="NavSubMenuBalloon"> <div class="navigation"> <ul class="NavMenu"> <li class="NavMenuIte
  15. I have made some change to cause two of my <div> to not display no matter what I do with the CSS. And I don't understand what change has caused it. #content and #navigation wont display no matter what I do. Screen shot of the resulting web page is attached. The container, header structure and footer structure are there but no navigation div nor content div. It may be that Expression web has stuffed something up in CSS but I can't see the problem. Expression web is a pain in the arse with CSS if you put in php code in with it - it just keeps re-arranging the code and causing
  16. gregaryb

    Paypal API

    https://developer.paypal.com/docs/classic/api/button-manager/BMUpdateButton_API_Operation_NVP/ Sorry if this is the wrong place to be asking this, but the above 'help' site does not give me any clue on where to start. They have listed all the variables you can use with paypal API, but I cannot see any mention of how you use the damn things in a practical sense. Are the variables meant to be the names of hidden inputs? I have played with this sort of thing before. Are they meant to be used with an existing function or features already in php or javascript or html,......? Are
  17. I just figured out what is causing this. It has nothing to do with the code. It is bloody Microsoft Expression Web chucking a hissy fit and inserting double quotes in inappropriate places and removing ?>. But it does not display these changes so you have no way of knowing about them. I closed Expression Web and opened the file and found the code screw ups. If I edit the code with notepad - no problem!
  18. If I leave that block of CSS commented out then the rest of the CSS (with PHP echo filling in various values) works. But as soon as I uncomment that first bit of CSS I get a PHP syntax error message on this bit of code: font-family:<?php echo $_SESSION["LinkFont"]; ?> What has that CSS code got to do with PHP on the server? All the preceding bits of CSS where I have used echo to fill in values passes OK. So what the ###### is going on here? /* #NavMenu{ list-style-type:none; margin:0; padding:0; } #NavMenuItem{ list-style-type:none; }*/ #NavMenuIt
  19. If this line font-family:<?php echo "Arial"; ?>; of CSS/PHP remains not commented out then I get this PHP error message "Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/gregsind/public_html/EasyWebStore/Style.css on line 33" All the other css properties that I have used a php echo to fill in the value are fine. But this single font-family property just wont work. I just don't get it. #NavMenuItem a{ behavior: url(CSSPie/PIE.htc); display: block; position:relative;/* background-color:#<?php echo $_SESSION["LinkColor"]; ?>;
  20. After fiddling around with CSS properties I have managed to get this menu/popup menu to display correctly in both Firefox 30 and IE 8 on a WinXP machine. Specifically such that the little right arrow character and popup menu are properly aligned with the "Store" menu item and with the two images below the menu centred. See attached image files/ However the side effect is that the popup menu now pushes those two images down when it appears and I can't figure out how to prevent this. Suggestions? Relevant bit of style.css /**********************************************************
  21. What you see is what you get. I have not applied styles to the table other than through the classes. I suspect I would be better off doing this with divs rather than tables. There seems like there is too much 'baggage' that comes with tables that seems to stuff things up unexpectedly.
  22. <table class="CartDetailsTable"> <tr><th width="33%"><b>Photo</b></th><th width="33%"><b>Description</b></th><th width="10%"><b>Price</b></th><th width="15%"><b>Quantity</b></th><th><b>Sub-totals</b></th></tr> </table> .ClientDetailsTable{ background-color:#C0C0C0; width:99%; border:thin black solid; border-radius:5px; }; .CartDetailsTable{ background-color:#C0C0C0; width:99%; bord
×
×
  • Create New...