Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > PHP
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 24-10-2008
noob noob is offline
Miembro
 
Registrado: sep 2008
Posts: 212
Poder: 16
noob Va por buen camino
Al final he generado los archivos php desde el símbolo de sistema de la siguiente forma:

>FmToPhp project1.lpi y me ha generado:

project1.php y project1.xml.php

project1.php contiene:

Código PHP:
<?php
// Generated by FmToPhp 1.0.0 at 15:45:05 on 2008-10-24 from:
//   unit1.lfm

  
ini_set("display_errors"1);
  
error_reporting(E_ALL);

  require_once(
"vcl/vcl.inc.php");
  
use_unit("forms.inc.php");
  
use_unit("comctrls.inc.php");

  class 
TForm1 extends Page
  
{
    public 
$Form1_Window null;  //Window
    
public $Button1 null;  //Button
    
public $Edit1 null;  //TextField
    
public $Edit2 null;  //TextField
    
public $Button2 null;  //Button
    
public $Edit3 null;  //TextField
    
public $Button3 null;  //Button
  
}

  
session_destroy();  //Browser reload initializes app
  
global $application;
  global 
$Form1;
  
$Form1=new TForm1($application);
  
$Form1->loadResource(__FILE__);
  
$Form1->show();
?>

<script>
var xmlHttp;

function createHTTPrequest()
{
  try  //Firefox, Opera 8.0+, Safari
  {
    xmlHttp = new XMLHttpRequest();
  }
  catch (e1)
  {
    try  //Newer IE
    {
      xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e2)
    {
      try  //Older IE
      {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch (e3)
      {
        alert("Your browser is too old and does not support AJAX!");
      }
    }
  }
}

function defaultProcessStateChange()
{
  if (xmlHttp.readyState == 4)
  {
    if (xmlHttp.status == 200)
    {
      eval(xmlHttp.responseText);
    }
    else
    {
      alert("There was a problem retrieving the requested data:\n" +
            xmlHttp.statusText);
    }
  }
}

function doAjax(URL, processStateChange)
{
  createHTTPrequest();
  if (xmlHttp)
  {
    if (processStateChange)
    {
      xmlHttp.onreadystatechange = processStateChange;
    }
    else
    {
      xmlHttp.onreadystatechange = defaultProcessStateChange;
    }
    xmlHttp.open("GET", URL, true);
    xmlHttp.send(null);
  }
}
</script>
Luego he puesto dichos archivos en la carpeta htdocs de Apache y al intentar cargarla desde el explorador web de la forma: http://localhost/project1.php obtengo lo siguiente:

Cita:
Warning: require_once(vcl/vcl.inc.php) [function.require-once]: failed to open stream: No such file or directory in C:\Archivos de programa\Apache Software Foundation\Apache2.2\htdocs\project1.php on line 8

Fatal error: require_once() [function.require]: Failed opening required 'vcl/vcl.inc.php' (include_path='.;C:\php5\pear') in C:\Archivos de programa\Apache Software Foundation\Apache2.2\htdocs\project1.php on line 8

Última edición por noob fecha: 24-10-2008 a las 14:58:28.
Responder Con Cita
  #2  
Antiguo 24-10-2008
Avatar de TOPX
TOPX TOPX is offline
Miembro
 
Registrado: may 2008
Ubicación: Bogotá
Posts: 527
Poder: 17
TOPX Va camino a la fama
http://www.qadram.com/vcl4php/docwik...P_Applications
__________________
"constructive mind, destructive thoughts"
Responder Con Cita
  #3  
Antiguo 24-10-2008
noob noob is offline
Miembro
 
Registrado: sep 2008
Posts: 212
Poder: 16
noob Va por buen camino
Ya lo he solucionado, sólo había que copiar la carpeta vcl del archivo comprimido vcl_for_php_1_2.tar.gz bajado de aquí http://www.qadram.com/vcl4php/ dentro de la carpeta htdocs de Apache.

Aquí tenéis mi aplicación:



He intentado sacar un ShowMessage('Hola mundo!!') cuando se pulsara en un botón pero me dice "Event handler not implemented yet." aun así está muy muy bien esta herramienta para programar visualmente en PHP.
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Página web gratuita winzo La Taberna 4 23-07-2008 08:21:28
Versión de Oracle Gratuita lucasarts_18 Noticias 1 03-11-2005 22:44:34
Licencia Gratuita Rabata Firebird e Interbase 2 19-07-2004 13:33:28
Licencia gratuita???? David J. MySQL 1 19-07-2004 07:54:56
IB 6.0 ¿es realmente gratuita? ruina Firebird e Interbase 2 13-07-2004 23:03:22


La franja horaria es GMT +2. Ahora son las 16:54:36.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi