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?

ADVERTISEMENT

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

Jul 30, 2010

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

((round(time()/(60*15))*60*15)+(30*60))*1000

This gives the result:

1.28E+12

Whereas, what I need is:

"1280495700000"

in order to pass to the api

View 2 Replies View Related

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

Sep 30, 2010

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

[code]...

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 View Related

How To Convert Asp To Php

Apr 18, 2003

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 View Related

How To Convert ASP To PHP?

May 4, 2000

Any idea how fastly to convert

How to convert ASP to PHP?

View 2 Replies View Related

How To Convert BMP To Jpg?

Feb 25, 2006

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 View Related

ASP Convert To PHP

Jul 24, 2002

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 View Related

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

Jul 17, 2005

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 View Related

Pls Convert

Jul 16, 2005

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
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 -->
</SCRIPT>
-----------------------------------------------------------------------
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 View Related

Convert JS To PHP

Mar 6, 2006

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

View 10 Replies View Related

Convert PDF's

Oct 28, 2005

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 View Related

To Convert Pdf To Txt

Mar 10, 2005

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 View Related

Convert PHP To A PDF

Jul 28, 2007

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 View Related

Convert To Pdf

Nov 29, 2006

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 View Related

Convert

Nov 1, 2005

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 View Related

Convert .csv To .sql

Jun 17, 2004

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 View Related

Any Way To Convert Utf-8 ?

Jul 17, 2005

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 View Related

Convert Bz2

Oct 31, 2006

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 View Related

Convert 1 To 01

Mar 21, 2007

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:

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

View 7 Replies View Related

Convert To PHP

May 27, 2006

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 View Related

Convert ICO To PNG

Sep 15, 2007

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:

<snip>

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

<snip>

View 1 Replies View Related

How To Convert This XML To KML

May 24, 2010

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?

<messageList>
<totalCount>1</totalCount>
−

[code]...

View 1 Replies View Related

Convert A Rtf To A Jpg?

Mar 25, 2009

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.

**Update**

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 View Related

Convert VML To PDF?

Mar 4, 2011

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

View 1 Replies View Related

How To Convert To UTC

Jul 14, 2010

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 View Related

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

Aug 3, 2009

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

[code]...

The above strings is UTF 16 HEX i think.

View 2 Replies View Related

Convert Mpg To Flv Using It

Apr 9, 2010

i m having a page in which users may upload their own videos. And i need to convert it into flv file to run the uploaded file in player.. is there any sources available .. i tried ffmpeg., it works in localhost fine but when i upload it into my server no conversion occurs...

View 6 Replies View Related

Convert FLV To MP4 Or 3GP?

Jan 11, 2010

Can I convert videos with PHP or do I have to use some library?

View 1 Replies View Related

How To Convert To Pdf

Aug 12, 2010

I want the source codew for converting any one format to pdf.

View 1 Replies View Related

Convert Dwg To Pdf

Apr 28, 2011

Can i convert dwg file to pdf using php? OR Is there any PHP API or web service that provides service to convert dwg file to pdf file?

View 4 Replies View Related

Convert Txt Or Doc To Pdf ?

Feb 27, 2010

have anyone come across a php code that convert text or doc into pdf ?it has to follow the same format as the original txt or doc file meaning the line feed as well as new paragraph...

View 4 Replies View Related

Convert 08:00:00 To 08:30 PM?

Oct 6, 2009

I want to exclude the second and instead i will use the Am/Pm. I did exclude the seconds but I can't include the AM/Pm function. I used this code Quote ... <?php echo ('A'); ?> but this is static.. how could I used this, I have no field in the table for Am/PM

View 3 Replies View Related

How To Convert .pdf To .png

Sep 30, 2010

Using ImageMagick I can convert any pdf document into images by using command "convert":

convert abc.pdf abc.png

This will convert all pdf pages to png images. How can I implement this using PHP or Java so that I can provide this functionality on my website to enable users to read books online as Google Books does.

View 4 Replies View Related

Convert From CST To PST?

Jun 12, 2010

How to convert this date 2010-05-25 04:55:01 CST (America/Chicago) to PST (America/Los_Angeles) timezone?

View 1 Replies View Related

Convert Db Var To Int?

Aug 12, 2009

I am extracting a number form db. After accessing the value, I want to set it to a var.

But the catch here is that this var only accepts int type. If I assign an int as below:

PHP Code:

$somevar = 2009; 

This turns out to be OK.

But when I assign the number (not int) extracted from db, as follows, it does not work:

PHP Code:

$somevar = $table['somefield']; 

I tried using following methods to have $somevar converted to int type, but there were no promising results:

PHP Code:

//1$somevar = (int)$table['somefield'];//2$somevar = intval($table['somefield']);//2a - arg 2 is optional$somevar = intval($table['somefield'],10); 
$somevar's supposed to contain expiration time for cookie

View 3 Replies View Related

Convert GMT To IST?

Sep 14, 2009

want to convert GMT or UTC to IST.

View 1 Replies View Related

Convert Hh:mm PM To Hh:mm:ss

May 8, 2007

Does anyone know of a function or code that will convert hh:mm PM to hh:mm:ss?

I tried the following but it does not work...

$date = "2007-05-08"
$time = "01:30 PM"

$datetime = date("y:m:d h:i:s", strtotime($date . " " . $time)

This yelds $datetime = "2007-05-08 01:30:00" which the database interprets as 1:30 AM

View 3 Replies View Related

Convert To FLV

Apr 21, 2007

Is it possible to allow a person to upload a video and have the server or php convert the video file to a FLV file?

View 1 Replies View Related

Convert Tif To Jpg

Oct 29, 2007

I get a tif image in an xml document that I need to then display in an email.  if it were in jpg I could do this ok but I cannot seem to convert the image without saving it to a folder then converting.  Because of the automation on this it is not a practicle solution.

Do you know how to take the raw image and convert it all in the same php function before inserting it into the email I will send.

View 1 Replies View Related

Convert Smiles

Jul 26, 2001

Hello,

I'm working on a forum script and I came across something weird. While working on a func to convert text smilies to images i found that some funcs did this with alot of code while i was able to do it with alittle, hence i've come to the conclusion that my way is probably wrong. Let me know what you all think and if this function should work.

View 4 Replies View Related

Convert .php Into .html

Oct 10, 2002

I have a pre-made php class that converts html into pdf documents. It can also convert php pages into pdf but it converts it before the php page executes. So in the resulting pdf you get all the php code. I was wondering is there a way i can let the php page execute and then let the pdf class convert it?

I know it will be hard to say that without looking at the php class. I was thinking would there be a way to execute the the php page, and have it made into an html page? So this way i can run the php class on the html page.

View 3 Replies View Related

ö Convert To &ouml;

Oct 31, 2003

i want convert special character like ö,ä,ü or é, ã or ê to a "special" character.

this character are from a textfield from the user. i want to safe it in a db, and i want that these character are shown exacly the same indepence if on a mac, windows or in america or europe.

View 3 Replies View Related

Convert PDF To HTML

Sep 28, 2003

I found loads of scripts to convert html and other formats to PDF but is there an easy way to do it vice versa?

View 6 Replies View Related

Convert Date Into Day

May 13, 2005

I posted a question about session variables and appended variable value to a url and I figured it. Thanks for those who helped.

Now, I have question about converting date into actual name of day. For example, converting 2005-05-12 to thursday. Is there a way to do that?

View 1 Replies View Related

Convert A PHP File To PDF.

Aug 23, 2006

I have trying to convert a PHP file to PDF.
Search the net , found HTML_toPDF open source tools , which convert
html file to PDF.
Tried to product , it work seamless without any error.

Howeve , for my case , when user click the search button to 'search
items' , the data are display in the listall.php. On listall.php ,
there are 'print' button which print the listall.php.

Because the HTML_toPDF only convert html to PDF, i need to find a way
how to convert the listall.php to listall.html dynamically before i
called the HTML_toPDF functions.

View 1 Replies View Related

ADVERTISEMENT