Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. Share your own thoughts and experience, accounts may be terminated for violations.
  • Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Php News

Status
Not open for further replies.
Joined
Jul 8, 2004
Posts
2,605
Reaction score
25
I'm trouble implementing some php news code that works from an XML file

If the xml doesnt exisit it creates the file but when creating the news file, i get this error:

Warning: DOMDocument::save(news.xml) [domdocument.save]: failed to open stream: Permission denied in /home/public_html/news2/add.php on line 81

I have also noticed that i cant upload an XML file the server - is there something i need to change?

any help much appreciated
 
Does the script have write permissions ?

One of my clients servers has to have the EXACT chmod settings due to some whacky settings.

I think it has to be set to 775, anything else and the script is blocked, on the same client, you have to chmod the script/file, the created (xml file) AND the directory. Can you try all that ?
 
have tired no luck
trouble is it didnt work on the developers server either - so cant be sure its permissions or bad code.

Normally with permissions you get an on screen error - i'm getting nothing
 
can i "big up" davedevelopment who kindly took on this coding issue and fixed it!

very much appreciate the advice and services given by the members of this forum especially when its saved me a lot of head scratch and stress . . dummies guide to php would have been tomorrows purchase! :)

Dave - top man - many thanks again for your assistance with this

note to self: dont take on jobs that require php!
 
Status
Not open for further replies.
Top Bottom