Javascript To Php - A Few Questions

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Javascript To Php - A Few Questions

Amezis
I am rewriting a Javascript into PHP, but I have two questions:

How can I write these functions in PHP?
Math.floor
Math.ceil

I'm sure the answer is obvious, but I really can't find it... laugh.gif

Reply

Amezis
NVM, I'm stupid. These functions are floor() and ceil() in PHP.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. "javascript to php" - 581.73 hr back. (1)
Similar Topics

Keywords : javascript php questions

  1. Can I Make Dynamic Menu In Php - is it posible to make dynamic menu in php without javascript (7)
    As there are many java script by which we can have event based interaction like,message on mouse
    over etc,that we can create dynamic menu in javascripts to make navigation bar ,but is it possible
    in php to have this acomplished without javascripts,i am new to php,is it possible?. Thanks...
  2. Wap Forum - several questions on WAP forums (9)
    /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> Right i want to set up a
    wap forum for rap battling. I think i need to use php, although i might need wml not sure. so
    questions: 1) WML or PHP? 2) Can i get a forum/message board script? 3) Where can i get it? Thanks
    in advance Not making helpful thread topics and titles results in warnings, or in extreme cases, a
    ban. Don't fall into the crack. ...
  3. Questions?! - PHP (4)
  4. Php Questions?! - From: alex1985 (19)
    Listen, as I'm novice in PHP, I will ask certain questions in this topic hoping on your
    contribution. $dbhost='.....'; //The Database Information//
    $dbhost='localhost'; $dbname='alex1985_test';
    $dbusername='alex1985_admin'; $dbuserpass='0505009127'; //Creating
    Connection To The Database// mysql_connect ($dbhost, $dbusername, $dbuserpass);
    //Select The Certain Database// mysql_select_db ($dbname) or die ('Can Not Select
    Database'); //Start The Session// //Always Must...
  5. Building A Chat Using Javascript, Php, And Ajax - (2)
    I have heard that you can build a chat for a website that would display the username, etc, using
    PHP, Javascript, and AJAX. So Im wondering how this can be done and if there are any tutorials on
    how to do it, or tutorials on AJAX. Thank you....
  6. Gd Functions - Questions (2)
    Hi all I want begin a new project , my new project is Photo blog ( weblog and image album ) in one
    script for example you can post many image in one post at once case . so its very good and very easy
    but we have some problems . if you can plz help me to fix this problems for example : we need
    change image size for page speed ( we dont want show 16 image in one page ) * we need GD functions
    to change image size to smaller and then show smaller image at page if you know source or tutorial
    about change image size plz post here . thankx we know we can change image size (w...
  7. Javascript And Php - (6)
    i am designing a poll in which i use javascript, and i need to pass the selected answer in my poll
    to php variables so how can i do that, any help will be appricated...
  8. Php Menus Without Javascript - Has PHP possibility to do it without JS (7)
    I have many PHP Books, PHP Bible among others, but no clear description how to build menus (dynamic)
    Javascript like. Is PHP enough strong to do this? I also have Javascript Bible, many possibilities
    are usable within PHP pages. Anybody has experience in creating dynamic menus in PHP? ...
  9. 2 Questions - (7)
    i have 2 questions about PHP...please don't answer like "use google"...or something...because i
    tried and didn't find anything..so 1. example..i have a varible called $var and it
    contains 50 characters..so how can i write only part of them (1,2,3,20)? 2. example like the one
    before... i have a varible called $var with 50 characters..how can i write the first /second
    /third.. charachter from the $var tnx;)...
  10. Whould I Use Php To Make A Game Like The Army System? - Or javascript? (4)
    I want to make a game similar to the army system or on Omega Gateway, like a text game. Would I use
    php or javascript? I know very little coding, and I plan on learning more before I start doing
    anything. I just want to know what to 'study...'...
  11. A Lot Of Php Questions Part 2 - (8)
    Ok, here's another. After looking at many PHP codes, I will call it "PHP Shortcuts". Do you
    still know any other "PHP Shortcuts"? Example, to "print" the visitor's IP address, I use CODE
    <html><head></head><body><?php print
    $_SERVER['REMOTE_ADDR']; ?></body></html> After seeing
    someone's codes, I saw an easy way CODE
    <?=$_SERVER['REMOTE_ADDR'];?> So, you know any more of that? And for
    MySQL, I know there are many ways to retrieve the results. ...
  12. A Lot Of Php Questions - please do help me (3)
    First , i'm planning to use preg_match, ereg_match, etc.. I think "preg" and "ereg" uses
    something like in the Apache's RewriteModule the " " something like that... Do you know a
    tutorial that will easily teach me on how to do that? Second , I'm planning to use Apache
    Rewrite. But I really don't know how to use. Do you know a tutorial that will easily teach me on
    how to do that? Third , while openning some php scripts, I didn't get the meaning of example:
    CODE <?php $sample1->//some string here ?> What does it mean? I di...
  13. Html To Php Questions - (3)
    Hi, I would like to know if it is safe to change HTML files to PHP files by just changing the
    dotHTML extension to dotPHP?? I tried it to a single html file because i used a php code of blog,
    and it worked. I'm using Internet Explore version 6 and it's working fine. I would like to
    know if the PHp files would work for other browsers after changing dotHTML to dotPHP extension.
    Thanks...



Looking for javascript, php, questions

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for javascript, php, questions

*MORE FROM TRAP17.COM*
advertisement



Javascript To Php - A Few Questions



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE