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

Linux, Apache, MySQL, PHP

 
AnswerRe: "." operator to join two strings... Pin
Luc Pattyn19-Mar-11 4:58
sitebuilderLuc Pattyn19-Mar-11 4:58 
GeneralRe: "." operator to join two strings... Pin
Joan M20-Mar-11 23:53
professionalJoan M20-Mar-11 23:53 
GeneralRe: "." operator to join two strings... Pin
Luc Pattyn21-Mar-11 0:05
sitebuilderLuc Pattyn21-Mar-11 0:05 
GeneralRe: "." operator to join two strings... Pin
Joan M21-Mar-11 0:13
professionalJoan M21-Mar-11 0:13 
AnswerRe: "." operator to join two strings... Pin
Luc Pattyn21-Mar-11 0:32
sitebuilderLuc Pattyn21-Mar-11 0:32 
AnswerRe: "." operator to join two strings... Pin
Graham Breach21-Mar-11 0:52
Graham Breach21-Mar-11 0:52 
GeneralRe: "." operator to join two strings... Pin
Joan M21-Mar-11 1:31
professionalJoan M21-Mar-11 1:31 
AnswerRe: "." operator to join two strings... Pin
nickmaroulis21-Mar-11 15:05
nickmaroulis21-Mar-11 15: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 3:23
0b4m418-Mar-11 3:23 
Questionافقافايقاسقاالبل Pin
othman_thacol15-Mar-11 7:31
othman_thacol15-Mar-11 7:31 
AnswerRe: عثـــــــــــــــــــــــــــــــمان ثكول Pin
othman_thacol15-Mar-11 7:37
othman_thacol15-Mar-11 7:37 
GeneralHow to Print from mySQL with the conservation of Alris Page Pin
Richard MacCutchan18-Mar-11 11:51
mveRichard MacCutchan18-Mar-11 11:51 
Questionhide partition from places Pin
dcode2513-Mar-11 17:09
dcode2513-Mar-11 17:09 
AnswerRe: hide partition from places Pin
Albert Holguin28-Mar-11 19:03
professionalAlbert Holguin28-Mar-11 19:03 
AnswerRe: hide partition from places Pin
LloydA11116-Apr-11 13:07
LloydA11116-Apr-11 13:07 
Questionsend data Pin
Elham M12-Mar-11 8:12
Elham M12-Mar-11 8:12 
QuestionAnyone been able to get php5sctivescript working? Pin
Contensive6-Mar-11 5:19
Contensive6-Mar-11 5:19 
QuestionWhat ??? uses PHP Development PluginHooks, dual purpose comment, template, plugins to design application? Pin
toikken4-Mar-11 16:22
toikken4-Mar-11 16:22 
QuestionHow to get PHP to rename files Pin
Alschafer4-Mar-11 7:57
Alschafer4-Mar-11 7:57 
AnswerRe: How to get PHP to rename files Pin
nickmaroulis21-Mar-11 15:14
nickmaroulis21-Mar-11 15:14 
QuestionPHP applications on windows and linux Pin
Andrewnick202-Mar-11 21:49
Andrewnick202-Mar-11 21:49 
AnswerRe: PHP applications on windows and linux Pin
effayqueue19-Mar-11 3:42
effayqueue19-Mar-11 3:42 
GeneralRe: PHP applications on windows and linux Pin
nickmaroulis21-Mar-11 15:26
nickmaroulis21-Mar-11 15:26 
QuestionPassing variables to form in iframe Pin
Kyro Zetera2-Mar-11 6:57
Kyro Zetera2-Mar-11 6:57 
AnswerRe: Passing variables to form in iframe Pin
Kyro Zetera2-Mar-11 7:09
Kyro Zetera2-Mar-11 7: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.