Re: [PHP] Re: strtotime
On 17 October 2010 20:34, John Taylor-Johnston wrote: > Yaay, I'm 45 now :). Happy Birthday. ;-) -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Formatting an ECHO statement.
Team, A bit of silly one but like my book says, there are no dumb questions, I am asking it here. If I have : $other="Whatever"; and I do: echo 'Other Comments:' .$other. ' works perfectly well and prints the value. What if I want to, now, italicize the value of $other with the above syntax? How do I achieve it? I know we can do it this way : echo " I am $other"; but I want to learn how to do it with the above syntax like I mentioned earlier. Regards, Shreyas Agasthya
RE: [PHP] Formatting an ECHO statement.
> -Original Message- > From: Shreyas Agasthya [mailto:shreya...@gmail.com] > Sent: 18 October 2010 11:10 > > A bit of silly one but like my book says, there are no dumb > questions, I am > asking it here. > > If I have : > > $other="Whatever"; > > and I do: > > echo 'Other Comments:' .$other. ' > > works perfectly well and prints the value. What if I want to, now, > italicize > the value of $other with the above syntax? How do I achieve it? echo 'Other Comments:' .$other. ' Cheers! Mike -- Mike Ford, Electronic Information Developer, Libraries and Learning Innovation, Leeds Metropolitan University, C507 City Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: m.f...@leedsmet.ac.uk Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Formatting an ECHO statement.
> -Original Message- > From: Shreyas Agasthya [mailto:shreya...@gmail.com] > Sent: Monday, October 18, 2010 3:10 AM > To: PHP General List > Subject: [PHP] Formatting an ECHO statement. > > Team, > > A bit of silly one but like my book says, there are no dumb questions, I am > asking it here. > > If I have : > > $other="Whatever"; > > and I do: > > echo 'Other Comments:' .$other. ' echo 'Other Comments:' .$other. ''; > > works perfectly well and prints the value. What if I want to, now, italicize > the value of $other with the above syntax? How do I achieve it? > > I know we can do it this way : echo " I am $other"; but I want to learn > how to do it with the above syntax like I mentioned earlier. > > Regards, > Shreyas Agasthya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
On Mon, Oct 18, 2010 at 03:40:03PM +0530, Shreyas Agasthya wrote: > Team, > > A bit of silly one but like my book says, there are no dumb questions, I am > asking it here. > > If I have : > > $other="Whatever"; > > and I do: > > echo 'Other Comments:' .$other. ' > > works perfectly well and prints the value. What if I want to, now, italicize > the value of $other with the above syntax? How do I achieve it? > > I know we can do it this way : echo " I am $other"; but I want to > learn how to do it with the above syntax like I mentioned earlier. No, there's no other way to do it. You're outputting to HTML, and if you want to have the HTML output italicized, you must surround the term with the proper code. And in this case, the proper code is actually '', not ''. The '' code is being deprecated. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Zip files: generate text file in archive on the fly
On Sun, 2010-10-17 at 17:22 -0700, Justin Martin wrote: > On 10-10-17 03:55 PM, Dotan Cohen wrote: > > I need to provide a download of a zip archive containing three files. > > This is fairly straightforward in PHP so long as one is working with > > files that already exist. However, I need to customise one of the > > files (a simple text file) with the user name and other info before > > zipping. I see no mention of this in the fine manual, and even > > googling has led me nowhere. Ideas? Am I missing something obvious? > > > > Thanks! > > > > The solution to this seems to be as simple as grabbing the contents of > the file using ZipArchive::getFromName (or equivalent), deleting that > file in the archive, modifying the contents, then writing the file using > ZipArchive::addFromString. > > Were ZipArchive::getStream able to handle write operations, I imagine > you could modify it this way, but reading the file in for modification > is much less issue-laden. > > I haven't tested it, but you could also simply try using > ZipArchive::addFromString without deleting the file first. It may just > overwrite the file. > > Thanks, > Justin Martin > I ran into this issue with something similar, where i wanted to unzip a file from file_get_contents(), but it required a "real file"... the solution (copied from this the reply on here) On Mon, 2010-10-04 at 10:12 -0700, Jim Lucas wrote: > Might see if this page will glean you any information > http://us3.php.net/manual/en/wrappers.php.php > > I think the php://temp or php://memory will work for you instead of a > file on the file system. maybe this will help you create a "temp file" in memory taht you can add to the zip file. Hope that helps :) Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
On Mon, 2010-10-18 at 09:25 -0400, Paul M Foster wrote: > On Mon, Oct 18, 2010 at 03:40:03PM +0530, Shreyas Agasthya wrote: > > > Team, > > > > A bit of silly one but like my book says, there are no dumb questions, I am > > asking it here. > > > > If I have : > > > > $other="Whatever"; > > > > and I do: > > > > echo 'Other Comments:' .$other. ' > > > > works perfectly well and prints the value. What if I want to, now, italicize > > the value of $other with the above syntax? How do I achieve it? > > > > I know we can do it this way : echo " I am $other"; but I want to > > learn how to do it with the above syntax like I mentioned earlier. > > No, there's no other way to do it. You're outputting to HTML, and if you > want to have the HTML output italicized, you must surround the term with > the proper code. And in this case, the proper code is actually '', > not ''. The '' code is being deprecated. > > Paul > > -- > Paul M. Foster > Another option: echo 'Other Comments: '. $other .''; or create a style sheet, with a class definition for italic. Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mytr...@mail.us auto responder
I think I recall seeing a post about this earlier, but can this PLEASE get removed, or use an email account that doesn't require me to be friends with you?? Granted, a simple reply would get rid of it, but why use an account that requires authorization in the first place? -- english --- Confirmation is required to send your message to mytr...@mail.ua My antispam system detected your message as possible SPAM, because your address is not listed in my address book ("white list"). To confirm that your message is not a spam, please open the following link: http://www.mytrash.mail.ua/confirm/1287409388.H34971P12680.mx.mail.ua After that your address will be automatically added into my address book and you will be able to send me messages from "Steve Staples" without any additional checks. You can also use my personal webpage and send me a message anytime: http://www.mytrash.mail.ua. Thank you, sender owner mytr...@mail.ua sorry if I am coming across rude or anything. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] work online
Hello Everybody, Does somebody know company for PHP programing where people can work from home? Actual I only want to know does have regular or part time job for PHP developers who work from home via internet. Thanks a lot. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mytr...@mail.us auto responder
> -Original Message- > From: Steve Staples [mailto:sstap...@mnsi.net] > Sent: Monday, October 18, 2010 6:59 AM > To: php-general > Subject: [PHP] mytr...@mail.us auto responder > > I think I recall seeing a post about this earlier, but can this PLEASE get > removed, or use an email account that doesn't require me to be friends with > you?? > > Granted, a simple reply would get rid of it, but why use an account that > requires authorization in the first place? > > > -- english --- > > Confirmation is required to send your message to mytr...@mail.ua > > > My antispam system detected your message as possible SPAM, because > your address is not listed in my address book ("white list"). > > To confirm that your message is not a spam, please open the following > link: > http://www.mytrash.mail.ua/confirm/1287409388.H34971P12680.mx.mail.u > a > > After that your address will be automatically added into my address book > and you will be able to send me messages from "Steve Staples" > without any additional checks. > > You can also use my personal webpage and send me a message anytime: > http://www.mytrash.mail.ua. > > Thank you, > sender owner mytr...@mail.ua > > > > sorry if I am coming across rude or anything. > I don't think you do. Moreover, I think it's a scam to try to get your e-mail address upon reply so they can then spam you since it's a 'confirmed e-mail address' ... >.> I honestly think this address should just be removed from the list, IMHO. Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Questions from a Newbie
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: Sunday, October 17, 2010 9:46 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Questions from a Newbie > > On Sun, Oct 17, 2010 at 01:00:44AM -0400, Ethan Rosenberg wrote: > > > Dear List - > > > > Here are some questions, which I am sure are trivial, but I am a > > newbie, and cannot find the answers online > > > > I cannot get the following to work. In my Firefox [Iceweasel] > > browser, I enter the following URL: [w/ the http] > > > > localhost/CreateNew.php All I get is a blank browser screen. > > > > The code contained in the file CreateNew.php is: > > > > /* > > * Create Database test22 > > */ > > > > > $cxn = mysqli_connect("$host",$user,$password); > > echo"Create database test22;" > > echo"Create table Names2 > > There's no need to quote $host above. Why your echo statements aren't > showing up possibly indicates the script is aborting before it gets to them. > > In situations like this, check the error logs if possible. If not, break the > problem down into even smaller chunks. Do your connect with MySQL and > then test to see if the connection actually worked. According to the docs, > mysqli_connect() should return an object representing the connection. So > check that first: > > if (!is_object($cxn)) > echo "Not connected!"; > else > echo "Yep, it connected!"; > > > ( > > RecordNum Int(11) Primary Key Not null default=1 > auto_increment, > > FirstName varchar(10), > > LastName varchar(10), > > Height decimal(4,1), > > Weight0 decimal(4,1), > > BMI decimal(3,1) > > Date0 date > > );" > > > > As has been mentioned, you're simply echoing these to the page, not > sending them to MySQL. That won't work. You have to feed your SQL > statements to the mysqli_query() function. See the docs. > > Also, let me strongly advise you against using upper-and-lower-case field > names in your tables. Others will undoubtedly disagree, but I find this a > maintenance nightmare in the long run. Note that in some SQL variants > (maybe in MySQL as well; I don't recall), you must quote the field names in > queries to preserve their case and make the queries work. > > > echo" Create table Visit2 > > ( > > Indx Int(7) Primary Key Not null auto_increment, > > Weight decimal(4,1) not null, > > StudyDate date not null, > > RecordNum Int(11) > > );" > > > > $sql= "SHOW DATABASES"; > > As mentioned elsewhere, this statement won't work in a web context. It > only works from the MySQL console interface. There are other ways to > achieve this in a programming context, but they involve querying the MySQL > meta-tables. > > Also, to those recommending PHPMyAdmin, it ignores the OP's question, > and doesn't help him/her learn anything. It is completely possible to do > what he wants programmatically, and often is done that way while installing > various frameworks, etc. *You're* welcome to use PHPMyAdmin, but let the > OP do it his/her way, and help them along if you can. > > Paul > > -- > Paul M. Foster > I recommended phpMyAdmin because I thought that he wanted to manage the database using PHP. Anyway, he lacked the fundamental understanding of PHP and wanted to get into more advanced stuff. As for what he intends in OP, the statements will work provided that the MySQL account has the proper privileges to do so and if the MySQL server is configured with 'show databases' enabled. Either case, he won't know for sure if those statements executed correctly unless he understood the PHP fundamentals and use conditions to check the results of each individual statement execution. That's why I recommended him to read the manual from the beginning to get the fundamentals because reading that MySQL section in the manual was too much for him. Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mytr...@mail.us auto responder
At 12:07 PM 10/18/2010, Tommy Pham wrote: > -Original Message- > From: Steve Staples [mailto:sstap...@mnsi.net] > Sent: Monday, October 18, 2010 6:59 AM > To: php-general > Subject: [PHP] mytr...@mail.us auto responder > > I think I recall seeing a post about this earlier, but can this PLEASE get > removed, or use an email account that doesn't require me to be friends with > you?? > > Granted, a simple reply would get rid of it, but why use an account that > requires authorization in the first place? > > > -- english --- > > Confirmation is required to send your message to mytr...@mail.ua > > > My antispam system detected your message as possible SPAM, because > your address is not listed in my address book ("white list"). > > To confirm that your message is not a spam, please open the following > link: > http://www.mytrash.mail.ua/confirm/1287409388.H34971P12680.mx.mail.u > a > > After that your address will be automatically added into my address book > and you will be able to send me messages from "Steve Staples" > without any additional checks. > > You can also use my personal webpage and send me a message anytime: > http://www.mytrash.mail.ua. > > Thank you, > sender owner mytr...@mail.ua > > > > sorry if I am coming across rude or anything. > I don't think you do. Moreover, I think it's a scam to try to get your e-mail address upon reply so they can then spam you since it's a 'confirmed e-mail address' ... >.> I honestly think this address should just be removed from the list, IMHO. Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Dear List - Address confirmation is a commonly used to prevent Spam, since spammers use false email addressed. I would like to remind you that this is used by this mail list and I do the same as do may companies. If I choose not to read the email, I delete the email and the address. I also have the option to not add the book sender to my address book. The Spam filter I use is provided by earthlink and similar filters are used by most ISPs. I hope this clarifies the issue. Ethan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mytr...@mail.us auto responder
On Mon, Oct 18, 2010 at 12:07, Tommy Pham wrote: > > I don't think you do. Moreover, I think it's a scam to try to get your > e-mail address upon reply so they can then spam you since it's a 'confirmed > e-mail address' ... >.> I honestly think this address should just be removed > from the list, IMHO. I said I would. I just haven't gotten the chance to do so yet. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
At 9:47 AM -0400 10/18/10, Steve Staples wrote: or create a style sheet, with a class definition for italic. Steve. +1 The "best practices" way to do it. Don't style output in an echo statement, but rather put styling in a css sheet, It's much cleaner there. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] work online
At 4:40 PM +0200 10/18/10, Jordan Jovanov wrote: Hello Everybody, Does somebody know company for PHP programing where people can work from home? Actual I only want to know does have regular or part time job for PHP developers who work from home via internet. Thanks a lot. All of my work is on-line from home. How do I get work? After years of doing web work, it now comes to me. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] work online
At 4:40 PM +0200 10/18/10, Jordan Jovanov wrote: Hello Everybody, Does somebody know company for PHP programing where people can work from home? Actual I only want to know does have regular or part time job for PHP developers who work from home via internet. Thanks a lot. All of my work is on-line from home. How do I get work? After years of doing web work, it now comes to me. Cheers, tedd Jordan, my experience is like Tedd's. I am new in PHP too.. but the web work which I am not new in comes to me.. because of relationships built on trust and good results. Just aim to serve someone(s) who need(s) whatever you can do .. and keep on trying to actually produce something they actually need.. Let money be the secondary+ consideration. That kind of service orientation to "work" opens all the doors. Govinda govinda(DOT)webdnatalk(AT)gmail(DOT)com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mytr...@mail.us auto responder
> -Original Message- > From: Ethan Rosenberg [mailto:eth...@earthlink.net] > Sent: Monday, October 18, 2010 9:40 AM > To: Tommy Pham; sstap...@mnsi.net; 'php-general' > Subject: RE: [PHP] mytr...@mail.us auto responder > > At 12:07 PM 10/18/2010, Tommy Pham wrote: > > > -Original Message- > > > From: Steve Staples [mailto:sstap...@mnsi.net] > > > Sent: Monday, October 18, 2010 6:59 AM > > > To: php-general > > > Subject: [PHP] mytr...@mail.us auto responder > > > > > > I think I recall seeing a post about this earlier, but can this > > > PLEASE get removed, or use an email account that doesn't require me > > > to be friends with you?? > > > > > > Granted, a simple reply would get rid of it, but why use an account > > > that requires authorization in the first place? > > > > > > > > > -- english --- > > > > > > Confirmation is required to send your message to mytr...@mail.ua > > > > > > > > > My antispam system detected your message as possible SPAM, because > > > your address is not listed in my address book ("white list"). > > > > > > To confirm that your message is not a spam, please open the > > > following > > > link: > > > > http://www.mytrash.mail.ua/confirm/1287409388.H34971P12680.mx.mail.u > > > a > > > > > > After that your address will be automatically added into my address > > > book and you will be able to send me messages from "Steve Staples" > > > without any additional checks. > > > > > > You can also use my personal webpage and send me a message anytime: > > > http://www.mytrash.mail.ua. > > > > > > Thank you, > > > sender owner mytr...@mail.ua > > > > > > > > > > > > sorry if I am coming across rude or anything. > > > > > > >I don't think you do. Moreover, I think it's a scam to try to get your > >e-mail address upon reply so they can then spam you since it's a > >'confirmed e-mail address' ... >.> I honestly think this address > >should just be removed from the list, IMHO. > > > >Regards, > >Tommy > > > > > >-- > >PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: > >http://www.php.net/unsub.php > > > Dear List - > > Address confirmation is a commonly used to prevent Spam, since spammers > use false email addressed. I would like to remind you that this is used by > this mail list and I do the same as do may companies. If I choose not to read > the email, I delete the email and the address. I also have the option to not > add the book sender to my address book. The Spam filter I use is provided > by earthlink and similar filters are used by most ISPs. > > I hope this clarifies the issue. > > Ethan > I know spammers use false e-mail address but it's the question of how they get your validated email address :) Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
At 6:03 PM +0100 10/18/10, a...@ashleysheridan.co.uk wrote: There's nothing wrong with using as it indicates emphasised text, which is semantic. Use span tags with classes only when the content you're styling has no semantic alternative. important message is much better for machines (including search engines, screen readers, etc) to infer a meaning for than important message Thanks, Ash http://www.ashleysheridan.co.uk While using the em tag as you describe will certainly work, but what happens when the designer wants to change the style of an em tag to something else and doesn't want the output from your code to change? I have found it better to leave styling to the designer. One can compromise by using a class such as "class=warning" or "class=output" and then addressing the style of the output in a style sheet. Such as: echo("span class='warning'>$output"); Now, you do have a point regarding SE, where some SE's look to the em and strong tags to determine word weight in ranking, but therein also lies a problem. What if the client doesn't want the output from code to be considered in SE's? After all, if output is static, then why code it? If it is variable, then that will cause your ranking to change. Sounds like disaster to me. My choice to is to leave the styling, SE, screen readers, and other such concerns to those who know more than I do. Just give me a style class and let me work on the code. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
On Mon, Oct 18, 2010 at 1:28 PM, tedd wrote: > At 6:03 PM +0100 10/18/10, a...@ashleysheridan.co.uk wrote: >> >> There's nothing wrong with using as it indicates emphasised text, >> which is semantic. Use span tags with classes only when the content you're >> styling has no semantic alternative. >> >> important message is much better for machines (including >> search engines, screen readers, etc) to infer a meaning for than >> important message >> >> Thanks, >> Ash >> http://www.ashleysheridan.co.uk > > While using the em tag as you describe will certainly work, but what happens > when the designer wants to change the style of an em tag to something else > and doesn't want the output from your code to change? > > I have found it better to leave styling to the designer. > That is the exactly the intended purpose of the and tags: they simply indicate semantically that the enclosed text is either emphasized or strong (or, if nested, the text would be strongly emphasized? ;-) ), and it is up to CSS to define what that should look like. The appearance can easily change at any time without changing the HTML itself, just as you suggest. While the same is technically true of italic and bold, those tags by definition imply a specific way to render the content that they contain, which makes a real confusion in cases such as text. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] work online
On Mon, 2010-10-18 at 13:03 -0400, Govinda wrote: > > At 4:40 PM +0200 10/18/10, Jordan Jovanov wrote: > >> Hello Everybody, > >> > >> > >> Does somebody know company for PHP programing where people can work > >> from home? Actual I only want to know does have regular or part > >> time job for PHP developers who work from home via internet. > >> > >> Thanks a lot. > > > > All of my work is on-line from home. > > > > How do I get work? After years of doing web work, it now comes to me. > > > > Cheers, > > > > tedd > > > Jordan, my experience is like Tedd's. > I am new in PHP too.. but the web work which I am not new in comes to > me.. because of relationships built on trust and good results. > Just aim to serve someone(s) who need(s) whatever you can do .. and > keep on trying to actually produce something they actually need.. > Let money be the secondary+ consideration. That kind of service > orientation to "work" opens all the doors. > > > Govinda > govinda(DOT)webdnatalk(AT)gmail(DOT)com > > > > > > While I don't code PHP for a living, I do repair PCs and maintain servers. And it's the same thing - work just comes to me based on relationships and referrals. Sometimes you have to lose a little in order to gain later down the road. For example, I will sometimes do basic work for little or nothing, depending on the situation, for people who have never come to me before, and later they will refer a lot of other people. And most people are willing to pay anyway, even if you offer something for free, because theyre getting out cheaper than using a named establishment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
Thanks all for their input. Some of the learnings from the thread : 1. tag is getting deprecated. 2. Use and 3. Have CSS used to do the kind of stuff I was trying. I must inform, this was already in place. 4. Keep an eye on the SE monster. Regards, Shreyas On Mon, Oct 18, 2010 at 11:43 PM, Andrew Ballard wrote: > On Mon, Oct 18, 2010 at 1:28 PM, tedd wrote: > > At 6:03 PM +0100 10/18/10, a...@ashleysheridan.co.uk wrote: > >> > >> There's nothing wrong with using as it indicates emphasised text, > >> which is semantic. Use span tags with classes only when the content > you're > >> styling has no semantic alternative. > >> > >> important message is much better for machines > (including > >> search engines, screen readers, etc) to infer a meaning for than > >> important message > >> > >> Thanks, > >> Ash > >> http://www.ashleysheridan.co.uk > > > > While using the em tag as you describe will certainly work, but what > happens > > when the designer wants to change the style of an em tag to something > else > > and doesn't want the output from your code to change? > > > > I have found it better to leave styling to the designer. > > > > That is the exactly the intended purpose of the and > tags: they simply indicate semantically that the > enclosed text is either emphasized or strong (or, if nested, the text > would be strongly emphasized? ;-) ), and it is up to CSS to define > what that should look like. The appearance can easily change at any > time without changing the HTML itself, just as you suggest. > > While the same is technically true of italic and bold, > those tags by definition imply a specific way to render the content > that they contain, which makes a real confusion in cases such as style="font-style: normal; font-weight: bold;">text. > > Andrew > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Regards, Shreyas Agasthya
[PHP] PDO working via Apache but not at the command line?
I have the following very simple script that uses PDO/FreeTDS to connect to a mssql server. I have PHP Version 5.3.3 running on Linux under Apache. When I view this script via apache/firefox I get proper output. If I try and run this via the command line like "php db_dump.php" I get an error connecting to the DB: Unable to connect to Omnia: SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9). Does Apache call PHP differently than the cli would? Why would Apache method work find, but direct from the command line cause a problem? Do I need to call php from the cli with some other argument? -- $num || $num = 197804; $dbh = omnia_connect(); $sql = "EXECUTE P_SaaS_AccountServiceFeatures_Retrieve $num"; $sth = $dbh->prepare($sql); $sth->execute(); $foo = $sth->fetchAll(PDO::FETCH_ASSOC); foreach ($foo as $i) { if ($i['ItemStatus'] != 'I') { $out .= $i['Component'] . "\n"; } } print $out; function omnia_connect() { putenv('FREETDSCONF=/etc/freetds.conf'); $db = "DB_NAME"; $user = "user"; $pass = "pass"; $dsn = "dblib:host=Omnia;dbname=$db"; try { $dbh = new PDO($dsn, $user, $pass); } catch (PDOException $e) { echo 'Unable to connect to Omnia: ' . $e->getMessage(); exit; } return $dbh; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message not understood
I'm running PHP as module with Apache. The version I downloaded was your [1], tho it wa version 5.2.14. When I downloaded and unzipped the files I had already installed MySql Ver 14.14 Distrib 5.1.51 for Win32(ia32). Thanks for the help. tholland - Original Message - From: "Tommy Pham" To: "'sueandant'" Cc: "'PHP'" Sent: Saturday, October 16, 2010 10:49 PM Subject: RE: [PHP] Error message not understood -Original Message- From: sueandant [mailto:hollandsath...@tiscali.co.uk] Sent: Saturday, October 16, 2010 2:23 PM To: Tommy Pham Cc: PHP Subject: Re: [PHP] Error message not understood Apologies! Vista Home Premium 32bit with SP2. I uninstalled it using Windows' uninstaller. I didn't compile any of the packages. MySQL was installed using the .msi download and PHP I simply unzipped to my C:\PHP folder. And, yes, they both came from the official sites. Forgot to mention something, please don't top post. It makes hard for others to follow the thread. Are you running PHP with IIS or Apache? If with Apache how are you running PHP as, CGI or module? Since you're using official distributions, you'll have to use PHP VC6 TS build (if not using as CGI/FastCGI) for Apache [1]. If you're running PHP with IIS, you'll have to run NTS build for FastCGI [2]. [1] http://windows.php.net/downloads/releases/php-5.3.3-Win32-VC6-x86.zip [2] http://windows.php.net/downloads/releases/php-5.3.3-nts-Win32-VC9-x86.zip - Original Message - From: "Tommy Pham" To: "'sueandant'" ; "'Luigi Pressello'" Cc: "'PHP'" Sent: Saturday, October 16, 2010 9:38 PM Subject: RE: [PHP] Error message not understood >> -Original Message- >> From: sueandant [mailto:hollandsath...@tiscali.co.uk] >> Sent: Saturday, October 16, 2010 1:16 PM >> To: Luigi Pressello >> Cc: PHP >> Subject: Re: [PHP] Error message not understood >> >> I've run both programs. [1] outputs Client library version 5.1.51, but >> [2] >> gives no output. However I have checked MySql status via the command >> prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). > > You still haven't answer the question of what platform? FreeBSD? Linux? > Mac? > Windows? And what is the platform version? > >> >> I originally installed PHP 5.3 but I couldn't get it to communicate with > mysqli >> (and I tried everything!) so I unstalled it and replaced it with > > How did you uninstall? Using the OS's software/package manager such > package > on FreeBSD, yast on some Linux, add/remove programs on Windows, etc.? Did > you compile any of it - MySQL or PHP - yourself? > >> version 5.2.14. PHP info tells me this that the Client API library > version >> is 5.1.51 and the header version is 5.0.51a. > > This just means that there's a mismatch within the PHP. If you > compiled > from source for any of it, PHP's MySQL & MySQLi extensions depends on the > MySQL headers and client library. Thus, MySQL client has to be > compiled > first before you can compile the PHP's MySQL/MySQLi extensions. This > applies to all platforms if you're doing your compilation from source. If > you didn't compile any of it - both MySQL and PHP - then the problem lies > within your OS's software/package manager. Without knowing what you're > using, we can't really tell what happens. Some Linux distributions do > things differently. I'm not well versed in Linux but many others here on > this list can help you with it. I suggest you 'uninstall' both PHP & > MySQL. > Then reinstall MySQL 1st and PHP 2nd. Also, just a bit curious... > where > did > you get the MySQL & PHP? I hope directly from the official source... > ;) > >> >> Does this help identify a solution? >> >> Thanks and best wishes >> >> tholland > > > > Regards, > Tommy > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDO working via Apache but not at the command line?
It's most likely because both cli and web modules are using different php.ini config files. See what the output of a phpinfo() call in both browser and command line. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Scott Baker" Date: Mon, Oct 18, 2010 21:20 Subject: [PHP] PDO working via Apache but not at the command line? To: , I have the following very simple script that uses PDO/FreeTDS to connect to a mssql server. I have PHP Version 5.3.3 running on Linux under Apache. When I view this script via apache/firefox I get proper output. If I try and run this via the command line like "php db_dump.php" I get an error connecting to the DB: Unable to connect to Omnia: SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9). Does Apache call PHP differently than the cli would? Why would Apache method work find, but direct from the command line cause a problem? Do I need to call php from the cli with some other argument? -- $num || $num = 197804; $dbh = omnia_connect(); $sql = "EXECUTE P_SaaS_AccountServiceFeatures_Retrieve $num"; $sth = $dbh->prepare($sql); $sth->execute(); $foo = $sth->fetchAll(PDO::FETCH_ASSOC); foreach ($foo as $i) { if ($i['ItemStatus'] != 'I') { $out .= $i['Component'] . "\n"; } } print $out; function omnia_connect() { putenv('FREETDSCONF=/etc/freetds.conf'); $db = "DB_NAME"; $user = "user"; $pass = "pass"; $dsn = "dblib:host=Omnia;dbname=$db"; try { $dbh = new PDO($dsn, $user, $pass); } catch (PDOException $e) { echo 'Unable to connect to Omnia: ' . $e->getMessage(); exit; } return $dbh; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDO working via Apache but not at the command line?
On 10/18/2010 02:17 PM, a...@ashleysheridan.co.uk wrote: It's most likely because both cli and web modules are using different php.ini config files. See what the output of a phpinfo() call in both browser and command line. I didn't even think about it parsing different php.ini files. Checking the output of phpinfo() I see it's calling the same php.ini (/usr/local/lib/php.ini) though. :( -- Scott Baker - Canby Telcom System Administrator - RHCE - 503.266.8253 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error message not understood
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Monday, October 18, 2010 1:52 PM > To: Tommy Pham > Cc: 'PHP' > Subject: Re: [PHP] Error message not understood > > I'm running PHP as module with Apache. The version I downloaded was > your > [1], tho it wa version 5.2.14. When I downloaded and unzipped the files I > had already installed MySql Ver 14.14 Distrib 5.1.51 for Win32(ia32). > > Thanks for the help. > > tholland Huh? If you downloaded the current version 5.3.3 of PHP. It should read this for MySQL & MySQLi extenstions in phpinfo(); : Client API version mysqlnd 5.0.7-dev - 091210 - $Revision: 300533 $ And you shouldn't have problems accessing MySQL 5.1. Regards, Tommy > - Original Message - > From: "Tommy Pham" > To: "'sueandant'" > Cc: "'PHP'" > Sent: Saturday, October 16, 2010 10:49 PM > Subject: RE: [PHP] Error message not understood > > > >> -Original Message- > >> From: sueandant [mailto:hollandsath...@tiscali.co.uk] > >> Sent: Saturday, October 16, 2010 2:23 PM > >> To: Tommy Pham > >> Cc: PHP > >> Subject: Re: [PHP] Error message not understood > >> > >> Apologies! Vista Home Premium 32bit with SP2. I uninstalled it using > >> Windows' uninstaller. I didn't compile any of the packages. MySQL was > >> installed using the .msi download and PHP I simply unzipped to my > C:\PHP > >> folder. And, yes, they both came from the official sites. > >> > > > > Forgot to mention something, please don't top post. It makes hard for > > others to follow the thread. > > > > Are you running PHP with IIS or Apache? If with Apache how are you > > running > > PHP as, CGI or module? Since you're using official distributions, you'll > > have to use PHP VC6 TS build (if not using as CGI/FastCGI) for Apache [1]. > > If you're running PHP with IIS, you'll have to run NTS build for FastCGI > > [2]. > > > > [1] http://windows.php.net/downloads/releases/php-5.3.3-Win32-VC6- > x86.zip > > [2] > > http://windows.php.net/downloads/releases/php-5.3.3-nts-Win32-VC9- > x86.zip > > > >> - Original Message - > >> From: "Tommy Pham" > >> To: "'sueandant'" ; "'Luigi Pressello'" > >> > >> Cc: "'PHP'" > >> Sent: Saturday, October 16, 2010 9:38 PM > >> Subject: RE: [PHP] Error message not understood > >> > >> > >> >> -Original Message- > >> >> From: sueandant [mailto:hollandsath...@tiscali.co.uk] > >> >> Sent: Saturday, October 16, 2010 1:16 PM > >> >> To: Luigi Pressello > >> >> Cc: PHP > >> >> Subject: Re: [PHP] Error message not understood > >> >> > >> >> I've run both programs. [1] outputs Client library version 5.1.51, but > >> >> [2] > >> >> gives no output. However I have checked MySql status via the > command > >> >> prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). > >> > > >> > You still haven't answer the question of what platform? FreeBSD? > Linux? > >> > Mac? > >> > Windows? And what is the platform version? > >> > > >> >> > >> >> I originally installed PHP 5.3 but I couldn't get it to communicate > > with > >> > mysqli > >> >> (and I tried everything!) so I unstalled it and replaced it with > >> > > >> > How did you uninstall? Using the OS's software/package manager such > >> > package > >> > on FreeBSD, yast on some Linux, add/remove programs on Windows, > etc.? > >> Did > >> > you compile any of it - MySQL or PHP - yourself? > >> > > >> >> version 5.2.14. PHP info tells me this that the Client API library > >> > version > >> >> is 5.1.51 and the header version is 5.0.51a. > >> > > >> > This just means that there's a mismatch within the PHP. If you > >> > compiled > >> > from source for any of it, PHP's MySQL & MySQLi extensions depends on > >> the > >> > MySQL headers and client library. Thus, MySQL client has to be > >> > compiled > >> > first before you can compile the PHP's MySQL/MySQLi extensions. This > >> > applies to all platforms if you're doing your compilation from source. > > If > >> > you didn't compile any of it - both MySQL and PHP - then the problem > > lies > >> > within your OS's software/package manager. Without knowing what > >> you're > >> > using, we can't really tell what happens. Some Linux distributions do > >> > things differently. I'm not well versed in Linux but many others here > > on > >> > this list can help you with it. I suggest you 'uninstall' both PHP & > >> > MySQL. > >> > Then reinstall MySQL 1st and PHP 2nd. Also, just a bit curious... > >> > where > >> > did > >> > you get the MySQL & PHP? I hope directly from the official source... > >> > ;) > >> > > >> >> > >> >> Does this help identify a solution? > >> >> > >> >> Thanks and best wishes > >> >> > >> >> tholland > >> > > >> > > >> > > >> > Regards, > >> > Tommy > >> > > >> > > >> > -- > >> > PHP General Mailing List (http://www.php.net/) > >> > To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe,
Re: [PHP] work online
* Jordan Jovanov wrote: Hi, > Does somebody know company for PHP programing where people can > work from home? Actual I only want to know does have regular or > part time job for PHP developers who work from home via internet. I'm not just php programmer (more software architect and systems integrator). Pure sw-development projects are mostly remote, integration often onsite. cu -- -- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weig...@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 -- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Formatting an ECHO statement.
I ask as you look at the comments and replies to your post, you think long term. Today you want the italic option, tomorrow you want to change the display to something else. Now you have to go back and change ever place you set the italic symbols to make your change. BUT if you use styles you can not only change the display to the desired look in one location but you can have flexibility. Example: Let's say the comments are coming from a database and you want to display the comment differently based on the contents of the comment. In my example I have 3 different classes in the style. Now as I foreach over the fake data array example, I simply pick the style to use based on each matching criteria. While the static examples #wever_comment{font-style:italic} #good_comment{font-style:italic; color: green;} #bad_comment{font-weight:bold; color: red;} $variable_from_database = array('good','bad','whatever'); Foreach($variable as $key) { Echo 'Other Comments:'; If(preg_match("/bad/i",'$key')){Echo '$key';} If(preg_match("/good/i",'$key')){Echo '$key';} If(preg_match("/whatever/i",'$key')){Echo '$key';} Echo ''; } In the long term the flexibility allows you to make faster changes with a higher degree, of what I like to call "smarter code". Yes the filters are static, and I would not use static filters personally. It is meant as an explanation, not a how to. -Original Message- From: Shreyas Agasthya [mailto:shreya...@gmail.com] Sent: Monday, October 18, 2010 6:10 AM To: PHP General List Subject: [PHP] Formatting an ECHO statement. Team, A bit of silly one but like my book says, there are no dumb questions, I am asking it here. If I have : $other="Whatever"; and I do: echo 'Other Comments:' .$other. ' works perfectly well and prints the value. What if I want to, now, italicize the value of $other with the above syntax? How do I achieve it? I know we can do it this way : echo " I am $other"; but I want to learn how to do it with the above syntax like I mentioned earlier. Regards, Shreyas Agasthya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PDO] Re: [PHP] PDO working via Apache but not at the command line?
Things to check: - Environment: what env vars are set or not set in your Apache vs. CLI - Owner: are you running as the same user as your web server? - Do you or the web server have some kind of "rc" file that might impact how things run? Suggestion: Use "sudo -u webserverusername -s" to run a shell as your web server user, then try to run the CLI. Get the environment to match up with your webserver. If this still doesn't work, it might be something more esoteric; check to see if you have other apache modules loaded that might also use FreeTDS or ODBC and that might be messing with things. Use "strace php db-dump.php" to see what the CLI is up to. Use "strace -p " to see what the Apache version is up to (probably want to run apache -X to make this easier). --Wez. On Oct 18, 2010, at 5:26 PM, Scott Baker wrote: On 10/18/2010 02:17 PM, a...@ashleysheridan.co.uk wrote: It's most likely because both cli and web modules are using different php.ini config files. See what the output of a phpinfo() call in both browser and command line. I didn't even think about it parsing different php.ini files. Checking the output of phpinfo() I see it's calling the same php.ini (/usr/local/lib/php.ini) though. :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PDO] Re: [PHP] PDO working via Apache but not at the command line?
On 10/18/2010 06:27 PM, Wez Furlong wrote: > Things to check: > > - Environment: what env vars are set or not set in your Apache vs. CLI > - Owner: are you running as the same user as your web server? > - Do you or the web server have some kind of "rc" file that might impact > how things run? Wez you're a genius. When I ran it as the same user as apache it works fine. That got me thinking that it makes a log in /tmp. Checking the log it was only writable by the apache user. A little chmod later and now my script runs perfectly under apache and cli. Thanks for helping me think outside the box. I spent all day puzzled by this, you just made my night. - Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
At 13:03 18 10 10, a...@ashleysheridan.co.uk wrote: There's nothing wrong with using as it indicates emphasised text, which is semantic. Use span tags with classes only when the content you're styling has no semantic alternative. important message is much better for machines (including search engines, screen readers, etc) to infer a meaning for than important message Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "tedd" Date: Mon, Oct 18, 2010 17:51 Subject: [PHP] Formatting an ECHO statement. To: At 9:47 AM -0400 10/18/10, Steve Staples wrote: >or create a style sheet, with a class definition for italic. > >Steve. +1 The "best practices" way to do it. Don't style output in an echo statement, but rather put styling in a css sheet, It's much cleaner there. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Jesus H. Christ. I'm on this list because I want to learn PHP, not how to parse HTML mail or how to add italics to dolt/dolt. You add styles to text as a presentation effect. This list is not supposed to be about the effing presentation. Must I say it again, more rudely even? I know you guys like to go on and on, but give it a rest on this one. Get your asses back on topic - and on topical jokes. This topic is neither. Move on already. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
At 15:12 18 10 10, Shreyas Agasthya wrote: Thanks all for their input. Some of the learnings from the thread : 1. tag is getting deprecated. Not in HTML5. 2. Use and Both? Read that shit again, buckwheat. And by "that shit" I do mean the standards, not what Joe Bloe told you. 3. Have CSS used to do the kind of stuff I was trying. Uhm, yeah. @@ I must inform, this was already in place. Then why the fuck are we discussing this? 4. Keep an eye on the SE monster. and on the "go fuck yourself" monster too. Holy fuck, I've been lurking for months. I turn away for one day and this is the non-PHP crap that happens? Someone needs to hire me now, to keep me busy and stop me from taking this issue apart one piece at a time. Kee-rist. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] require_once
I'm having a problem including files using Zend Framework. I have in a controller file this require_once "models/Member.php"; and it doesn't work ,nor does require_once "../models/Member.php"; Anyone know what's going on with this? Jim W. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] require_once
hi: print_r(get_include_path()); thanks; Best regards 惠新宸 Xinchen Hui http://www.laruence.com/ On 10/19/2010 10:46, jim wrote: I'm having a problem including files using Zend Framework. I have in a controller file this require_once "models/Member.php"; and it doesn't work ,nor does require_once "../models/Member.php"; Anyone know what's going on with this? Jim W. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PDO] Re: [PHP] PDO working via Apache but not at the command line?
Sounds like the error message "SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9)" could be more informative, but I think this is returned by FreeTDS, not PDO. On Mon, Oct 18, 2010 at 7:35 PM, Scott Baker wrote: > On 10/18/2010 06:27 PM, Wez Furlong wrote: >> Things to check: >> >> - Environment: what env vars are set or not set in your Apache vs. CLI >> - Owner: are you running as the same user as your web server? >> - Do you or the web server have some kind of "rc" file that might impact >> how things run? > > Wez you're a genius. When I ran it as the same user as apache it works > fine. That got me thinking that it makes a log in /tmp. Checking the log > it was only writable by the apache user. A little chmod later and now my > script runs perfectly under apache and cli. > > Thanks for helping me think outside the box. I spent all day puzzled by > this, you just made my night. > > - Scott > > -- > PDO Working Group Mailing List (http://pdo.php.net) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
On Mon, Oct 18, 2010 at 10:46:41PM -0400, Cris S wrote: > At 15:12 18 10 10, Shreyas Agasthya wrote: > >Thanks all for their input. Some of the learnings from the thread : > > > >1. tag is getting deprecated. > > Not in HTML5. > > >2. Use and > > Both? Read that shit again, buckwheat. And by "that shit" I > do mean the standards, not what Joe Bloe told you. > > >3. Have CSS used to do the kind of stuff I was trying. > > Uhm, yeah. @@ > > > I must inform, this was already in place. > > Then why the fuck are we discussing this? > > >4. Keep an eye on the SE monster. > > and on the "go fuck yourself" monster too. > > Holy fuck, I've been lurking for months. I turn away for > one day and this is the non-PHP crap that happens? Please go back to lurking. We'd all appreciate it, and you'll be happier. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Formatting an ECHO statement.
Thanks for that detailed mail, Admin. The was an example and I wanted to understand how does one go about the whole formatting. Nonetheless, I am pretty well informed after this thread. Thanks once again, everyone. Regards, Shreyas On Tue, Oct 19, 2010 at 10:09 AM, Paul M Foster wrote: > On Mon, Oct 18, 2010 at 10:46:41PM -0400, Cris S wrote: > > > At 15:12 18 10 10, Shreyas Agasthya wrote: > > >Thanks all for their input. Some of the learnings from the thread : > > > > > >1. tag is getting deprecated. > > > > Not in HTML5. > > > > >2. Use and > > > > Both? Read that shit again, buckwheat. And by "that shit" I > > do mean the standards, not what Joe Bloe told you. > > > > >3. Have CSS used to do the kind of stuff I was trying. > > > > Uhm, yeah. @@ > > > > > I must inform, this was already in place. > > > > Then why the fuck are we discussing this? > > > > >4. Keep an eye on the SE monster. > > > > and on the "go fuck yourself" monster too. > > > > Holy fuck, I've been lurking for months. I turn away for > > one day and this is the non-PHP crap that happens? > > Please go back to lurking. We'd all appreciate it, and you'll be > happier. > > Paul > > -- > Paul M. Foster > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Regards, Shreyas Agasthya
Re: [PHP] Formatting an ECHO statement.
Steady on now, this thread started as a php question, and has only deviated a little. Most people on the list don't work purely with php, and I for one dont mind the odd off-topic thread, especially when the majority of the list is made of good php threads. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Cris S" Date: Tue, Oct 19, 2010 03:46 Subject: [PHP] Formatting an ECHO statement. To: At 15:12 18 10 10, Shreyas Agasthya wrote: >Thanks all for their input. Some of the learnings from the thread : > >1. tag is getting deprecated. Not in HTML5. >2. Use and Both? Read that shit again, buckwheat. And by "that shit" I do mean the standards, not what Joe Bloe told you. >3. Have CSS used to do the kind of stuff I was trying. Uhm, yeah. @@ > I must inform, this was already in place. Then why the fuck are we discussing this? >4. Keep an eye on the SE monster. and on the "go fuck yourself" monster too. Holy fuck, I've been lurking for months. I turn away for one day and this is the non-PHP crap that happens? Someone needs to hire me now, to keep me busy and stop me from taking this issue apart one piece at a time. Kee-rist. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php