Re: [PHP] C++, $_POST - php-cgi
I'm working on something similar, here's the pseudo-code of what happens to ensure the PHP script run by my server doesnt see any difference than when it runs under apache or others... Say the php file to execute is index.php and it was called from a form post, the form tag also specified GET arguments like this FORM METHOD=POST ACTION=index.php?somegetvar=getvalue... The PHP script will expect this: $_GET['somegetvar'] = getvalue; $_POST['somepostvar'] = postvalue; and $_REQUEST['somegetvar'] = getvalue; $_REQUEST['somepostvar'] = postvalue; To get this working, the server first has to parse the HTTP message to grab the GET arguments in the URI. After this, the server has to parse the Body entity of the HTTP message for POST values. Once the server has all the information, it can execute the php script. I personally like to use popen(php, w) which opens a write-only pipe to the php process... it's like just typing php on the commandline, php then listens on stdin for the code and it executes when it receives EOF (on the commandline this happens after a ctrl-d on linux), using popen() this happens on a pclose(). Once you've popen()ed php, you start writting something like this: ?PHP $_GET['somegetvar'] = getvalue; $_POST['somepostvar'] = postvalue; $_REQUEST['somegetvar'] = getvalue; $_REQUEST['somepostvar'] = postvalue; //[...] Also handle other superglobals here require(index.php); ? And bingo! Hope this helps, good luck! On Mon, Jun 8, 2009 at 9:29 AM, Jasperjazu...@luukku.com wrote: Hi, i'm planning to create a win32 http server that supports cgi. Does anybody see the problem in C++ -source? Php doesn't give any output, but if I don't set the rfc3875 environment variables, all output comes normally (expect post and other variables aren't set). Only what I'm able to set is $_GET -variables as script arguments. So how can I set post variables and others, like RAW_POST_DATA? The c code above lets php to read the script by itself and post -variables are written to stdin pipe. Output should be able to be readed from stdout (problem is that there are no output, even not the headers). I hope that you understand what I mean... - Test script: (D:\test.php) - ?php echo 'Wd: ',getcwd(),' var=',$_POST['var']; ? - C++ source: - #include windows.h #include conio.h #include stdio.h int main() { SECURITY_ATTRIBUTES sa = {sizeof(SECURITY_ATTRIBUTES)}; sa.bInheritHandle = 1; sa.lpSecurityDescriptor = NULL; HANDLE hStdoutR, hStdoutW, hStdinR, hStdinW; CreatePipe(hStdoutR,hStdoutW,sa,0); SetHandleInformation(hStdoutR,HANDLE_FLAG_INHERIT,0); CreatePipe(hStdinR,hStdinW,sa,0); SetHandleInformation(hStdinW,HANDLE_FLAG_INHERIT,0); STARTUPINFO si = {sizeof(STARTUPINFO)}; PROCESS_INFORMATION pi; si.dwFlags = STARTF_USESTDHANDLES; si.hStdOutput = hStdoutW; si.hStdInput = hStdinR; char env[255] = REQUEST_METHOD=POST\0CONTENT_LENGTH=17\0CONTENT_TYPE=application/x-www-form-urlencoded\0SCRIPT_FILENAME=D:\\test.php; if(!CreateProcess(NULL,php-5.2.9-1-Win32\\php-cgi.exe D:\\test.php,NULL,NULL,1,NORMAL_PRIORITY_CLASS,env,NULL,si,pi)) return 0; CloseHandle(hStdoutW); CloseHandle(hStdinR); DWORD dwWritten = 0; //Write post data here? if(!WriteFile(hStdinW,var=post+variable,20,dwWritten,NULL)) return 0; CloseHandle(hStdinW); char buf[1000] = {0}; DWORD dwRead = 0; while(ReadFile(hStdoutR,buf,sizeof(buf),dwRead,NULL) dwRead != 0){ printf(buf); } printf(|\n\nEND); CloseHandle(hStdoutR); getch(); return 0; } -- Thanks! Jasper ... Luukku Plus paketilla pääset eroon tila- ja turvallisuusongelmista. Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C++, $_POST - php-cgi
Hi, i'm planning to create a win32 http server that supports cgi. Does anybody see the problem in C++ -source? Php doesn't give any output, but if I don't set the rfc3875 environment variables, all output comes normally (expect post and other variables aren't set). Only what I'm able to set is $_GET -variables as script arguments. So how can I set post variables and others, like RAW_POST_DATA? The c code above lets php to read the script by itself and post -variables are written to stdin pipe. Output should be able to be readed from stdout (problem is that there are no output, even not the headers). I hope that you understand what I mean... - Test script: (D:\test.php) - ?php echo 'Wd: ',getcwd(),' var=',$_POST['var']; ? - C++ source: - #include windows.h #include conio.h #include stdio.h int main() { SECURITY_ATTRIBUTES sa = {sizeof(SECURITY_ATTRIBUTES)}; sa.bInheritHandle = 1; sa.lpSecurityDescriptor = NULL; HANDLE hStdoutR, hStdoutW, hStdinR, hStdinW; CreatePipe(hStdoutR,hStdoutW,sa,0); SetHandleInformation(hStdoutR,HANDLE_FLAG_INHERIT,0); CreatePipe(hStdinR,hStdinW,sa,0); SetHandleInformation(hStdinW,HANDLE_FLAG_INHERIT,0); STARTUPINFO si = {sizeof(STARTUPINFO)}; PROCESS_INFORMATION pi; si.dwFlags = STARTF_USESTDHANDLES; si.hStdOutput = hStdoutW; si.hStdInput = hStdinR; char env[255] = REQUEST_METHOD=POST\0CONTENT_LENGTH=17\0CONTENT_TYPE=application/x-www-form-urlencoded\0SCRIPT_FILENAME=D:\\test.php; if(!CreateProcess(NULL,php-5.2.9-1-Win32\\php-cgi.exe D:\\test.php,NULL,NULL,1,NORMAL_PRIORITY_CLASS,env,NULL,si,pi)) return 0; CloseHandle(hStdoutW); CloseHandle(hStdinR); DWORD dwWritten = 0; //Write post data here? if(!WriteFile(hStdinW,var=post+variable,20,dwWritten,NULL)) return 0; CloseHandle(hStdinW); char buf[1000] = {0}; DWORD dwRead = 0; while(ReadFile(hStdoutR,buf,sizeof(buf),dwRead,NULL) dwRead != 0){ printf(buf); } printf(|\n\nEND); CloseHandle(hStdoutR); getch(); return 0; } -- Thanks! Jasper ... Luukku Plus paketilla pääset eroon tila- ja turvallisuusongelmista. Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C Bindings?
Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way? Thanks, Henri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C Bindings?
Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way? Thanks, Henri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] C Bindings?
On Wed, Jul 9, 2008 at 12:50 PM, Henri Cook [EMAIL PROTECTED] wrote: Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way?\ maybe scope out this book, http://www.amazon.com/Extending-Embedding-PHP-Developers-Library/dp/067232704X -nathan
[PHP] C-style macros?
this may already have been asked before, but i'll ask anyway. is there any way to do C-style macros in PHP? i heard a rumor that PHP6 is gonna support this--can anyone confirm to what degree? thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] c++ and php! search for a brigde
Hello people, i have a question?? I have an application written in c++ and this throw real time data as udp-pakets all the time (interval 1 min and values in a wrapper like an own protocol are floats and longs). Is there any possibility to catch the udp packets - parse the pakets und show the values in tables in a html-doc in real time??? What technologies are good? ajax? cgi? ive no idea! mfg david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] c++ and php! search for a brigde
you can use sockets in php, they work the same as berkley sockets you can use system() in php, to call your C++ program (the program could output html) in my opinon CGI with C/C++ is obsolete, use php/apache for best results! another nice way is to have your C++ program independent, outputs its results/values into a database (mysql)... and a php page will just read what's in the database to display it nicely. That would be a clean way of doing it. Good luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] c++ and php! search for a brigde
On 8/28/07, Simon [EMAIL PROTECTED] wrote: you can use sockets in php, they work the same as berkley sockets you can use system() in php, to call your C++ program (the program could output html) in my opinon CGI with C/C++ is obsolete, use php/apache for best results! another nice way is to have your C++ program independent, outputs its results/values into a database (mysql)... and a php page will just read what's in the database to display it nicely. That's what we do here. C/C++ app gathers and inserts the data into the db, minute by minute, and PHP apps are used for display, reports, graphics, etc... Our LAMP system has had nary a glitch in over 3 years of continuous usage. That would be a clean way of doing it. Good luck! David
RE: [PHP] c++ and php! search for a brigde
Barev David, I think this is solution 1. C/C++ updates database (MySQL or other) 2. There is some PHP file that is viewing your DB info(printing static info) 3. There is other PHP file that is using AJAX for interactive update of information (This one is sending request to first PHP file and if needed updating second one) I don't know maybe this is very complex, but I would choose this one ;) Best, Gevorg -Original Message- From: David Giragosian [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 28, 2007 10:08 PM To: Simon Cc: php-general@lists.php.net Subject: Re: [PHP] c++ and php! search for a brigde On 8/28/07, Simon [EMAIL PROTECTED] wrote: you can use sockets in php, they work the same as berkley sockets you can use system() in php, to call your C++ program (the program could output html) in my opinon CGI with C/C++ is obsolete, use php/apache for best results! another nice way is to have your C++ program independent, outputs its results/values into a database (mysql)... and a php page will just read what's in the database to display it nicely. That's what we do here. C/C++ app gathers and inserts the data into the db, minute by minute, and PHP apps are used for display, reports, graphics, etc... Our LAMP system has had nary a glitch in over 3 years of continuous usage. That would be a clean way of doing it. Good luck! David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] c++ and php! search for a brigde
On 8/28/07, Gevorg Harutyunyan [EMAIL PROTECTED] wrote: Barev David, I think this is solution 1. C/C++ updates database (MySQL or other) 2. There is some PHP file that is viewing your DB info(printing static info) 3. There is other PHP file that is using AJAX for interactive update of information (This one is sending request to first PHP file and if needed updating second one) I don't know maybe this is very complex, but I would choose this one ;) Best, Gevorg -Original Message- From: David Giragosian [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 28, 2007 10:08 PM To: Simon Cc: php-general@lists.php.net Subject: Re: [PHP] c++ and php! search for a brigde On 8/28/07, Simon [EMAIL PROTECTED] wrote: you can use sockets in php, they work the same as berkley sockets you can use system() in php, to call your C++ program (the program could output html) in my opinon CGI with C/C++ is obsolete, use php/apache for best results! another nice way is to have your C++ program independent, outputs its results/values into a database (mysql)... and a php page will just read what's in the database to display it nicely. That's what we do here. C/C++ app gathers and inserts the data into the db, minute by minute, and PHP apps are used for display, reports, graphics, etc... Our LAMP system has had nary a glitch in over 3 years of continuous usage. That would be a clean way of doing it. Good luck! David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php No, this is not that tough. we did it before. 1. A C program retrieves data from several (more than 100) servers. 2. It saves the data in the MySQL db. 3. A php page is loaded with an ajax enabled 4. then a ajax call is sent to the same php file. it uses the setTimeout function. 5. Data comes in json format. 6. data is formated by javascript and shown in the page. Thats it. -- shout at http://shiplu.awardspace.com/ Available for Hire/Contract/Full Time
Re: [PHP] c++ and php! search for a brigde
dwa wrote: Hello people, i have a question?? I have an application written in c++ and this throw real time data as udp-pakets all the time (interval 1 min and values in a wrapper like an own protocol are floats and longs). Is there any possibility to catch the udp packets - parse the pakets und show the values in tables in a html-doc in real time??? What technologies are good? ajax? cgi? ive no idea! mfg david I recently built a PHP daemon. It uses sockets to listen on a given port for UDP packets. Take in a request, processes, decides what it needs to do based off the request and then takes action. Once it is done with said action, starts listening again. This process is done a few times a second. I have it logging connections to a DB and saving other information to a log file in the file system. You could easily take something like this and create a daemon that would listen for incoming connections and from the data it gets build a page and drop that onto the file system. here is an example of what I do ?php define('LISTEN_IP', 'X.X.X.X'); // IP to listin on '0.0.0.0' would listen on all IP's define('LISTEN_PORT', 8080); // Port number to listen on (8080) define('PACKET_SIZE', 512); // 512 bytes if ( $socket = @stream_socket_server('udp://'.LISTEN_IP.':'.LISTEN_PORT, $errno, $errstr, STREAM_SERVER_BIND) ) { while ( true ) { $packet = ''; while ( $buff = stream_socket_recvfrom($socket, PACKET_SIZE, 0, $remote_ip) ) { $packet .= $buff; } // if need be, loop this until you get to the end of your packet/information while ( !empty($buff) ) { $buff = stream_socket_recvfrom($socket, PACKET_SIZE, 0, $remote_ip); } // work with $buff here to capture all your data. // Then also figure out when and if you need to exit } fclose($socket); } -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
At 3:53 PM -0400 4/26/07, Daniel Brown wrote: Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! Daniel: But of course, you can count me in -- after all, I started this thread. If you can get the project to the point were I can upload something to my site that can generate a sound file from text, I'll take it from there. The point of all this is to provide a simple way for civilians to have their sites speak. I certainly can do all the documentation and design/write the software that will make it easy for the end user to use -- that's not a problem. The problem is having the text-to-sound routines being autonomous and free from requiring the user to seek assistance from their host for installation. If you can get it to that, this project is doable. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
That's what I'm going to try to do, Tedd. I'll post updates throughout the day to include the new mailing list address and such (so we're not flooding the PHP list with stuff about a specific project) and other relevant information. On 4/27/07, tedd [EMAIL PROTECTED] wrote: At 3:53 PM -0400 4/26/07, Daniel Brown wrote: Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! Daniel: But of course, you can count me in -- after all, I started this thread. If you can get the project to the point were I can upload something to my site that can generate a sound file from text, I'll take it from there. The point of all this is to provide a simple way for civilians to have their sites speak. I certainly can do all the documentation and design/write the software that will make it easy for the end user to use -- that's not a problem. The problem is having the text-to-sound routines being autonomous and free from requiring the user to seek assistance from their host for installation. If you can get it to that, this project is doable. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
Even beyond the scope of what this small project will be, I was thinking (for once!) that it probably will not be too horribly difficult to incorporate some code into PHP itself that would allow functions such as text2wav(), et al. After all, the Festival TTS engine itself, which we'll be using as a foundation (and first floor even), is already written in C++, so hopefully back-porting it to PHP's native C language core won't prove to be too much of a nightmare. Just a thought On 4/27/07, Daniel Brown [EMAIL PROTECTED] wrote: That's what I'm going to try to do, Tedd. I'll post updates throughout the day to include the new mailing list address and such (so we're not flooding the PHP list with stuff about a specific project) and other relevant information. On 4/27/07, tedd [EMAIL PROTECTED] wrote: At 3:53 PM -0400 4/26/07, Daniel Brown wrote: Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! Daniel: But of course, you can count me in -- after all, I started this thread. If you can get the project to the point were I can upload something to my site that can generate a sound file from text, I'll take it from there. The point of all this is to provide a simple way for civilians to have their sites speak. I certainly can do all the documentation and design/write the software that will make it easy for the end user to use -- that's not a problem. The problem is having the text-to-sound routines being autonomous and free from requiring the user to seek assistance from their host for installation. If you can get it to that, this project is doable. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
On 4/27/07, Daniel Brown [EMAIL PROTECTED] wrote: Even beyond the scope of what this small project will be, I was thinking (for once!) that it probably will not be too horribly difficult to incorporate some code into PHP itself that would allow functions such as text2wav(), et al. After all, the Festival TTS engine itself, which we'll be using as a foundation (and first floor even), is already written in C++, so hopefully back-porting it to PHP's native C language core won't prove to be too much of a nightmare. Just a thought Is it 100% C++? that could be a serious problem, AFAIK, unless we are creating a shared library of course, because from that point, the language doesn't matter (not sure about static, but i believe it is the same) And what about other TTS engines? FreeTTS? Festival-lite? Tijnema On 4/27/07, Daniel Brown [EMAIL PROTECTED] wrote: That's what I'm going to try to do, Tedd. I'll post updates throughout the day to include the new mailing list address and such (so we're not flooding the PHP list with stuff about a specific project) and other relevant information. On 4/27/07, tedd [EMAIL PROTECTED] wrote: At 3:53 PM -0400 4/26/07, Daniel Brown wrote: Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! Daniel: But of course, you can count me in -- after all, I started this thread. If you can get the project to the point were I can upload something to my site that can generate a sound file from text, I'll take it from there. The point of all this is to provide a simple way for civilians to have their sites speak. I certainly can do all the documentation and design/write the software that will make it easy for the end user to use -- that's not a problem. The problem is having the text-to-sound routines being autonomous and free from requiring the user to seek assistance from their host for installation. If you can get it to that, this project is doable. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
Okay, anyone interested in joining the project can subscribe to the official mailing list (sounds fancy!) set up for the project at: http://isawit.com/mailman/listinfo/php-vox I'm looking forward to getting into discussions and debates, and getting the project off the ground. On 4/27/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/27/07, Daniel Brown [EMAIL PROTECTED] wrote: Even beyond the scope of what this small project will be, I was thinking (for once!) that it probably will not be too horribly difficult to incorporate some code into PHP itself that would allow functions such as text2wav(), et al. After all, the Festival TTS engine itself, which we'll be using as a foundation (and first floor even), is already written in C++, so hopefully back-porting it to PHP's native C language core won't prove to be too much of a nightmare. Just a thought Is it 100% C++? that could be a serious problem, AFAIK, unless we are creating a shared library of course, because from that point, the language doesn't matter (not sure about static, but i believe it is the same) And what about other TTS engines? FreeTTS? Festival-lite? Tijnema On 4/27/07, Daniel Brown [EMAIL PROTECTED] wrote: That's what I'm going to try to do, Tedd. I'll post updates throughout the day to include the new mailing list address and such (so we're not flooding the PHP list with stuff about a specific project) and other relevant information. On 4/27/07, tedd [EMAIL PROTECTED] wrote: At 3:53 PM -0400 4/26/07, Daniel Brown wrote: Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! Daniel: But of course, you can count me in -- after all, I started this thread. If you can get the project to the point were I can upload something to my site that can generate a sound file from text, I'll take it from there. The point of all this is to provide a simple way for civilians to have their sites speak. I certainly can do all the documentation and design/write the software that will make it easy for the end user to use -- that's not a problem. The problem is having the text-to-sound routines being autonomous and free from requiring the user to seek assistance from their host for installation. If you can get it to that, this project is doable. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
On Thu, April 26, 2007 2:53 pm, Daniel Brown wrote: As a result of an ongoing thread, I am launching a project that should allow users on shared hosting accounts and other restricted Unix-like hosting systems to utilize text-to-speech synthesis, primarily the Festival TTS engine. The goal of the project will be to create a miniature, portable TTS system that a user can upload to their hosting account and use right away, without the need to compile the system or have access to privileged-only libraries. The ultimate aim here is for a user to be able to do the following, from start to finish: 1.) Determine a need for text-to-speech synthesis on the web. 2.) Locate this project. 3.) Download the compiled binaries and PHP source code. 4.) Upload the binaries and code to their existing hosting account. 5.) Set permissions on directories and configure the system as necessary. 6.) Integrate the system into their existing architecture and design. 7.) Use the system. I may set up a small mailing list for the project, as well as a forum to use with development, bugtracking, et cetera. I'm not entirely sure whether I will be hosting the entire project on one of my servers, or if I will use SourceForge for some or all of the hosting. Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! I was thinking more along the lines of a PECL extension... That comes with some implicit things like: hosted at pecl.php.net built into PHP source using 'pecl' webhosts would install it, or not, as they see fit It probably wouldn't really help out the person whose host refused to install this extension in the first place. But it would increase the number of webhosts who just provide it so the average developer wouldn't need to dink around trying to install binaries that might not even be allowed to execute. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
On Fri, April 27, 2007 11:00 am, Daniel Brown wrote: Even beyond the scope of what this small project will be, I was thinking (for once!) that it probably will not be too horribly difficult to incorporate some code into PHP itself that would allow functions such as text2wav(), et al. After all, the Festival TTS engine itself, which we'll be using as a foundation (and first floor even), is already written in C++, so hopefully back-porting it to PHP's native C language core won't prove to be too much of a nightmare. Ah! You're thinking you need to rewrite it in C to make it tie in to PHP. Not so, I think. You simply need to write wrapper functions in C that let PHP talk to the compiled library which can just be straight from its C++ source -- Or *any* language that builds a compiled library. PHP is just a glue that is written in C (not C++) to tie together the various extensions that can be written in ANY language. In theory, you could take a COBOL program and make a PHP extension out of it, without re-writing the dang thing in C. At least, that's how I understand it, having stumbled my way through writing one silly extension myself... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
As a result of an ongoing thread, I am launching a project that should allow users on shared hosting accounts and other restricted Unix-like hosting systems to utilize text-to-speech synthesis, primarily the Festival TTS engine. The goal of the project will be to create a miniature, portable TTS system that a user can upload to their hosting account and use right away, without the need to compile the system or have access to privileged-only libraries. The ultimate aim here is for a user to be able to do the following, from start to finish: 1.) Determine a need for text-to-speech synthesis on the web. 2.) Locate this project. 3.) Download the compiled binaries and PHP source code. 4.) Upload the binaries and code to their existing hosting account. 5.) Set permissions on directories and configure the system as necessary. 6.) Integrate the system into their existing architecture and design. 7.) Use the system. I may set up a small mailing list for the project, as well as a forum to use with development, bugtracking, et cetera. I'm not entirely sure whether I will be hosting the entire project on one of my servers, or if I will use SourceForge for some or all of the hosting. Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
On 4/26/07, Daniel Brown [EMAIL PROTECTED] wrote: As a result of an ongoing thread, I am launching a project that should allow users on shared hosting accounts and other restricted Unix-like hosting systems to utilize text-to-speech synthesis, primarily the Festival TTS engine. The goal of the project will be to create a miniature, portable TTS system that a user can upload to their hosting account and use right away, without the need to compile the system or have access to privileged-only libraries. The ultimate aim here is for a user to be able to do the following, from start to finish: 1.) Determine a need for text-to-speech synthesis on the web. 2.) Locate this project. 3.) Download the compiled binaries and PHP source code. 4.) Upload the binaries and code to their existing hosting account. 5.) Set permissions on directories and configure the system as necessary. 6.) Integrate the system into their existing architecture and design. 7.) Use the system. I may set up a small mailing list for the project, as well as a forum to use with development, bugtracking, et cetera. I'm not entirely sure whether I will be hosting the entire project on one of my servers, or if I will use SourceForge for some or all of the hosting. Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 I'm not sure what it is exactly, i know which thread you are referring to so i guess i will need to read that one, but i don't have time for that, but it looks very interesting this. Just count me as in :) I have server running here at my lan, and i use that for development, so i have root access to it :) It's running apache + PHP + MySQL, all compiled from source, i know how to compile apps etc in linux. I have experience in programming in various languages, which include the required PHP C++. You may think that i'm too young (15) for this project, but please, don't under estimate me. Also, because i'm so young, i can learn things very quick. I understand new things very quickly. I'd like to write the hardest part of the code because i learn most from that :) Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
It's just an open-source project to be done on an at-will, volunteer basis. Once I get the wheels in motion, I'll let you know. For now, I'm still just trying to see if anyone's willing to help out. On 4/26/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/26/07, Daniel Brown [EMAIL PROTECTED] wrote: As a result of an ongoing thread, I am launching a project that should allow users on shared hosting accounts and other restricted Unix-like hosting systems to utilize text-to-speech synthesis, primarily the Festival TTS engine. The goal of the project will be to create a miniature, portable TTS system that a user can upload to their hosting account and use right away, without the need to compile the system or have access to privileged-only libraries. The ultimate aim here is for a user to be able to do the following, from start to finish: 1.) Determine a need for text-to-speech synthesis on the web. 2.) Locate this project. 3.) Download the compiled binaries and PHP source code. 4.) Upload the binaries and code to their existing hosting account. 5.) Set permissions on directories and configure the system as necessary. 6.) Integrate the system into their existing architecture and design. 7.) Use the system. I may set up a small mailing list for the project, as well as a forum to use with development, bugtracking, et cetera. I'm not entirely sure whether I will be hosting the entire project on one of my servers, or if I will use SourceForge for some or all of the hosting. Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 I'm not sure what it is exactly, i know which thread you are referring to so i guess i will need to read that one, but i don't have time for that, but it looks very interesting this. Just count me as in :) I have server running here at my lan, and i use that for development, so i have root access to it :) It's running apache + PHP + MySQL, all compiled from source, i know how to compile apps etc in linux. I have experience in programming in various languages, which include the required PHP C++. You may think that i'm too young (15) for this project, but please, don't under estimate me. Also, because i'm so young, i can learn things very quick. I understand new things very quickly. I'd like to write the hardest part of the code because i learn most from that :) Tijnema -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107
[PHP] Re: Server-Side Speech --- New Project Discussion (PHP/C++ Developers?)
Daniel Brown wrote: As a result of an ongoing thread, I am launching a project that should allow users on shared hosting accounts and other restricted Unix-like hosting systems to utilize text-to-speech synthesis, primarily the Festival TTS engine. The goal of the project will be to create a miniature, portable TTS system that a user can upload to their hosting account and use right away, without the need to compile the system or have access to privileged-only libraries. The ultimate aim here is for a user to be able to do the following, from start to finish: 1.) Determine a need for text-to-speech synthesis on the web. 2.) Locate this project. 3.) Download the compiled binaries and PHP source code. 4.) Upload the binaries and code to their existing hosting account. 5.) Set permissions on directories and configure the system as necessary. 6.) Integrate the system into their existing architecture and design. 7.) Use the system. I may set up a small mailing list for the project, as well as a forum to use with development, bugtracking, et cetera. I'm not entirely sure whether I will be hosting the entire project on one of my servers, or if I will use SourceForge for some or all of the hosting. Anyone who's interested in jumping on, let me know. We may not create a PHP-based TTS system, but we can do the next best thing. Besides, everything has to start somewhere! Two things spring to mind. Are you just really talking about PHP bindings for the festival libraries? Or are you talking about a hosted service that people can uses? e.g. I made a festival server years ago that spoke the name of the song I was playing... it worked over sockets and was pretty reliable. Are you planning to offer similar or just make it easy for people to use festival in PHP by themselves Not really clear what you want to do Col. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C Debugger?
Can anybody recommend a good C debugger fitting the following criteria: FreeBSD 5.3 command-line based (no X) intuitive enough for a guy who hasn't touched C in 20 years to not fail plays well with PHP source C code/macros installable and runnable by non-root user TIA! -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] C Debugger?
Richard Lynch wrote: Can anybody recommend a good C debugger fitting the following criteria: FreeBSD 5.3 command-line based (no X) so far: gdb intuitive enough for a guy who hasn't touched C in 20 years to not fail plays well with PHP source C code/macros er? (coming from a guy that's never more than looked at C) installable and runnable by non-root user don't know if that will be possible. and unless your running php as CLI then you'll hsve to attach apache to the debugger which requires stopping apache and then starting it via the debugger... not something you can usually do as any other than root (as you know :-) TIA! you certainly know how to ask bad-ass questions don't you ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C or C++
Hi All Just a quick question, is PHP written in C or C++. Kind Regards Brent Clark
Re: [PHP] C++ objects
Sreesekhar Palaparthy wrote: Hi, How do i use a class which is implemented in C++ ,to create instances of that class in a PHP file ?? Can i use shared object concept to achieve this ??? Please help me with this problem.Thank You. You need to write a php extension that will wrap the class and its methods. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C++ objects
Hi, How do i use a class which is implemented in C++ ,to create instances of that class in a PHP file ?? Can i use shared object concept to achieve this ??? Please help me with this problem.Thank You.
[PHP] C-DLL in PHP!
Dear users, My apologize, but my knowledge in Internet Programming Technologies is very poor (actually it is realy very very poor). Anyway, I have a request to set up WIN CE Terminal Clients for my software product (Written in C/C++). The point is, I do not want to write the whole application on the CE. What I realy want to do is using a kind of Client / Server architecture to set up this software. For this reason in my thinking the best solution would be to use PHP because there should be an IE on each WIN CE System available. So far so good, before I decide to go along this way I would need some informations and hopefully somebody could answer them. Nr 1: There is a lot of source code already available - it is (unfortunaly) written in a C-Based DLL. Can I have access to those functions from PHP ? Can I integrate this DLL in my PHP Server application? Nr 2 (a realy tricky one): As my application is using scanners (for barcodes, ...) I have to check the validation of the barcode and the type of barcode. Usually for external scanners there is a kind of interface (DLL on the client, or Library) which I can use and attach, where I can switch the configuration of the scanner with each scan - it means I can send the scanner if I expect a barcode TYP1, or barcode TYP2 and how long the input will be, (in best case). One possibility in my thinking could be to write a native CE Program which does that transforming and communication for my WEB Based Client on the CE machine (the CE would only communicate with this program (for scanning)) - could that be working?! and how can I access this program from the PHP Application (Client Side)?! ... I hope anybody out there can here my questions and got some ideas if it is possible - and if it is possible, which way could be chosen. At least I hope somebody can understand my poor english too ;-)) Best regards Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] C#
Hello guys I'm sorry if this message disturbs anyone, I know it is completely off topic. I've been thinking about open a C# mailing list for I hadn't been able to find a good one so far. All I want to know is if there is enough people out there interested in joining such list. I posted this message to this list for a couple of reason: it is the only programming list I am in and since you're php developers I thought many of you may be interested. Again please don't get mad at me for this I don't mean to upset or disturb anyone. Thanks a lot. *** Wilmar Pérez Network Administrator Library System Tel: ++57(4)2105962 University of Antioquia Medellín - Colombia 2002 *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] c++ help
Hello, this is out of topic but I need some URLs of good C/C++ tutorials/exemples sites ... I really think some of you are former C programmers :) If it is , well, I'm lokking for a good manner to get the IPs of my machine, particularly the one used to get on the internet !!! (something like # ifconfig | grep inet | cut -d: -f2| cut -d -f1 ...) thanx ... [when I've finished with my C program, I get back to PHP :-)] (°-Nayco. //\[EMAIL PROTECTED] v_/_http://nayco.free.fr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] C-style parameterized macros
Hello, I have noticed that PHP can be used to define constants but not parametrized macros, a feature is is currently lacking. It is possible to use arrays instead with the only disadvantage that array values can be reassigned. I guess this is not a real concern. Does anyone know if parameterized macros will be implemented in future PHP releases? Thanks, Neil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP, C++, and LAN
Hello, I'm writing some PHP scripts that will only be used over our local Windows NT/2000 network. I've written a directory browser in PHP, but that only sees the server's local directories/files whereas I would also like to be able to see shared network directories. Since the PHP directory functions don't allow network connections (i.e. //harp/graphics/) I decided that a good workaround would be to write a C++ program that listed the directories and files (like dir or ls if you're on Unix, and I can't get dir to work through a PHP exec command), and then I would parse the output in PHP. I've since written two different C++ programs to do this, one using findfirst and findnext, and other using opendir and readdir. They both work by specifying the directory to be listed after the program (i.e. listFiles.exe d:/ or listFiles.exe //harp/graphics/). Both of these programs work just as expected from the command prompt, working with both directories local to the server and those on a shared network drive. However, both of these programs fail using any PHP system command (exec, passthru, system) when specifying a network drive as the arguement, although both work when a server's local directory is given. For some reason it can no longer read the network drive when run through PHP. I've double and triple checked the arguements passed, and they command issused is exactly that given at the command prompt. I've even tried changing the current working directory in the C++ program and to no avail. Does anybody have any insight, or perhaps another route down which to travel? I will happily provide PHP and/or C++ code for what I'm doing. Thank you, Keith Jeffery [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP, C++, and LAN
Why doesn't $dir = opendir(//harp/graphics/); work anyway? Is this an oversite in the Win32 development of PHP? You're able to do this in Perl. Keith Jeffery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I'm writing some PHP scripts that will only be used over our local Windows NT/2000 network. I've written a directory browser in PHP, but that only sees the server's local directories/files whereas I would also like to be able to see shared network directories. Since the PHP directory functions don't allow network connections (i.e. //harp/graphics/) I decided that a good workaround would be to write a C++ program that listed the directories and files (like dir or ls if you're on Unix, and I can't get dir to work through a PHP exec command), and then I would parse the output in PHP. I've since written two different C++ programs to do this, one using findfirst and findnext, and other using opendir and readdir. They both work by specifying the directory to be listed after the program (i.e. listFiles.exe d:/ or listFiles.exe //harp/graphics/). Both of these programs work just as expected from the command prompt, working with both directories local to the server and those on a shared network drive. However, both of these programs fail using any PHP system command (exec, passthru, system) when specifying a network drive as the arguement, although both work when a server's local directory is given. For some reason it can no longer read the network drive when run through PHP. I've double and triple checked the arguements passed, and they command issused is exactly that given at the command prompt. I've even tried changing the current working directory in the C++ program and to no avail. Does anybody have any insight, or perhaps another route down which to travel? I will happily provide PHP and/or C++ code for what I'm doing. Thank you, Keith Jeffery [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] C modules vs PHP module for Apache
Hi, What are benefits and losses of having a PHP module for apache instead of of a C module if PHP modules are without xml and mysql support. Opinions! - Surinder Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] C and PHP
You might want to look in the PHP source code at the README.EXT_SKEL file for info on how to incorporate that stuff. --Joe On Sat, Mar 31, 2001 at 08:49:30PM +0200, Ft Karras wrote: Somebody knows if it is possible to link C and PHP? I have a C library and need to 'include' with PHP code, as it does PERL, is it possible? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] /**\ *Joe Stump - PHP/SQL/HTML Developer * * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net * * "Better to double your money on mediocrity than lose it all on a dream." * \**/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] C and PHP
Somebody knows if it is possible to link C and PHP? I have a C library and need to 'include' with PHP code, as it does PERL, is it possible? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] C and PHP
you can use shared memory functions to ineract between C and PHP. --- Ft Karras [EMAIL PROTECTED] wrote: Somebody knows if it is possible to link C and PHP? I have a C library and need to 'include' with PHP code, as it does PERL, is it possible? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = To find out more about me : http://www.geocities.com/mimodit My bookmarks are available @ http://mukul.free.fr __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] C vs PHP
Hi folks! I am a used C programmer and now my company decide to switch every non performance critical web stuf to php. Since i am just a php beginner i have some questions i could not find anywhere! As you may know, C does not provide any kind of support for garbage collection, every thing you want to be done you have to tell (in C) by yourself. But in PHP i have no ideia about how it manages memory. for instance: In C: str = (char *) malloc(10u); if i decide to alloc new memory for str (just for explanation purposes), and i do: str = (char *) malloc(33u); i would be in trouble, cause the reference for the previous allocated pool of memory would be lost. The approach could be to save the previous references or use realloc. Now, my doubt: How PHP deals with this: $query = "select * from apm where id=3"; /* do my processing */ /* and set query to a new string */ $query = "Query done without errors"; What will happen with the previous allocated memory for $query? I don't like my application eating memory without releasing it after they are no need any more. May some one explain how to prevent such scenarios ? Thanks a lot for your time and cooperation. best regrads. Gustavo Rios -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] C vs PHP
As you may know, C does not provide any kind of support for garbage collection, every thing you want to be done you have to tell (in C) by yourself. But in PHP i have no ideia about how it manages memory. for instance: You dont need to worry about mem mangement as PHP does it all for you. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] C vs PHP
http://www.zend.com/zend/art/under-php4-hood.php and http://www.zend.com/zend/art/ref-count.php are articles that go into a bit more depth on this topic. Maybe not as detailed as you'd like, but they explain a bit more about how/why "PHP does it for you" is a valid reply to your question. Gustavo Vieira Goncalves Coelho Rios wrote: Hi folks! I am a used C programmer and now my company decide to switch every non performance critical web stuf to php. Since i am just a php beginner i have some questions i could not find anywhere! As you may know, C does not provide any kind of support for garbage collection, every thing you want to be done you have to tell (in C) by yourself. But in PHP i have no ideia about how it manages memory. for instance: In C: str = (char *) malloc(10u); if i decide to alloc new memory for str (just for explanation purposes), and i do: str = (char *) malloc(33u); i would be in trouble, cause the reference for the previous allocated pool of memory would be lost. The approach could be to save the previous references or use realloc. Now, my doubt: How PHP deals with this: $query = "select * from apm where id=3"; /* do my processing */ /* and set query to a new string */ $query = "Query done without errors"; What will happen with the previous allocated memory for $query? I don't like my application eating memory without releasing it after they are no need any more. May some one explain how to prevent such scenarios ? Thanks a lot for your time and cooperation. best regrads. Gustavo Rios -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] C++ integration with PHP
Yes, system() waits for the called program to terminate before PHP execution continues, so that should work. However, you may also want to look into building a custom module for PHP so you can call your C functions directly from PHP. Info on the Zend API, building PHP modules in C, etc., is available at Zend.com. --Toby Zhu George-CZZ010 wrote: Does anyone know how to integrate C++ and PHP if there are some data changes between PHP program and C++ program? What I can think about is: in PHP, put the data in a file, and use "system" call to activate the c++ program. After that, let the c++ program to read the data file, and output the result into another file, and let the PHP to read the result file. But there is one question: will php wait until C++ program finish if I use "system" function from PHP? Is there any better way to do the integration? Thanks, G.Z. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]