• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
How would you approach a business to offer web/graphic design services? This new place called 'Tea Temple' just opened in my area and I think their website was done in microsoft publisher, as was their logo. Do you think I'd be able to ask for payment to redesign their stuff or should I do it for free? I'm looking for more web design experience so I don't mind doing it for free, I'm just not sure whether people would normally charge if they are the ones who approached the company. Thanks
This is probably a REALLY stupid question, but what is PHP used for in Web Development? I'm a beginner but I already know HTML and CSS and am currently learning JavaScript but when I look at some web page sources, I don't see any PHP tags anywhere at all and it looks like it's not used in the general development/design of the web page at all. What's up with that?
[QUOTE=NotMeh;31224986]This is probably a REALLY stupid question, but what is PHP used for in Web Development? I'm a beginner but I already know HTML and CSS and am currently learning JavaScript but when I look at some web page sources, I don't see any PHP tags anywhere at all and it looks like it's not used in the general development/design of the web page at all. What's up with that?[/QUOTE] The most common use is probably databases and forms, but there are a tonne of uses for it PHP is a server-side script so php code doesn't show up when someone views the source
Ooh Well that explains it, thanks.
[QUOTE=NotMeh;31224986]This is probably a REALLY stupid question, but what is PHP used for in Web Development? I'm a beginner but I already know HTML and CSS and am currently learning JavaScript but when I look at some web page sources, I don't see any PHP tags anywhere at all and it looks like it's not used in the general development/design of the web page at all. What's up with that?[/QUOTE] Okay to extend on Alcapwne's answer PHP is a server-side thing; the server does its own heavy lifting to spit out [del]text[/del] stuff for your browser to process. You could be building a webpage with it, or something like taking some CSS files residing on the server, running gzip compression and having PHP spit out the end result, plus with some headers set to tell browsers to cache it.
How can I check the amount of players on a CS:S/Garry's Mod server and the map? I'm guessing using PHP?
[QUOTE=Adzter;31225966]How can I check the amount of players on a CS:S/Garry's Mod server and the map? I'm guessing using PHP?[/QUOTE] Look into [url=http://developer.valvesoftware.com/wiki/Server_queries]Source Server Queries[/url].
I'm rather new to PHP and I get the error: Parse error: syntax error, unexpected T_DNUMBER in /home/jtdtiqvx/public_html/test/query.php on line 46 Which is [html] $ip = 69.175.20.181:27015; [/html] Any ideas what I'm doing wrong?
$ip = "69.175.20.181:27015";
Hmm... now I seem to get getting: Fatal error: Call to undefined function format_source_query() in /home/jtdtiqvx/public_html/test/query.php on line 48 Which is $q = format_source_query($query); Heres my script: [url]http://pastebin.com/nSTDCKXQ[/url]
[QUOTE=Adzter;31226869]Hmm... now I seem to get getting: Fatal error: Call to undefined function format_source_query() in /home/jtdtiqvx/public_html/test/query.php on line 48 Which is $q = format_source_query($query); Heres my script: [url]http://pastebin.com/nSTDCKXQ[/url][/QUOTE] where are you loading the function format_source_query() ? from what you've shown us you aren't...
The error is pretty clear mate, "Call to undefined function format_source_query()", means there is no such function, you haven't created it.
Does anyone know why when I try to update the wordpress plugins Im getting this page? [url]http://www.searchdiscovered.com/?dn=webcache109.com&pid=5POXE2HY6[/url] It appears with any plugin I try to update, my main concern is that I looked searchdiscovered.com up and they seem to be some malicious site that tries to hijack wordpress sites and domains
I'm a beginner at web design, so I decided to get some practice by redesigning a site that I made for Web Design class. I'm trying to get the logo aligned with the main part of the page, like this: [img]http://dl.dropbox.com/u/6909475/Capture6.PNG[/img] But even though I add "margin:auto" to the CSS for the header, it still ends up on the left side of the page: [url]http://dl.dropbox.com/u/6909475/site/index.html[/url] Any help?
[QUOTE=Wowza!;31234709]I'm a beginner at web design, so I decided to get some practice by redesigning a site that I made for Web Design class. I'm trying to get the logo aligned with the main part of the page, like this: [img]http://dl.dropbox.com/u/6909475/Capture6.PNG[/img] But even though I add "margin:auto" to the CSS for the header, it still ends up on the left side of the page: [url]http://dl.dropbox.com/u/6909475/site/index.html[/url] Any help?[/QUOTE] set the width as same as the content and put margin:auto;
[QUOTE=zzlawlzz;31235135]set the width as same as the content and put margin:auto;[/QUOTE] It worked. Thanks!
[QUOTE=Wowza!;31235640]It worked. Thanks![/QUOTE] You should try to use actual text, instead of text in an image, where possible. It looks nicer if the user wants to zoom into the website, and also allows more flexibility when editing.
What tips could you guys offer me for how to make a website for mobile devices, in terms of ease of use.
[QUOTE=AzzyMaster;31252556]What tips could you guys offer me for how to make a website for mobile devices, in terms of ease of use.[/QUOTE] No big images, as little stuff on it as possible, no javascript (I don't think all mobile browsers support it)
[QUOTE=Alcapwne;31252658]No big images, as little stuff on it as possible, no javascript (I don't think all mobile browsers support it)[/QUOTE] To add to this, make the text quite big, I hate having to zoom in.
-snip-
[QUOTE=AzzyMaster;31252556]What tips could you guys offer me for how to make a website for mobile devices, in terms of ease of use.[/QUOTE] It depends on your expected audience. Are you expecting smart phone users, or users using WAP browsers? If you're audience consists of WAP browsers, I'd reccomend making the site as lightweight as you can. With smart phone browsers, you are allowed a lot more freedom, especially platforms like iOS, Android, Palm, Windows Phones, and, eventually, WebOS. There are a lot features you can incorporate that modern smart phones provide. • [URL="http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/GettingGeographicalLocations/GettingGeographicalLocations.html#//apple_ref/doc/uid/TP40002051-CH5-SW2"]Location services[/URL] • [URL="http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW1"]Touch gestures[/URL] • [URL="http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html#//apple_ref/doc/uid/TP40002051-CH3-SW3"]"Standalone" feature (iOS)[/URL] • Offline caching ([URL="http://diveintohtml5.org/offline.html"]Cache Manifests[/URL], [URL="http://developer.apple.com/library/safari/#codinghowtos/Desktop/DataManagement/_index.html"]WebDB[/URL]) • HTML5 capabilities like <audio>, <video>, and <cavas> elements But there are a few key things to remember, mainly relating to performance and ease of use. • You can use Javascript, just [URL="http://www.developer.nokia.com/Community/Wiki/JavaScript_Performance_Best_Practices"]use it efficiently[/URL]! • [URL="http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html"]Understand the viewports[/URL], they function differently on mobile devices (rendering position:fixed almost useless) • Use caching effectively, Cache Manifests can greatly reduce the number of HTTP requests made, and for other browsers, use far future expiration Excuse the abundance of Apple documentation, but the information is very well documented, and with the exception of "standalone" web apps, everything I linked should work among the more popular mobile browsers (generally, webkit based browsers). I hope this is helpful to you, and anyone who could benefit from these references.
Don't rely on WebDB, at this point you may as well consider it a WebKit proprietary extension. If you design your site well (separation of content and design, etc.), you could serve the same markup to handheld and desktop browsers, but allow the style to change based on media queries (Phones would need their own theme, but a tablet could handle the desktop layout, but with larger buttons, etc.)
As some of you have seen in WAYWO I'm working on "[URL="http://www.facepunch.com/threads/1106128-What-are-you-working-on-v6?p=31247741&viewfull=1#post31247741"]Milli[/URL]", and I would like for the content section of the page to fade in and out depending on what link is clicked "Welcome, Biography, Portfolio ,Contact". I'm presuming the best way of doing this is via jquery? Could someone please tell me how to or link me to something I can use as reference? Much appreciated!
I'd love an answer for this: Who at sony decided that a plaintext captcha was a good idea? [url]http://pro.sony.com/bbsc/jsp/forms/generateCaptcha.jsp[/url]
[QUOTE=Morphology53;31267721]I'd love an answer for this: Who at sony decided that a plaintext captcha was a good idea? [url]http://pro.sony.com/bbsc/jsp/forms/generateCaptcha.jsp[/url][/QUOTE] The one who decided to do it in Comic Sans.
[QUOTE=Jelly;31267751]The one who decided to do it in Comic Sans.[/QUOTE] Cursive != Comic Sans.
[QUOTE=Morphology53;31268168]Cursive != Comic Sans.[/QUOTE] [img]http://i.imgur.com/BOMDw.png[/img] That's comic sans. [editline]23rd July 2011[/editline] For some reason you don't think Comic Sans is in the cursive font family. [quote]The only cursive font that is likely to be present on all systems is Microsoft Comic Sans MS[/quote] Source: [url]http://www.codestyle.org/css/font-family/sampler-Cursive.shtml[/url] It is.
In firefox I liked using firebug to live edit the styles of a webpage. In Chrome with the firebug app it isn't so easy. Can anyone recommend an extension for chrome that lets you edit your stylesheet in plain text and have it update in the browser as you type?
Pretty sure Chrome can do that by default? Just Inspect element and changed the values to the right, it updates them real-time.
Sorry, you need to Log In to post a reply to this thread.