Find Jobs
Hire Freelancers

Create a PHP normalizer in C

$30-250 USD

Cerrado
Publicado hace casi 7 años

$30-250 USD

Pagado a la entrega
I need to make a C program based on Flex/Bison with two funcionalities: 1. executed as a standalone command: pnorm <path-to-php/html> 2. Provide a function to other C programs... by example: int pnorm(char *orig_filename, char *dest_filename) { ....... } > In this case, the output is to dest_filename, not stdout. The program should read an HTML/PHP file and print to stdout the result. The result is normalized version of the PHP code. The process should be done in 2 steps: STEP 1: ====== - convert $variable= base64_decode(...) in $variable="<printable characters>" - convert eval(base64_decode(...) in eval("<php code> (printable characters) "); - convert eval(mutltiple_functions("...")) in eval("<php code> (printable)); Also consider the "string1" . "string2" posibility as the source string Where multiple_functions are all possible combinations of: - base64_decode - str_rot13 - gzinflate - gzuncompress - stripslashes *1 please note that the resulting PHP code is not to be executed, it is just to be analyzed. It can result with syntactic errors. *2 Consider that there could be necessary to recursivelly do this job. It means that the base64_decode can result as a new encoded string with another combination of these functions. STEP 2 ====== Once all strings are replaced with the decoded version, the software should make the next changes to the code: 1. Take off all the comments (Multi line comments and single line comments) 2. Convert all text to lowercase (statements, strings and every text). Remember that PHP source code is UTF-8 3. Convert all strings delimitators to " (double quote) 4. Convert all strings like "ab" . "cd" to "abcd" 5. Convert all strings like "ab" .chr(65) . "cd" to "abAcd" (only with printable characters) 6. convert "ab" . chr(64+1) ."cd" to "abAcd" (for basic operations: +,-,*,^) 7. Convert all strings like "ab\065" and "ab\x41" to "abA" (only with printable characters) 8. Replace all CR,LF,TAB with a single space 9. Remove all repeated spaces. Example: echo "hello"; -> to echo "hello" 10 Remove reduntant spaces after and before parenthesis, braces and comparison ops: if ( $a == 2 ) { echo "2"; } --> to --> if ($a==2) {echo "2";} Be careful with: 1. Segmentation faults 2. buffer overrun 3. memory management Please try not to use but the standard libraries. (accepted are flex,bison,pcre and the standard libraries) Also pleaseprovide the makefile. The HTML code (imagine there is PHP embeded in an HTML file) should be lowered case,removed the CR,LF,TAB, removed the comments. Javascript should be treated as HTML code. Please make me any question if you need. Please respect the price you give me. Think well before offer.
ID del proyecto: 14082585

Información sobre el proyecto

14 propuestas
Proyecto remoto
Activo hace 7 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
14 freelancers están ofertando un promedio de $185 USD por este trabajo
Avatar del usuario
Hello I'm interesting your project very well I'm a Good C/C++, PHP, Java, Math, Algorithm expert. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks
$180 USD en 3 días
4,9 (956 comentarios)
9,4
9,4
Avatar del usuario
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$150 USD en 2 días
4,9 (133 comentarios)
6,9
6,9
Avatar del usuario
Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of experience of 5 years. b) I work very hard (16+ hours a day and 7 days a week) and also very fast so... it will be done very soon than most of the other providers c) And most important part is my policy: "I will give you (to my client) life time support (as long as you keep relation with me). And fix any bugs/problem without any cost. So, don't ever worry about me” Please sir, leave a reply ASAP, as I am waiting for your kind reply
$250 USD en 3 días
4,9 (80 comentarios)
6,6
6,6
Avatar del usuario
Hi, I am a serious developer who aims to provide high quality services. If you contact me, we can discuss more things detail and will be achieved with each other's purpose. Good luck for your business…
$155 USD en 2 días
4,9 (23 comentarios)
5,2
5,2
Avatar del usuario
Not sure if flex & co. stuff are appropriate for PHP. I don't know them well enough to make them do the trick, so I'll need custom state machine as lexer. I need some time to understand how to use it with bison. Long strings might require memory stream, rope, cord or something alike to handle them.
$228 USD en 10 días
5,0 (14 comentarios)
4,7
4,7
Avatar del usuario
Hey There !! We have Senn the job post of your And I am very interested to start work with you I am having major 13+ years experience in asp.net,C# mssql,html,html5, .net, mvc, MVC4,MVC5,php, MySQL,css,css3,laravel, yii, wordpress, codeigniter and also with its related frame work. I have developed various application in ajax,.net-framework,C#,css ,html5, Javascript, jquery, MVC4,MVC5,MsSql using Graphicdesign, php, laravel,yii,MySQL and deployed over the internet,If you want then i will show you the robust applications which i have developed so far. Some of the software projects and websites development that i have undertaken and successfully delivered include:( Customized ERP system for Schools and Universities, Management System for Tour and Travels industry,Real states,ticket booking software,complete ecommerce solution, Various MLM portals,bitcoin webiste Web Application for Media Company,Booking Software,Various types of CRM/ERP). Please feel free to contact us for any further discussion. Hoping for a fruitful business and chance to serve you. Regards Dunitech
$155 USD en 3 días
5,0 (6 comentarios)
4,4
4,4
Avatar del usuario
Hi, I read through your project description very well and I am interested in doing this project. About me, I am a professional software developer with more than 5 years experience in making applications for small and medium sized businesses. I currently run a small startup that deals with web development, mobile apps and desktop software. I am very familiar with parsing html files. I did a project that parsed html file and replaced all the remote urls with local urls so that the file could be accessed locally without any external links. With this knowledge, I believe that I can be able to handle html files in this project. Please provide more info about html files, what should be redirected to the dest_filename i.e. <p><h12..>, image alt etc. About php files, I've understood how the files will be handled from the description given. Most of the challenges in this project will come up while testing different files to see if the program handles them well. That's why I recommend prototyping development approach. Prototypes to be developed then tested to see if they work well If awarded this project, I will do it in 2 milestones, php part and html part. which will be tested separately before joining them together to form the final program. The project time span is 10 days max and 3 more days for bug corrections. The project price is $230 but it is negotiable and will vary according to how the project will turn out to be. If complex the price will increase and vice versa. THANKS
$230 USD en 10 días
5,0 (3 comentarios)
4,3
4,3
Avatar del usuario
Hello there, Deepak this side from India. Thank you for posting the project, I have studied your requirements... I Have 8+ years of exp in the PHP and I Have a great portfolio as well. I am a team player and I would love to work with you for a long term. Please PM me so that we can discuss further, Regards:-Deepak
$155 USD en 3 días
3,9 (9 comentarios)
4,2
4,2
Avatar del usuario
Hi, we are a 1000 + employee firm. Charging 6$ an hour. Can start any technology immediately. Direct access to developers via Skype, G talk and hotline – 24/7 availability for all 1000+ resource. We can bet you that no company in freelance has the infrastructure, man power of 1000+ Permanent in-house employees that we have and the price of 6$ an hour along with the latest standards of delivery. We happened to see your project posted on freelancer. We would like to bid on the project. If you are interested on our company profiles I can assign the desired technical team to coordinate with you. Please find out details below. This is Sowmya- Business manager from Xlokk Soft Solutions formally known as Open wire Solutions Inc., We are a Software technology Outsourcing consulting company formed in 2009 and its group founded in 1981, which provides software and manufacturing services across the globe from textiles to top car manufacturing firms in India and US. We are associated with top fortunes companies like Intel, Boeing, Ford, Hyundai, Foxconn, Honda Jets USA,Wells Forgo, CarMax US, Fannie mae, Penn national insurance. We are headquartered in SF, California. We have a strong development team of 1000+ Employees in India, US and Europe. We are new to freelancer please help us to grow. Thanks
$155 USD en 3 días
4,8 (6 comentarios)
2,3
2,3
Avatar del usuario
Hey We are a team of Technical Developers and have got expertise in such stuff. Ping me if you are looking for a quick resolution
$188 USD en 3 días
5,0 (4 comentarios)
1,9
1,9

Sobre este cliente

Bandera de CHILE
Talca, Chile
5,0
3
Forma de pago verificada
Miembro desde ene 15, 2017

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.