almak için parse_ini_file kullanarak sorunun bir txt dosyasından vars

0 Cevap php

hey guys im using a simple function to read my txt file

Benim txt dosya içeriği aşağıdaki gibi olacaktır:

album= Prisoner
info= Description about this singer 

ve php kodu:

$Path = 'dewp/pix/info.txt';
$product = parse_ini_file($path);
echo $product['album'];
echo $product['info'];

Her şey, benim web sitesine ince ve localhost üzerinde iyi çalışıyor, ama

Web siteme sadece $ Ürünü ['info'] ve cant gösterisi $ Ürünü ['albümü'] gösterir

Bu gerçekten deli olduğunu, neden sadece albüm göstermek olamaz!

bir txt dosyası bu iki eleman almak için başka approch var!?

0 Cevap