Completed

php / Javascript code adjusting

This project was successfully completed by sszelag for $35 USD in 3 days.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$30 - $250 USD
Completed In
3 days
Total Bids
9
Project Description

I need a script that runs on php and javascript.

The script should output javascript to the webpage, but it should work in php.

For example

If I have this code (but replace [ with <):


[script] [url removed, login to view]("Hello!"); [/script]


I need a script written in php that will turn that code above to this (this is just an example it will not work, this is the project to make it work):


[script type="text/javascript"]

//here would go code to make the code below execute/appear on the page.

"", " ", "d", "o", "c", "u", "m", "e", "n", "t", ".", "w", "r", "i", "t", "e", "(", """, "H", "e", "l", "l", "o", "!", ""

[/script]


So there should be php code looking like this (but real php code, this is just an example guide)


[? php

$code = "[script] [url removed, login to view]("Hello!"); [/script]"

output_code = "[script type="text/javascript"] $code [/script]"

?]


Then it should make this appear on the webpage when you view source:


[script type="text/javascript"]

//here would go code to make the code below execute on the page.

"", " ", "d", "o", "c", "u", "m", "e", "n", "t", ".", "w", "r", "i", "t", "e", "(", """, "H", "e", "l", "l", "o", "!", ""

[/script]


If you have any other methods of doing this other than php or javascript then this is also fine, as long as the result is the same.

Please quote Jelly in your reply to show you have read this project fully.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online