Generating a CDR file using PHP scripts.
am 11.04.2006 09:59:18 von kurl
Hi,
I need to do croning in PHP to generate a CDR (Call Details Record)
file daily from the mysql database.
The CDR file has to be named in a certain sequence such as
xx00000xxx200604080850.cdr. A new file is written every day.
The generated CDR file is then ftp over to a server.
I am willing to pay for someone who is able to write the PHP scripts to
perform the above mentioned job for me.
Cheers,
kurl
--
kurl
------------------------------------------------------------ ------------
kurl's Profile: http://techiegroups.com/member.php?userid=87
View this thread: http://www.techiegroups.com/showthread.php?t=106490
Re: Generating a CDR file using PHP scripts.
am 11.04.2006 16:33:09 von nc
kurl wrote:
>
> I need to do croning in PHP to generate a CDR (Call Details Record)
> file daily from the mysql database.
You can't "do croning in PHP". Croning is best done with cron.
> The CDR file has to be named in a certain sequence such as
> xx00000xxx200604080850.cdr. A new file is written every day.
Do you know what the format of that file would be?
> The generated CDR file is then ftp over to a server.
Do you have the FTP extension enabled on your machine?
Cheers,
NC
Re: Generating a CDR file using PHP scripts.
am 12.04.2006 09:26:37 von kurl
NC Wrote:
> kurl wrote:
> >
> > I need to do croning in PHP to generate a CDR (Call Details Record)
> > file daily from the mysql database.
>
> You can't "do croning in PHP". Croning is best done with cron.
>
>
> I mean using croning to run PHP scripts.
>
> > The CDR file has to be named in a certain sequence such as
> > xx00000xxx200604080850.cdr. A new file is written every day.
>
> Do you know what the format of that file would be?
>
> Yes, i have the format of the file. There is two formats that needs to
> be done.
>
>
> > The generated CDR file is then ftp over to a server.
>
> Do you have the FTP extension enabled on your machine?
>
> How do i find out whether i hv ftp extension enabled on my machine? Two
> files need to ftp over. One of the file need to do a secure ftp.
>
> Cheers,
> NC
Can you do the above mentioned and i am willing to pay for it. Pls
quote.
Thanks,
kurl
--
kurl
------------------------------------------------------------ ------------
kurl's Profile: http://techiegroups.com/member.php?userid=87
View this thread: http://www.techiegroups.com/showthread.php?t=106490
Re: Generating a CDR file using PHP scripts.
am 12.04.2006 23:09:02 von nc
kurl wrote:
> NC Wrote:
> > >
> > > I need to do croning in PHP to generate a CDR (Call Details Record)
> > > file daily from the mysql database.
> >
> > You can't "do croning in PHP". Croning is best done with cron.
>
> I mean using croning to run PHP scripts.
This is easy. Best done using the command-line interpreter, since the
command-line interpreter does not require an HTTP server. Hence, no
HTTP server overhead and no timeout problems.
> > > The CDR file has to be named in a certain sequence such as
> > > xx00000xxx200604080850.cdr. A new file is written every day.
> >
> > Do you know what the format of that file would be?
>
> Yes, i have the format of the file. There is two formats that needs
> to be done.
Shouldn't be a problem.
> > > The generated CDR file is then ftp over to a server.
> >
> > Do you have the FTP extension enabled on your machine?
>
> How do i find out whether i hv ftp extension enabled on my machine?
Type "php -m" in the command line. It will show you the list of
modules compiled into PHP. Look for FTP.
> Two files need to ftp over. One of the file need to do a secure ftp.
In order to work with secure FTP, PHP must be compiled with OpenSSL
support (see the "php -m" bit above). There are workarounds, however;
if you have shell access to the machine in question, it's possible to
use a third-party FTP utility such as NcFTPput (free and not affiliated
with me :)
> Can you do the above mentioned and i am willing to pay for it.
> Pls quote.
Since I don't know the availability of secure FTP on your machine, I
can't tell yuo if I can do what you need. If you're still interested,
shoot me an e-mail at nc@iname.com.
Cheers,
NC