Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 63

Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 73

Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 89

Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 102

Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Cookie/Jar.php on line 111

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82

Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/webvol14/so/emm9jypq7227iqw/linuxkitchen.com/public_html/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
PHP i HTML, nastavak – Linux, Windows, Heklanje, Kuhinja

Čudna stvar, u imenu PHP fajla NE SMETE koristiti znak “+”.
Zašto? Nemam pojma, ali daje vrlo čudnu grešku, i stranicu naravno ne prikazuje…..
Neke dodatne skraćenice :
DOM – document object model
U HTML tabeli su sledeće oznake :
th – zaglavlje tabele
tr – red u tabeli
td – ćelija u redu
Tabellen-aufbau
**********
Potrebno je da iz postojećih HTML tabela (moj katalog usluga) izvučem podatke o nazivu usluge i vlasniku, i to (za svih xyz usluga) stavim u novu tabelu (koja ima samo dve kolone : naziv usluge i vlasnika).
**********
Evo kako iz dokumenta abc-it.html prikazati sadržaj koji je POSLE ključne reči Naziv :
php-prikaz-dela-fajla-od-reci-nadalje
I evo kako se iz celog teksta (prikaza jedne usluge) izvači samo naziv usluge :
php-prikazdelafajlaizmedjudvefraze
I koje su koje promenljive u celoj priči :
oznakepromenljivih
Ideju sam dobila odavde : link.
*************************
Cela priča za HTML fajlove radi savršeno, ali ne i za PHP fajlove.
Funkcija file_get_contents ne “hvata” izlaz PHP fajla kako valja, već na mestima gde su PHP funkcije daje kuke I verige (file_get_contents() doesn’t execute PHP statements).
Evo kako sam na kraju napisala i tu funkciju tako da radi :
php-unutar-phpa
I odličan link po tom pitanju : link.
**********************
Ovo sve odlično radi, ali bi bilo mnogo bolje da su podaci u tabeli.
Ali ako pokušam da PHP skripte stavim u HTML tabelu, sve ispadne pomereno na desno i na dole, i to bez nekog smisla.
Evo šta sam pokušala, a nije uspelo : naredba htmlentities, izbacivanje PHP-a ispred tabele, i/ili unutar tabele, return umesto echo (unutar PHP funkcije), različiti navodnici za prizivanje fajla po imenu (” ili ‘), različiti načini prikaza podataka tj. echo i print

By velda