garycrunk
Posts: 23
|
| Posted: 05/24/2007, 11:31 AM |
|
I have a prettu crazy question.
I run CCS using Access Database etc...
I am trying to do some things but the code that I have is written in PHP.
Is there a way that I can Embed a portion of PHP code inside of an event?
For example, I have a grid that displays records from a database. I have a Before-Show event that moves the data into a specific formatted file (Comma Delimited) so I can export that to another program.
However, what I REALLY want to do is to take the data information, and structure it into fields in a database that I have to use PHP (the library was written in php).
I would like to embed something into the ASP filename-events.asp file. Basically let ASP handle the Database etc... I need to have PHP work on the data provided...
<?PHP
include 'mylibrary.inc';
include 'modules/doc.inc';
// $myFile = "/userfiles/comma-delimited-file.txt";
// $fh = fopen($myFile, 'r');
// $theData = fread($fh, 5);
// fclose($fh);
// echo $theData;
Do something in PHP here...
?>
_________________
Gary Crunk
Job Examiner |
 |
 |
Benjamin Krajmalnik
|
| Posted: 05/24/2007, 4:48 PM |
|
The short answer is it depends.
.
It is possible but painful, and depends specifically on what you want to do.
But, essentially you will have 2 separate, disconnected frameworks which
cannot talk to each other.
For something simple, you could create an iframe and pass the parameters to
the php script that way.
Or, you could do somrehing via Ajax where you asynchronously call a php
script.
"garycrunk" <garycrunk@forum.codecharge> wrote in message
news:64655da0b293f3@news.codecharge.com...
>I have a prettu crazy question.
> I run CCS using Access Database etc...
> I am trying to do some things but the code that I have is written in PHP.
>
> Is there a way that I can Embed a portion of PHP code inside of an event?
>
> For example, I have a grid that displays records from a database. I have
> a
> Before-Show event that moves the data into a specific formatted file
> (Comma
> Delimited) so I can export that to another program.
>
> However, what I REALLY want to do is to take the data information, and
> structure it into fields in a database that I have to use PHP (the library
> was
> written in php).
>
> I would like to embed something into the ASP filename-events.asp file.
> Basically let ASP handle the Database etc... I need to have PHP work on
> the data
> provided...
>
> <?PHP
> include 'mylibrary.inc';
> include 'modules/doc.inc';
>
> // $myFile = "/userfiles/comma-delimited-file.txt";
> // $fh = fopen($myFile, 'r');
> // $theData = fread($fh, 5);
> // fclose($fh);
> // echo $theData;
> Do something in PHP here...
> ?>
>
> _________________
> Gary Crunk
> Job Examiner
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|