Solved

is this possible ?

Posted on 2000-03-16
2
160 Views
Last Modified: 2013-12-25
Hi there,

I've got some variables that I want to write on one single line like this:
$test="test" $test2="test2" $test3="test3";

If I'm testing this I'm getting a error 500. If I test it with each variable on a different line it works fine but it takes up more drive space then. Is there anyway to put them on one single line without getting an error message ?
0
Comment
Question by:quickbasic
2 Comments
 
LVL 2

Accepted Solution

by:
mattrope earned 25 total points
ID: 2624969
Just put a semicolon after each assignment:

$test="test"; $test2="test2"; $test3="test3";

The assignments are actually separate commands, so you need semicolons between them.
0
 

Author Comment

by:quickbasic
ID: 2625577
Why didn't I think of that ? Excellent, thanks...
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Powershell Find Folders 7 52
Access Control Entries lost in Windows folders 3 48
Control Number of Log Files -Perl 7 55
Bulk Reorder File Names 4 57
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now