Web Dev Questions That Don't Need Their Own Thread v4
5,001 replies, posted
-snip-
Jonny I've looked at all the sites you've built and they all have stretched images.
Also a [URL="http://www.downendhortsoc.co.uk/"]site you list[/URL] in your portfolio on which you claim to have designed it is clearly just a template you used [url]http://btemplates.com/2009/blogger-template-peach-bloom-spring/[/url].
[IMG]http://i.imgur.com/JgzhEdD.jpg[/IMG]
[QUOTE=ENG.jonny;45571138]Hey,
On my DEV site which is [URL="http://development.jonathanmaby.co.uk/index.php"]here[/URL], how can I position the 'WELCOME' box UNDER the slide show? I've tried all sorts of things. Right click to view source code, I would post here but I'm out at the moment.
P.S Moofy please don't be mad at me for posting this D:[/QUOTE]
That entire dev site is poorly designed, and relies too much on absolute positioning. My suggestion is learn HTML and CSS first, THEN remake it.
[QUOTE=CBastard;45571991]in your portfolio on which you claim to have designed it is clearly just a template you used.[/QUOTE]
Yes, which is how Drupal works which I stated in my dev/live site that the websites I made were through Drupal. Yes you can create your own themes in Drupal, but if there is a theme that fits the purpose of the site already, then there isn't the need to spend time designing it all over again.
The Designed by is simply to say the website was designed by me. I'll reword it when I get time to something like Website by.
TrinityX, yeah i'm still learning basics, making an actual site for practice probably isn't the best thing to do. It is only a development site though so it's not an actual 'work' of mine, just me experimenting.
[QUOTE=ENG.jonny;45572485]Yes, which is how Drupal works which I stated in my dev/live site that the websites I made were through Drupal. Yes you can create your own themes in Drupal, but if there is a theme that fits the purpose of the site already, then there isn't the need to spend time designing it all over again.
The Designed by is simply to say the website was designed by me. I'll reword it when I get time to something like Website by.[/QUOTE]
No, that's still improper use. Link to the template you used and credit accordingly.
[QUOTE=TrinityX;45572546]No, that's still improper use. Link to the template you used and credit accordingly.[/QUOTE]
If you actually downloaded and read the file that came with it, it said do whatever you want with the theme, edit it to your own liking. Practically do what you want. In which I did.
Yes I might be wrong to think like that, but either way there is no need to be a cunt and rude with the way you get your point across.
- I can understand why I don't use Facepunch as much these days. Trying to be an adult on it is practically impossible.
Edit:
I checked your download version and it appears to be different to the one which I downloaded from [URL="https://www.drupal.org/project/gardening"]here[/URL]. So please don't yap how it says leave credit, when the one I downloaded had a different set of instructions. I will however change what it says when I get home.
[QUOTE=01271;45569586]PHP will show the number normally on some distributions while on others it will not, is there just a php.ini configuration it can use?[/QUOTE]
If you're developing on a 32-bit system, the maximum value for a standard unsigned 32-bit integer would be 2^32 - 1, which is exactly 4,294,967,295 (4 billion, 294 million, 967 thousand, 295 (thanks wolfram!)); the value you gave above is definitely larger than what can be stored in an unsigned 32-bit integer.
However, if you're developing on a 64-bit system, the maximum value for a standard unsigned 64-bit integer is exactly 2^64 - 1, or 18,446,744,073,709,551,615 (18 quintillion, 446 quadrillion, 774 trillion, 73 billion, 709 million, 551 thousand, 615); the value you gave above is definitely smaller than this max (and would even be able to fit in a signed 64-bit integer!).
Therefore, PHP probably converts it to that form in order to be able to correctly represent its value on 32-bit systems.
I have been trying to make my own shell [url]http://first-men-in-the-moon.com/shell.php[/url]. The idea was that it will use JS/Ajax to update stuff in realtime.
But when I try to grab text from [url]http://first-men-in-the-moon.com/shell_cmd.php[/url] it always returns [object Object].
Could anyone help me with my problem?
[QUOTE=Nicolas;45584153]I have been trying to make my own shell [url]http://first-men-in-the-moon.com/shell.php[/url]. The idea was that it will use JS/Ajax to update stuff in realtime.
But when I try to grab text from [url]http://first-men-in-the-moon.com/shell_cmd.php[/url] it always returns [object Object].
Could anyone help me with my problem?[/QUOTE]
You're not getting a string back, but rather an object. Assuming you know what an object is this is easy to fix.
Ok so I fixed my issue a day ago but fp was not letting me post. The proper question actually was "why does mongodb return floating point numbers instead of proper ints."
The short answer is: "pecl upgrade-all".
It turns out the mongodb driver for php was doing it, despite my php being 64 bit, having
[code]
var_dump(PHP_INT_SIZE, PHP_INT_MAX);
int(8) int(9223372036854775807)
9223372036854775807 //max possible number.
76561198013370444 //my number.
[/code]
So I'm leaving this here in case someone else has a problem.
Ok so new problem.
I'm doing anti-CSRF and I've got some really stupid options here.
I can use $_SERVER['HTTP_ORIGIN'] which is only available on chrome and $_SERVER['HTTP_HOST'] which is on firefox.
How do I prevent CSRF if it's up to the browser to decide what variables my server can use...
[QUOTE=01271;45587035]Ok so new problem.
I'm doing anti-CSRF and I've got some really stupid options here.
I can use $_SERVER['HTTP_ORIGIN'] which is only available on chrome and $_SERVER['HTTP_HOST'] which is on firefox.
How do I prevent CSRF if it's up to the browser to decide what variables my server can use...[/QUOTE]
generate a token on forms that gets invalidated after use and make sure it's present?
[QUOTE=supersnail11;45390371]I wrote one yesterday: [url]http://pastebin.com/ttJmJ1Ju[/url][/QUOTE]
Since the creator is perma'd, can someone fix something in this script? It breaks any link which has "=" in it (probably because it detects the "=" in "linkfilter/?url=", while it should look for the whole thing), everything else works fine
[QUOTE=damnatus;45587456]Since the creator is perma'd, can someone fix something in this script? It breaks any link which has "=" in it (probably because it detects the "=" in "linkfilter/?url=", while it should look for the whole thing), everything else works fine[/QUOTE]
just get a browser extension. they're faster and don't need to wait for the page to load,
something like [URL="https://chrome.google.com/webstore/detail/link-unclogger/bmbakledanjibbaoghnnockckaobgimp?hl=en"]this[/URL]. (i don't use chrome so i can't exactly help you)
[QUOTE=RusselG;45587598]just get a browser extension. they're faster and don't need to wait for the page to load,
something like [URL="https://chrome.google.com/webstore/detail/link-unclogger/bmbakledanjibbaoghnnockckaobgimp?hl=en"]this[/URL]. (i don't use chrome so i can't exactly help you)[/QUOTE]
Oh, thanks. Never thought it annoyed enough people for someone to make a chrome extension
I've got a dedi linux server running HTTPD and PHP but I can't seem to write a file or folder to the server using PHP, the path I would like to write to is /var/www/html ?
[QUOTE=smidge146;45587849]I've got a dedi linux server running HTTPD and PHP but I can't seem to write a file or folder to the server using PHP, the path I would like to write to is /var/www/html ?[/QUOTE]
Are you sure the user running PHP and httpd has write permissions to the folder?
Does anybody know where I could find a massive list of porn sites?
Edit: It turns out Javascript can't get the :visited selector because of some bullshit privacy thing. Once again the world has been ruined by privacy
[QUOTE=Coffeee;45588838]Does anybody know where I could find a massive list of porn sites?[/QUOTE]
Googled it, this was [I]literally[/I] the first result.
[url]http://www.tblop.com/[/url]
[QUOTE=TrinityX;45588866]Googled it, this was [I]literally[/I] the first result.
[url]http://www.tblop.com/[/url][/QUOTE]
Not a website, a plaintext list
[QUOTE=Coffeee;45588902]Not a website, a plaintext list[/QUOTE]
[code]var l = document.links; for(var i = 0; i < l.length; i++) {console.log(l[i].href)}[/code]
Ran that in my web console. seemed to work.
What websites are good for finding developers/designers? I feel like there is definitely better options than elance.com etc out there, I really don't like using that website. Pretty much everyone I've worked with is garbage for the rate that they're charging.
right here <-------
[QUOTE=Benji;45591604]What websites are good for finding developers/designers? I feel like there is definitely better options than elance.com etc out there, I really don't like using that website. Pretty much everyone I've worked with is garbage for the rate that they're charging.[/QUOTE]
you could try looking on dribbble
[QUOTE=Shadaez;45594683]right here <-------[/QUOTE]
real talk i'll work for like $10/hr if it's interesting and not php
Having issues with PHP and MYsql,
Can't seem to delete entries from the database with php, and I've created a new database but can't write data to it? anyone know what's up?
[QUOTE=smidge146;45597250]Having issues with PHP and MYsql,
Can't seem to delete entries from the database with php, and I've created a new database but can't write data to it? anyone know what's up?[/QUOTE]
Show some code that you use. It's really hard to know what the problem is when the only thing you provide is "I can't write data to it".
Did you make sure the account you're using has access to the DELETE, INSERT and UPDATE commands?
[QUOTE=Coment;45598159]Did you make sure the account you're using has access to the DELETE, INSERT and UPDATE commands?[/QUOTE]
all good now, resinstalled the server with plesk, this ensure all permissions are set correctly.
[editline]5th August 2014[/editline]
is it possible to have a website where a user can click a button which will run another php script which has a header to return to the original page, but if the user was to manually navigate to this script, it wouldn't let them run it without going to the original page and click the button?
[QUOTE=smidge146;45598597]all good now, resinstalled the server with plesk, this ensure all permissions are set correctly.
[editline]5th August 2014[/editline]
is it possible to have a website where a user can click a button which will run another php script which has a header to return to the original page, but if the user was to manually navigate to this script, it wouldn't let them run it without going to the original page and click the button?[/QUOTE]
You could make the button set a POST or GET variable and if it was present the script would run.
Sorry, you need to Log In to post a reply to this thread.