Re: [PHP] Question: Farsi characters showing as jibberish

2010-04-24 Thread Michiel Sikma
On 24 April 2010 14:45, Parham Doustdar parha...@gmail.com wrote: Hi, I have created a PHP file, and wrote a string of Farsi letters in it. In the head section of the HTML, I put: META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=UTF-8 There appears to be something wrong with

Re: [PHP] Question: Farsi characters showing as jibberish

2010-04-24 Thread Ashley Sheridan
On Sat, 2010-04-24 at 15:38 +0200, Michiel Sikma wrote: On 24 April 2010 14:45, Parham Doustdar parha...@gmail.com wrote: Hi, I have created a PHP file, and wrote a string of Farsi letters in it. In the head section of the HTML, I put: META HTTP-EQUIV=Content-Type

Re: [PHP] Question: Farsi characters showing as jibberish

2010-04-24 Thread Parham Doustdar
a...@ashleysheridan.co.uk Newsgroups: php.general To: Michiel Sikma mich...@thingmajig.org Cc: Parham Doustdar parha...@gmail.com; php-general@lists.php.net Sent: Saturday, April 24, 2010 6:16 PM Subject: Re: [PHP] Question: Farsi characters showing as jibberish On Sat, 2010-04-24 at 15:38 +0200, Michiel

Re: [PHP] Question: Farsi characters showing as jibberish

2010-04-24 Thread Ashley Sheridan
guesses aloud. :-) - Original Message - From: Ashley Sheridan a...@ashleysheridan.co.uk Newsgroups: php.general To: Michiel Sikma mich...@thingmajig.org Cc: Parham Doustdar parha...@gmail.com; php-general@lists.php.net Sent: Saturday, April 24, 2010 6:16 PM Subject: Re: [PHP

Re: [PHP] Question: Farsi characters showing as jibberish

2010-04-24 Thread Parham Doustdar
-general@lists.php.net Sent: Saturday, April 24, 2010 6:16 PM Subject: Re: [PHP] Question: Farsi characters showing as jibberish On Sat, 2010-04-24 at 15:38 +0200, Michiel Sikma wrote: On 24 April 2010 14:45, Parham Doustdar parha...@gmail.com wrote: Hi, I have created a PHP

Re: [PHP] Question: Farsi characters showing as jibberish

2010-04-24 Thread Michiel Sikma
On 24 April 2010 16:07, Parham Doustdar parha...@gmail.com wrote: Hi Ashley and Michiel, It appears it is something in Apache or my server program on Windows (I am using Uniform Server; a portable webserver from http://www.uniformserver.com). The reason I got to such a conclusion is this:

Re: [PHP] Question: Farsi characters showing as jibberish

2010-04-24 Thread Parham Doustdar
Hi, It probably did because I added the line, AddDefaultCharset UTF-8 to my .htaccess a few moments ago. :-) Michiel Sikma mich...@thingmajig.org wrote in message news:o2p6cda1ded1004240726l272f04fbmdd2fb996e2580...@mail.gmail.com... On 24 April 2010 16:07, Parham Doustdar parha...@gmail.com

Re: [PHP] Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Ashley Sheridan
On Wed, 2010-01-27 at 03:31 -0800, Ryan Park wrote: Hypothetically say that I have MySQL with petabytes of data. I want to use XSL as my template language. But in order to use XSL, I need to make XML filled with petabytes of data. This does not sound elaborate way to use XSL/XML; I would

Re: [PHP] Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Ryan Park
My only reason doing this because I could use XSL as my templating engine; achieve the separation of content, design, and code. But in order to use XSL I need to use XML. XML needs to big if I want to use the data from the huge MySQL database. On 1/27/2010 3:32 AM, Ashley Sheridan wrote: On

Re: [PHP] Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Ashley Sheridan
On Wed, 2010-01-27 at 03:39 -0800, Ryan Park wrote: My only reason doing this because I could use XSL as my templating engine; achieve the separation of content, design, and code. But in order to use XSL I need to use XML. XML needs to big if I want to use the data from the huge MySQL

Re: [PHP] Question on XML/XSL/PHP/MySQL

2010-01-27 Thread Jay Ess
Ryan Park wrote: Hypothetically say that I have MySQL with petabytes of data. I want to use XSL as my template language. But in order to use XSL, I need to make XML filled with petabytes of data. This does not sound elaborate way to use XSL/XML; I would rather use PHP/MySQL/Smarty. Is there a

Re: [PHP] Question on XML/XSL/PHP/MySQL

2010-01-27 Thread tedd
At 3:39 AM -0800 1/27/10, Ryan Park wrote: My only reason doing this because I could use XSL as my templating engine; achieve the separation of content, design, and code. But in order to use XSL I need to use XML. XML needs to big if I want to use the data from the huge MySQL database. On

Re: [PHP] Question about using JSON_ENCODE()

2010-01-08 Thread Ryan Sun
Yup, you put result in an array $result = array('status' = 'good'); and return encoded string return Json_Encode($result); your client will get a string '{status: good}' and you use your client tech(eg. javascrpt) to decode this string and finall get an object On Fri, Jan 8, 2010 at 3:43 PM,

Re: [PHP] Question about using JSON_ENCODE()

2010-01-08 Thread Anthony Papillion
Thank you Ruan! This is just what I was looking for! Anthony Ryan Sun ryansu...@gmail.com wrote in message news:f7f19ac21001081308r4b202d45vedaf3561536ad...@mail.gmail.com... Yup, you put result in an array $result = array('status' = 'good'); and return encoded string return

Re: [PHP] Question Answer based report.

2009-12-27 Thread navneet sharma
Hi Aditya, You can store question and answer in database. if user provides correct answer increase veritable ($score) you can use switch case to generate character (like in facebook apps) Navneet. On Fri, Dec 25, 2009 at 9:41 PM, aditya shukla adityashukla1...@gmail.comwrote: Merry

Re: [PHP] Question about includes

2009-11-24 Thread Brady Mitchell
On Tue, Nov 24, 2009 at 6:22 AM, Al n...@ridersite.org wrote: This bothers since the current working directory is effectively where my original script resides; is it not? If so, doesn't the include Net/SMTP.php on line 206 look for the path relative to it and not in /home1/youstart/php/? When

Re: [PHP] Question about includes

2009-11-24 Thread Al
Brady Mitchell wrote: On Tue, Nov 24, 2009 at 6:22 AM, Al n...@ridersite.org wrote: This bothers since the current working directory is effectively where my original script resides; is it not? If so, doesn't the include Net/SMTP.php on line 206 look for the path relative to it and not in

Re: [PHP] question about smarty

2009-11-05 Thread Fernando Castillo Aparicio
I'm not sure where is the problem, but can't you just define every changing part in your template as variables and assign them as needed from php? If you need to change the image url, just make it a variable, like in background:url(images/{$img}) Then you just assign the variable as needed in

Re: [PHP] Question: Wai-aria?

2009-09-22 Thread Fernando Castillo Aparicio
Ups! By mistake I didn't reply to all. Resending. Sorry. De: Parham Doustdar parha...@gmail.com Para: php-general@lists.php.net Enviado: martes, 22 de septiembre, 2009 9:41:44 Asunto: [PHP] Question: Wai-aria? Hello there, I have asked on the mailing lists

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread Lars Torben Wilson
On Sun, 20 Sep 2009 12:07:39 +0430 Parham Doustdar parha...@gmail.com wrote: Hello there, I'm guessing that when a row in a MySQL table is removed, the ID colomns of the rows which come after that row are not changed. For example: 1 2 3 4 Now, if I want to remove the third rows, the ID

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread Ashley Sheridan
On Sun, 2009-09-20 at 01:06 -0700, Lars Torben Wilson wrote: On Sun, 20 Sep 2009 12:07:39 +0430 Parham Doustdar parha...@gmail.com wrote: Hello there, I'm guessing that when a row in a MySQL table is removed, the ID colomns of the rows which come after that row are not changed. For

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread Phpster
On Sep 20, 2009, at 3:37 AM, Parham Doustdar parha...@gmail.com wrote: Hello there, I'm guessing that when a row in a MySQL table is removed, the ID colomns of the rows which come after that row are not changed. For example: 1 2 3 4 Now, if I want to remove the third rows, the ID

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread tedd
At 12:07 PM +0430 9/20/09, Parham Doustdar wrote: Hello there, I'm guessing that when a row in a MySQL table is removed, the ID colomns of the rows which come after that row are not changed. For example: 1 2 3 4 Now, if I want to remove the third rows, the ID colomn would be something like:

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread Paul M Foster
On Sun, Sep 20, 2009 at 12:07:39PM +0430, Parham Doustdar wrote: Hello there, I'm guessing that when a row in a MySQL table is removed, the ID colomns of the rows which come after that row are not changed. For example: 1 2 3 4 Now, if I want to remove the third rows, the ID colomn

Re: [PHP] Question: Sorting through table headers?

2009-09-17 Thread Parham Doustdar
Hello there, Thanks a lot. The Javascript class worked like a charm. I'm glad I asked! :) Thanks for all the answers, everyone. I seem to have communicated my intent wrong, when it came to my algorithm, but basically, yes, it was not based on the MVC model, and yes, it did filter the SQL table,

Re: [PHP] Question: Sorting through table headers?

2009-09-14 Thread Jim Lucas
Parham Doustdar wrote: Hello there, I've been asked to create something like the tables you usually see, where the headers are actually links and when you click the links, the table gets sorted based on the header. Are there any classes that you know of that would do the job? My current idea

Re: [PHP] Question: Sorting through table headers?

2009-09-14 Thread Marcus Gna?
Jim Lucas wrote: Parham Doustdar wrote: Hello there, I've been asked to create something like the tables you usually see, where the headers are actually links and when you click the links, the table gets sorted based on the header. Are there any classes that you know of that would do the

Re: [PHP] Question: Sorting through table headers?

2009-09-13 Thread Tommy Pham
--- On Sun, 9/13/09, Parham Doustdar parha...@gmail.com wrote: From: Parham Doustdar parha...@gmail.com Subject: [PHP] Question: Sorting through table headers? To: php-general@lists.php.net Date: Sunday, September 13, 2009, 6:55 AM Hello there, I've been asked to create something like the

Re: [PHP] Question: what are frameworks?

2009-08-09 Thread Sancar Saran
On Sunday 09 August 2009 02:47:37 pm Parham Doustdar wrote: Hi there, I've heard of frameworks, but I don't quite know what they are used for. I've done a little search on the internet, but even though I've been able to find different PHP frameworks, I'm not quite sure what they offer, or in

Re: [PHP] Question on code profiling

2009-07-27 Thread Andrew Ballard
On Sat, Jul 25, 2009 at 1:31 AM, Daniel Kolbokolb0...@umn.edu wrote: Andrew Ballard wrote: On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballardaball...@gmail.com wrote: From what I can tell, the numbers I see in WinCacheGrind look like they are off by about a factor of 10 pretty uniformly.

Re: [PHP] Question on code profiling

2009-07-24 Thread Andrew Ballard
On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballardaball...@gmail.com wrote: From what I can tell, the numbers I see in WinCacheGrind look like they are off by about a factor of 10 pretty uniformly. Andrew Apparently the difference is indeed WinCacheGrind, as a number of other people have left

Re: [PHP] Question on code profiling

2009-07-24 Thread Daniel Kolbo
Andrew Ballard wrote: On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballardaball...@gmail.com wrote: From what I can tell, the numbers I see in WinCacheGrind look like they are off by about a factor of 10 pretty uniformly. Andrew Apparently the difference is indeed WinCacheGrind, as a number

Re: [PHP] Question on code profiling

2009-07-23 Thread Robert Cummings
Andrew Ballard wrote: I'm trying to profile a site on our development server to see why it takes around 4 seconds to generate a pretty basic page. I installed xdebug to use for the profiling, and now I'm really confused. Even though it takes around 4 seconds to build the entire page, the profile

Re: [PHP] Question on code profiling

2009-07-23 Thread Ben Dunlap
Nope. Basically it connects to a database to load an ACL (which at [...] I thought xdebug was supposed to be a pretty good profiler. If it calculating the time correctly, where are the other ~3.6 seconds going? One night I saw a script wait indefinitely for a response from a tanked database,

Re: [PHP] Question on code profiling

2009-07-23 Thread Andrew Ballard
On Thu, Jul 23, 2009 at 5:32 PM, Ben Dunlapbdun...@agentintellect.com wrote: I second Jonathan's suggestion; I would try calling microtime() before and after your database query, and before and after anything else that isn't strictly execution of the script. Ben I tried this where I could.

Re: [PHP] Question about template systems

2009-03-03 Thread Marcus Gnaß
Marcus Gnaß wrote: like with programming questions in general. Should have read my own post before sending! ;) Should be programming languages! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about template systems

2009-03-03 Thread Matthew Croud
Excellent, thanks for your help guys, you've been really helpful :) On 3 Mar 2009, at 10:20, Marcus Gnaß wrote: Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a

Re: [PHP] Question about template systems

2009-03-03 Thread Richard Heyes
Hi, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data with a static navigation

Re: [PHP] Question about template systems

2009-03-03 Thread Marcus Gnaß
Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create dynamic data with a

Re: [PHP] Question about template systems

2009-03-03 Thread Paul M Foster
On Tue, Mar 03, 2009 at 09:01:06AM +, Matthew Croud wrote: Hello, First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been

Re: [PHP] Question about template systems

2009-03-03 Thread Stuart
2009/3/3 Matthew Croud m...@obviousdigital.com First post here, I'm in the process of learning PHP , I'm digesting a few books as we speak. I'm working on a content heavy website that provides a lot of information, a template system would be great and so i've been looking at ways to create

Re: [PHP] Question about template systems

2009-03-03 Thread Ross McKay
On Tue, 3 Mar 2009 20:46:40 +, stuttle wrote: [...] As far as templating systems go I personally don't think they add anything to the equation unless you're working with designers who are already familiar with something. Separation of logic and content is important, abstraction away from PHP

Re: [PHP] Question about version control.. sorta..

2009-02-06 Thread Michael Kubler
I'll put in a +1 for Subversion. I use it and love it. I have the actual repository sitting on a linux box and usually use TortiseSVN to update, and commit to the repository. It's pretty easy to use, and was much easier to setup than I expected. I simply apt-get install svn, and then edited

Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread TG
So, for my purposes.. after trying a handful of solutions.. open source and commercial.. I think I've decided that Reliable Software's Code Co-op is what's going to work best for me. My trial is almost up, so as soon as my next paycheck comes, I think I'll be purchasing the full version for

Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread German Geek
I use GIT and Subversion. Subversion is still a bit hard to use (branching etc) and not distributed but that was before i knew about GIT :-P. You have a central repository that you need to commit to and it's still quite CVS like (which is really confusing and horrible). GIT is nice and fast and

Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread Phpster
My two cents, It's not bad, but you need to be aware of collisions. We set it up with a folder for each developer and it contains the main application code. The upside is that we each have our own code base so we don't affect each other when cutting new code. The downside is that we can

Re: [PHP] Question about version control.. sorta..

2009-01-01 Thread TG
: Micah Gersten mi...@onshore.com To: Richard Heyes rich...@php.net Cc: TG tg-...@gryffyndevelopment.com, php-general@lists.php.net Date: Wed, 31 Dec 2008 20:06:25 -0600 Subject: Re: [PHP] Question about version control.. sorta.. Richard Heyes wrote: The other issue is that I run Windows. So

Re: [PHP] Question about version control.. sorta..

2009-01-01 Thread Nathan Nobbe
On Thu, Jan 1, 2009 at 7:33 AM, TG tg-...@gryffyndevelopment.com wrote: Thanks for the recommendations, everyone. I decided to give Subversion another try, since I had a server already set up from when I tried this a while ago. Reinstalled TortoiseSVN for Windows and got it all configured.

Re: [PHP] Question about version control.. sorta..

2008-12-31 Thread Richard Heyes
What I'd ideally like to do is be able to use a CVS type system to keep incremental backups of the code. Space is so cheap these days I don't think is particularly useful to do incremental backups unless you have a hell of a lot of data. I simply do full backups daily. Now... So instead of

Re: [PHP] Question about version control.. sorta..

2008-12-31 Thread Micah Gersten
Richard Heyes wrote: The other issue is that I run Windows. So if there's something nice and WinGUI, that'd be nice. Please no you should be running linux You should be running linux. Muhaha. responses. I don't have anything against Linux or Mac, they're great systems. But I

Re: [PHP] Question about version control.. sorta..

2008-12-31 Thread Nathan Nobbe
On Wed, Dec 31, 2008 at 9:40 AM, TG tg-...@gryffyndevelopment.com wrote: Ok.. so I know about CVS and SVN and unfortunately haven't had as much experience with them as I'd like. I've used them, but always in a really basic sense and always on systems that have already been set up. A friend

[PHP] RE: Php question from Newsgroup

2008-12-18 Thread Boyd, Todd M.
Mike -- I've bottom posted my reply, as is the convention for this list (and most others). Scroll down. From: Mike Peloso [mailto:mpel...@princeton.edu] Sent: Thursday, December 18, 2008 9:56 AM To: Boyd, Todd M. Subject: Php question from Newsgroup Todd, I have attached a few jpgs to

[PHP] Re: Php question from Newsgroup

2008-12-18 Thread MikeP
Boyd, Todd M. tmbo...@ccis.edu wrote in message news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu... Mike -- I've bottom posted my reply, as is the convention for this list (and most others). Scroll down. From: Mike Peloso [mailto:mpel...@princeton.edu] Sent: Thursday,

Re: [PHP] question on parameter specification in href tag

2008-12-12 Thread Robert Cummings
On Thu, 2008-12-11 at 11:30 +0100, Xaver Thum wrote: Hi, I want to set a link like a href=http://www.anyurl.com?mypar=17color=red; ... into my HTML file; that works fine. But if I specify a hex color like #CC instead of red, a href=http://www.anyurl.com?mypar=17color=#CC;

Re: [PHP] question on parameter specification in href tag

2008-12-12 Thread Daniel Brown
On Thu, Dec 11, 2008 at 05:30, Xaver Thum xaver.t...@t-online.de wrote: But if I specify a hex color like #CC instead of red, a href=http://www.anyurl.com?mypar=17color=#CC; ... the color is ignored (probably because # starts a PHP comment). Is there any workaround for this problem

Re: [PHP] question about corrupt db?

2008-12-02 Thread Ashley Sheridan
PROTECTED] Cc: PHP General php-general@lists.php.net Subject: Re: [PHP] question about corrupt db? On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED] wrote: Terion Miller wrote: could a corrupt db

Re: [PHP] question about corrupt db?

2008-12-02 Thread uaca man
-general@lists.php.net Subject: Re: [PHP] question about corrupt db? On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED] wrote: Terion Miller wrote: could a corrupt db make php pages stop functioning

Re: [PHP] question about corrupt db?

2008-12-01 Thread Micah Gersten
Terion Miller wrote: could a corrupt db make php pages stop functioning? My pages no longer go anywhere, I went back found the original scripts and still it didn't fix the problem (thought I had messed the code up) so it has to be something external of the code its doing this locally on my box

Re: [PHP] question about corrupt db?

2008-12-01 Thread Ashley Sheridan
On Mon, 2008-12-01 at 15:12 -0600, Micah Gersten wrote: Terion Miller wrote: could a corrupt db make php pages stop functioning? My pages no longer go anywhere, I went back found the original scripts and still it didn't fix the problem (thought I had messed the code up) so it has to be

Re: [PHP] question about corrupt db?

2008-12-01 Thread Terion Miller
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED] wrote: Terion Miller wrote: could a corrupt db make php pages stop functioning? My pages no longer go anywhere, I went back found the original scripts and still it didn't fix the problem (thought I had messed the code up) so

Re: [PHP] question about corrupt db?

2008-12-01 Thread Chris
Terion Miller wrote: could a corrupt db make php pages stop functioning? My pages no longer go anywhere, I went back found the original scripts and still it didn't fix the problem (thought I had messed the code up) so it has to be something external of the code its doing this locally on my box

RE: [PHP] question about corrupt db?

2008-12-01 Thread Wolf
-Original Message- From: Terion Miller [EMAIL PROTECTED] Sent: Monday, December 01, 2008 4:23 PM To: Micah Gersten [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Subject: Re: [PHP] question about corrupt db? On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED

Re: [PHP] question about corrupt db?

2008-12-01 Thread Terion Miller
On Mon, Dec 1, 2008 at 3:40 PM, Wolf [EMAIL PROTECTED] wrote: -Original Message- From: Terion Miller [EMAIL PROTECTED] Sent: Monday, December 01, 2008 4:23 PM To: Micah Gersten [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Subject: Re: [PHP] question about corrupt db

Re: [PHP] question about corrupt db?

2008-12-01 Thread Ashley Sheridan
-general@lists.php.net Subject: Re: [PHP] question about corrupt db? On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED] wrote: Terion Miller wrote: could a corrupt db make php pages stop functioning? My pages no longer go anywhere, I went back found the original scripts

Re: [PHP] question about corrupt db?

2008-12-01 Thread Terion Miller
01, 2008 4:23 PM To: Micah Gersten [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Subject: Re: [PHP] question about corrupt db? On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED] wrote: Terion Miller wrote: could a corrupt db make php pages stop

Re: [PHP] question about corrupt db?

2008-12-01 Thread ceo
Maybe try the normal Windows System Logs? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about corrupt db?

2008-12-01 Thread Ashley Sheridan
: -Original Message- From: Terion Miller [EMAIL PROTECTED] Sent: Monday, December 01, 2008 4:23 PM To: Micah Gersten [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Subject: Re: [PHP

Re: [PHP] question about corrupt db?

2008-12-01 Thread Nathan Rixham
] wrote: -Original Message- From: Terion Miller [EMAIL PROTECTED] Sent: Monday, December 01, 2008 4:23 PM To: Micah Gersten [EMAIL PROTECTED] Cc: PHP General php-general@lists.php.net Subject: Re: [PHP

Re: [PHP] question about google maps

2008-11-09 Thread Kevin Waterson
This one time, at band camp, Sudhakar [EMAIL PROTECTED] wrote: hi how do i go about displaying an address which appears on google maps for a business on a web page. what are the steps. if some one knows about this please let me know. http://www.phpro.org/classes/Phproogle.html and

Re: [PHP] question about google maps

2008-11-09 Thread Richard Heyes
You are trapped on a desert island with the Baldwin Brothers. The food and rum have run out and you have a gun with a single bullet. Who do you shoot? Line them all up and shoot them in a oner... ;-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org

Re: [PHP] question about google maps

2008-11-09 Thread tedd
At 12:58 PM + 11/9/08, Richard Heyes wrote: You are trapped on a desert island with the Baldwin Brothers. The food and rum have run out and you have a gun with a single bullet. Who do you shoot? Line them all up and shoot them in a oner... ;-) -- Richard Heyes On XBOX Ghost Recon

Re: [PHP] question about google maps

2008-11-01 Thread Ashley Sheridan
On Sun, 2008-11-02 at 13:43 +1300, Sudhakar wrote: hi how do i go about displaying an address which appears on google maps for a business on a web page. what are the steps. if some one knows about this please let me know. thanks Have you actually tried looking at Google's API for

RE: [PHP] question about using sql server with php

2008-10-27 Thread bruce
hey sudhakar.. when you're changing database apps, you're normally going to have to change the connection codem as well as possibly the query structure for your different select/insert/etc.. queries. there should be plenty of examples/tutorials on the net, as well as in the php.net website.

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. On Mon, Oct 27, 2008 at 6:19 AM, bruce [EMAIL PROTECTED] wrote: hey sudhakar.. when you're changing database apps, you're normally going to have to change

Re: [PHP] question about using sql server with php

2008-10-27 Thread Ashley Sheridan
On Mon, 2008-10-27 at 07:41 -0700, Robbert van Andel wrote: You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. On Mon, Oct 27, 2008 at 6:19 AM, bruce [EMAIL PROTECTED] wrote: hey sudhakar.. when you're

Re: [PHP] question about using sql server with php

2008-10-27 Thread Chris
Robbert van Andel wrote: You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. He's not using mysql, he's using sql server. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
We use a linux webserver but have a need to connect to MSSQL databases. Since I used Fedora, I was lucky enough to find the PHP-MSSQL package but that has only been available via yum recently. My first attempt at connecting to MSSQL was much more difficult when I was using FC3. On Mon, Oct 27,

Re: [PHP] question about using sql server with php

2008-10-27 Thread Robbert van Andel
Sorry, that was a typo. I meant MSSQL. On Mon, Oct 27, 2008 at 2:12 PM, Chris [EMAIL PROTECTED] wrote: Robbert van Andel wrote: You also need to make sure that your server has the mysql drivers installed. A linux server does not come with this support natively. He's not using mysql,

Re: [PHP] question about using sql server with php

2008-10-26 Thread Chris
if i have to connect to a sql databse instead of my sql database as some companies use sql database, how can i change the php code to connect, run a query and close connection to the sql database. apart from changing the code to connect to sql database is there something else i need to do.

Re: [PHP] Question about date()

2008-10-07 Thread Richard Heyes
I am trying real hard to write clean code... Print it out and stick it in the washing machine... :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Question about date()

2008-10-07 Thread Stut
On 7 Oct 2008, at 12:48, Jason Pruim wrote: On Oct 7, 2008, at 7:41 AM, Stut wrote: On 7 Oct 2008, at 12:38, Jason Pruim wrote: I am trying to track down an error and can't seem to figure it out... Here is the error out of my log: [Tue Oct 7 07:31:43 2008] [error] PHP Warning: date()

Re: [PHP] Question about date()

2008-10-07 Thread Stut
On 7 Oct 2008, at 12:38, Jason Pruim wrote: I am trying to track down an error and can't seem to figure it out... Here is the error out of my log: [Tue Oct 7 07:31:43 2008] [error] PHP Warning: date() expects parameter 2 to be long, string given in /Volumes/RAIDer/webserver/

Re: [PHP] Question about date()

2008-10-07 Thread tedd
At 1:08 PM +0100 10/7/08, Stut wrote: On 7 Oct 2008, at 12:48, Jason Pruim wrote: Thanks for the quick response... You were right... I did a var_dump both on $row['timein'] and $row['timeout'] and the error was because of the way that I update the records. for time in, I insert a new record,

Re: [PHP] Question about date()

2008-10-07 Thread Jason Pruim
On Oct 7, 2008, at 7:41 AM, Stut wrote: On 7 Oct 2008, at 12:38, Jason Pruim wrote: I am trying to track down an error and can't seem to figure it out... Here is the error out of my log: [Tue Oct 7 07:31:43 2008] [error] PHP Warning: date() expects parameter 2 to be long, string given

Re: [PHP] Question about date()

2008-10-07 Thread Jason Pruim
On Oct 7, 2008, at 7:49 AM, Richard Heyes wrote: I am trying real hard to write clean code... Print it out and stick it in the washing machine... :-) The way I used to write code I'd have to soak it in bleach for a week before having a chance of it coming out clean! :P -- Jason Pruim

Re: [PHP] Question about date()

2008-10-07 Thread Ashley Sheridan
On Tue, 2008-10-07 at 07:54 -0400, Jason Pruim wrote: On Oct 7, 2008, at 7:49 AM, Richard Heyes wrote: I am trying real hard to write clean code... Print it out and stick it in the washing machine... :-) The way I used to write code I'd have to soak it in bleach for a week before

Re: [PHP] Question about date()

2008-10-07 Thread Richard Heyes
Luckily for me it all still worked afterwards! The pen drive or the code? :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about date()

2008-10-07 Thread Ashley Sheridan
On Tue, 2008-10-07 at 19:47 +0100, Richard Heyes wrote: Luckily for me it all still worked afterwards! The pen drive or the code? :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph Both! Ash www.ashleysheridan.co.uk -- PHP

Re: [PHP] question about EOF

2008-09-30 Thread Jochem Maas
LKSunny schreef: Hello, i want on inner EOF do something, calculate and call function ? can not ? if yes, how to ? no you can't, store the results of calculation and function calls in variables and use them in the HEREDOC statement. a HEREDOC declaration is just a string declaration like

Re: [PHP] question about EOF

2008-09-30 Thread tedd
At 12:48 PM +0800 9/30/08, LKSunny wrote: Hello, i want on inner EOF do something, calculate and call function ? can not ? if yes, how to ? ? echo EOF some text can i calculate on inner EOF ? 10*100 display 1000 ? can i add function on inner EOF ? date('Y') display 2008 ? any more text.

Re: [PHP] Question regarding OO

2008-07-11 Thread Robert Cummings
On Fri, 2008-07-11 at 18:03 +0200, Yeti wrote: ?php /* I have a question here regarding object orientation in PHP and any other language. Let's start with some hypothetical code: */ // --- 1st CLASS class ParkingLot { var size; // size in sq feet var max_number_of_cars;

Re: [PHP] Question regarding OO

2008-07-11 Thread Ted Wood
Object-oriented programming, with it's class and object approach, is meant to model real life more closely than functional programming. In, a parking space is physically inside a parking lot, but a parking space is not a subclass of a parking lot. It's not a variation or mini parking

Re: [PHP] Question regarding OO

2008-07-11 Thread Ted Wood
Corrected code example: (too early in the morning to think) ?php class ParkingLot { var $size; var $num_spaces; var $spaces = array(); } class ParkingSpace { var $ps_ID; var $occupied_by; var $st_time; } ? In the above class definition, simply populate the $spaces array

Re: [PHP] Question regarding OO

2008-07-11 Thread Eric Butera
On Fri, Jul 11, 2008 at 12:03 PM, Yeti [EMAIL PROTECTED] wrote: ?php /* I have a question here regarding object orientation in PHP and any other language. Let's start with some hypothetical code: */ // --- 1st CLASS class ParkingLot { var size; // size in sq feet var

RE: [PHP] Question regarding OO

2008-07-11 Thread Jay Blanchard
[snip] I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow extend Tree. I thank you all for helping me to understand. [/snip] By jove, I think he's got it! Parking space could be a member variable of parking lot, that would make sense. -- PHP General

RE: [PHP] Question regarding OO

2008-07-11 Thread Boyd, Todd M.
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 1:51 PM To: Eric Butera; php php Subject: RE: [PHP] Question regarding OO [snip] I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow extend Tree

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
Hey, Dude you could use it this way input type='checkbox' name='something' value='1' input type='checkbox' name='something' value='2' input type='checkbox' name='something' value='3' Once u submit it, do a small server side validation if(isset($_POST['something'] || $_POST['something']) != ){

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-08 Thread VamVan
sorry it needs to be a array for checkbox for the example below. So you could use is_empty() instead. something like that. input type='checkbox' name='something[]' value='1' input type='checkbox' name='something[]' value='2' input type='checkbox' name='something[]' value='3' On Tue, Jul 8,

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Per Jessen
Jason Pruim wrote: The problem I'm running into though, is when a value has not changed it doesn't get $_POSTed back Are you certain about that? I'm pretty certain _all_ values are posted back, regardless of whether they've changed or not. Otherwise, how would you ever get a hidden value

Re: [PHP] Question before I end up writing alot of extra code...

2008-07-07 Thread Wolf
Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone! So it's been a nice long weekend, I come in to work and try and mess with a project that I'm working on to get some new features added. All was going well until I realized that now my application is breaking... Here's the

<    1   2   3   4   5   6   7   8   9   10   >