[PHP] FW: No Subject

2013-03-16 Thread Ryan S
http://www.coachholidays.co.uk/ramlm/hfoqauyyvomdvio.kaxkucbebccxpzq

Re: [PHP] Wrong time being displayed by PHP!

2012-10-22 Thread Richard S. Crawford
On Thu, Oct 18, 2012 at 2:12 AM, Ford, Mike wrote: > > From: underp...@gmail.com [mailto:underp...@gmail.com] On Behalf Of > > Richard S. Crawford > > Sent: 17 October 2012 19:29 > > To: PHP-General > > > > You can see the current output

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Richard S. Crawford
t; be set to PDT. You can easily override this with a local php.ini file, an > .htaccess directive, or by placing date_default_timezone_set() near the top > of the code. You can see the current output of the above code here: http://projectbench.extensiondlc.net I've confirmed that the server is set to PDT. The value of date.timezone in php.ini is "America/Los_Angeles", which should be (currently) -8 hours from UTC, but it looks like the PDT offset is only set to -4. Does that even make sense? -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
On Tue, Oct 16, 2012 at 2:05 PM, Daniel Brown wrote: > On Tue, Oct 16, 2012 at 4:19 PM, Richard S. Crawford > wrote: > > > > Thanks for the suggestion. Unfortunately the problem seems to be that PHP > > thinks the America/Los_Angeles timezone is the same as EDT. I'm

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
this issue. Richard > On Tue, Oct 16, 2012 at 3:56 PM, Richard S. Crawford < > rscrawf...@mossroot.com> wrote: > > > I double checked the server time. It is set to "America/Los_Angeles" as > > well. > > > > > > On Tue, Oct 16, 2012 at 11

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
I double checked the server time. It is set to "America/Los_Angeles" as well. On Tue, Oct 16, 2012 at 11:07 AM, Adam Richardson wrote: > On Tue, Oct 16, 2012 at 2:02 PM, Richard S. Crawford > wrote: > > The value of date.timezone in php.ini is set to "America/Los_

[PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Richard S. Crawford
The value of date.timezone in php.ini is set to "America/Los_Angeles". The local time is 11:02 a.m. Yet the output of date("h:i a e") is: 02:02 pm America/Los_Angeles which is three hours ahead of the real time. Why is this? What's going on? -- Sláinte,

Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Richard S. Crawford
net/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

[PHP] get question

2012-08-27 Thread Jack S
Hello All, Trying to figure out why when I include the page that contains this code, I'm not able to get the $calling_page populated with any values. Any help appreciated... "; } elseif ($calling_page == "index") { $title = "Title 2 - $calling_page"; $body = ""; # Non S

Re: [PHP] Re: MySQL and PHP weirdness - RESOLVED

2012-02-15 Thread Richard S. Crawford
This has been resolved. A previous programmer had snuck in a function that would convert the value of the "description" field to a date value if it contained the word "Date". This has been fixed. On Tue, Feb 14, 2012 at 5:44 PM, David Robley wrote: > Richard S. Crawford

[PHP] MySQL and PHP weirdness

2012-02-14 Thread Richard S. Crawford
up how PHP is displaying the text. I've tried changing the field type from "mediumtext" to "text" but this didn't work. If anyone has any ideas as to why this might be happening -- or if I just wasn't clear -- please let me know. -- Sláinte, Richard S. Crawf

[PHP] Hi!

2011-11-24 Thread Jay S
current advertiser. I would love have you run a test on our network. :) When would be a good time to chat? Skype: jay.installmonetizer Yahoo: dhaliwal.jasjeet Thanks for your time! -- Sincerely, Jay S. j...@installmonetizercorp.com Skype: jay.installmonetizer Yahoo: dhaliwal.jasjeet

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Richard S. Crawford
> Firefox periodically displays. > > I will never understand this mindset. > > > > Full story : http://www.technewsworld.com/edpick/72739.html > > > > > > > > Richard L. Buskirk > > > > -- Sláinte, Richard S. Crawford (rich...@u

Re: [PHP] WHERE field = a range of values (value

2011-05-25 Thread Paul S
On Tue, 24 May 2011 23:47:47 +0700, "Paul S" wrote: On Tue, 24 May 2011 21:09:34 +0700, "Richard S. Crawford" wrote: On Tue, May 24, 2011 at 6:51 AM, Paul S wrote: I'd like to check a table to retrieve rows for which one field equals one of a set of values

Re: [PHP] WHERE field = a range of values (value

2011-05-24 Thread Paul S
On Tue, 24 May 2011 21:09:34 +0700, "Richard S. Crawford" wrote: On Tue, May 24, 2011 at 6:51 AM, Paul S wrote: I'd like to check a table to retrieve rows for which one field equals one of a set of values #get products(fields) in category list while ($ro

Re: [PHP] WHERE field = a range of values (value

2011-05-24 Thread Richard S. Crawford
On Tue, May 24, 2011 at 6:51 AM, Paul S wrote: > I'd like to check a table to retrieve rows for which one field equals one > of a set of values > > > #get products(fields) in category list >while ($row = $db_connect->fetch_array($productsincategory_list))

[PHP] WHERE field = a range of values (value

2011-05-24 Thread Paul S
I'd like to check a table to retrieve rows for which one field equals one of a set of values #get products(fields) in category list while ($row = $db_connect->fetch_array($productsincategory_list)) { $product = $row ['selection']; $fields = "$fields" . " $product,"; }

Re: [PHP] Odd array_push issue

2011-05-11 Thread Richard S. Crawford
On Wed, May 11, 2011 at 1:30 PM, Peter Lind wrote: > On 11 May 2011 22:23, Richard S. Crawford wrote: > > I'm encountering what appears to be a bug in array_push when I try using > > that function to add objects to an array. For example... > > > > A = Object

[PHP] Odd array_push issue

2011-05-11 Thread Richard S. Crawford
ich leads me to think that perhaps my own code is at fault. -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com

Re: [PHP] Custom function

2011-05-02 Thread Richard S. Crawford
Ron: I'm not sure what you mean by "optional flag"? Do you mean an optional parameter? Richard -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

[PHP] How to write a PHP coding to list out all files and directories as links to them?

2011-04-14 Thread Mikhail S
How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after it is being refreshed. (prefer

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Richard S. Crawford
On Fri, Apr 1, 2011 at 2:32 PM, Jim Giner wrote: > > function. Try something like: > ... > echo 'heaading contains: getText("h2")'; > ... > > I tried it - no better. > Did you still get the "function undefined" error? -- Slá

Re: [PHP] How is this possible???? (addslashes)

2011-02-17 Thread Paul S
On Thu, 17 Feb 2011 07:50:45 +0700, Daniel Brown wrote: No offense, but are you kidding me? The host disables phpinfo() for security reasons, but keeps 4.4.4 running? Talk about running, Paul run away from them. Fast. AND they have a condition (this reported) that could cause (

[PHP] How is this possible???? (addslashes)

2011-02-16 Thread Paul S
Can anyone please tell me how the addslashes output ("note = Everyone''s a card on the \earth") in the following example is possible. It is "addslashes" output but this result is consistent with the output from "post" when runtime is set: 1): a single quo

Re: [PHP] No SMTP server? Can't get mail()

2011-01-24 Thread Paul S
On Sun, 23 Jan 2011 12:40:25 +0700, David Robley wrote: Paul S wrote: I'm a little new to PHP. David starts: Nobody seems to have mentioned it, but the SMTP info is only needed on a Win system. The following is an extract from a default php.ini file: Well, I have just RTF

Re: [PHP] No SMTP server? Can't get mail()

2011-01-22 Thread Paul S
On Fri, 21 Jan 2011 13:41:21 +0700, Peter Lind wrote: Probably not the solution you were looking for, but I've always found mail() very unstable and I tend to use a mail library instead. Like phpmailer or swiftmailer. Easier to configure and figure out problems with. Regards Peter Peter, t

Re: [PHP] Script mysteriously restarting

2011-01-21 Thread Richard S. Crawford
Ah, sorry. It's a browser-based script. On Fri, Jan 21, 2011 at 1:28 PM, Jim Lucas wrote: > On 1/21/2011 12:37 PM, Richard S. Crawford wrote: > > I've got a massive PHP script which takes nearly an hour to run. > Sometimes, > > when it comes close to the end, it my

[PHP] Script mysteriously restarting

2011-01-21 Thread Richard S. Crawford
PHP5 with Apache 2 on a Linux server. -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul S
On Fri, 21 Jan 2011 13:07:02 +0700, "Paul S" wrote: On Fri, 21 Jan 2011 12:28:16 +0700, Paul M Foster wrote: On Fri, Jan 21, 2011 at 10:45:46AM +0700, Paul S wrote: I am having problems with mail(). The problem is that the email just never gets there. Mail appears to be w

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul S
On Fri, 21 Jan 2011 12:28:16 +0700, Paul M Foster wrote: On Fri, Jan 21, 2011 at 10:45:46AM +0700, Paul S wrote: I am having problems with mail(). The problem is that the email just never gets there. Mail appears to be working. To start, I am investigating the SMTP server. I can&#

[PHP] 400 Cannot connect to NNTP server

2011-01-20 Thread Paul S
400 Cannot connect to NNTP server 76.75.200.58 (76.75.200.58:119), connect error 10060 I do not seem to be having any problems getting to this newsgroup :-) but this message keeps popping up. Just to let u know, no need for replies. Thanks for a great resource! -- Using Opera's revolution

[PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul S
I am having problems with mail(). The problem is that the email just never gets there. Mail appears to be working. To start, I am investigating the SMTP server. I can't understand some things. 1) I am sure that the smtp server is and is set to "localhost", but I want to verify this ... --

Re: [PHP] Stripping carriage returns

2011-01-11 Thread Richard S. Crawford
was indeed a typo when I was copying the code over into my email. Ashley, I've already been using strip_tags to eliminate all but , , , and tags. On Tue, Jan 11, 2011 at 11:24 AM, David Harkness wrote: > On Tue, Jan 11, 2011 at 11:13 AM, Richard S. Crawford < > rich...@underp

[PHP] Stripping carriage returns

2011-01-11 Thread Richard S. Crawford
chr(10) or chr(13) to represent line breaks internally, so I decided to give those a try as well.) and $content = str_replace(array('\n','\r','\r\n'),$content) all to no avail; these all leave the line break intact, which means my preg_replace('//','',$content) line still breaks. Anyone have any ideas? -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com

Re: [PHP] PHPInfo disabled due to security

2010-12-16 Thread Paul S
On Thu, 16 Dec 2010 00:13:31 +0700, "Daniel P. Brown" wrote: Well, phpinfo() does, by default, divulge some things that could be considered security concerns --- particularly in poorly-managed environments. Primarily, this is by giving a synopsis of versions and paths of software, but so

[PHP] PHPInfo disabled due to security

2010-12-15 Thread Paul S
Warning: phpinfo() has been disabled for security reasons in /home/.../php/phpinfo.php on line 2 My ISP has disabled phpinfo and has not answered my tech requests on this for over a month. They seem to never have a thing to do but play games with silly security "issues". In a day some phone ca

Re: [PHP] Formatting an ECHO statement.

2010-10-18 Thread Cris S
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

Re: [PHP] Formatting an ECHO statement.

2010-10-18 Thread Cris S
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

Re: [PHP] Looking for open source Learning Management System suggestions

2010-08-31 Thread Richard S. Crawford
y) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

[PHP] Database vs. Array

2010-03-16 Thread Richard S. Crawford
ript. This is not an issue I've come across before, so any thoughts would be much appreciated. Thanks in advance. -- Richard S. Crawford (rich...@underpope.com) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote: > On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote: > >>Ashley Sheridan wrote: >> >>>On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote: >>> >>> >>> >>>>Dear All, >>>> >

Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote: > On Tue, 2010-03-09 at 23:06 +0800, Edward. S. P. Leong wrote: > >>Ashley Sheridan wrote: >> >>> On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote: >>> >>>>Ashley Sheridan wrote: >>>> >&

Re: [PHP] pear for fedora 11

2010-03-08 Thread Edward. S. P. Leong
Ashley Sheridan wrote: >On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote: > > > >>Dear All, >> >>Which can we download pear ann install into fc 11 system ? >> >>Thank for your help ! >> >>Edward. >> >> >

[PHP] pear for fedora 11

2010-03-07 Thread Edward. S. P. Leong
Dear All, Which can we download pear ann install into fc 11 system ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help with regex (search/replace) please

2010-02-06 Thread Ryan S
@Al, > have you looked at the Pear html_QuickForm2 set? Actually nope, whats it about? just did a google search and found it on the php site but no example code around so dont really have a clue. @Ash, Pastebin! Of course, why didnt i think of that... will do! Actually, just did so that i wou

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey Ash,Bastien! Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your criteria. @Ash, You're kinda reading my mind... i did do t

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of t

[PHP] Help with regex (search/replace) please

2010-02-06 Thread Ryan S
Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form of a regex so that when i give it the name and value it gives me the entire code of t

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Ryan S
Thanks for the links and advise guys! Of all I found this most interesting as it would run native: >check out http://www.php-compiler.net/doku.php unfortunately I think this project is dead or at best stagnant because the server is slower than a 99 year old on weed and forums link dead. Docume

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Ryan S
ssing open source falls back a bit compared to M$'s offerings. MS shoehorning something into dotnet sounds interesting, will ask my pal google what he can bring up ;) I did read about FLEX but i have pretty much complete php scripts that i want to use in a desktop environment, FLEX wouldnt

[PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Ryan S
Hey Guys, Coming from a C and Java background I just loved PHP and have been programming with it for years thanks in a large part to the kind people on this list... present and past (Immediately the name John Holmes comes to mind.. i hope the dude is well) but now I have have to leave PHP or sp

Re: [PHP] DOM TextArea (and dom chart please)

2010-02-03 Thread Ryan S
> I think what you are looking for is $input2->textContent in PHP. Hey Andrew (and everyone else was was kind enough to write back) ! Found the solution, this is what i am using (and it works!), and i hope it helps anyone else who finds themselves in the spot i found myself $inputs2 = $dom->

Re: [PHP] DOM TextArea (and dom chart please)

2010-02-02 Thread Ryan S
>// I have even tried this instead of the above: > >foreach ($inputs2 as $input2) { >if(!$input2->getAttribute("defaultValue")=="") { >$input2->setAttribute("defaultValue","it works!"); >} >} > >but no joy. > >I'm betting its pretty simple but i dont have a "DOM c

[PHP] DOM TextArea (and dom chart please)

2010-02-02 Thread Ryan S
Hey! i'm just starting with PHP's DOM-XML and need a little help please. Basically, first i am trying to see if a input like a textbox has a 'VALUE=' associated with it, if yes, i leave it be, if no, i add a default value. This *is working* as can be seen by the attached code below. But a bit

[PHP] header("Location:...") fails

2010-01-13 Thread Richard S. Crawford
command *after* this header() command, it works... but it seems pathologically inelegant to do so.) Obviously, I'm missing something incredibly basic. Can anyone help me figure this out? -- Richard S. Crawford (rscrawf...@mossroot.com) http://www.mossroot.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)

Re: [PHP] Read directory; store filenames found in mySQL table? :: SOLVED!!

2010-01-13 Thread Rahul S. Johari
Thanks All (Especially Warren); Final Code: function dirList ($directory) { $results = array(); $handler = opendir($directory); while ($file = readdir($handler)) { if ($file != '.' && $file != '..') $results[] = $file; } closedir($handler); return $results; }

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 10:40 AM, Rahul S. Johari wrote: On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the director

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 10:07 AM, Kenneth Sande wrote: Ashley Sheridan wrote: On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test \) and take all the filenames found in the directory (eg: 1.vox, 2.w

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 9:56 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple

[PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I do this? --- Rahul Sitaram Johari Founder, Internet Architects Group, Inc. [Email] sleep

Re: [PHP] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Alex S Kurilo
I can't see any conceivable benefit to this restriction when using open_basedir, as I thought that related to the local file system - unless CURL can use file:// URLs to access the local system? That's the problem. I always use open_basedir (not all the sites on my servers are safe enough). An

[PHP] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Alex S Kurilo
I was wondering why CURLOPT_FOLLOWLOCATION requires open_basedir and safe_mode to be turned off. The following was found in the changelog(http://www.php.net/ChangeLog-5.php): Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are enabled. (Stefan E., Ilia) Also I read s

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Rahul S. Johari
On Nov 30, 2009, at 11:41 AM, Bob McConnell wrote: From: Rahul S. Johari On Nov 30, 2009, at 11:07 AM, Bob McConnell wrote: From: news even though the dbf has 10K records Fox can't spend "minutes" to found a match by the way, its very strange to have 35 columns in a table/

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Rahul S. Johari
On Nov 30, 2009, at 11:07 AM, Bob McConnell wrote: From: news even though the dbf has 10K records Fox can't spend "minutes" to found a match by the way, its very strange to have 35 columns in a table/dbf or whatever pay attention to the comment of Ashley in Fox, you should: SELECT direc

Re: [PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
. On Nov 24, 2009, at 12:46 PM, Olav wrote: Rahul S. Johari wrote: Quite right. Unfortunately there doesn't seem to be any available ODBC Drivers for FoxPro available for Mac OS X either!! I'm hitting a brick wall no matter what direction I take. Convert to SQLite and don't look b

Re: [PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
Quite right. Unfortunately there doesn't seem to be any available ODBC Drivers for FoxPro available for Mac OS X either!! I'm hitting a brick wall no matter what direction I take. On Nov 24, 2009, at 12:22 PM, Olav wrote: Ashley Sheridan wrote: I would assume that any indexes created o

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
Original Topic: Still no solution for a faster search through the dbf via PHP. On Nov 24, 2009, at 11:11 AM, keyser soze wrote: uhh, i don't know (time ago Fox was multi-platform unix/mac/dos) did you found that on the web? Rahul S. Johari escribió: Keyser, It gets better -- I'

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
hives/2008/01/php_connect_dbf_file.html Rahul S. Johari escribió: I do believe that what I'm doing is scanning the foxpro dbase row by row to get the match ... which is why it's returning the results very slow. But I don't know if there's any other way to do this. Basical

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
er used php+fox so, reading your code i see you are scanning the whole dbf file from php Fox cant help you in this way if there is not another option for scan a dbf the row by row method is very slow Rahul S. Johari escribió: Your post definitely gives me hope. It's possible I'm doi

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
worked with Fox with dbfs of 2 millions of records and the speed is amazing -- using indexes of course! regards, ks Rahul S. Johari escribió: Ave, I'm connecting to a foxpro database (dbase) and simply running a search to retrieve a record. It's a very simple code. The problem

Re: [PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
On Nov 24, 2009, at 8:59 AM, Ashley Sheridan wrote: On Tue, 2009-11-24 at 08:40 -0500, Rahul S. Johari wrote: Ave, I'm connecting to a foxpro database (dbase) and simply running a search to retrieve a record. It's a very simple code. The problem is, as the database is growing, the

[PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
Ave, I'm connecting to a foxpro database (dbase) and simply running a search to retrieve a record. It's a very simple code. The problem is, as the database is growing, the search is becoming ridiculously slow ... and I mean it's taking "minutes". When the dbase had 10,000 records ... search

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Jack S
Thanks!!! On Thu, Nov 19, 2009 at 10:09 AM, tedd wrote: > At 11:30 AM -0500 11/18/09, Jack S wrote: >> >> Hello All, >> >> Does anyone have a reference to a program that may be out there to >> help with using a single header.php for a site, but then dynamically &

[PHP] dynamic meta tag and title app?

2009-11-18 Thread Jack S
Hello All, Does anyone have a reference to a program that may be out there to help with using a single header.php for a site, but then dynamically loads different keywords , titles etc based on what page is including the header file? Sample: If home page include it knows the title and other varia

Re: [PHP] php-ldap works in commandline but not through browser

2009-10-15 Thread chima s
Hi, ldap extension was loaded in the php.ini file. php -i |grep ldap /etc/php.d/ldap.ini, ldap RCS Version => $Id: ldap.c,v 1.161.2.3.2.14 2008/12/31 11:17:39 sebastian Exp $ Regards Chima.s On Thu, Oct 15, 2009 at 7:17 PM, wrote: > Did you check both php.ini files? > > -- > PHP General Mai

[PHP] php-ldap works in commandline but not through browser

2009-10-14 Thread chima s
Hi All, I am using tring with sample program to connect the ldap using php. Below is the sample code: == === When i execute this program with command line

Re: [PHP] moving to quad core

2009-09-15 Thread Rahul S. Johari
On 9/15/09 10:54 AM, "Andres Gonzalez" wrote: I have an application developed that uses alot of PHP. Currently, it is running on a Ubuntu 8.04 , single core CPU host. We are moving to a quad core host for this application. Is there anything special that I need to do to configure PHP to

[PHP] ereg_replace to preg_replace translation

2009-08-11 Thread m a r k u s
\n", "", $sql); Any help for tranlation or alternative ? Thanks -- m a r k u s -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ridiculous ..won't print or echo ...(RESOLVED)

2009-07-31 Thread ej S(ibr(ina
I'm sorry for this post. It's only testing. Thanks for understand. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ridiculous ..won't print or echo ...(RESOLVED)

2009-07-31 Thread ej S(ibr(ina
09 16:36 >> >> Ok in my output to Quark I need to have $P printed to the page like >> this: >> >> <@$p>2118 S. Campbell Ave >> >> So in my php which is going to be grabbing this info and formatting >> it for >> the Quarkisn'

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Richard S. Crawford
On Tue, Jul 28, 2009 at 10:09 AM, Jim Lucas wrote: > Richard S. Crawford wrote: >> 2009/7/28 Thodoris : >>> Hi gang, >>>   I've been looking for a str_to_date (mysql) equivalent in PHP. I've >>> noticed that these are matching the des

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Richard S. Crawford
te-from-format.php > > but I don't have PHP 5.3.0 installed in any of my systems to test it and the > function/method is not well documented yet. So I will have to write a > workaround this. > > Has anybody tried this? Does strtotime() not work for you? -- Richard S. Crawfor

Re: [PHP] Font problem

2009-07-28 Thread Richard S. Crawford
27;s too much detail to go into and this is a PHP list, not a CSS list. -- Richard S. Crawford (rscrawf...@mossroot.com) http://www.mossroot.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Richard S. Crawford
uot;, $pastDays); > > > And make it into one var to compare to a db field that is formatted like > 00/00/00 Try: $past_date = date("m/d/y", $pastDays) Or even: $past_date = date ("m/d/y", time() - 2592000) (where 2592000 is 30 * 86400, and 86400 is the number of sec

Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Richard S. Crawford
own on the number of pages you have to create. The way I do this is by first checking to see if the $_POST array has been set; if it has not been set, then I know that the form wasn't filled out, and so the script needs to print out the form. If the array has been set, on the other hand, then t

[PHP] How do I Upload XML file using cUrl?

2009-06-12 Thread Rahul S. Johari
Ave, I have a client who used Lead360.Com to manage their Leads. We have a Leads Management application in place that creates an XML file of the lead which give the client manually to download. What are client is requesting is to POST the XML File directly to their Leads360.Com account. W

[PHP] PHP as Server Side for a Web Database Application.

2009-06-09 Thread R. S. Patil
Hi, We are in phase of evaluating PHP as Serverside technology for our first web application. We have finalized Flex for user interface and Birt as reporting engine. Now the data services are to be evaluated. Flex forums recommended us using PHP for this. We would like to implement SOA for databa

Re: [PHP] How to deal with identical fields in db

2009-05-05 Thread Richard S. Crawford
ou seriously want to do some normalization on this task; otherwise, you end up with a giant table of books, with multiple rows duplicating the title of the book, leading to a huge "books" table, and nobody wants that. -- Richard S. Crawford (rscrawf...@mossroot.com) http://www.moss

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
No, adding * after the period had no affect at all. Still goes to the live site. Sorry, I misunderstood you. I'm too lazy to read all the message :) http and https may be handled by different virtual hosts. http for http://dev.sitename.com/ seems to be configured properly (Virtual host at por

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
RewriteRule . index.php Add an asterisk after the dot: RewriteRule .* index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RES: [PHP] Extract variable out of a Class -> Function

2009-04-23 Thread Rahul S. Johari
$this->url) { $this->justTT = substr($this->url,-10,7); } } } $myvar=new Test(); $myvar->showOutput(); $othervar=$myvar->justTT; echo $othervar; $otherClass=new anotherclass($othervar); Is that u want? Zechim SP/Brazil -Mensagem original

Re: [PHP] Extract variable out of a Class -> Function

2009-04-23 Thread Alex S Kurilo aka Kamazee
I have a function within a class. There is a variable inside that function which I need to access & use outside of the class/function. For example ... Class Test { function showOutput { if ($this->url) { $justTT = substr($this->url,-10,7);

[PHP] Extract variable out of a Class -> Function

2009-04-23 Thread Rahul S. Johari
;url,-10,7); echo $justTT; } } } I need to use $justTT. How do I get the value of $justTT into a different variable outside of this class/function so I can use it in a different class? --- Rahul S. Johari Supervisor, Internet & Administration In

Re: [PHP] self in inherited methods

2009-04-21 Thread Alex S Kurilo aka Kamazee
Is it right that 'self' in inherited method still points to the parent? If it is, can you explain it? It makes me worry :) Up until 5.3 this was just the way it was. It has been "fixed" in 5.3. See here for more info: http://php.net/lsb Thanks. It seems that 'static' keyword (instead of 'self')

[PHP] self in inherited methods

2009-04-19 Thread Alex S Kurilo aka Kamazee
Is it right that 'self' in inherited method still points to the parent? If it is, can you explain it? It makes me worry :) A piece of code below for example get_instance(); $c = $a->get_another_instance(); echo $a->get_name(),"\n"; echo get_class($b),"\n"; echo get_class($c),"\n"; ?> -- PHP

[PHP] Connecting to dBase using ODBC on Mac OS X

2009-04-09 Thread Rahul S. Johari
Ave, Does anyone have any knowledge on connecting a FoxPro table (.dbf, dbase) using ODBC on a Mac OS X? I've been googling but not much is turning up. Some information is available on ODBC Connections using PHP ... very little on Mac OS X ... and absolutely none to do with a FoxPro dBase

[PHP] Writing to dbase (dbf) deletes index (cdx)

2009-03-25 Thread Rahul S. Johari
Ave, I noticed something peculiar and I can't find a solution for this. I'm wondering if anyone can help me out. I'm using the dbase functions to read & write from dbf (foxpro) tables. The DBF tables usually have an Index which is contained in filename.cdx. It appears that anytime I Write

Re: [PHP] Export/Write rows from DBF to CSV

2009-03-13 Thread Rahul S. Johari
On Mar 13, 2009, at 11:44 AM, Shawn McKenzie wrote: Rahul S. Johari wrote: On Mar 13, 2009, at 10:01 AM, Bastien Koert wrote: On Fri, Mar 13, 2009 at 9:56 AM, Rahul S. Johari < sleepwal...@rahulsjohari.com> wrote: Ave, I'm trying to retrieve data from a DBF database and wr

Re: [PHP] Export/Write rows from DBF to CSV

2009-03-13 Thread Rahul S. Johari
On Mar 13, 2009, at 10:01 AM, Bastien Koert wrote: On Fri, Mar 13, 2009 at 9:56 AM, Rahul S. Johari < sleepwal...@rahulsjohari.com> wrote: Ave, I'm trying to retrieve data from a DBF database and write it to a CSV file in a comma delimited format. I'm able to get the d

  1   2   3   4   5   6   7   8   9   10   >