Jump to content

BizLab

Members
  • Posts

    141
  • Joined

  • Last visited

    Never

Everything posted by BizLab

  1. I’m trying to create a configurable product collection containing multiple associated products as in this Wiki article. http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-configurable-product The problem is that the initial attempt was successful, and i was able to create a configurable product by combining 3 simple products. When i try to create another, the product selection table at the bottom of Product > Associated Products (tab) > Super product attributes configuration i am only able to select one item and the rest are disabled / un-checkable. This seems like a bug, but i’m not sure. Creating a new collection has the same (fail) result. Magento Version 1.6.2 MediaTemple DV 4.0 64bit CentOS 5.x Any help is appreciated.
  2. I just glanced at my phpinfo() page before taking a break and soap.ini is in there and showing as an active module, I'll test this a little later
  3. When running yum install php-soap Again to see if it was indeed installed, i see this (as expected) So why doesn't SOAP show up in the Pear list..?
  4. After following these instructions : http://wiki.mediatemple.net/w/(dv)_4.0:Install_SOAP_using_Yum and restarting apache, SOAP still doesn't show up in the "$pear list". There were no dependency issues or errors during the upgrade process. Any ideas?
  5. I'm trying to install SOAP on a MediaTemple DV 4.0 (64bit CentOS 5, PHP ver 5.3.5) VPS server. When i ran yum install php-soap I get this I found and downloaded "php-soap-5.1.6-32.el5.x86_64". When trying to install, i am greeted with this message Basically, the existing php-common file is more recent. What else can i do to install SOAP on this server ?
  6. You would generally want to move your MySQL database connection login info somewhere more secure, and use a php include. There are newer MySQL connection functions available that are recommended as well..look into the mysqli_connect() and it's associated functions I don't recommend storing both the username and password in the $_SESSION array, again for security reasons. Instead: 1. Check for valid credentials 2. If good, move them to a page that only logged in users can access 3. if not good, take them back to the login form limit access to the logged in pages with a conditional check for the username session variable set when logging in like so: $_SESSION['username'] = $username_from_database AND, don't forget start_session(); on every page
  7. Try using links for the include (and the navigation) based on the document root require_once('/header.php'); instead of require_once('../../header.php'); // and so on that should work just fine
  8. Humm... first, I would probably move my constants to a file outside the class and include them in the script in order to keep all constants in one location. You have a high-level of restriction set on the sample code.. final classes are the end of the line, and can't be overridden or extended. Maybe not the best choice, but it all depends on your implementation The use of OOP is to create widely reusable code that is usable in various projects.. declaring a filepath inside a class is not well-advised. i suggest : class myClass{ // properties protected $_directory; // construct (used to pass attributes to the class) public function __construct($directory){ $this->_directory = $directory } } This way, the directory used by this class can be called at runtime using // instantiate the object $object = new myClass(MY_DIR_CONSTANT); And then you can work on that. I'd recommend grabbing an OOP book if none of this makes any sense. Let me know if you have any problems
  9. Jushiro, I think you would be best helped by picking up a book on PHP/Mysql... You don't actually store the PDF file IN the database, there is merely a reference to the file name in there (and sometimes even the complete file path, if your aren't worried about bit size in the DB). 1. You are missing the primary key column for the database.. if you don't know what this is, i highly recommend reading up on the basics of MySQL 2. Use a standard upload form as BorderLine suggested to upload the PDF (or any other file) 3. Retrieve the file (as thorpe said) by using a standard anchor <a> "link" tag. the $_FILES array is used when uploading files from a webform to the server and has nothing to do with the database processes 4. use the primary key as the connection between your select menu and the appropriate file eg: <select name="teachers-docs"> <option value="primary_key_goes_here">Document for math homework</option> <option value="primary_key_goes_here">Document for science homework</option> <option value="primary_key_goes_here">Document for history homework</option> </select> when the student selects an option, a query can be submitted to the database calling for the file_name column for primary_key # x which will give you the appropriate file name. I recommend using $_GET to submit your form, as it will make testing and implementation slightly easier. Also, provide a link to the file and allow the student to download the PDF (to make things easier) good luck
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.