Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/wreyesus/Sencillo_Carrito_de_Compras_en_PHP/llms.txt

Use this file to discover all available pages before exploring further.

YUME|TEC was built with the legacy mysql_* extension that ships with PHP 5.x. Because that extension was removed entirely in PHP 7.0, the project must run on PHP 5.6 to work without code changes. This page lists every software dependency, the PHP extensions the application relies on, and the local development stacks that make it easiest to get started.

PHP version

The application calls mysql_connect, mysql_query, mysql_fetch_array, and related functions throughout its codebase. These functions were part of the original MySQL extension for PHP.
The mysql_* functions were deprecated in PHP 5.5 and completely removed in PHP 7.0. Running the project on PHP 7.x or 8.x will produce fatal errors on every page that queries the database. Use PHP 5.6.x for a zero-modification setup.
The easiest way to run a specific PHP version is with XAMPP 5.6.40 (see Recommended local stacks below) or with Docker:
docker run -d -p 8080:80 -v "$(pwd):/var/www/html" php:5.6-apache
This mounts your project directory into the container’s web root and serves it on http://localhost:8080.

Required software

SoftwareMinimum versionRecommendedNotes
PHP5.x5.6.xmysql_* extension required
MySQL5.x5.5 – 5.7Schema uses MyISAM engine
Apache2.x2.4.xmod_rewrite not required
phpMyAdminAnyAnyOptional, but helpful

PHP extensions required

The following PHP extensions must be enabled in php.ini. All are bundled with XAMPP 5.6.x and the php:5.6-apache Docker image by default.
  • mysql — The legacy MySQL extension. Provides mysql_connect, mysql_pconnect, mysql_query, and friends. This is the non-negotiable dependency.
  • session — Used on every authenticated page to track the logged-in user via $_SESSION.
  • mbstring — Handles multibyte string operations used when processing form input.
  • mail — Required by the contact form (contacto.php) for sending plain-text email through the server’s local mail transport.

XAMPP 5.6.x

Available for Windows, macOS, and Linux. Download the 5.6.40 installer from the XAMPP SourceForge archive. Bundles Apache 2.4, PHP 5.6, MySQL 5.6, and phpMyAdmin in a single package — no manual configuration needed.

WAMP Server

Windows only. WampServer supports side-by-side PHP versions; install 5.6.x alongside any newer version and switch between them from the system-tray menu. Pairs well with phpMyAdmin for database management.

PHP 7+ migration path

If you need to run YUME|TEC on a modern PHP version, every mysql_* call must be replaced with either the mysqli_* procedural API or PDO. The following files contain legacy MySQL calls and would all require updates:
  • index.php
  • index2.php
  • carrito.php
  • categorias.php
  • cat_procesadores.php
  • cat_motherboards.php
  • cat_rams.php
  • detalles.php
  • nuevo_usuario.php
  • registro.php
  • ingreso.php
The mysql_pconnect call in Connections/tienda.php would also need to become mysqli_connect (or a PDO new PDO(...) instantiation), and every subsequent mysql_select_db, mysql_query, and mysql_fetch_array call would need the corresponding mysqli_* replacement. The connection resource must then be passed explicitly to each query call because mysqli_* does not use a global implicit connection the way mysql_* does.

Build docs developers (and LLMs) love