• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
If you need the date of when the data was entered you can use MYSQL to fill it automatically.
Can C# be used in webpages?
[QUOTE=Theorisable;30139491]Can C# be used in webpages?[/QUOTE] ASP.NET
[QUOTE=pdkm931;30138839]date('y-m-d H:i:s'); [url]http://www.php.net/manual/en/function.date.php[/url] [editline]30th May 2011[/editline] Will output 2011-05-30 17:10:15[/QUOTE] What the hell, I swear that didn't work earlier...
[QUOTE=Overv;30139582]What the hell, I swear that didn't work earlier...[/QUOTE] [editline]30th May 2011[/editline] post what you have?
Whats a better Control panel for VPS's? SolusVM (I really like this one, its sexy. But it doesnt have an autosetup plugin for ClientExec) or HyperVM (Business partner likes this one, Looks like absolute dog shit, its free. But it does have an autosetup plugin for ClientExec.) So tell me, Which one is best?
[QUOTE=zzlawlzz;30139835][editline]30th May 2011[/editline] post what you have?[/QUOTE] I got it working with that suggestion, it's just that I'm very sure I even tried entering a date manually and it didn't work, like this: [php]mysql_query( "INSERT INTO testtable ( timestamp ) VALUES ( '2010-05-30 19:40:40' )" );[/php]
Why are you formatting your time/timestamp at input instead of on output?
GOD DAMN i don't get it, how can i ajax a file with jquery + greasemonkey in chrome? Piece of shit program.
How do you preview your website without putting it online? i have a template to dick around with :V
[QUOTE=DemH;30143325]How do you preview your website without putting it online? i have a template to dick around with :V[/QUOTE]Open it in your browser if it's just a html template. For php you need to run your own server using Wamp
[QUOTE=TehWhale;30143354]Open it in your browser if it's just a html template. For php you need to run your own server using Wamp[/QUOTE] This is the template, so i guess i need Wamp? [IMG]http://i155.photobucket.com/albums/s313/DemH/gdngfhgh.jpg[/IMG]
No, that's html (from what I can tell). Open it in Firefox/Chrome/whatever you fancy [editline]30th May 2011[/editline] If the extension is .html or .htm then open it up in your browser
Thanks :D
[QUOTE=TehWhale;30143354]Open it in your browser if it's just a html template. For php you need to run your own server using Wamp[/QUOTE] [url=http://zwamp.sourceforge.net/]zwamp[/url] all day every day.
[QUOTE=DemH;30143325]How do you preview your website without putting it online? i have a template to dick around with :V[/QUOTE] [url]http://jsfiddle.net/[/url]
[QUOTE=StinkyJoe;30141714]Why are you formatting your time/timestamp at input instead of on output?[/QUOTE] Probably using a datetime column type
Anyone know a portable apache/mysql/php setup which can be run from a usb hard drive, working on both Mac + Win? I love ZWAMP, so I was thinking of installing that, then installing XAMPP for the Mac stuff and changing the Apache/MySQL data directories to use /volumes/whatever for the hard drive. Sick of syncing MySQL via dropbox/sugarsync, they always fuck it up (mostly due to the MySQL log files taking too long to upload/download).
[QUOTE=Fizzadar;30144547]Anyone know a portable apache/mysql/php setup which can be run from a usb hard drive, working on both Mac + Win? I love ZWAMP, so I was thinking of installing that, then installing XAMPP for the Mac stuff and changing the Apache/MySQL data directories to use /volumes/whatever for the hard drive. Sick of syncing MySQL via dropbox/sugarsync, they always fuck it up (mostly due to the MySQL log files taking too long to upload/download).[/QUOTE] [url=http://www.server2go-web.de/]Server2Go[/url] works like a charm.
So I just installed ZWAMP but adminer is just blank for whatever reason. Anybody know what's up?
[QUOTE=Giraffen93;30142927]GOD DAMN i don't get it, how can i ajax a file with jquery + greasemonkey in chrome? Piece of shit program.[/QUOTE] [code]// ==UserScript== // Metadata // ==/UserScript== if (typeof(google) == 'undefined') { ChromeKludge(unsafeWindow.jQuery); } else { // http://stackoverflow.com/questions/2303147/injecting-js-functions-into-the-page-from-a-greasemonkey-script-on-chrome var script = document.createElement('script'); script.appendChild(document.createTextNode('(' + ChromeKludge + ')(jQuery);')); document.head.appendChild(script); } function ChromeKludge($) { $.post(); // Whatever }[/code]
[QUOTE=deadeye536;30147582][code]// ==UserScript== // Metadata // ==/UserScript== if (typeof(google) == 'undefined') { ChromeKludge(unsafeWindow.jQuery); } else { // http://stackoverflow.com/questions/2303147/injecting-js-functions-into-the-page-from-a-greasemonkey-script-on-chrome var script = document.createElement('script'); script.appendChild(document.createTextNode('(' + ChromeKludge + ')(jQuery);')); document.head.appendChild(script); } function ChromeKludge($) { $.post(); // Whatever }[/code][/QUOTE] I want to use an external script with all my stuff in, because i don't want to restart chrome every time i make a change, but then everything breaks with $.get.
[QUOTE=Giraffen93;30147670]I want to use an external script with all my stuff in, because i don't want to restart chrome every time i make a change, but then everything breaks with $.get.[/QUOTE] Check the developer's console, are you getting something like [code]XMLHttpRequest cannot load http://destinationsite.com. Origin http://www.yoursite.com is not allowed by Access-Control-Allow-Origin.[/code] If you are, then you need to add something like "Header set Access-Control-Allow-Origin "*"" to destinationsite.com's .htaccess file.
ooh, forgot that chrome had that, i'll check tomorrow.
[QUOTE=jaybuz;30146375]So I just installed ZWAMP but adminer is just blank for whatever reason. Anybody know what's up?[/QUOTE] In my case it just errors out for trying to eat too much memory. I don't use it, but if you want to, you can probably fix it by downloading it from [url]http://www.adminer.org/[/url] and replacing the current files.
[QUOTE=StinkyJoe;30147951]In my case it just errors out for trying to eat too much memory. I don't use it, but if you want to, you can probably fix it by downloading it from [url]http://www.adminer.org/[/url] and replacing the current files.[/QUOTE] That fixed it! [editline]31st May 2011[/editline] I made a simple cut down version of the WAMP homepage for Z:WAMP: [url]http://pastie.org/private/wxrxhak2gxrauv1sqxklpa[/url]
[php] <?php namespace herp { class derp { public static $foo = "bar"; } } ?>[/php] gives error [code]Fatal error: Namespace declaration statement has to be the very first statement in the script in code.php on line 1[/code] ???
And it works :buddy:
what
[QUOTE=Ac!dL3ak;30153426]what[/QUOTE] [QUOTE=deadeye536;30147856]If you are, then you need to add something like "Header set Access-Control-Allow-Origin "*"" to destinationsite.com's .htaccess file.[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.