Re: [PHP-DB] screen resolution!
Or you could design your page so that it's not resolution dependant. -Micah On Sunday 05 February 2006 8:28 am, PHP Superman wrote: > Or you can have a page which detects resolution by javascript and redirects > to another PHP page with the resolution data > > On 2/4/06, Bastien Koert <[EMAIL PROTECTED]> wrote: > > As the other poster mentioned you need JS to detect the screen > > widththe > > usual approach is to use js to detect the screen res and the include the > > appropriate CSS file to match the screen res. > > > > Bastien > > > > >From: JeRRy <[EMAIL PROTECTED]> > > >To: php-db@lists.php.net > > >Subject: [PHP-DB] screen resolution! > > >Date: Sun, 5 Feb 2006 02:44:19 +1100 (EST) > > > > > >Hi, > > > > > > I have written a website in PHP using MYSQL. But I have come accross > > > > an > > > > >un-common problem. Normally when I create a website it's done on a > > > > desktop > > > > >PC. But this time for the first time I did it on laptop meaning the > > > > screen > > > > >resolution is different. > > > > > > Is there any sort of script/code I can use to create another section > > > > of > > > > >my site in a desired screen resolution without me having to do it all > > >manually? > > > > > > I know of many scripts online that I can DETERMINE visitors screen > > >resolutions and recommend the correct one but don't know one that will > > >adjust the website to suit that visitors screen resolution. Am aware of > > >scripts that redirect to another web page but that requires you to write > > >the website again to cater for that. > > > > > > Is there a quicker way/solution? > > > > > > Thanks! > > > > > > J > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Subject: screen resolution!
I suggest you use JavaScript rather than PHP, because when using server side scripts, you most probably need to use functions/variables out of the Document Object Model (DOM). When you use JavaScript, no extra trafic is generated on the network/internet, and that isn't even necessary! Specificaly, use the javascript variables "document.body.clientWidth|clientHeight", inside a JavaScript. When these variables, that represent the number of pixels of the browser-window, are read, then you can draw anything to the screen that fits into these values of pixels. You don't need separate css-stylesheets or tables, as mentioned by the other posters in this thread! E.g.(I allready posted this message, but it was only sent to JeRRy. Oops!) - Original Message - From: "Neil Smith [MVP, Digital media]" <[EMAIL PROTECTED]> To: Sent: Sunday, February 05, 2006 7:17 PM Subject: [PHP-DB] Re: Subject: screen resolution! At 08:41 05/02/2006, you wrote: Message-ID: <[EMAIL PROTECTED]> Date: Sun, 5 Feb 2006 02:44:19 +1100 (EST) From: JeRRy <[EMAIL PROTECTED]> To: php-db@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-733704850-1139067859=:48594" Content-Transfer-Encoding: 8bit Subject: screen resolution! Hi, I have written a website in PHP using MYSQL. But I have come accross an un-common problem. Normally when I create a website it's done on a desktop PC. But this time for the first time I did it on laptop meaning the screen resolution is different. Is there any sort of script/code I can use to create another section of my site in a desired screen resolution without me having to do it all manually? I would really recommend that screen size / resolution detection is no longer the way forward. It's perfectly possible to use CSS +/- XHTML correctly to have the page reflow without all the stylesheet switching hacks that would be required in the 'old school' (read : 1999) way of doing things. You'd need to use structural markup rather than try to 'force to fit' with tables etc, but it's entirely possible to generate flexible layouts that can display on any device, even a PDA, without screen size detection. Search engines like sematic layout too, and your menu for example may not be the first thing they or a screen reader encounters in the page - though it may *appear* at the top of the page due to CSS telling it where to be displayed. Here are some links for you to consider : all are worth reading and digesting from end to end. http://glish.com/css/8.asp http://www.alistapart.com/stories/journey/ http://www.positioniseverything.net/articles/onetruelayout/ http://www.csszengarden.com/ I know of many scripts online that I can DETERMINE visitors screen resolutions and recommend the ** Assuming javascript is turned on, or even the display device supports that detection. And bear in mind, many users *may not wish* to have their browser maximised just to view your site. HTH Cheers - Neil -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Subject: screen resolution!
At 08:41 05/02/2006, you wrote: Message-ID: <[EMAIL PROTECTED]> Date: Sun, 5 Feb 2006 02:44:19 +1100 (EST) From: JeRRy <[EMAIL PROTECTED]> To: php-db@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-733704850-1139067859=:48594" Content-Transfer-Encoding: 8bit Subject: screen resolution! Hi, I have written a website in PHP using MYSQL. But I have come accross an un-common problem. Normally when I create a website it's done on a desktop PC. But this time for the first time I did it on laptop meaning the screen resolution is different. Is there any sort of script/code I can use to create another section of my site in a desired screen resolution without me having to do it all manually? I would really recommend that screen size / resolution detection is no longer the way forward. It's perfectly possible to use CSS +/- XHTML correctly to have the page reflow without all the stylesheet switching hacks that would be required in the 'old school' (read : 1999) way of doing things. You'd need to use structural markup rather than try to 'force to fit' with tables etc, but it's entirely possible to generate flexible layouts that can display on any device, even a PDA, without screen size detection. Search engines like sematic layout too, and your menu for example may not be the first thing they or a screen reader encounters in the page - though it may *appear* at the top of the page due to CSS telling it where to be displayed. Here are some links for you to consider : all are worth reading and digesting from end to end. http://glish.com/css/8.asp http://www.alistapart.com/stories/journey/ http://www.positioniseverything.net/articles/onetruelayout/ http://www.csszengarden.com/ I know of many scripts online that I can DETERMINE visitors screen resolutions and recommend the ** Assuming javascript is turned on, or even the display device supports that detection. And bear in mind, many users *may not wish* to have their browser maximised just to view your site. HTH Cheers - Neil -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] screen resolution!
Or you can have a page which detects resolution by javascript and redirects to another PHP page with the resolution data On 2/4/06, Bastien Koert <[EMAIL PROTECTED]> wrote: > > > As the other poster mentioned you need JS to detect the screen > widththe > usual approach is to use js to detect the screen res and the include the > appropriate CSS file to match the screen res. > > Bastien > > > >From: JeRRy <[EMAIL PROTECTED]> > >To: php-db@lists.php.net > >Subject: [PHP-DB] screen resolution! > >Date: Sun, 5 Feb 2006 02:44:19 +1100 (EST) > > > >Hi, > > > > I have written a website in PHP using MYSQL. But I have come accross > an > >un-common problem. Normally when I create a website it's done on a > desktop > >PC. But this time for the first time I did it on laptop meaning the > screen > >resolution is different. > > > > Is there any sort of script/code I can use to create another section > of > >my site in a desired screen resolution without me having to do it all > >manually? > > > > I know of many scripts online that I can DETERMINE visitors screen > >resolutions and recommend the correct one but don't know one that will > >adjust the website to suit that visitors screen resolution. Am aware of > >scripts that redirect to another web page but that requires you to write > >the website again to cater for that. > > > > Is there a quicker way/solution? > > > > Thanks! > > > > J > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!
[PHP-DB] problems with mysqli extension
Hello! I've can't get php to communicate through mysql via the unix socket. I've compiled apache-2.0.55, mysql-5.0.18 and php-5.1.2. I've configured mysql to put the unix socket in the /var/run/mysql/mysql.sock file. Among the compilation options that I passed to php, there are "--with-mysqli=shared,/usr" and "--with-mysql-sock=/var/run/mysql/mysql.sock". I've started the mysql and httpd daemons. To test the connection to mysql I've used the following php script: [code] ", mysqli_connect_errno()); exit(); } printf("Host information: %s", $mysqli->host_info); $mysqli->close(); ?> [/code] All I get is "Connect failed: can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (13)" but the socket file is there! I'm in desperate need of help. Thanks Filippo -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] First web app, ever, so please bear with me
Greetings all! I am finally taken the plunge and started trying to develop a web application. I've got a fair amount of web design experience with straight up HTML, I've written a few scripts with perl, and I'm slightly familiar with SQL. This is to give you some background... I'm by no means experienced so please bear with me. Currently I'm using a forum to gather business reviews from subscribers to a website. Once a substantial number have been gathered, I want to use them to populate a database that can be appended to by users. The actual application (once data has been migrated) will have two uses: first, users should be able to search by geographic area for businesses based on zip code, town name, business name, distance from a given zipcode, etc. If a certain field isn't filled in, it should be assumed to be a wildcard (for instance, if a user would enter no business name, or town name, but they do enter 10 mile radius from 90210, then all businesses within 10 miles of 90210 that have reviews will be displayed). I'd like to use a similar form to allow users to submit reviews for new businesses. Most of this may seem pretty simple, but like I said, I've never worked with PHP before, or SQL, let alone both. And whats worse, I've got no idea how to do anything with the geographical code (the X mile radius from zip code Y thing). So, where would be a fair place to get started (besides the obvious php.net)? I hope this wasn't too vague - thanks again guys! Also, this is my first post, so please be gentle :)
[PHP-DB] Problems in creating image
Hi, I want to insert a securityimage within a registrationform. Unfortunately the securityimage-scripts is putting out errors. Actualy I have the whole project that include also these scripts on my local host under /srv/www/htdocs/. What can be wrong because the script only says that it cant be displayed because there are errors in the script. What errors that are not mentioned. The database "Moneysql1" mentioned in the script is stored localy. As Attachment the script. Regards, Ruprecht -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php