11.10.2009
Channel php.de ausgewählt, Log vom 11.10.2009
Seite: < 1 2 3 4 5 > Letzte Seite
Chatlog
Chepra: aber ob das gut is :S
Kunsi: also doch selbstmachen
GeCk0: braucht man für is_writable() fopen = on ?
GeCk0: bzw chmod checken
@bigfoot-: was ist "fopen = on"?
@bigfoot-: oder ist das deine private abkuerzung fuer allow_url_fopen?
GeCk0: jepp bigfoot- ^^
@bigfoot-: warum sollte man allow_url_fopen fuer is_writable brauchen ...?
GeCk0: will prüfen ob das bilder-verzeichnis beschreibbar ist, wenn nicht fehlermeldung, bevor die thumbs erstellt werden
@bigfoot-: eine URL willst du ja kaum pruefen, oder?
GeCk0: nur ein verzeichnis
GeCk0: auf localhost
@bigfoot-: dann hat das mit allow_url_fopen nichts zu tun.
GeCk0: und savemode ?
@bigfoot-: safe_mode ist eher schon ein problem, kommt drauf an, wo dieses verzeichnis liegt
Kunsi: Warning: imap_open(): Couldn't open stream {ts-hoster.de:143}INBOX in /var/www/www.ts-hoster.de/www/support/index.php on line 2
Kunsi: was will mir das sagen?
Kunsi: $imap = imap_open("{ts-hoster.de:143}INBOX", 'support@ts-hoster.de', '');
Kunsi: bzw. was ist da falsch oO
dispy: Moin
hellangel: Kunsi: nein, wieso?
hellangel: A mailbox name consists of a server and a mailbox path on this server. The special name INBOX stands for the current users personal mailbox. Mailbox names that contain international characters besides those in the printable ASCII space have to be encoded width imap_utf7_encode().
hellangel: The server part, which is enclosed in '{' and '}', consists of the servers name or ip address, an optional port (prefixed by ':'), and an optional protocol specification (prefixed by '/').
dispy: wie kann ich über die Konsole einen PHP-Prozess starten (CLI), ohne dass er mir den "eingabecurser" fängt?
dispy: ich probiers momentan über php -f process.php [params] > /dev/null
S1kx: & anhängen
dispy: trotzdem blockiert er damit meine Konsole
dispy: wo das & anhängen?
S1kx: ans ende
hellangel: dispy: nicht dazwischenklemmen sondern anhängen
GeCk0: kk also erst ini-checken und wenn save-mode on, dann weiter, ansonsten abbrechen
hellangel: das impliziert das ziel :P
dispy: geht danke
dispy: was macht das genau, wenn ich fragen darf? ;)
hellangel: dispy: das ist übrigens kein "php-cli-trick" sondern ein toller unix trick :>
hellangel: er unterschied ist, du kannst die konsole weiterhin verwenden, aber jegweiiger output wird dennoch angezeigt
dispy: mhm
dispy: ich dachte eig. >/dev/null verschrottet den output?
S1kx: außer du machst halt 2&>1 > /dev/null &
dispy: ;-)
dispy: ok thx
hellangel: S1kx: die adressen von 2 von 4 werten sind persistent.. die anderen nicht, und ich habs nich ganz mehr gerafft :p musst mir spädda mal helfen :)
S1kx: hellangel: immernoch RoM?
hellangel: nö, der hat ja scho funktioniert :P
S1kx: oke
S1kx: hellangel: hast du schonmal mit FluentDOM etc gearbeitet?
hellangel: ja
hellangel: wenn ich xml mach, dann nur damit :p
S1kx: irgendwie ist das etwas schwul wenn ich eine XML-datei erstelle udn da 1 node einhängen will das so umständlich machen muss:
S1kx: $attack = $item['value']['specialty']['Magic']; $attack_node = FluentDOM('<magic><min/><max/></magic>', 'xml')->find('/magic'); $attack_node->find('./min')->item(0)->nodeValue = $attack[0]; $attack_node->find('./max')->item(0)->nodeValue = $attack[1]; $node->append($attack_node->item(0));
S1kx: geht das einfacher?
dispy: http://np.gfx-dose.de/1894/na/
dispy: über dem Code habe ich noch ein echo "Creating Server...";
S1kx: $node ist halt ein <item>...</item> und da rein soll ein <magic><min>X</min><max>Y</max></magic>
dispy: er hängt sich irgendwie immernoch über der Prozesserstellung auf
dispy: ich seh noch das echo $cmd; und danach kommt nixmehr
hellangel: S1kx: dann mach das doch so ähnlich wie mit javascript
S1kx: dispy: eh ich glaube die 1 vor dem letzten > ist zu viel
hellangel: elemente erstellen und einander appenden
S1kx: hellangel: ja wie denn
dispy: hab sie raugenommen, er hängt sich trotzdem auf
hellangel: http://nightly.fluentdom.org/documentation/__examplesource/exsource__a28ca48ff3918a887ecd4e63cb79db8a.html
hellangel: S1kx
S1kx: so mach ichs doch
hellangel: dispy: das liegt daran, dass shell_exec wartet, bis der prozess fertig is
dispy: welche funktion ist mein freund?
hellangel: S1kx: ja fast
hellangel: Note: If a program is started with this function, in order for it to continue running in the background, the output of the program must be redirected to a file or another output stream. Failing to do so will cause PHP to hang until the execution of the program ends.
S1kx: hellangel: ja wie anders?
dispy: jupp, ich leite das aber um ;)
Seite: < 1 2 3 4 5 > Letzte Seite
Zurück zur ÜbersichtWebseiten Tipps
Hier gehts zum jquery Tutorial.
Meine schwarze Webseite: iPhone4Spiel
