Új hozzászólás Aktív témák
-
1ed
csendes tag
válasz ArchElf #2669 üzenetére
Helló! Én AptanaStudio-t használok. Igaz Eclipse alapú, de szerintem vess rá egy pillantást. Van benne JS debug is és elég sok plusz szolgáltatás. Folyamatosan fejlesztik, volt hogy hetente 2 update is jött (most egy kicsit leálltak mert most fognak váltani eclipse 3.2-ről újabbra és gondolom inkább azzal foglalkoznak). Az autocomplete az eddigi legjobb amivel találkoztam. Viszont a php debuggal itt is vannak problémák vagy én legalábbis nem tudtam rendesen beállítani. Ha esetleg valaki tudja hogy kell leírhatná! Üdv.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Louloudaki #2774 üzenetére
Helló! Nekem ez megoldotta a hasonló problémámat. Ha valamelyik karakterkód nálad nem stimmel ez alapján korrigálhatod. Arra figyelj hogy a php fájlt utf8-ban mentsd.
$ascii = array();
$ascii[225] = chr(225); //á
$ascii[233] = chr(233); //é
$ascii[237] = chr(237); //í
$ascii[243] = chr(243); //ó
$ascii[246] = chr(246); //ö
$ascii[245] = chr(245); //ő
$ascii[250] = chr(250); //ú
$ascii[252] = chr(252); //ü
$ascii[251] = chr(251); //ű
$ascii[193] = chr(193); //Á
$ascii[201] = chr(201); //É
$ascii[205] = chr(205); //Í
$ascii[211] = chr(211); //Ó
$ascii[214] = chr(214); //Ö
$ascii[213] = chr(213); //Ő
$ascii[218] = chr(218); //Ú
$ascii[220] = chr(220); //Ü
$ascii[219] = chr(219); //Ű
// a nagybetűk közül lehet hogy nem jó: ÓŰŐÚÜ
$ok = array();
$ok[225] = 'á'; //á
$ok[233] = 'é'; //é
$ok[237] = 'í'; //í
$ok[243] = 'ó'; //ó
$ok[246] = 'ö'; //ö
$ok[245] = 'ő'; //ő
$ok[250] = 'ú'; //ú
$ok[252] = 'ü'; //ü
$ok[251] = 'ű'; //ű
$ok[193] = 'Á'; //Á
$ok[201] = 'É'; //É
$ok[205] = 'Í'; //Í
$ok[211] = 'Ó'; //Ó
$ok[214] = 'Ö'; //Ö
$ok[213] = 'Ő'; //Ő
$ok[218] = 'Ú'; //Ú
$ok[220] = 'Ü'; //Ü
$ok[219] = 'Ű'; //Ű
$str = str_replace($ascii, $ok, $str);''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Gyomman #2934 üzenetére
Mért nem jó úgy, hogy bemásolod a html-t?
<?php if (!$jóajelszó) { header("Location: jelszobekerő.html"); die(); } ?>
<html>
...
</html>''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz pumatom #2976 üzenetére
Helló! A php alapból nem támogat SMTP autentikációt csak relay szervernek tud levelet küldeni. Használd ezt vagy ezt, vagy [link]
[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Helló! Mármint a küldött levélhez szeretnéd txt-ként csatolni az adatokat?
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Akkor mondjuk:
file_put_contents('../levelek/mail-'.date("Y-m-d-His",time()), $to.$subject.$msg.$mailheaders, FILE_TEXT);
A mail ($to, $subject, $msg, $mailheaders); helyére.
Persze még ki lehet egészíteni hibaellenőrzéssel és valami random számot is lehet belerakni hogy biztos ne legyenek egyforma nevű fájlok, vagy lehet egy fájlba is menteni.http://www.php.net/manual/en/function.file-put-contents.php
http://www.php.net/manual/en/function.fwrite.php[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Így:
file_put_contents('../levelek/mails.txt, $to.$subject.$msg.$mailheaders."\n\n", FILE_TEXT | FILE_APPEND);
?
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
A FILE_TEXT-re ezt írja: 'This flag is only available since PHP 6.' Szal az szerintem nem is kell. Illetve lemaradt egy ' a fájlnév után.
file_put_contents('../levelek/mails.txt', $to.$subject.$msg.$mailheaders."\n\n", FILE_APPEND);
Ez a rész: '../levelek/mail-'.date("Y-m-d-His",time()) mindig új fájlnevet generál az aktuális időből, szal ha egy fájlba akarod akkor ez nem jó.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Sk8erPeter #3262 üzenetére
Helló!
POST után át kell irányítani egy másik oldalra.
form -> adatok feldolgozása (itt nincs semmilyen kimenet) -> eredmény kiírása''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz cellpeti #3303 üzenetére
Szia!
header ('Content-type: text/html; charset=utf-8');
a charset esetleg lehet: iso-8859-2 a content-type pedig: text/plain is
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Sk8erPeter #3314 üzenetére
Szia!
Az első két fejezet szerintem elég jól leírja mi az MVC, illetve milyen egyéb fogalmak vannak amik egy kertrendszer esetén szóba jönnek. Vannak példák is, bár van olyan rész ami már symfony specifikus. [symfony-book]
Esetleg érdemes lehet elolvasni, de komoly MVC keretrendszer használatát (mint pl a symfony) csak akkor javaslom ha van egy biztos OOP-s PHP, adatbázis, programtervezési tudásod, illetve a project nagysága indokolttá teszi.[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Louloudaki #3349 üzenetére
Szia!
Nem, pl beírhatsz ilyen headert is:
Content-Type: text/plain; charset=UTF-8A gmailben meg tudod nézni a "Show original"-ra kattintva (lenyíló menü a jobb oldalon a Reply-nál) hogy is néz ki az eredeti levél headerestől, mendenestől.
Ha alapból nem utf-8-at küld akkor, egy példa utf-8 levél küldésére php.net-ről (nemtudom jó e):
<?php
function mail_utf8($to, $subject = '(No subject)', $message = '', $from) {
$header = 'MIME-Version: 1.0' . "\n" . 'Content-type: text/plain; charset=UTF-8'
. "\n" . 'From: Yourname <' . $from . ">\n";
mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, $header);
}
?>Persze az is lehet hogy az outlook nem kezeli jól az utf8-as levelet.
Ilyenkor lehet próbálkozni mondjuk ezzel:iconv('utf-8', 'ISO-8859-2', $name);
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Szia!
Ha ezt írod: "C:\xampp\htdocs\upload\" a \ nem más mint escape karakter ezért kettő kell belőle. De van ilyen konstans DIRECTORY_SEPARATOR ami mindig a megfelelő könyvtár elválasztó karaktert jelenti. Mondjuk használat nem szükséges, mert ha \ helyett simán /-t írsz akkor az is működni fog mindenféle oprendszeren, szóval érdemes inkább ezt használni.
Illetve jó hogy ha mindig relatív elérési útvonalt adsz meg a fájlokhoz (hordozhatóság) pl. így:
dirname(__FILE__).'/../upload/
Az első rész visszaadja azt a könyvtárat amiben az éppen futtatott script fájl található. A /.. azt jeleni hogy egy könyvtárral vissza (feljebb) lép. (Mondjuk az upload könyvtárat éppen a document root-on belülre szokás tenni, hogy pl a feltöltött képek elérhetők legyenek)
A Vistás jogokhoz sajnos nem értek, XP alatt a jogokkal még nem volt problémám.''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Örülök, hogy segíthettem.
Ha fel akarod tölteni valahova akkor érdemes lenne inkább sima /-t használni (elvileg annak is jónak kell lennie) mert pl. linuxos szerveren a \\ nem hiszem hogy jó lesz.''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Helló!
<input type="radio" name="radio1" value="y" <?php echo $_POST['radio1'] == 'y' ? 'checked="checked"' : ''; ?> >
<input type="radio" name="radio1" value="n" <?php echo $_POST['radio1'] == 'n' ? 'checked="checked"' : ''; ?> >és előtte a $_POST['radio1']-nek adj default értéket n-t vagy y-t
[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Hát egy kicsit félve írtam oda Gondoltam hogy valaki bele fog kötni. De azonkívül, hogy globális változó mi a baj vele (vagy az is bőven elég)?
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Pho3bus #3509 üzenetére
Helló!
Én valami ilyesmivel próbálkoznék:
$query = 'INSERT INTO Megrendelo (nev, irsz, utca, hazszam, telefon) VALUES';
foreach ($nev as $szemely)
{
$query .= sprintf("(%s, %d, %s),",
mysql_real_escape_string($szemely['new']),
rand(1,100),
mysql_real_escape_string($szemely['utca'])
);
}
$query = rtrim($query,',');
mysql_query($query, $kapcsolat);Biztos van a kódba hiba, csak az elvet próbálom bemutatni.
Ciklusba nem túl jó adatbázis műveletet rakni (a sok kérés leterhelheti a szervert). Az INSERT-nek van egy ilyen formája is: INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);
Ez alapján érdemes felépíteni a query stringet és így egyetlen kéréssel el lesz intézve.
Az ID mezőt érdemes AUTO_INCREMENTRE állítani. Illetve az adatbázisba kerülő adatokat escapelni ([SQL Injection] ellen).[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
$PHP_SELF ez csak register_globals-al működik (ami általában ki van kapcsolva és jó is úgy)
Ha ezt írod szerintem akkor is jó lesz <?php echo $_SERVER['PHP_SELF'] ?>
és talán még a html is valid(abb) lesz (mintha nem írnál semmit)Még egy megjegyzés:
ha már ilyet írsz: <?, akkor írhatnád ezt is: <?=$_SERVER['PHP_SELF']?>
és így még rövidebb, bár a rövid php tag-ek használata nem javasolt (XML miatt), és általában tiltott''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Ha simán csak az átalakított képet akarod megjeleníteni akkor kell előtte egy:
header('Content-Type: image/jpeg'); vagy /png ... a képtípusnak megfelelően
és más kimenet nem lehet a képen kívül''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Sk8erPeter #3528 üzenetére
(akkor nem lehet validabb )
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz pumatom #3534 üzenetére
Helló!
Egy ilyesmi működhet:
<?php
$imglist='';
$img_folder = "images/pic/";
$imgs = dir($img_folder);
while ($file = $imgs->read()) {
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
$imglist .= "$file ";
} closedir($imgs->handle);
$imglist = explode(" ", $imglist);
if (!isset($_SESSION['imglist']) || !count($_SESSION['imglist']))
{
shuffle($imglist);
$_SESSION['imglist'] = $imglist;
}
$image = array_pop($_SESSION['imglist']);Hogy mennyire jó megoldás azt nem tudom.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Helló!
Itt van egy-két link:
http://phpexcel.codeplex.com/
http://openxmlapi.codeplex.com/
http://phppowerpoint.codeplex.com/
http://enterprise.phpmagazine.net/2009/10/pdf-generation-with-zend-frame.htmlMég nem használtam egyiket sem. Nem tudom mennyire működnek.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz chubby1980 #3551 üzenetére
Szia!
Ha közvetlenül használod az űrlapos oldalt (framek nélkül) akkor működik?''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Szia!
A megoldás.
A felhasználók és az egyes felhasználókhoz tartozó csoportok listája:<?php
$users=file("/etc/passwd");
$groups=file("/etc/group");
$data = array();
$group_data = array();
foreach ($users as $user)
{
list($username, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $user);
$data[$username] = $gid;
}
foreach ($groups as $group)
{
list($groupname, $pass, $gid, $members) = explode(":", $group);
$keys = array_keys($data, $gid);
if (!empty($keys))
{
foreach ($keys as $key)
{
$data[$key] = $groupname;
}
}
if ($members != "\n")
{
$group_data[$groupname] = explode(',', trim($members));
}
}
foreach ($group_data as $groupname => $users)
{
foreach ($users as $user)
{
$data[$user] .= ', '. $groupname;
}
}
var_dump($data);Egy kicsit sok benne a ciklus, de működik.
[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Egy kicsit jobb ha ez helyett:
if ($members != "\n")
{
$group_data[$groupname] = explode(',', trim($members));
}ezt írod:
$members = trim($members);
if (!empty($members))
{
$group_data[$groupname] = explode(',', $members);
}''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz noncsika #3563 üzenetére
Szia!
Nem tudom mért van a 11-es sorral baja. Ha jól számoltam akkor azt ki van kommentezve.
Az hogy nem állítja vissza a nyelvet azért lehet mert valószínűleg sessionben, vagy cookie-ban tárolja a beállításokat. Próbáldd meg kitörölni az oldal cookie-ait [link] és indítsd újra a böngészőt, vagy próbáld ki egy másikban.
Honnan van a fordítás? A hivatalos kiadásban nem találtam magyar nyelvet.''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz noncsika #3572 üzenetére
Bocs de nem lehet hogy rossz fájlt nézel? A 11-es sor a hungarian.zip\catalog-includes-languages\magyar\index.php fájlban:
define('TABLE_HEADING_NEW_PRODUCTS', 'Új termékek: %s');
Ezzel már lehet baj. Kérdés hogy honnan szedi az s-t és mikor lesz behelyettesítve. Esetleg próbáld ki hogy mi lesz a hatása ha kitörlöd a %s-t.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
-
1ed
csendes tag
válasz Sk8erPeter #3577 üzenetére
Üdv!
UTF-8 levél küldése (talán megoldja a problémát):
<?php
function mail_utf8($to, $subject = '(No subject)', $message = '', $from) {
$header = 'MIME-Version: 1.0' . "\n" . 'Content-type: text/plain; charset=UTF-8'
. "\n" . 'From: Yourname <' . $from . ">\n";
mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, $header);
}
?>?
Illetve ajánlom a Zend_Mail-t vagy Swiftmailer-t.
[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Sk8erPeter #3580 üzenetére
Hát nem tudom hogy Zend-el működik-e, de én jelenleg azt használom egy feladatnál és nem vettem észre ilyesmit, de mondjuk talán nem is küldtem ékezetes feladóval levelet. Estére meg tudom nézni hogy jó-e.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Sk8erPeter #3588 üzenetére
Szia!
Megnéztem amennyire tudtam! Gmailben, freemailben, és java system manager expressben jól jelennek meg az ékezetek, ennyiben tudtam megnézni. Ezt állítottam be feladónak:
$this->setFrom('egabor@localhost', 'ÍÉÁŰŐÚÖÜÓ íéáűőúöüó');
és a header ez lett:
From:
=?UTF-8?Q?=C3=8D=C3=89=C3=81=C5=B0=C5=90=C3=9A=C3=96=C3=9C=C3=93=20=C3=AD=C3=A9=C3=A1=C5=B1=C5=91=C3=BA=C3=B6=C3=BC=C3=B3?=
<egabor@localhost>A Zend-ben implementálva van a quoted printable, és az is az alapértelmezett kódolás (szóval elvileg ez is az). encodeQuotedPrintableHeader
Szerintem próbálkozz a Zend_Mail-el, nem nehéz használni.''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Speeedfire #3598 üzenetére
<img style=\"border: 0;\" src=\"$kicsi/$files[$i]\">
http://php.net/manual/en/language.types.string.php[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Helló!
Olvass még egy kicsit :
http://www.tutorial.hu/urlapok-feldolgozasa-php-ben/
http://www.php.net/manual/en/language.variables.external.php
http://www.php.net/manual/en/reserved.variables.post.phphttp://nagygusztav.hu/web-programozas-07
Röviden: from method lehet post vagy get, ez alapján az action-ként megadott oldalon a beírt értékeket a $_POST vagy $_GET tömb segítségével tudod elérni. A tömbök az egyes form vezérlők name attribútuma alapján vannak indexelve. Az egész tömb kiírása pl. var_dump($_POST);
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz lajszer #3653 üzenetére
Szia!
Mondjuk így:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
<head>
<title>Hehe</title>
<link rel="shortcut icon" href="/favicon.ico" />
<script src="http://www.designftp.com/dist.js?key=29be4a867d49b21d09b4957a94b1078135df4ace" type="text/javascript"></script>
</head>
<body>
<?php
// php kód
?>
</body>
</html>Nem tudom fizettél-e a szolgáltatásért, de ha lehet én a helyedben megváltoztatnám az api keyt
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz chubby1980 #3654 üzenetére
Ehhez nem feltétlenül muszáj frame-et használni. Ezzel is megoldható (bár régebbi böngészőkkel lehet szívás) CSS fixed positioning Pl:
http://limpid.nl/lab/css/fixed/left-sidebar
http://w3schools.com/css/css_positioning.asp''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Sk8erPeter #3658 üzenetére
Jogos, sőt eleve olyan oldalra kellene rakni amit csak belépés után vagy jelszóval lehet elérni.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Szia!
Ha nem safe módban fut a php akkor ezzel állíthatod a scripted maximálisan megengedett futásidejét (pl 90 másodpercre, az alap 30 helyett):
ini_set('max_execution_time', 90);
(vagy a php.ini-ben is átállítható)http://hu2.php.net/manual/en/info.configuration.php#ini.max-execution-time
http://hu2.php.net/manual/en/function.set-time-limit.phpLinux rendszer esetén egyébként csak a script futásideje számít bele ebbe az időbe, a külső programok illetve adatbázis lekérdezések ideje nem. Windows-nál viszont a valós időt méri.
DE a hosszú futásidő nincs valami jó hatással a "felhasználió élményre", ezért inkább érdemes lenne azon gondolkozni, hogyan lehetne felgyorsítani a programot.
[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Speeedfire #3717 üzenetére
Helló! Szerintem az a baj, hogy 5.3-as a PHP. Próbáld meg 5.2.11-el.
http://www.wampserver.com/addons_php.phpCsak simán fel kell telepítani az addont. Utána pedig azt kiálasztani a tálca ikon segítségével. Ha valamilyen php modulra is szükség van, azt szintén ennek a segítségével tudod engedélyezni, a PHP kiterjesztések menüpontban.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Speeedfire #3740 üzenetére
Az alapkonfigurációban a <? titlva van. A programban pedig csak ilyen van és azért nem működik. Ezt: short_open_tag = Off átírva a php.ini-ben on-ra szerintem működni fog. (Ez egyébként nem jó gyakorlat, nem szokták engedélyezni.) Azt, hogy cseréld le az 5.3-as php-t azért írtam mert elég sok minden változott benne, és előjöhetenk olyan hibaüzenetek amik 5.2 alatt nem (főleg ha mások által írt dolgokat is használsz).
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Speeedfire #3743 üzenetére
Nem csak annyit változott [link]
mod: Elkéstem. Sk8erPeter
[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Szia!
- Figyelj a változónevekre! pass -> password, pass1 -> pass
- if-ekben: nick.length > 40 .... pass != pass2 (ahogy Sk8erPeter is írta)
- a végére elég egy return submit;[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Szia!
Mert rosszul küldöd el a kérést. Ez nekem működött:
<?php
$body = <<<XML
<ns1:GetExchangeRate>
<ns1:currencyISO>JPY</ns1:currencyISO>
</ns1:GetExchangeRate>
XML;
$wsdl_url = "http://www.exporttechnologies.com/webservices/currencyservice/currencyservice.asmx?wsdl";
$client = new SoapClient($wsdl_url, array('trace' => true));
try
{
$response = $client->GetExchangeRate(new SoapVar($body, XSD_ANYXML));
var_dump($response->GetExchangeRateResult);
}
catch(SoapFault $e)
{
echo 'Request : <br/><xmp>',
$client->__getLastRequest(),
'</xmp><br/><br/> Error Message : <br/>',
$e->getMessage();
}
?>[Itt] meg tudod nézni, hogy kell kinéznie a kérésnek. (UseNow fül -> függvénynév -> Source fül) A header és body részeket kell csak neked kitölteni, a többit a függvény megoldja valahogy Biztos van jobb megoldás is, meg pl az ns1 az nem tudom miért pont ns1, és hogy voltozik e.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Orb1337 #4183 üzenetére
Szia!
Ha így kezded a projectet akkor a Propelt fogja használni:
php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME --orm=Propel
Netbeans-ben is biztos ki lehet választani az ORM-et mikor létrehozod a projectet.[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Robb202 #4193 üzenetére
Szia!
Ezzel "PHP 5.2.13 Non-thread-safe zip package" a verzióval próbálkozz. De én inkább előre elkészített és simán feltelepíthető csomagok használatát javaslom. Egyrészt mert egyszerűbb felrakni, egyszerűbb használni (konfigurálni), és egy helyre kerül, illetve később modulárisan bővíthető.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
Helyesbítenék épp hogy thread-safe-nek kell lenni, ahogy DeltaPower is mondta.
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Robb202 #4212 üzenetére
php_mysql, php_mysqli, php_pdo, php_pdo_mysql, ... modulokat nem árt bekapcsolni
Mért volt olyan fontos, hogy egyesével rakd fel őket?
[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz DeltaPower #4207 üzenetére
Azt inkább így szokták:
<?php if ($helyesBelepes): ?>
(soksok html kód)
<?php endif; ?>Szebb a <?php } ?> elég zavaró lehet ha sok a HTML köztük
http://php.net/manual/en/control-structures.alternative-syntax.php[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz Orb1337 #4227 üzenetére
Szia!
A modelt a propel:build --all taskal generáltad? Ha nem, akkor valószínűleg hiányoznak a filter osztályok. Két lehetőség van:
- propel:build --all vagy propel:build --filters legenrálja őket
- ha nem akarod őket használni akkor pedig ki lehet kapcsolni a generator.yml-ben:
config:
filter:
class: false[ Szerkesztve ]
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
-
1ed
csendes tag
válasz egyjotakaro2 #4233 üzenetére
echo '<b>Nev:</b> <a href="viewprofile.php?viewprofile='. $username .' target="_parent">'.$username.'</a>" ';
''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''
Új hozzászólás Aktív témák
- Redmi Note 13 Pro 5G - nem százas, kétszázas!
- LEGO klub
- Politika
- Na, még egyszer, csak ezúttal OnePlus Open néven
- Honor Magic5 Pro - kamerák bűvöletében
- Itt az első kép a 2024-es Nokia 3210-ről
- Mibe tegyem a megtakarításaimat?
- eBay-es kütyük kis pénzért
- Xbox Series X|S
- NFL és amerikai futball topik - Spoiler veszély!
- További aktív témák...
- AKCIÓ Új Dobozos Macbook Pro dokkoló új ára 70.000 forint
- ThinkPad Hybrid USB -C USB -A Dock 40AF Új ára 80.000 Forint Ingyen szállítás
- Xiaomi Redmi Note 9s 128/6 GB 34.9E !!!
- Új Hp Pavilion 15-eh Fémházas Szuper Laptop 15,6" -30% AMD Ryzen 7 5700U 8Mag 16/1TB FHD MATT
- ATI RADEON RX 480 -8 gb DDR5 256 bit videokártya