• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
I'm wondering if anyone knows of a simple php script I can put in a page that will allow it to be editable. Preferably requiring a login, and without requiring a database. I could do this using a CMS, but it's not for me, and I don't have time to code it myself (and am very rusty in php). I have some students creating websites for various clients, and I haven't covered any php (because it's more advanced than what they are capable of at this stage). One of them comes up to me after completing the website (due this friday), which was meant to be static (one of the specifications given in the brief) and says "Oh, and my dad wants to be able to update this news page himself". Her dad knows no html. So, I thought I'd just quickly ask if anyone knows of a decent php script that is easy to install, or that I might be able to implement that will allow someone to log in to a page, edit a section of text, save it and logout and have it update. No idea if it's possible without a database.
[QUOTE=Lukasaurus;32969916]I'm wondering if anyone knows of a simple php script I can put in a page that will allow it to be editable. Preferably requiring a login, and without requiring a database. I could do this using a CMS, but it's not for me, and I don't have time to code it myself (and am very rusty in php). I have some students creating websites for various clients, and I haven't covered any php (because it's more advanced than what they are capable of at this stage). One of them comes up to me after completing the website (due this friday), which was meant to be static (one of the specifications given in the brief) and says "Oh, and my dad wants to be able to update this news page himself". Her dad knows no html. So, I thought I'd just quickly ask if anyone knows of a decent php script that is easy to install, or that I might be able to implement that will allow someone to log in to a page, edit a section of text, save it and logout and have it update. No idea if it's possible without a database.[/QUOTE] It could be done with a text file as storage, although not secure at all. I guess that is your decision.
It's probably too complex, but [url=https://github.com/mojombo/jekyll]Jekyll[/url] is very good.
So having not done any web stuff for a year and a half, I need to refresh my skills for my new job. Basic html has me getting very angry because I have absolutely no idea what the fuck it is doing. I am making a basic HTML form, userbname and password, nothing complicated. [code]Username:<input type="text" name="username" size="16" maxlength="30" />[/code] That is one of the inputs, yet when it is displayed, the field box is before the text and the colon is before the text. so it loos like this. [ ] :Username I feel completely stupid for now knowing what the fuck is going on, I have never had this before. XHTML 1.0 Strict.
With PHP, is there any way to create images without using the GD library?
ImageMagick
[QUOTE=loony383;32972864]So having not done any web stuff for a year and a half, I need to refresh my skills for my new job. Basic html has me getting very angry because I have absolutely no idea what the fuck it is doing. I am making a basic HTML form, userbname and password, nothing complicated. [code]Username:<input type="text" name="username" size="16" maxlength="30" />[/code] That is one of the inputs, yet when it is displayed, the field box is before the text and the colon is before the text. so it loos like this. [ ] :Username I feel completely stupid for now knowing what the fuck is going on, I have never had this before. XHTML 1.0 Strict.[/QUOTE] try [php] <label for="username"> Username: </label> <input type="text" name="username" size="16" maxlength="30"> [/php] im reaaally not sure though
-snip- stupid me
[QUOTE=TehWhale;32973917]ImageMagick[/QUOTE] All I see is binaries.. How can I use this with PHP? (I cant install extensions)
[QUOTE=Darkwater124;32974546]All I see is binaries.. How can I use this with PHP? (I cant install extensions)[/QUOTE] [url]http://www.imagemagick.org/script/api.php?ImageMagick=lig6ot5mf781csaafn2lapr154#php[/url] found it. idk if it will help you.
[QUOTE=Elexar;32974124]try [php] <label for="username"> Username: </label> <input type="text" name="username" size="16" maxlength="30"> [/php] im reaaally not sure though[/QUOTE] Nothing, same result, I even tried using it in a table and somehow the tags completely ignored a table and still did it, what the fuck could cause to ignore the layout and even move the characters around? The text is Username: yet it changes it to :Username
[QUOTE=loony383;32975041]Nothing, same result, I even tried using it in a table and somehow the tags completely ignored a table and still did it, what the fuck could cause to ignore the layout and even move the characters around? The text is Username: yet it changes it to :Username[/QUOTE] CSS? Sounds like the input is floated or something.
[QUOTE=SataniX;32975742]CSS? Sounds like the input is floated or something.[/QUOTE] Nothing to do with my CSS, for some reason, if I remove the line defining the xml revision, all works... (I only had it in there because w3validator requests it)
Also, what is the best way to make a multiple file uploader? Ive seen several AJAX and Flash scripts, but Im not sure what to use...
[QUOTE=Lukasaurus;32969916]I'm wondering if anyone knows of a simple php script I can put in a page that will allow it to be editable. Preferably requiring a login, and without requiring a database. I could do this using a CMS, but it's not for me, and I don't have time to code it myself (and am very rusty in php). I have some students creating websites for various clients, and I haven't covered any php (because it's more advanced than what they are capable of at this stage). One of them comes up to me after completing the website (due this friday), which was meant to be static (one of the specifications given in the brief) and says "Oh, and my dad wants to be able to update this news page himself". Her dad knows no html. So, I thought I'd just quickly ask if anyone knows of a decent php script that is easy to install, or that I might be able to implement that will allow someone to log in to a page, edit a section of text, save it and logout and have it update. No idea if it's possible without a database.[/QUOTE] What do you mean you [I]could[/I] do this using a CMS. What you are describing IS a CMS, it doesn't matter whether you've coded it yourself or not lol. Look at concrete5, it's really simple/quick to set up and none of my clients have had any issues using it, and a lot of them are not at all technically inclined.
[QUOTE=Ac!dL3ak;32947455][img]http://dl.dropbox.com/u/11275736/s/d/f/eh.PNG[/img] [editline]24th October 2011[/editline] there! can you see it? [editline]24th October 2011[/editline] it does do it, and in some cases, it drives me insane because it fucks up the whole thing[/QUOTE] here have another picture [t]http://dl.dropbox.com/u/11275736/s/d/032.png[/t] the "hello" button looks weird
[url=guest.toaster468.com]guest.toaster468.com[/url] Finally got it solved!
[QUOTE=toaster468;32983552][url=guest.toaster468.com]guest.toaster468.com[/url] Finally got it solved![/QUOTE][IMG]http://i.imgur.com/Qd805.png[/IMG] You should really use PDO so you don't have to tell people not to use apostrophes.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' ""' '\ \ 'a w'\\nnn\\n\n\\n\y\\\t\t\b\\\/t/tt/\'t' '' '"'t't' ' at line 1
[QUOTE=toaster468;32983552][url=guest.toaster468.com]guest.toaster468.com[/url] Finally got it solved![/QUOTE] Ah yes, the tried and tested security-through-politeness method! Use parameterized queries, toaster, I'll help you get it running if you need help.
Has anyone used kohana? A kid in my school recommended it to me and i just started using it, but there seems to be an error with 404 [url]http://Jung3o.com/!-!/kohana/!/[/url]
[QUOTE=toaster468;32983552][url=guest.toaster468.com]guest.toaster468.com[/url] Finally got it solved![/QUOTE] Might want to check if a message was actually submitted. [url]http://guest.toaster468.com/postreply.php[/url]
[QUOTE=KmartSqrl;32977290]What do you mean you [I]could[/I] do this using a CMS. What you are describing IS a CMS, it doesn't matter whether you've coded it yourself or not lol. Look at concrete5, it's really simple/quick to set up and none of my clients have had any issues using it, and a lot of them are not at all technically inclined.[/QUOTE] Thanks :) I had a look.. not what I need. I just need a simple script to allow one section of a page to be editable. I don't need a backend. I don't know if it is possible. There is no way this student can modify her static HTML page to work with a CMS and I'm not going to do it, since I have plenty of other stuff to mark. I was wondering if there was a script that would allow one section of one of the HTMLpages to be edited, maybe with something like fckeditor. But thanks for that CMS. I've been looking for something like that for a while. The ones I have used before have been bloated, and the ones that haven't are a nightmare to work with (Light n easy cms is good for small sites and templating but bloody annoying to work with anything that has more than 4 pages).
[QUOTE=Ac!dL3ak;32981512]here have another picture [t]http://dl.dropbox.com/u/11275736/s/d/032.png[/t] the "hello" button looks weird[/QUOTE] is this blue or purple
[img]http://dl.dropbox.com/u/1439918/Pics/2011-10-26_2220.png[/img] That is definitely purple.
[QUOTE=TehWhale;32984626][img]http://dl.dropbox.com/u/1439918/Pics/2011-10-26_2220.png[/img] That is definitely purple.[/QUOTE] looks blue to me and jesus christ that is shit
I recall someone here was making a service that allows you to obtain a direct download link, skipping the wait times and the surveys for multiple services. Who is that person and what site is that again?
[QUOTE=Sprite;32985267]I recall someone here was making a service that allows you to obtain a direct download link, skipping the wait times and the surveys for multiple services. Who is that person and what site is that again?[/QUOTE] TerabyteS_ and i think [url]http://qfi.im[/url]
Hrm. I wonder if the uploader still gets paid when a premium account downloads the link. The only issue i see with this is that qfi.im is either using a single premium account which may complicate my earnings.
I'd say it's blue. But different countries/cultures call different shades of colours different names.
Sorry, you need to Log In to post a reply to this thread.