RE: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread Edward Kay
Maybe it's because you're testing two different variables, $file and $menu_filename? Edward > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 05 January 2007 11:02 > To: php-general@lists.php.net > Subject: [PHP] is_writable() not working on PHP 5.1.6 > > >

RE: [PHP] Some advice / points / help

2007-01-05 Thread Edward Kay
> > http//steven.macintyre.name/arb/showlineups.jpg > > that URL make my browser end up here: > > http://www.w3.org/Protocols/ > > is .name even a top level domain? did that happen whilst I was sleeping? Looks like something is wrong with your DNS Jochem :) I can see the image fine. .name h

RE: [PHP] Some advice / points / help

2007-01-05 Thread Edward Kay
> > > http//steven.macintyre.name/arb/showlineups.jpg > > > > that URL make my browser end up here: > > > > http://www.w3.org/Protocols/ > > > > is .name even a top level domain? did that happen whilst I was sleeping? > > Looks like something is wrong with your DNS Jochem :) I can see the image

RE: [PHP] computing 60/10 - how to?

2007-01-08 Thread Edward Kay
You could use exec() but that's not good practice due to the security implications. I'd extract the two numbers using explode() on the / and then just use the division operator. Edward > -Original Message- > From: Merlin [mailto:[EMAIL PROTECTED] > Sent: 08 January 2007 10:22 > To: php-g

RE: [PHP] Problems with mysql_connect()

2007-01-10 Thread Edward Kay
You're missing a closing parenthesis at the end of: while ($row = mysql_fetch_row($result) This should be while ($row = mysql_fetch_row($result)) > -Original Message- > From: Delta Storm [mailto:[EMAIL PROTECTED] > Sent: 10 January 2007 10:45 > To: php-general@lists.php.net > Subject: [

RE: [PHP] web analytics

2007-01-11 Thread Edward Kay
Have a look at Google Analytics. Edward > -Original Message- > From: Kencana [mailto:[EMAIL PROTECTED] > Sent: 11 January 2007 09:50 > To: php-general@lists.php.net > Subject: [PHP] web analytics > > > > Hi all, > > I am planning to do web analytics of user access while they are > ac

RE: [PHP] RE: web analytics

2007-01-11 Thread Edward Kay
It depends what you mean by web performance. Do you mean your visitors or your web server? Google analytics (like all hosted analytics services) works by inserting some code that gets the visitor's browser to connect to their servers. These requests therefore has no impact on your web server. If

RE: [PHP] Re: PHP IMAP with Attachments!?

2007-01-24 Thread Edward Kay
> >Hello, > > > >on 10/31/2006 01:36 PM Andy said the following: > > > > > >>I need a class that reads emails from a server and reads the > >> > >> > >attachments from the mail. > > > > > >>The mailservers is an IMAP for mail reading. > >> > >>The attachment types can be: images/pdf/text documents.

Re: [PHP] Can a class instance a property of another class

2007-01-27 Thread Edward Kay
Hey - -- - Here I am again. Anybody still working on a Friday? I would like to have a class instance be the property of another class, like can be done in other languages. For example: I would like to have a "Connections" class which contains all of the database connection logic and query

RE: [PHP] time

2007-01-30 Thread Edward Kay
> [snip] > > I am writing a program for managing leads and contacts. I would like to > add > the ability to see what TIME it is where the contact is not there server > time. > > [/snip] > I have implemented this feature in our home-grown CRM system. I used the list of timezones on Wikipedia as a

RE: [PHP] Opera advice needed!

2007-02-07 Thread Edward Kay
It appears to be working fine for me using Opera 8 and 9.10 on WinXP. Have you fixed it? If not, check your preferences in Opera. You may have JS disabled for non-local sites or similar. Edward > -Original Message- > From: William Stokes [mailto:[EMAIL PROTECTED] > Sent: 07 February 2007

RE: [PHP] WinSCP and PHP

2007-02-08 Thread Edward Kay
What about the secure shell2 functions?: http://uk.php.net/manual/en/ref.ssh2.php I haven't used them myself but these two functions sound like the could be useful: ssh2_scp_recv — Request a file via SCP ssh2_scp_send — Send a file via SCP Edward > -Original Message- > From: George Pitc

RE: [PHP] Sorting a multidimensional array

2007-02-08 Thread Edward Kay
How about this: http://uk.php.net/manual/en/function.array-multisort.php#53779 Edward > -Original Message- > From: Dave Goodchild [mailto:[EMAIL PROTECTED] > Sent: 08 February 2007 14:30 > To: Roman Neuhauser > Cc: php-general@lists.php.net > Subject: Re: [PHP] Sorting a multidimensional

RE: [PHP] OT - Regular Expression

2007-02-09 Thread Edward Kay
> [snip] > > Why not use two checks? One that checks for 4 digits, the other checks > for existence of 8 anywhere in the string? > > Cheers, > Rob. > [/snip] > > Of course that is a possibility. But I wonder if there is a way to do it > with ONE expression. So there are no AND operator in Regular E

RE: [PHP] OT - Regular Expression

2007-02-09 Thread Edward Kay
> > As Rob suggested, why not just use two checks? e.g. > > > > if ( (strlen($input) == 4) && (strpos($input, '8') !== FALSE ) ) { > > // OK > > } else { > > // Not OK > > } > > > > Not only is this logic much easier to understand than a regexp > - important > > when someone else has to ma

RE: [PHP] insert html into php variable

2007-02-12 Thread Edward Kay
> I am using phpmailer for a rich html mailer and I have been using > lines like > this to build up the mailbody > > $mail_body .= " src=\"http://www.myurl.org/mylogo.gif\";; > > Is there a build in function to assign html code to a php > variable and then > output them? Or can I read an external

RE: [PHP] insert html into php variable

2007-02-12 Thread Edward Kay
> > > I am using phpmailer for a rich html mailer and I have been using > > > lines like > > > this to build up the mailbody > > > > > > $mail_body .= " > > src=\"http://www.myurl.org/mylogo.gif\";; > > > > > > Is there a build in function to assign html code to a php > > > variable and then > > >

RE: [PHP] Beginner Questions regarding Mail and Forms

2007-02-12 Thread Edward Kay
> Age Alter: > > There's your problem: name="txtAge". For your PHP script to work you need name="_txtAge". PS: You should also have quotes around the 50 in the maxlength attribute. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Beginner Questions regarding Mail and Forms

2007-02-12 Thread Edward Kay
> > Age Alter: > > > > Sorry - I was a bit too hasty with the send button. I've just seen that you've also changed the name in the script too. I also see that you have a semi-colon outside the style attribute. I don't think this will help matters. Get your HTML to validate and that will probably

RE: [PHP] Storing compiled code on the server

2007-02-21 Thread Edward Kay
> I have a few scripts that I want to protect from the prying eyes of > even people with root access to my server. The best suggestion I've > heard is to store only the compiled version on the server itself. I > have no idea how to do this or how those scripts would be called. Can > anyone point me

RE: [PHP] Safari 2.0.4 / PHP 4.3.7 / Apache 2.0.44 Isuue with HTTP Headers

2007-02-22 Thread Edward Kay
> got a really strange thing going on on a client website, the > website outputs the whole > http headers after every 2nd reload in safari, also in FF on > Windows, but only after much > much more relaods...here is a scrrenshot: > > http://www.waldhaeusl.com/downloads/bug/http_header.png > > any i

RE: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Edward Kay
> which is the best framework ? For what? Your choice of any framework/language will be governed by the problem you are trying to solve. > pear or zend framework? PEAR isn't a framework, it's a repository of PHP extensions and applications, hence the acronym. If you're looking into PHP web appli

RE: [PHP] rich html emailer

2007-03-02 Thread Edward Kay
> Hi, > > I have created a basic HTML emailer with PHP where the body is > created and > text is inserted via a text area. > > Now I would like to expand this so the client can put in live URL > and mailto > links. I can use htmlentities() to do this but I would also like a button > that allow th

RE: [PHP] how to access private property?

2007-03-06 Thread Edward Kay
> > Hello Everyone, > > [code] > class MyClass { > private $prop; > } > $obj=new MyClass; > [/code] > > is there anyway to read and write MyClass->prop, except serialize > Not directly, that's the whole point of declaring something private. You could use __set and __

RE: [PHP] php and javascript error

2007-03-07 Thread Edward Kay
> I've just run into this problem this morning > > > > This produces an "Error on Page" in IE 7, but works perfectly in Firefox > and Netscape. > > I have several other javascript calls on the page where this call > resides and all of them work perfectly except for this one. Does this > error

RE: [PHP] php and javascript error

2007-03-07 Thread Edward Kay
> >>> > >>> > >> > >>This is a JavaScript issue, but may have something to do with > the data you > >>are echoing out in PHP. Look at the source in the browser. My guess it > >>that > > >>you've got a stay quote mark in one of your PHP vars. > > Not it, I looked and there's nothing there. I'm sur

RE: [PHP] Re: What sripts,helpers to use for AJAX

2007-03-08 Thread Edward Kay
> Otto Wyss wrote: > > I want to add some AJAX communication to my pages and would like to > > know, what scripts, helpers you would recommend. I don't want to use a > > full featured framework, just something to do the AJAX work. So > far I've > > come across the following solutions > > > >

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Edward Kay
> I would like to write a filter that takes the text "smith" or > "SMith" and returns "Smith"; same for "ralph smith". Is the a > good source on using filters this way? > $bar = ucwords(strtolower($bar)); This is an example on the manual page for ucwords. How hard did you look? Edward --

RE: [PHP] wxWidget/.NET like framework for PHP ?

2007-03-15 Thread Edward Kay
> Hello, > > I am currently thinking about a php framework dedicated to web > applications > with rich client interfaces using AJAX. > The goal of this framework is to provide the possibility to write > rich web > applications using a syntax similar to wxWidgets or .NET. > > An example is better t

RE: [PHP] Environment variables...

2007-03-15 Thread Edward Kay
> Yes, great... Now, I have another problem ;-) > In Debian, everything is ok. I put my variable > in /etc/apache2/httpd.conf. > > But on RedHat, I don't know which file is concerned... > It's /etc/httpd/conf/httpd.conf on Fedora so I'd expect Red Hat to be the same. You'd probably be best putt

RE: [PHP] Running PHP on a windows server-your views

2007-03-19 Thread Edward Kay
> On 3/19/07, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > > HI all. > > > > I would like some honest answers and if you have any experience with > > problems or no problems running PHP on a windows server. > > > > Basically we are interested to know if there are any problems/security > > issues/sta

RE: [PHP] Running PHP on a windows server-your views

2007-03-19 Thread Edward Kay
> On 3/19/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > On 3/19/07, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > > > > HI all. > > > > > > > > I would like some honest answers and if you have any experience with >

RE: [PHP] read only texbox to html with php

2007-03-21 Thread Edward Kay
2007. 03. 21, szerda keltezéssel 11.51-kor Ross ezt írta: > I have a readonly textbox that gets mailed as a newsletter. The text is a > standard covering letter. The problem is when I try and convert it to html > it doesn't work It is inserted into a variable via a form textarea > $mail_text.

RE: [PHP] POST a variable

2007-03-23 Thread Edward Kay
> -Original Message- > From: Németh Zoltán [mailto:[EMAIL PROTECTED] > 2007. 03. 23, péntek keltezéssel 10.45-kor Dan Shirah ezt írta: > > Okay, I feel like the correct answer to this is about 2mm back > in my grey > > matter. > > > > 1. I have a query that pulls the last row number when

RE: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Edward Kay
> -Original Message- > From: Dwayne Heronimo [mailto:[EMAIL PROTECTED] > Dear All, > > I am very new to programming. I want to make a preview text that would > display only a part of the text that is a text field in a database. > > //Begin Make preview string > > $minitxt = $row_show_cat

RE: [PHP] tabbed navegation PHP

2007-03-30 Thread Edward Kay
> -Original Message- > From: Dwayne Heronimo [mailto:[EMAIL PROTECTED] > Sent: 30 March 2007 14:06 > To: php-general@lists.php.net > Subject: [PHP] tabbed navegation PHP > > > Dear All, > > I have made a tabbed navegation with CSS. And if you set > class="active" to > one of the tabs, it

[PHP] Decoding from unknown charsets (inc. ks_c_5601-1987)

2007-04-10 Thread Edward Kay
I have an app that stores email messages in a database. The app and DB are UTF-8 but obviously the emails can be in a variety of character sets. Most can be converted easily using mb_convert_encoding or iconv but I have some emails encoded as ks_c_5601-1987, which neither of these two functions han

RE: [PHP] a little math

2007-04-20 Thread Edward Kay
> > maybe someone can figure why sometimes i get negative values for seconds.. > > $job['finished'] and $job['finished'] are both unix timestamp. > i subtract both to get how many seconds some thing took.. well you > should be able to read the rest. sometimes it works fine but other times > i get n

RE: [PHP] pecl in php5?

2007-08-16 Thread Edward Kay
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: 16 August 2007 10:25 > To: php-general@lists.php.net > Subject: [PHP] pecl in php5? > > > I'm trying to install the pecl mailparse extension, but I'm not getting > very far: > > pecl install mailparse > pecl/mailp

RE: [PHP] a DOM object in $_SESSION ?

2007-08-17 Thread Edward Kay
> Does anyone know if this works? I've been trying out a few things, and > it doesn't seem to work. I.e. the object is there, but the contents > aren't. I don't think it is possible due to the way PHP handles the XML data [1]. This is from 2002 / PHP 4.3 but a comment [2] in the PHP manual for

RE: [PHP] mail() issue

2007-08-22 Thread Edward Kay
> -Original Message- > From: Dan Shirah [mailto:[EMAIL PROTECTED] > Sent: 22 August 2007 13:28 > To: Jay Blanchard > Cc: php-general > Subject: Re: [PHP] mail() issue > > > The "." (period) is simply the end of my sentance in the email. > > The "From" address is specified in the php.ini an

RE: [PHP] Good php-news newsletter?

2007-08-24 Thread Edward Kay
>I was wandering if anyone knows a good php newsletter, one where you > would get a digest of interesting news & libraries etc in your mailbox. > You know, to keep you up-to-date and spark a few ideas without actively > searching the net for it. This list is the best resource I've found for th

RE: [PHP] Good php-news newsletter?

2007-08-24 Thread Edward Kay
> Well, I'm already subscribed to this one :) > > Too much noise, newbie questions and stuff that I already know about. > There's lots of valuable info but it needs to be plowed through. Also > too many individual emails, I was looking for a daily / weekly digest. > > But thanx for the answer anyw

RE: [PHP] Heredocs

2007-08-29 Thread Edward Kay
> Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ? > I prrint via heredocs and its not working. Print with single quotes and > double quotes work. > > > string init method 3: heredocs > print <<< END >

RE: [PHP] Generating foldout menus in php

2007-09-06 Thread Edward Kay
> -Original Message- > From: Ken Kixmoeller -- reply to [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: 06 September 2007 16:48 > To: tedd; php-general@lists.php.net > Subject: Re: [PHP] Generating foldout menus in php > > > > On Sep 3, 2007, at 12:42 PM, tedd wrote: > > > > th

Re: [PHP] IE Not Following Header("Location: /path/to/file.php");

2007-09-06 Thread Edward Kay
Scott Wilcox wrote: hey folks. I have a strange problem with IE sometimes. It doesn't seem to accept and follow a header sent to the browser. The action occurs when a user logs in, then is sent this header. Any hints/ideas appreciated. Scott. Get Microsoft's (free) Fiddler Tool and look at

Re: [PHP] Loosing session data between requests

2007-09-06 Thread Edward Kay
robert mena wrote: I've checked both /tmp and the session file sess_x in one server is empty and in another has the data. Both $_SESSION are ok (I've checked with a var_dump). Check the permissions on /var/lib/php/session Edward -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] html to xml?

2007-09-12 Thread Edward Kay
> Slith wrote: > > > i need to parse an html page for tabular data which i can then import > > into mysql so i thought converting the html to xml might be a feasible > > thing to do, however, other than using tidy from the command line i > > can't find a way to do this from php. > > > > does any

RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Edward Kay
> Dear all, > > I hope you can help me. I am running FreeBSD 6.2 and I decided to > upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4 > and installing php5 and php5-extensions I am unable to start apache. What do the Apache error logs say? Edward -- PHP General Mailing Li

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Edward Kay
> I'm facing a serious problem with my application. I have a script write > in PHP that starts in Internet Explorer, this script keep on running > until a varible value change on my MySQL database. > The problem is that when i restart Apache, the process child initalized > isn't kill... then the ap

RE: [PHP] dynamic

2007-09-18 Thread Edward Kay
> >> thumb.php > >> >> header("Content-type: image/jpg"); > >> $file = "data/original/filename.jpg"; > >> readfile($file); > >> ?> Change header("Content-type: image/jpg"); to header("Content-type: image/jpeg"); Apparently IE doesn't like image/jpg [1]. [1] http://pear.php.net/bugs/bug.ph

RE: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Edward Kay
> > Hi everyone, > > > > I want to highlight (bold) searchterms in text. > > For example, for all words starting with "ethyl": > > a) replace "ethyl" by "ethyl" > > b) replace "Ethyl" by "Ethyl" > > c) replace "ethylene" by "ethylene" > > d) but not "methyl" by "methyl" > > > > Now I use: > > $pat

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Edward Kay
> Paul Scott wrote: > > I have a very large text file that gets dumped into a directoory every > > now and then. It is typically around 750MB long, at least, and my > > question is: > > > > What is the best method to parse this thing and insert the data into a > > postgres db? > > > > I have tried

RE: [PHP] Merging PDF Documents

2007-09-24 Thread Edward Kay
> > Please can someone tell me if this is easy to do or whether I should > use a package already available... > > I want to upload a pdf file to a folder then for each subsequent > upload, I want it to be appended to the original file. Each pdf is a > timesheet, so I want to end up with one file fo

RE: [PHP] Newbie: special characters in regex?

2007-09-25 Thread Edward Kay
> > I'm trying to modify a string so that it can be used as a Distinguished > Name in an LDAP operation. Distinguished Names must have special > characters, such as (, ), / and \ escaped with a backslash. For > instance, 'Kevin (Kev) Zembower, III" becomes 'Kevin \(Kev\) Zembower\, > III'. > > I

RE: [PHP] window.open() and search engines

2007-10-23 Thread Edward Kay
> > Can anyone say for sure whether window.open() links get spidered by > search engines? > >From my experience they don't, but I use a custom Javascript function to open pop-ups. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> Here's the list : > > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > echo convert_po

RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > salestax(15.00,.075); > echo "" . co

RE: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Edward Kay
> > I'd be interested in reading this thread. OK with me to keep it > on the list. > Ditto. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] recommendation for a article manager

2007-11-15 Thread Edward Kay
> > Hi, > I'm looking for a recommendation for a small easy to use "free" article > manager.It must be able to fit in with existing site and be able > to include > a picture.It does not need an all singing editor a simple form > system will > do I can control the look by css. > I'm currently doing

RE: [PHP] Convertig xml into array

2007-11-27 Thread Edward Kay
> -Original Message- > From: Dave Goodchild [mailto:[EMAIL PROTECTED] > Sent: 27 November 2007 08:36 > To: PHP General list > Subject: [PHP] Convertig xml into array > > > Hi guys. I have the following XML file which I want to convert into a > multidimensional array. I am using PHP5 so don

RE: [PHP] export data to a ms excel file using php

2007-12-18 Thread Edward Kay
> can you help me to export data to a ms excel file using php. i tried to > export them to an html format and change the extension to .xls that's work > but i have lost the formatting Save the data from PHP in comma separated value (CSV) format. Edward -- PHP General Mailing List (http://www.p

RE: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Edward Kay
> Per Jessen wrote: > > Colin Guthrie wrote: > > > >> Per Jessen wrote: > >>> I know how to do multiple queries - the key issue in my question was > >>> how to do them concurrently (i.e. in parallel). > >> So you want to make PHP multithreaded??? > > > > No, just the mysql queries. > If you'r

RE: [PHP] Recommended ORM for PHP

2008-02-06 Thread Edward Kay
> When creating a LAMP app, I always start by writing ORM myself. > It's fun but it usually takes a long time. > Besides, that always results in a toy-system, > I mean, that has not so many features, not so efficient non-bug-free. > > I started to think that now is the time to throw away my rubb

RE: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Edward Kay
> Now, I can replace the tabs with commas and opening the resulting > files in a basic text editor all looks fine. When you do this, ensure you escape any commas that may exist in the data. IIRC, Excel handles this be enclosing the whole field in "double quotes". Can remember how it handles esca

RE: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Edward Kay
> On Mon, February 18, 2008 10:36 am, Jay Blanchard wrote: > > [snip] > > That's funny... MS defaults to tabs for a file whose extension is .csv > > which is an acronym for (C)omma (S)eparated (V)alues. > > [/snip] > > > > Welcome to Microsoftwhere do we want you to go today? > > I think it de

RE: [PHP] How do you send stylized email?

2008-02-26 Thread Edward Kay
> > Ex's are the experience you need to get it to work. > > > > I've always said that everyone should go through at least one divorce > > before getting married. > > Marriage?? That's for backwards people stuck in ancient pointless > traditions >:) And moreso in today's culture... it's just a comme

RE: [PHP] Anyone jump from Studio 5.5.x -> Zend Eclipse?

2008-03-03 Thread Edward Kay
>... for me one of the most useful > thing in Zend is (CTRL+D X,C or Apple+D , X, C) which > duplicates copies and paste lines in Studio , switching to > Eclipse I just miss those shortcuts so I am always finding > myself going back to Z. Studio To duplicate the current line in Eclipse, just u

RE: [PHP] Comparing files

2008-03-12 Thread Edward Kay
> -Original Message- > From: mathieu leddet [mailto:[EMAIL PROTECTED] > Sent: 12 March 2008 11:04 > To: php-general@lists.php.net > Subject: [PHP] Comparing files > > > Hi all, > > I have a simple question : how can I ensure that 2 files are identical ? > > How about this ? > > 8<

RE: [PHP] Comparing files

2008-03-12 Thread Edward Kay
> -Original Message- > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > Sent: 12 March 2008 12:33 > To: 'Edward Kay'; 'mathieu leddet'; php-general@lists.php.net > Subject: RE: [PHP] Comparing files > > > > -Original Message

RE: [PHP] Fastest way to get table records' number

2008-03-19 Thread Edward Kay
> > > At 10:35 AM -0400 3/19/08, Nathan Nobbe wrote: > > > >On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard <[EMAIL PROTECTED]> > > wrote: > > > > > > > >> That works; I'm just wondering why you went with a count > on an 'ID' > > column > > > >> rather than COUNT(*). > > > > > > > > > > > >ouch,

RE: [PHP] Double click problem

2008-03-19 Thread Edward Kay
> Hi gang: > > I have a situation where users can purchase stuff online. > > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded the product. Everything works, but it takes a little time to > check the

RE: [PHP] Double click problem

2008-03-19 Thread Edward Kay
> Hi gang: > > I have a situation where users can purchase stuff online. > > In the last step in the process, the user clicks a "confirm purchase" > button and their credit card is checked and if it's valid, they are > awarded the product. Everything works, but it takes a little time to > check the

RE: [PHP] algorithm of pages beaking

2008-03-19 Thread Edward Kay
> Hi, > > I am working in page breaking (dividing the result of > a select query in multiple pages). > > Now my problem is not with the php code, but with the > algorithm that organize the links to the pages. I want > to do something like google, the pages numbers at the > bottom of the page mus

RE: [PHP] Checking how many letters are in a string.

2008-03-20 Thread Edward Kay
> -Original Message- > From: tedd > Chapter 4 is all about l16n, L10n, and Unicode. Makes a good read. What's l16n? Did you mean i18n (internationasation)? (I'm not being a pedant; just wondered if I was missing something) :) Edward -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] PHP debugger

2008-04-29 Thread Edward Kay
> -Original Message- > From: Jason Pruim [mailto:[EMAIL PROTECTED] > Morning, > > So looking at those scripts I realized that perl is nothing like php ;) > > Is there other info that the different places need? or is it just a > different URL? > > I'm wondering why you could do something li

[PHP] Escaping JavaScript strings

2008-05-29 Thread Edward Kay
Hello, I'm adding functionality to allow a user to copy data on a page to the clipboard using JS. This can be done simply with: window.clipboardData.setData('Text','String to copy to clipboard'); The string from PHP needs to contain line breaks when copied into the clipboard. This works when I

RE: [PHP] Escaping JavaScript strings

2008-05-29 Thread Edward Kay
> > This is a PHP function that escapes strings so you can output them as a > JS string. IIRC it assumes you're using single quotes to enclose your > strings. > > /** > * Function to appropriately escape a string so it can be output > * into javascript code. > * > * @p

RE: [PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Edward Kay
> -Original Message- > From: Thijs Lensselink [mailto:[EMAIL PROTECTED] > Sent: 09 June 2008 13:43 > To: php-general@lists.php.net > Subject: Re: [PHP] imap_open() error. (Can't open mailbox) > > > Quoting Mathijs van Veluw <[EMAIL PROTECTED]>: > > > Thijs Lensselink wrote: > >> Quoting M

Re: [PHP] Parsing CSV files

2007-04-26 Thread Edward Kay
Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? Todd fgetcsv - http://uk.php.net/fgetcsv Did you even try looking in the manual? Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Find a what class a variable is

2007-04-27 Thread Edward Kay
> -Original Message- > From: John Comerford [mailto:[EMAIL PROTECTED] > Sent: 27 April 2007 08:41 > To: php-general@lists.php.net > Subject: [PHP] Find a what class a variable is > > > Hi Folks, > > Is is possible to detect what class a variable is eg. > > $JC1 = new Button(); > $JC2 = new

RE: [PHP] Recursive function for array task?

2007-04-27 Thread Edward Kay
> -Original Message- > From: Stewart Macdonald [mailto:[EMAIL PROTECTED] > Sent: 27 April 2007 10:13 > To: php-general@lists.php.net > Subject: [PHP] Recursive function for array task? > > > Hi all, > > I've got a bit of a logic problem that I can't figure out. > > I've got an array: > >

RE: [PHP] Parsing CSV files

2007-04-27 Thread Edward Kay
> When I searched for "csv" against on php.net I got redirected to > http://us2.php.net/manual/en/function.gzeof.php. That isn't exactly > obvious is it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > OK, sorry for being critica

RE: [PHP] Re: What does "<<<" mean?

2007-05-01 Thread Edward Kay
<<< END some code END >> Bash redirection... :) > Syntax error ;) Key stuck on keyboardd :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] passing GET via include

2007-05-04 Thread Edward Kay
> -Original Message- > From: Mark Smith [mailto:[EMAIL PROTECTED] > Sent: 04 May 2007 08:23 > Hello all, > Is there a way to allow the passing of variables to included scripts > using the GET method, for example include"file.php?name=person"; or is > there another method of including files

RE: [PHP] Selecting a special row from the database

2007-05-04 Thread Edward Kay
> -Original Message- > From: Marcelo Wolfgang [mailto:[EMAIL PROTECTED] > Sent: 04 May 2007 14:37 > To: php-general@lists.php.net > Subject: [PHP] Selecting a special row from the database > > > Hi all, > > I'm building a news display page for a website, and since the user has 2 > ways to

RE: [PHP] Selecting a special row from the database

2007-05-04 Thread Edward Kay
> -Original Message- > From: Alister Bulman [mailto:[EMAIL PROTECTED] > Sent: 04 May 2007 15:07 > To: php-general@lists.php.net > Subject: Re: [PHP] Selecting a special row from the database > > > On 04/05/07, Marcelo Wolfgang <[EMAIL PROTECTED]> wrote: > > > I'm building a news display pag

RE: [PHP] Selecting a special row from the database

2007-05-04 Thread Edward Kay
> -Original Message- > From: Fredrik Thunberg [mailto:[EMAIL PROTECTED] > Sent: 04 May 2007 15:31 > To: Edward Kay > Cc: php-general@lists.php.net > Subject: Re: [PHP] Selecting a special row from the database > > Edward Kay skrev: > > > >> -O

RE: [PHP] Isset Errors

2007-05-09 Thread Edward Kay
> -Original Message- > From: Davide Bernard [mailto:[EMAIL PROTECTED] > Sent: 09 May 2007 15:18 > To: php-general@lists.php.net > Subject: [PHP] Isset Errors > > > Anyone got any suggestions on getting rid of these errors below? > > > [Wed May 09 08:59:05 2007] [error] [client 192.168

RE: [PHP] Ajax?

2007-05-09 Thread Edward Kay
> -Original Message- > From: Emil Edeholt [mailto:[EMAIL PROTECTED] > Sent: 09 May 2007 16:05 > To: php-general@lists.php.net > Subject: [PHP] Ajax? > > > Hi! > > What do you guys use to develop ajax applications and do you have any > good articles on the subject? > > I've just about fini

RE: [PHP] Ajax Developer

2007-05-09 Thread Edward Kay
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > On Wed, 2007-05-09 at 10:23 -0500, Edward Vermillion wrote: > > On May 9, 2007, at 10:12 AM, Stut wrote: > > > > > Efrain Sarmiento wrote: > > >> AJAX Developer (Web Designer / Developer). MUST HAVE: 1 year AJAX >

Re: [PHP] Need a new shared host with php

2007-05-10 Thread Edward Kay
Al wrote: I'm looking for a shared host with an up-to-date php5, and one who at least tries to keep it relatively current. Needs are modest. Just need good ftp access, cgi-bin, shell, etc. Any suggestions. I'm looking at Host Monster, anyone have experience with them? Thanks... Check out

RE: [PHP] PHP 5.2 array() == null

2007-05-15 Thread Edward Kay
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 15 May 2007 16:48 > To: php-general@lists.php.net > Subject: [PHP] PHP 5.2 array() == null > > > Hi people > > i was just curios to ask whether > > array() == null should always return true. and then why > > i

RE: [PHP] IE7 => end tag?

2007-05-18 Thread Edward Kay
> -Original Message- > From: Jim Moseby [mailto:[EMAIL PROTECTED] > Sent: 17 May 2007 21:29 > To: 'rauhspund'; php-general@lists.php.net > Subject: RE: [PHP] IE7 => end tag? > > > > > > #-- .meta info > > include("../plugins/lib/pluginmetadata.php"); > > $_cached = !empty($_POST); > > ewi

RE: [PHP] Tipos about which CMS use

2007-05-18 Thread Edward Kay
> Hi there, > > I'd like to replace my 'intranet' site with a CMS system to speed up > the edit process. Some of my requirements are : > > - written in PHP :) > - mysql based > - documented/'well structured' - to allow development of customizations > - ability to define which pages or sections

RE: [PHP] Setting Up A Simple Shopping Cart

2007-05-18 Thread Edward Kay
> -Original Message- > From: revDAVE [mailto:[EMAIL PROTECTED] > Sent: 18 May 2007 01:33 > To: php php > Subject: Re: [PHP] Setting Up A Simple Shopping Cart > > > On 5/17/2007 7:05 AM, "revDAVE" <[EMAIL PROTECTED]> wrote: > > > Hello folks, > > > > I am a PHP NEWBIE. > > > > - I have the

RE: [PHP] stay logged in for session

2007-05-18 Thread Edward Kay
> -Original Message- > From: Joshua [mailto:[EMAIL PROTECTED] > Sent: 18 May 2007 11:43 > To: PHP.net > Subject: [PHP] stay logged in for session > > > hey guys, i am trying to set up a session so that when a user logs in, > they will stay logged in until they close their browser. i have

RE: [PHP] stay logged in for session

2007-05-18 Thread Edward Kay
> -Original Message- > From: Joshua [mailto:[EMAIL PROTECTED] > Sent: 18 May 2007 12:09 > To: Edward Kay > Subject: RE: [PHP] stay logged in for session > > > On Fri, 2007-05-18 at 11:53 +0100, Edward Kay wrote: > > > > > -Original Message

RE: [PHP] stay logged in for session

2007-05-18 Thread Edward Kay
> > HTTP Location headers require the full hostname, i.e. > > > > header("Location: http://www.example.com/page_to/redirect/to.php";); > > that is true, but usually it works with relative url-s also > > greets > Zoltán Németh > Just because some user agents handle non-standard data doesn't ma

RE: [PHP] IE7 => end tag?

2007-05-18 Thread Edward Kay
> > The extra comma at the end of the array definition is still > > valid syntax in > > PHP. Try for yourself: > > > > php -r '$a = array("a" => "foo", "b" => "bar",); print_r($a);' > > Interesting. Do you mean 'Valid Syntax' in that it 'works without error', > or 'Valid Syntax' in that 'it was

  1   2   >