Convert PHP To CGI?

Aug 11, 2002

I am learning PHP and will make my scripts with PHP but my webserver does not support PHP but instead supports CGI. Is there a way to convert a PHP script to CGI without having to know both languages?

View 7 Replies


Math - Convert Floating Point To Long (convert To String To Pass To A Xml Function)?

PHP converts a large number to floating point which I need in "long" format to pass to a soap xml api.


This gives the result:


Whereas, what I need is:


in order to pass to the api

View 2 Replies

Convert Fraction To Percent And Break Up The Fraction And Convert It To A Decimal?

In our Learning Management System someone in their infinite wisdom decided to keep non-standardized grades.As a result we have a table similar to this:

Assignment 1-100
Assignment 2-80
Assignment 3-10/20


As you can see we have a mixture of percentages and fractions.What i'd like to do is check if the grade is a fraction i.e.10/20 and if so convert it out to a percentage.Are there any built in php functions for either action?I was thinking of doing a strpos('/'/, $grade); to check if it was a fraction but is there a cleaner way?Additionally to break up the fraction and convert it to a decimal my initial thought was to explode the fraction grade on a/and do(array[1]* 100)/array[2].

View 5 Replies

How To Convert Asp To Php

I have a database system coded in asp using dreamweaver mx. Can I convert the code to php by using dreamweaver mx ? If can, please tell me how.

Currently I'm using PWS on Windows ME with MySQL as a database.

View 3 Replies

How To Convert ASP To PHP?

Any idea how fastly to convert

How to convert ASP to PHP?

View 2 Replies

How To Convert BMP To Jpg?

I need help for convert bmp image to jpg file. So anyone can help me to
convert bmp image to jpg image by php's GD library or any ways by php.
Please help me as soon as possible. Or you can help me how to resized
bmp file in different dimession other then its actual.

I need image resize functionality for resize it on the while someone
upload image. So Please help me as soon as possible. Coz I am stuck
over here in my last stage project.

View 1 Replies

ASP Convert To PHP

I have to convert a program currently built in ASP to work under PHP. The following code is an ASP function. Using PHP could somone show me how to build basically the same function in PHP. Basically I understand I will need a class and objects, but my knowledge of the class and objects is limited, I think if I could see this in a php format I would be able to finish the rest of the project on my own. PHP Code:

View 4 Replies

HOW TO: Convert A Gif To A Jpg In Php?

I have only used the GD lib a little.
Is there a way to convert a file from a .gif to a .jpeg file?

View 9 Replies

Pls Convert


<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
var password=document.login.password.value;
if (username=="edna" && password=="guytoi")
{window.location="viewfood.html"; done==1; }
if (username=="tony" && password=="food") {
window.location="editfood.html"; done=1; }
if (username=="arlene" && password=="manitoulin") {
window.location="viewfood.html"; done=1; }
if (done==0) { window.location="failed.html"; }
// End -->
Pls tell me how or if i need to convert the above to php. Eventually i
would like to open a file with the usernames/passwords--put data in an
array(s) then valadate them but thats down the road.

View 1 Replies

Convert JS To PHP

i want to convert a Java Script into PHP using Mysql database. can any one tell me the way?

View 10 Replies

Convert PDF's

I need to convert a lot of PDF's into JPG's (or other image format) so I can make thumbnails of the pages. Currently I'm making each by hand in Photoshop, so is there a way to automate this in PHP?

View 2 Replies

To Convert Pdf To Txt

I can generate the pdf and doc file from txt file with the help of php manual..

But i can't convert the pdf to txt and doc to txt file.. Is it possible?

View 5 Replies

Convert PHP To A PDF

I have the following PHP file:

MOD EDIT: External link removed.

I would like to dynamically convert it to a PDF file and download it to the user's computer.

I'm looking for a full-featured PHP class that would do that for me. Can't really use the php pdf because it is too complex and I have to build the file myself.

Has anyone used anything that has worked AND can provide some assistance on how to set it up.

What I want is a link: CLICK HERE to download a PDF of the file...

That sort of this. When the user click, the PDF downloads. Simple?

View 6 Replies

Convert To Pdf

I wanted to allow the user to convert a page into a pdf for them to download. Just wondering if anyone could point me in the right direction on how to convert an html page into a pdf? Not sure how to go about it.

View 2 Replies


i should get an jpg or pdf or any bitmap file from a swf file. i mean: i want to convert a swf file in a bitmap file.... any ideas?

View 1 Replies

Convert .csv To .sql

I have several databases that need to be uploaded to mysql. The data is currently in .csv format. I need a tool convert this csv file into a mysql dump .sql file. (I will then upload it from MySQLAdmin). Does anyone know of an easy way of doing this?

View 1 Replies

Any Way To Convert Utf-8 ?

I have created a contact form that grabs the data from a web pages encoded in utf-8, but then when the e-mail arrives in my mail box, latin characters are all messed up. I guess I have to convert the contact form data to something else.

View 1 Replies

Convert Bz2

I have a sql backup that has been exported as a bz2 and apparently I can't import that file type with my webhost. So I opened it up and tried manually but the structure is different than a normal sql backup and wouldn't import. Is there anyway to convert the data back to a format I can use? Could be a version problem too, the exported was on 5 but mine is 4.

View 3 Replies

Convert 1 To 01

I know theres something that does this but I can't remember what its called :S I have this code that reads out numbers i.e. 1,2,3,4 etc. But I want it to read out as 01,02,03,04 etc. PHP Code:

for($i = 1; $i < 32; $i++) {
echo '<option value="'.$i.'">'.$i.'</option>'

View 7 Replies

Convert To PHP

we must know how to get the IP Address of the Visitor. To do that, our code in ASP will be:

strIP = Request.ServerVariables("HTTP_REMOTE_ADDR")

View 5 Replies

Convert ICO To PNG

I'm looking for a PHP script (or anything server-side) that can convert ICO images (favicons) to either PNG or GIF. I tried this PHP class, but it tends to generate a lot of noise in PNGs for some favicons:


Here's a web-based utility that does a great job:


View 1 Replies

How To Convert This XML To KML

I am a little new to this, but I need to convert the below XML to KML format so I can feed it into Google maps. Can anyone help with this?



View 1 Replies

Convert A Rtf To A Jpg?

I have an RTF file that I need to display to a user. I know that I need to convert it if I want to display it in the browser. I would like to be able to convert it to JPG so that I can take advantage of other code that I am using that uses ImageMagick to convert JPG to PDF. ImageMagick will convert a PDF to a JPG, but not an RTF :( I am using PHP on a windows box.


I have figured out how to convert the RTF to PDF and then I use ImageMagick to convert it to JPG for display. I don't like the fact that I have to go to PDF first, but it works so I am going to stick with it.

View 3 Replies

Convert VML To PDF?

Is there a way to convert a VML (SVG on IE browsers) formats to PDF format with PHP or JavaScript.

View 1 Replies

How To Convert To UTC

I'm getting dates & times from various sources (e.g. file's date/time from FTP server, email's date/tiem received, etc.) and need to store them all as UTC (so they all have a common reference). How do I do this? What pieces of information do I need in order to properly do the conversion. This is for a PHP web application. So, I can get my server's time zone. I'm not sure what to do next. Here are some sample inputs:

Mon, 28 Jun 2010 12:39:52 +1200
2010-06-25 15:33:00

View 2 Replies

Utf 8 - Convert UTF-16 Hex To UTF-8?

I have the following output from strace and i want to convert it to UTF-8 using PHP:


The above strings is UTF 16 HEX i think.

View 2 Replies

Copyrights 2005-15, All rights reserved