RuFFijS Posted December 16, 2010 Report Share Posted December 16, 2010 Sveiki, tātad esmu sācis apgūt php, bet jau pie pirmajiem soļiem ir radusies problēma un negribu izglītoties tālāk pirms esmu viņu atrisinājis. Tātad problēma ir sekojoša- ne echo ne print nestrādā, nekādā variantā! <?php $my_string = "Tests "; $my_number = 4; $my_letter = a; echo $my_string; echo $my_number; echo $my_letter; ?> ------------------------------------- <?php print "tests"; ?> ------------------------------------ <?php echo "tests"; ?> ------------------------------------ <?php $a = 1; $b = 2; $c = $a * $b; print $c; ?> --------------------------------- jebkurā variantā atverot php failu ar browseri parādās tikai tukša lapa. Apache ir palaists un visas joomla's un wp lapas, kas ir uzstādītas uz localhost, strādā! Gan jau atrisinājums ir vienkārš, bet pats visu dienu esmu izmēģinājies visādi, bet tā arī pie atrisinājuma neesmu ticis, ceru ka kāds spēs palīdzēt. Paldies Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted December 16, 2010 Report Share Posted December 16, 2010 Vai Apacis error logā neko neraksta? Quote Link to comment Share on other sites More sharing options...
Леший Posted December 16, 2010 Report Share Posted December 16, 2010 Uz ātro: 1. Faili noseivoti, kā HTML 2. Faili tiek palaisti via file:///, nevis caur web interfeisu Quote Link to comment Share on other sites More sharing options...
RuFFijS Posted December 16, 2010 Author Report Share Posted December 16, 2010 paldies, esmu idiots :D 2. variants bija pareizais - file:/// topiku var dzeest Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 16, 2010 Report Share Posted December 16, 2010 $my_letter = a; Tā nu gluži gan nevarēs. Quote Link to comment Share on other sites More sharing options...
mefisto Posted December 16, 2010 Report Share Posted December 16, 2010 Ja a ir definēta konstante , tad varēs. Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 16, 2010 Report Share Posted December 16, 2010 Teorētiski pat to nevajag, ja neinteresē E_NOTICE... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.