- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Hais
For a website I need to make a very simple database of members and their information but I don?t have a database to write to. It need make a form to add new members to it so I thought using PHP and writing an XML file would be the simplest? Its not private information so im not too worried about somebody reading the xml file.
Writing something simple for example:
<member>
<name> Mr Example </name>
<type> admin </type>
<location> London </location>
<email> email@email.com</email>
</member>
Really I need some basic tutorials appending to XML files. Although Reading and parsing the file I can do, editing the file is another thing. I can set read/write permissions its just writing the code to do it!
I hope you get what I mean. I can adapt PHP code but not very good at writing it from scratch:blush:h:
EDIT: After re-googleing (if thats a word) i found this on the PHP site on appending to xml files:
$file_name="my_xml.xml"; $dom = new DomDocument(); $dom->load($file_name); $item = $dom->createElement("item"); $title = $dom->createElement("title"); $link=$dom->createElement("link"); $titletext = $dom->createTextNode("New Title"); $title->appendChild($titletext); $link_text=$dom->createTextNode("New Link"); $link->appendChild($link_text); $item->appendChild($title); $item->appendChild($link); $dom->documentElement->appendChild($item); $dom->save($file_name);
Edited by haisdeaksLink to comment
https://www.neowin.net/forum/topic/492849-writing-and-parsing-xml-files-with-php/Share on other sites
1 answer to this question
Recommended Posts