Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Ne radi php u WAMP-u

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
smile666



Joined: 26 Apr 2006
Posts: 5

PostPosted: 26.04.2006 23:44    Post subject: Ne radi php u WAMP-u Add user to your forum ignore list Reply with quote

Instalirao sam Wamp server sve po deafoltu. Kad sam napravia svoj direktorij i u njemu jednu testnu stranicu index.php, nema mi nikakvog prikaza u browseru, sve ostalo mi radi uredno i phpMyAdmin Question
Back to top
View user's profile Send private message
sime
Guest





PostPosted: 26.04.2006 23:55    Post subject: Reply with quote

A brate po tome što si opisa ti niko ne može pomoć... Napiši više, što ti je u index.php fajlu, imaš li možda kakav .htaccess file u tom diru, koja je verzija MAMP-a itd. Edit: sad tek vidim da je Wamp a ne MAMP, al svejedno...
Back to top
les



Joined: 25 Oct 2004
Posts: 370

PostPosted: 26.04.2006 23:58    Post subject: Add user to your forum ignore list Reply with quote

Uf....
Quote:
nema mi nikakvog prikaza u browseru

A što bi trebao dobit ko prikaz? Dal ti javi neki error - "The page cannot be found" - bilo što?
Back to top
View user's profile Send private message Send e-mail
smile666



Joined: 26 Apr 2006
Posts: 5

PostPosted: 27.04.2006 00:02    Post subject: Add user to your forum ignore list Reply with quote

Verzija WAMP-a:5, ne javlja mi nikakvu grešku, a za test sam napisao vrlo jednostavno:
<?
echo "proba";
?>
Back to top
View user's profile Send private message
smile666



Joined: 26 Apr 2006
Posts: 5

PostPosted: 27.04.2006 00:25    Post subject: Riješia sam problem Add user to your forum ignore list Reply with quote

Problem je bia u zapisu:
-umjesto:
<?
echo "proba";
?>
traba napisati:

<?
echo "proba";
?>

Hvala na pomoći! Very Happy
Back to top
View user's profile Send private message
smile666



Joined: 26 Apr 2006
Posts: 5

PostPosted: 27.04.2006 00:26    Post subject: Ispravak Add user to your forum ignore list Reply with quote

Malo mi se spava
Problem je bia u zapisu:
-umjesto:
<?
echo "proba";
?>
traba napisati:

<?php
echo "proba";
?>

Hvala na pomoći! Very Happy
Back to top
View user's profile Send private message
sime
Guest





PostPosted: 27.04.2006 00:26    Post subject: Reply with quote

Ne znam sad jel ovo točno skroz, nisam davno php kuca, al trebaš open tag ovako (normalna verzija):

Code:
<?php echo 'kuracpalac'; ?>


Ili ovako (short tags mora biti enabled):

Code:
<?=$wjuuuu;?>
Back to top
les



Joined: 25 Oct 2004
Posts: 370

PostPosted: 27.04.2006 00:48    Post subject: Re: Ispravak Add user to your forum ignore list Reply with quote

smile666 wrote:
Malo mi se spava
Problem je bia u zapisu:
-umjesto:
<?
echo "proba";
?>
traba napisati:

<?php
echo "proba";
?>

Hvala na pomoći! Very Happy

Da bi ti radila i prva verzija (<? ?>) moraš imat short_open_tag postavljen na "on" (short_open_tag=on) u php.ini fajlu. Uglavnom ovaj drugi način pisanja se preporučuje...
Back to top
View user's profile Send private message Send e-mail
www.recgr.com



Joined: 28 Apr 2006
Posts: 25
Location: Labin, Croatia

PostPosted: 28.04.2006 23:27    Post subject: Re: Ispravak Add user to your forum ignore list Reply with quote

les wrote:
smile666 wrote:
Malo mi se spava
Problem je bia u zapisu:
-umjesto:
<?
echo "proba";
?>
traba napisati:

<?php
echo "proba";
?>

Hvala na pomoći! Very Happy

Da bi ti radila i prva verzija (<? ?>) moraš imat short_open_tag postavljen na "on" (short_open_tag=on) u php.ini fajlu. Uglavnom ovaj drugi način pisanja se preporučuje...


tako je, a možež to učiniti i ovako:

<?php
ini_set ("short_open_tag", "On");
?>
odnosno :
<?php
if (ini_get("short_open_tag") != "On") {
ini_set("short_open_tag", "On");
}
?>

Samo budi siguran da kada mjenjaš php.ini (pazi, on se zapravo ne mjenja, nego samo kod izvršenja koda, tj. stranica, fizički se ništa ne mijenja već virtualno) a imaš short_open_tag Off da započneš kod s full tagom.

_________________
Recruiting Grounds
-Nino
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group