Click here to Skip to main content
15,881,600 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: "." operator to join two strings... Pin
Luc Pattyn19-Mar-11 3:58
sitebuilderLuc Pattyn19-Mar-11 3:58 
GeneralRe: "." operator to join two strings... Pin
Joan M20-Mar-11 22:53
professionalJoan M20-Mar-11 22:53 
GeneralRe: "." operator to join two strings... Pin
Luc Pattyn20-Mar-11 23:05
sitebuilderLuc Pattyn20-Mar-11 23:05 
GeneralRe: "." operator to join two strings... Pin
Joan M20-Mar-11 23:13
professionalJoan M20-Mar-11 23:13 
AnswerRe: "." operator to join two strings... Pin
Luc Pattyn20-Mar-11 23:32
sitebuilderLuc Pattyn20-Mar-11 23:32 
AnswerRe: "." operator to join two strings... Pin
Graham Breach20-Mar-11 23:52
Graham Breach20-Mar-11 23:52 
GeneralRe: "." operator to join two strings... Pin
Joan M21-Mar-11 0:31
professionalJoan M21-Mar-11 0:31 
AnswerRe: "." operator to join two strings... Pin
nickmaroulis21-Mar-11 14:05
nickmaroulis21-Mar-11 14:05 
PHP has two ways for specifying strings.

single quotes ''
double quotes ""

$car = 'Holden';

$sq = 'My car is a $car'; //My car is a $car
$dq = "My car is a $car"; //My car is a Holden

With double quotes the variable is inserted.
If you are using an array or want to seperate a variable in double quotes use braces.

$array['tv_show'] = 'American Idol';

$br = "{$array['tv_show']} is terrible but {$car}'s are awesome";


for the example above use "{$_SERVER['DOCUMENT_ROOT']}/FILE.php";

It may be that you are using windows and the interpreter could be swapping a '/' for '\'.
Questionphp library Pin
0b4m418-Mar-11 2:23
0b4m418-Mar-11 2:23 
Questionافقافايقاسقاالبل Pin
othman_thacol15-Mar-11 6:31
othman_thacol15-Mar-11 6:31 
AnswerRe: عثـــــــــــــــــــــــــــــــمان ثكول Pin
othman_thacol15-Mar-11 6:37
othman_thacol15-Mar-11 6:37 
GeneralHow to Print from mySQL with the conservation of Alris Page Pin
Richard MacCutchan18-Mar-11 10:51
mveRichard MacCutchan18-Mar-11 10:51 
Questionhide partition from places Pin
dcode2513-Mar-11 16:09
dcode2513-Mar-11 16:09 
AnswerRe: hide partition from places Pin
Albert Holguin28-Mar-11 18:03
professionalAlbert Holguin28-Mar-11 18:03 
AnswerRe: hide partition from places Pin
LloydA11116-Apr-11 12:07
LloydA11116-Apr-11 12:07 
Questionsend data Pin
Elham M12-Mar-11 7:12
Elham M12-Mar-11 7:12 
QuestionAnyone been able to get php5sctivescript working? Pin
Contensive6-Mar-11 4:19
Contensive6-Mar-11 4:19 
QuestionWhat ??? uses PHP Development PluginHooks, dual purpose comment, template, plugins to design application? Pin
toikken4-Mar-11 15:22
toikken4-Mar-11 15:22 
QuestionHow to get PHP to rename files Pin
Alschafer4-Mar-11 6:57
Alschafer4-Mar-11 6:57 
AnswerRe: How to get PHP to rename files Pin
nickmaroulis21-Mar-11 14:14
nickmaroulis21-Mar-11 14:14 
QuestionPHP applications on windows and linux Pin
Andrewnick202-Mar-11 20:49
Andrewnick202-Mar-11 20:49 
AnswerRe: PHP applications on windows and linux Pin
effayqueue19-Mar-11 2:42
effayqueue19-Mar-11 2:42 
GeneralRe: PHP applications on windows and linux Pin
nickmaroulis21-Mar-11 14:26
nickmaroulis21-Mar-11 14:26 
QuestionPassing variables to form in iframe Pin
Kyro Zetera2-Mar-11 5:57
Kyro Zetera2-Mar-11 5:57 
AnswerRe: Passing variables to form in iframe Pin
Kyro Zetera2-Mar-11 6:09
Kyro Zetera2-Mar-11 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.