dvayne
Nov 28 2007, 09:47 AM
| | Create a PHP program with the following requirements Create a program that does the following: creates a variable called “test” (remember the dollar sign) stores the number 35 to test and prints the result adds 10.0000 to test and prints the result subtracts 5.123123 from test and prints it out stores the character string “happy to be here” to test and prints adds 10.0000 to the variable test (try to guess what will happen)
whats the solution to this problem? any help would be appreciated. |
Reply
gogoily
Dec 6 2007, 05:11 AM
CODE <?php $test = 35; Print $test; $test += 10.0000; Print $test; $test -= 5.123123; Print $test; $test = "happy to be here"; Print $test; $test += 10.0000; ?>
Reply
Similar Topics
Keywords : adding, string, integer,
- Adding Flash Music Player To Home/any Page
How-to (put any song you want!!!) (4)
Unexpected T_string In User.php [resolved]
(5) Ok so i'm working on a site for my chruch, and i seem to be having a little bit of trouble with
the user.php file i keep getting the following error: CODE Parse error: syntax error,
unexpected T_STRING in /home/darkzone/public_html/test/user.php on line 195 and i was wondering
if some one could help me with the script. session_start(); ob_start(); //Include the
configurations include('config.php'); //Define a few variables $x = $_GET ;
$u = $_GET ; class register { function displayform($title) { echo('....
Adding Jigsaw Puzzle Effect With Photoshop
(1) Should the occasion arise that you want to add a puzzle effect to a picture, there is a simple
method built into Photoshop. Like a lot of other abilities, the hard part is finding it. Let me walk
you through how I do it. There are a variety of other ways and I would love to hear your way also.
So I have this picture of my cat that I want to look like a puzzle: I tune it up how I like it
and size it, etc. Then click on Filter/Texture/Texturizer Once you click that a box appears:
On the right hand panel you see Ok, Cancel. Texturizer then Brick or Sandston....
Adding Signature Stamp In Photoshop
(2) I take pictures for my wife's eBay auctions. She likes her name inserted on the photos. While
there are many ways to do this, my solution is quick, easy and flexible. Open a new file with a
transparent background. Size isn't important. Select the text tool and choose your font. I used
a script font. Type the signature. Now click on Edit/define brush preset A box will pop up
to name the brush. Open the picture you want to sign. Select the brush tool. From the drop
down menu select the brush. It will be the last one. Select the color on the....
Compuhost / Adding Extra Domain Help
(2) Umm.. trap17 is down again. well at least my site is. which is kinda bugging me eh. 2 questions XD
one: on my website, its 2 websites in one pretty much http://have-heart.net &
http://have-heart.net/chantelle is there anyway to get a new domain NAME for
http://have-heart.net/chantelle without it only being a redirect? like. i would like all my files
under the Chantelle folder to be so that my files would be chantelle.org/1.php for example.
without having to set up a completely new website? ~if its not posible, how would having 2
domains in trap 17 work wou....
Php Ftp Upload Form
Adding User Directory to PHP Upload Form - Help (0) Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
upload things into the main directory, only sub-directories, is that possible with this coding that
I have: //uses $_FILES global array //see manual for older PHP version info //This
function will be used to get the extension from the filename function get_extension($fi....
Problems Adding An Email Account
(3) Hello, I am trying to add an email account, but I'm having problems. When I go into my Cpanel
and attempt to add an email account I get a message similar to "the account you are trying to
create, You have exceeded the maximum number of email accounts , with the password password
has been created successfully" And, of course, no email account is created. I know I am not
approaching any of my limits (Especially not on email accounts, since it's unlimited) so I'm
getting a bit confused. It may also be worth knowing that I have added email accounts in ....
Adding Drop Down Menus
(4) I have looked around many IPB support sites, but I didn't find a suitable drop-down menu add-on
that I liked or worked correctly. I have noticed the drop down menus on this forum on other forums,
and I was wondering if this was custom to this site or there was a tutorial somewhere which shows
how to make one similar to this? Or if anything, I basic IPB drop down menu tutorial/add on.
Thanks.....
Anyone Tried Adding Adsense Widgets To Their Blog?
(0) I updated my wordpress version and installed the adsense plug-in but can't seem to figure out
how to get it to display the ads in my blog. Has anyone had any experience with this or have any
ideas?....
About Adding A Existing Domain [resolved]
Really Important Question! (8) My friend, Sabina, has a domain(www.binaland.com). She hosts her files on one of her friends hard
drives somehow for their online use. He has some static IP thing or something like that. But her
problem comes to be that his drive always crashes and she has to reload everything back up there. So
I offered to help her out. I want to know a way to add her domain to my trap17 account and it would
be easy enough uploading the files. Does it cost me any credits to add a domain too? I know I could
most likely find out through cPanel but I want to make sure I do it all right wi....
Data Structures -- String -- Arrange Based On Repetition
String data structure (1) Consider a string with any number of elements occurring any number of time. Rearrange the string
in such a way that the alphabet with most occurrence occurs in the followed by the next most
occurring alphabet and so on... It should also be seen that the alphabets should occur frequency
number of times. Example: Input : abcdaeghzabcdbhb Output : bbbbaaaccddhhegz ....
Data Structures -- String -- Palindrome
Check if a string is a palindrome... (4) Write an algorithm to check whether a given string is palindrome or not in time complexity O(n)
What is a palindrome?? QUOTE A palindrome is a word, phrase, number or other sequence of units
that has the property of reading the same in either direction (the adjustment of punctuation and
spaces between words is generally permitted). Composing literature in palindromes is an example of
constrained writing. The word "palindrome" was coined from Greek roots palin
(πάλιν; "back") and dromos (δρóμος; "way,
direction") by....
Adding An Aef Forum To Snews Cms
"almost" integrated (2) Adding an AEF Forum to sNews CMS Although not truly integrated, here is an explanation of the
steps I took to have an AEF Forum Software present itself as an 'integrated' page on the
sNews CMS. 1. Download a standard sNews version 1.6 Content Management System. Instructions are
found on the sNews site. (refer to link list below) There are several flavours of sNews. This method
has only been tested on the sNews 1.6, but should work on other versions as well. 2. Created a
MySQL Database and user, Modded the snews.php, and took the usual steps for installin....
T_string Error Please Assist
(5) I have unexpected t_strings in 3 lines they are CODE <?php // $Header$ //this
script may only be included - so its better to die if called directly. if
(strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !==
false) { header("location: index.php"); exit; } /* A basic library to
handle a cache of some Tiki Objects, usage is simple and feel free to improve it */ class Cachelib
{ var $folder; function Cachelib() { global $tikidomain;
$th....
Question About Adding Message Board To Site
Using mysql? (5) Hi, Super simple question from a simple laddie! Is a MySql database a messageboard? If not
how can I set up a messageboard. Thanks. std split from another topic ....
Adding Shine To Text
images say "Tiger Ads", but, the board is clsed, so, i'm r (1) OK, in this tut, I am going to show you how to add shine to any text. For this example I will be
using the TigerAds affiliate button. (the board is since closed so, I'm not really advertising
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />) OK then,
lets get started! 1. Open up the image that you will be using, this is mine: 2.
Now that your image is open and making sure that its the .psd so you can edit the text on it. In
your layers menu, hold down CTRL and click on the text layer so that only the te....
Help With Adding Php Forums On My Site
(3) Hey guys! I am kinda new to the whole PHP scene and I am struggling to figure out how to add
some simple forums to my site. Being that wonderful TRAP17 has free PHP support, I was wondering if
anyone could send some help my way on how to go about doing this. Thanks in advance!....
Adding Your Website To Google
How to register with google (20) Hi everyone. Hopefully here im going to tell you how to register yourself with the Google search
engine and get yourself in their results. Ill start the tutorial assuming you already have Meta
tags or other search engine optimisation techniques in place. This tutorial is solely about
registering with google. At one time i thought simply using meta tags etcetera would get you listed
in Google, i then found out that didnt work, so i wondered why, and the fruits of my labour are what
will go into this tutorial. the first step is to get a google account, this will get y....
Problems Adding New Files
(2) I tried to upload some new files to my site, for use in a clan type game I play. When I tried to
upload the front end to this new part of my site, every file I upload is not accepted, all I get is
the following error 550-quota exceeded (filename) won't be saved 550-428 files used(42%)
authorised 1000 files 550 2047 kbytes used(99%) authorised: 2048kb What does this mean?....
<?php ?> Sloppy Login Script
Sloppy login script, couse i used @ on one string (12) Here's a sloppy 3 files login script. First file is Login file that looks like this login.php
CODE <form action="check.php" method="post"> Username: <input
type="text" name="username1"><br /> Password: <input
type="password" name="password1"><br /> <input type="submit"
value="Login"> </form> Basicly that is HTML form that's used for input
Second part of the script is the check.php that we call from our login.php form QUOTE ....
Adding Data To A Database And Displaying It Later
Using Forms, PHP and MySQL (1) Requirements: PHP Support MySQL Database access I am going to use a news program as an example.
Ok, first you are going to need to connect to the database. Do so by using the code below. I have
added some comments where you will need to edit to fit your server's specifications. Create a
new file with notepad and call it config.php QUOTE //Change root to your database
account's username $dbusername = "root"; //Add your account's password in between the
quotations $password = " "; //Add the name of the database you are using in betw....
Adding Accessibility Features To Your Pages
Using the :active/:focus pseudo-class (0) Here is a tip for its use on your site. Using CSS to tell your visitors where they are on your site
can be fairly complicated depending on the method you use. The CSS Specifications have defined a
"pseudo-class" for the link which currently has 'focus' and another pseudo-class for the
'active' state. They can be used to tell your visitors where their cursor is on the page
and you do that be altering the CSS for the link which currently has the focus and those which are
being activated. The ' active' state only occurs momentarily while the ....
Adding Second Page Of Cutenews To My Site
How do I do this? (2) I'm using Cutenews on my website. I forgot to mention in my last post on this topic that
Cutenews is news system that can be integrated into an existing website and can function like a
blog. Well, I recently integrated cutenews into an existing site, and I'm wondering how I get
the older news to show up on another page. For example, I'm using cutenews on my main index
page. At the bottom of the page I'd like to put a link that says, "old news," and have that page
open up into a new page of my older news/blogs that people can still post comments on. What....
Help Php: How To Load String From Text File (solved)
Loading string from text file when you click on your link (9) I learned the way to load other files with the code posted on this forum. Now i wanted to try
something for my side menu. I am calling this a string, --> $tekst , maybe it's
called something else i'm not sure Now let's say i have a file called details.txt In that
file i would like to have something like this $detailsaboutphp1 = ("details details details
1"); $detailsaboutphp2 = ("details details details and even more details 2"); How to make a
code that loads those $strings on click of a mouse. When we tried to load extern....
Selecting Specific Part Of Image And Adding Description
Please help (6) Many of you would have noticed that on flickr, there's feature that you can select some part of
the picture (usually there' a small box) and add description for that part when you upload. Can
someone tell me what kind of feature it is, and how it can be made ? im very keen to learn about
that. I have attached the image below, there' you can see the boxes on the picture.. i want to
learn how to make that feature.. please help me. Thanks. Sami. ....
Mysql For Vb.net
Connection String (2) Put it simply, how could I connect MySQL into VB.NET? I use SQLConnection component, but it search
only MS SQL servers. Please help... thanks in advance....
Adding Rows & Columns In Html Table Using Javascript
(1) I'm trying to create a website with a form that collects some user information to store in MySQL
database. However, I've a problem when I want to dynamically add new rows and columns in the
HTML table so that the user can add more information in the dynamically added textboxes. Here's
what I have: CODE <table border="0" width="90%"
align="center" id="itemsTable"> <tr>
<td width="20%"> Quantity
<....
Visual Basic 6.0 Help Needed
Adding lines to a textbox without delete (13) I need help with Visual Basic 6.0 and adding lines to a textbox without deleting any previous
lines.. I've gotten as far as finding a way to add the lines, but it deletes the prevous entree.
Help is appreciated!....
Making Winrar Archives
and adding password to winrar archives (12) **** This tutorial will show you how to put files into .rar Archive and pass worded (if wanted)
**** What You Will Need Before continuing you will need a couple of thing, first of all you
need WINRAR , which is a very powerful archive manager. It can reduce size for you email
attachments, decompress RAR, ZIP and other types of files downloaded from the internet. You can get
winrar at http://www.rarlabs.com The other thing is that make sure your using Windows XP because
this is what I used to make this tutorial. I think it works with any other windows not....
What Is A T_string?
Please help! I'm new at PHP Programming (13) I'm new at PHP, and I looked for a while on here, and found some stuff I was looking for about
form processing, and sending E-Mail through PHP. However, the script I just created won't work.
I get the following error: Parse error: parse error, unexpected T_STRING in
/home/hamtaro/public_html/send_feedback.php on line 9 Exactly what is a T_STRING? If I need to post
my code, I will.....
Looking for adding, string, integer,
|
|
Searching Video's for adding, string, integer,
|
advertisement
|
|