Re: [PHP] Alphabetical pagination

2009-07-15 Thread Andrew Ballard
book) with each page containing all entries that begin with the selected letter. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alphabetical pagination

2009-07-14 Thread Andrew Ballard
index on that column). Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Establishing PHP Session From a Different Host

2009-07-13 Thread Andrew Ballard
value) before posting the credentials. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySql Injection advice

2009-07-13 Thread Andrew Ballard
that to international phone numbers, and the zeros become even more significant since you can't easily make assumptions about the length of various segments in a phone number. Sorry, but I just don't see any advantage to storing them as integers. Andrew -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP script for detecting pattern sequences?

2009-07-10 Thread Andrew Ballard
knowing the sequence in advance. How do they not satisfy the OP? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Andrew Ballard
that is called frequently by several concurrent users. Personally, I'd look into ways to improve the execution of the query itself in MySQL (making sure the query is sargable and improving indexes, etc.) until I thought I had exhausted everything there. Just my 2 cents. Andrew -- PHP General

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
at the same time. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
an md5 hash on a text string of 38 characters (much longer than most passwords) over 1 iterations is around 0.00085 seconds. I can live with that. :-) I still like handling the encryption in PHP and then passing the encrypted value to the database for storage/comparison. Andrew -- PHP General

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
to use @ with trim(), but that shouldn't matter. Otherwise, nothing in there should mangle the input. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
On Wed, Jul 8, 2009 at 3:06 PM, Tony Marstont...@marston-home.demon.co.uk wrote: [snip] I don't like this rule, so I choose to disobey it. Now that's some scary ideology. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
On Wed, Jul 8, 2009 at 4:45 PM, PJaf.gour...@videotron.ca wrote: Andrew Ballard wrote: On Wed, Jul 8, 2009 at 11:53 AM, PJaf.gour...@videotron.ca wrote: I have a couple of questions/comments re all this: [snip] 2. Cleaning is another bloody headache, for me anyway. I have found that almost

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Andrew Ballard
Try again, and include the actual link this time, dummy. :-) On Wed, Jul 8, 2009 at 5:30 PM, Andrew Ballardaball...@gmail.com wrote: On Wed, Jul 8, 2009 at 4:45 PM, PJaf.gour...@videotron.ca wrote: Andrew Ballard wrote: On Wed, Jul 8, 2009 at 11:53 AM, PJaf.gour...@videotron.ca wrote: I have

Re: [PHP] Re: check a variable after EACH function

2009-07-01 Thread Andrew Ballard
(); if ($abort_now == 1) break; } ? The catch is that in this case all the functions would have to accept the same parameters. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Andrew Ballard
On Wed, Jul 1, 2009 at 10:56 AM, Miller, Teriontmil...@springfi.gannett.com wrote: Why doesn't this work?    $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress'   ; $result = mysql_query($query) or die(mysql_error());  echo $result;     $row =

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Andrew Ballard
On Wed, Jul 1, 2009 at 11:23 AM, Andrew Ballardaball...@gmail.com wrote: On Wed, Jul 1, 2009 at 10:56 AM, Miller, Teriontmil...@springfi.gannett.com wrote: Why doesn't this work?    $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress'   ; $result

Re: [PHP] Compare and inserting with php

2009-06-30 Thread Andrew Ballard
, you'll be vulnerable to SQL injection. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exasperated again

2009-06-30 Thread Andrew Ballard
/andypantry.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I see a typo in the last block where you call $result = msql_query(...) instead of $result = mysql_query(...). Is that in your actual code? Andrew -- PHP General Mailing

Re: [PHP] Re: Progressbar

2009-06-25 Thread Andrew Ballard
that wonderfully well, but as I said I've found it to be not worth the hassle. Perhaps, to be fair, I need to take some time to get familiar with the new paradigm, but that furthers my point: I want an editor that I can be productive with more or less out of the box. Andrew -- PHP General Mailing

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Andrew Ballard
) AND SUBSTRING(user.table.groups,N,1) = ',' Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Andrew Ballard
On Thu, Jun 25, 2009 at 4:21 PM, Andrew Ballardaball...@gmail.com wrote: On Thu, Jun 25, 2009 at 3:20 PM, Matt Giddingsmcgid...@svsu.edu wrote: I know this is the off topic (sorry), but it is a php project that I'm working on!  I need some pointers on how to pivot a mysql column (containing

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Andrew Ballard
than html (either now or in the future) you'd have to remove the entities every time you read the database. So now you have a stupid wast of performance again AND you're still storing the extra bytes in the database. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] resubmit form after validation error

2009-06-23 Thread Andrew Ballard
when PHP parses my code, it can't just tell what I meant and do it? I mean, web browsers aren't that picky. Geesh! :-P Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Explode-update-implode not working

2009-06-23 Thread Andrew Ballard
) { $line = explode (|, $kvpair); if ($line[0] == key1) { $line[1] = value3; $lines[$key] = implode (|, $line); break; } } $newbuff = implode (~, $lines); ? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen() on a network share?

2009-06-15 Thread Andrew Ballard
the string. The only slashes that would need escaped are the first two since the first slash in '\\' escapes the second. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: preg_replace problem

2009-06-14 Thread Andrew Ballard
htmlspecialchars() before it's getting into your regexp? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Field type for american money

2009-06-12 Thread Andrew Ballard
a price of 0.33 in a decimal(10, 2) field, multiplying that by 3 will result in 0.99, whereas three items priced at 0. will come to 0., which when formatted to two digits will round to 1.00. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] opendir() Question

2009-06-12 Thread Andrew Ballard
://...;); but it seems it doesn't work with FTP. Now, is there another thing I could use for the same effect? Thanks! -- --- Contact info: Skype: parham-d MSN: fire_lizard16 at hotmail dot com email: parham90 at GMail dot com RTM http://www.php.net/ftp Andrew -- PHP General Mailing List (http

Re: [PHP] order by what?

2009-06-11 Thread Andrew Ballard
recognized. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preventing XSS Attacks

2009-06-10 Thread Andrew Ballard
store them. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Preventing XSS Attacks

2009-06-10 Thread Andrew Ballard
On Wed, Jun 10, 2009 at 2:56 PM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Wed, 2009-06-10 at 14:40 -0400, Andrew Ballard wrote: On Wed, Jun 10, 2009 at 2:26 PM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Wed, 2009-06-10 at 14:14 -0400, Eddie Drapkin wrote: On Wed, Jun 10

Re: [PHP] Preventing XSS Attacks

2009-06-10 Thread Andrew Ballard
is inside a function whose sole purpose is to escape the value and then do something with the escaped value.) I just often skip the extra variable and use the function return value directly unless having the extra variable makes the code more readable -- as a matter of taste. :-) Andrew -- PHP General

Re: [PHP] smallA framework, over 140 characters for twitter ;)

2009-06-08 Thread Andrew Ballard
; ... ;-) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Show the entire browser request

2009-06-08 Thread Andrew Ballard
On Mon, Jun 8, 2009 at 2:40 PM, Dotan Cohendotanco...@gmail.com wrote:    Roger that.  Check out getallheaders() then:        http://php.net/getallheaders Well, that seems to be partway there, but it doesn't include the GET request. -- Dotan Cohen http://what-is-what.com

Re: [PHP] Show the entire browser request

2009-06-08 Thread Andrew Ballard
On Mon, Jun 8, 2009 at 4:40 PM, Dotan Cohendotanco...@gmail.com wrote: This should do it, I believe: ?php echo $_SERVER['REQUEST_METHOD'], ' ', $_SERVER['REQUEST_URI'], ' ', $_SERVER['SERVER_PROTOCOL']; ? Thanks, Andrew, I'm sure that works for correctly-formed requests. However, I am

Re: [PHP] key for in_array()

2009-06-08 Thread Andrew Ballard
://us3.php.net/manual/en/function.array-search.php Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html and password management

2009-06-04 Thread Andrew Ballard
control against the user's wishes (in this case by preventing the user from using the form manager or password manager to store the information). Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html and password management

2009-06-04 Thread Andrew Ballard
On Thu, Jun 4, 2009 at 12:33 PM, Michael A. Peters mpet...@mac.com wrote: Andrew Ballard wrote: I just thought I'd toss this out there. Do you know that there is an effort to remove browser support this attribute (or at least give the user a browser configuration option to ignore

Re: [PHP] formatting - design question

2009-06-04 Thread Andrew Ballard
! recommends putting them in as few pages as is practical so the browser has fewer resources to fetch and can make better use of caching. It won't affect the speed of your PHP pages, but it should speed up the overall download time of your pages from the end-user's perspective. Andrew -- PHP

Re: [PHP] Re: PHP Security

2009-06-03 Thread Andrew Ballard
cards and smash them to make sure malicious users cannot even connect to the machine, and fill any I/O ports with superglue to ensure that no one can plug any unauthorized devices. Oh, and be sure to remove the power supply to prevent local terminal access. ;-) Andrew -- PHP General Mailing List

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Andrew Ballard
On Wed, Jun 3, 2009 at 4:17 PM, Paul M Foster pa...@quillandmouse.com wrote: On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote: snip A single-phase Caesar cypher is by far the best. It worked for Julias Caesar, and damn it, it will work for us! ROT13 FTW! Paul -- Paul M.

Re: [PHP] forms problem

2009-06-03 Thread Andrew Ballard
de passe.) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Andrew Ballard
M. Foster Microsoft SQL Server. It's not as flexible as MySQL's LIMIT statement, though. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Andrew Ballard
Bastien posted.) SELECT * FROM table ORDER BY date_field DESC LIMIT 1 Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
. Even so, you know what they say about statistics Will ASP.NET replace PHP? Time will tell. (I doubt it.) At any rate, I'm not losing any sleep over it. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] templating engine options

2009-06-01 Thread Andrew Ballard
and can be extended. Something like this could probably be done in PHP, but it seems to me that it would itself become a framework, which you stated up front was not an option. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
the framework, and enter_your_language_here.NET the language? ASP.NET uses ASP to access the .NET framework. VB.NET uses VB to access the .NET framework. enter_your_language_here.NET uses enter_your_language_here to access the .NET framework. Not exactly. ASP isn't a language. Andrew -- PHP General

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
On Mon, Jun 1, 2009 at 3:18 PM, Lists li...@euca.us wrote: ASP (Classic) and ASP.NET = two different things. en.wikipedia.org/wiki/Active_Server_Pages Agreed. And neither one of them is a language. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Andrew Ballard
. I'm not sure about ASP.NET. (I saw it done once without a COM library, but it was neither pretty nor fast.) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql create table with date or timestamp

2009-05-28 Thread Andrew Ballard
On Thu, May 28, 2009 at 11:15 AM, Andrew Ballard aball...@gmail.com wrote: 2009/5/28 Grega Leskovsek mavri...@gmail.com: I GOT THIS ERROR when  I tried first sample with when timestamp; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual thatcorresponds to your MySQL

Re: [PHP] Re: mysql create table with date or timestamp

2009-05-28 Thread Andrew Ballard
On Thu, May 28, 2009 at 11:20 AM, Daniel Brown danbr...@php.net wrote: On Thu, May 28, 2009 at 11:15, Andrew Ballard aball...@gmail.com wrote: Make that a 'comma', not the 'coma' that I seem to be in.  :-)    Eh, it's your birthday.  You're allowed.  ;-P    Happy birthday, by the way

Re: [PHP] Confirmation email caught by spam filter

2009-05-27 Thread Andrew Ballard
parameter) for the mail() function? If you're using sendmail and the envelope from address is 'nob...@mydomain.com', you can pretty much assume they will get dumped as SPAM regardless of what you set in the From: header. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread Andrew Ballard
to everyone, even though they are intended for those specific few who know what they're doing and who need specific functionality. :-) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-26 Thread Andrew Ballard
On Tue, May 26, 2009 at 2:18 PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2009-05-26 at 14:10 -0400, Andrew Ballard wrote: On Tue, May 26, 2009 at 1:47 PM, Robert Cummings rob...@interjinn.com wrote: [snip] Such settings are usually made available to people who know what they're

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-22 Thread Andrew Williams
WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET: http://www.google.co.uk/search?q=sumitphp5%40gmail.comsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enGB303GB303aq=t On Fri, May 22, 2009 at 11:28 AM, Sumit Sharma sumitp...@gmail.com wrote: Thanks to [0] = Ashley, [1] =Bruce,

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread Andrew Williams
I have no problem with it at least user email address should be removed off the publication. - Show quoted text - On Fri, May 22, 2009 at 1:21 PM, Per Jessen p...@computer.org wrote: Andrew Williams wrote: WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET: http

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-22 Thread Andrew Ballard
On Fri, May 22, 2009 at 6:35 AM, Andrew Williams andrew4willi...@gmail.com wrote: WHY IS php-general@lists.php.net PUBLISHING USER EMAIL ON THE INTERNET: http://www.google.co.uk/search?q=sumitphp5%40gmail.comsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enGB303GB303aq=t On Fri, May 22, 2009 at 11

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Andrew Ballard
the request if the above doesn't work for you. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Andrew Ballard
On Wed, May 20, 2009 at 6:50 AM, Ford, Mike m.f...@leedsmet.ac.uk wrote: On 19 May 2009 17:10, Andrew Ballard advised:               var toppings = document.sundae.toppings;                 // To work with PHP, the above line would have to be changed:                 // var toppings

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Andrew Ballard
major experience with a web language was PHP (after a very brief dabble in PERL) before I took a turn at ASP/VBScript, I'm used to it and it isn't a hang-up for me. But something about it never seemed quite right to me either. :-) Andrew -- PHP General Mailing List (http://www.php.net

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-15 Thread Andrew Ballard
On Fri, May 15, 2009 at 10:24 AM, tedd tedd.sperl...@gmail.com wrote: At 4:45 PM -0400 5/14/09, Andrew Ballard wrote: On Thu, May 14, 2009 at 4:33 PM, Paul M Foster pa...@quillandmouse.com wrote:   My stance is, if you're going to subscribe to an email list, learn how  to unsubscribe, how

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Andrew Ballard
To, Subject, and Date that are usually plainly visible in mail clients? And it's not even like mail clients read the headers and add an Unsubscribe link/button to the UI when reading a message. :-) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Andrew Ballard
On Thu, May 14, 2009 at 4:33 PM, Paul M Foster pa...@quillandmouse.com wrote: On Thu, May 14, 2009 at 03:30:44PM -0400, Andrew Ballard wrote: On Thu, May 14, 2009 at 3:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2009-05-14 at 09:29 -0400, Mike Roberts wrote

[PHP] [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Andrew Williams
Hi All, please, I need to connect to IP via a specific port en validate my user name and password to get data. Port : XXX7X Internet ip 195.19.XX.1XX please can some help with the idea of achieving it in php. please see the format below: [*Session Initialization* A session begins

[PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Andrew Williams
Hi, http://php.net/stream_socket_client does not have the option to supply authentication details and how do you supply that. On Wed, May 13, 2009 at 12:22 PM, Nathan Rixham nrix...@gmail.com wrote: Andrew Williams wrote: Hi All, please, I need to connect to IP via a specific port en

Re: [PHP] Sending SMS through website

2009-05-13 Thread Andrew Williams
http://google.com/search?q=open+source+sms+gateway On Wed, May 13, 2009 at 3:36 PM, Thodoris t...@kinetix.gr wrote: Hi All, Does anyone know how to send sms through a php website. I am completely new to the requirement and don't know even the pre-requisite of doing it. You can also drop

Re: [PHP] Sending SMS through website

2009-05-13 Thread Andrew Ballard
are they going to do -- send a bill to the sender's e-mail address?) and the recipient pays standard rates for an incoming message. If it's within your monthly allotment, it's free. I don't know if there are quotas imposed to prevent someone from abusing the service. Andrew -- PHP General Mailing List

Re: [PHP] Sending SMS through website

2009-05-13 Thread Andrew Ballard
On Wed, May 13, 2009 at 3:38 PM, Nathan Rixham nrix...@gmail.com wrote: Andrew Ballard wrote: On Wed, May 13, 2009 at 1:55 PM, Per Jessen p...@computer.org wrote: kyle.smith wrote: Most carriers have email-to-sms bridges.  For example, I use ATT Wireless and you can text me by sending

[PHP] [php] tcp server connection

2009-05-12 Thread Andrew Williams
Can someone help me about how to retrieve data using TCP server connection -- Best Wishes A Williams

Re: [PHP] SQL Injection - Solution

2009-05-06 Thread Andrew Ballard
need to guard against injection. 3) DROP TABLE will work no matter how many white-space characters appeared between the words. For that matter, I am pretty sure that 'DROP /* some bogus SQL comment to make it past your filter */ TABLE' will work also. Andrew -- PHP General Mailing List (http

Re: [PHP] Re: SQL Injection - Solution

2009-05-06 Thread Andrew Ballard
to dissect some of those existing libraries to see how they handle work under the hood. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Query stopping after 2 records?

2009-05-04 Thread Andrew Hucks
When you say die, does it just stop, or do you get an error message? Depending on how long it's taking to perform the action, the script will stop just because it's taking a while. (by default, I think it's 30 seconds.) If so, use: ini_set(max_execution_time, time in seconds); On Mon, May 4,

Re: [PHP] Dynamically Rename Images

2009-05-03 Thread Andrew Hucks
Thanks, but I solved the problem another way. http://codepad.org/6juIkECZ. On Sun, May 3, 2009 at 3:02 PM, Michael A. Peters mpet...@mac.com wrote: Andrew Hucks wrote: Got this error: Fatal error: Cannot instantiate non-existent class: finfo in place on line 6 You need the pecl-FileInfo

[PHP] Dynamically Rename Images

2009-05-02 Thread Andrew Hucks
Is it possible to rename images dynamically? Say that I had something like image1.png, and I don't want to rename it on the server. I'm working on an image rotater for a forum that doesn't allow anything but image files as signatures. Here's my code so far: ?php //LolRotator //add images. not

Re: [PHP] Two very useful PHP functions

2009-05-01 Thread Andrew Ballard
there is a need for a function like ifset/ifsetor, but I'd MUCH rather have a clear function name that could easily be found in the manual than mangling the ternary operator. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to write /textarea element in textarea?

2009-05-01 Thread Andrew Ballard
the inside /textarea element. Any suggestions how can I fix this? Thanks in advance, You need to use htmlspecialchars on whatever you place inside the textarea: textarea name=content?php echo htmlspecialchars($content); ?/textarea Andrew -- PHP General Mailing List (http://www.php.net

Re: [PHP] graphical integrated development environment recommendations?

2009-05-01 Thread Andrew Hucks
http://notepad-plus.sourceforge.net/uk/site.htm Try out N++. It's very good, supports a whole bunch of languages by default, has folding, and you can tweak the syntax highlight if you want. (You don't need to though.) Takes two minutes to install, and 45 seconds to uninstall it if you don't like

Re: [PHP] Getting Sub Elements with XPath

2009-04-30 Thread Andrew Ballard
that Charge == 'false', but you should be able to sort that out. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] utf-8 ?

2009-04-30 Thread Andrew Hucks
It'd be a hassle to just remove a function from a language, I suppose... On Thu, Apr 30, 2009 at 6:15 PM, Reese howel...@inkworkswell.com wrote: Tom Worster wrote: why use SGML character entity references in a utf-8 file or stream? can't you just put the character in the file? Because, I

[PHP] date time late or lagging

2009-04-28 Thread Andrew Williams
hi all, $dateNow = date('Y-m-d H:i:s'); echo pstrong.$dateNow ./strong/p; can some see why the date time is lagging or late by 30 minutes from the server time even when server time are correct

Re: [PHP] date time late or lagging RESOLVED

2009-04-28 Thread Andrew Williams
On Tue, Apr 28, 2009 at 3:45 PM, Andrew Williams andrew4willi...@gmail.comwrote: hi all, $dateNow = date('Y-m-d H:i:s'); echo pstrong.$dateNow ./strong/p; can some see why the date time is lagging or late by 30 minutes from the server time even when server time are correct -- Best

[PHP] Project Euler [Oh, this isn't spam mail...]

2009-04-28 Thread Andrew Hucks
This isn't a question. :-D. Anyways, there's a website that I came across which has kept me up past bedtime the past few nights. Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Andrew Hucks
Take the values out of single quotes, else it sets them as strings, and not as the variable value. Also, are you meaning to set the cookie's expiration to time()-3600? Try time()+3600. On Tue, Apr 28, 2009 at 4:49 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2009-04-28 at 16:38

Re: [PHP] Re: $_session/$_cookie trouble

2009-04-28 Thread Andrew Hucks
$sale_value would have worked if it hadn't been in single quotes, I believe. (Assuming it was populated.). When you put it in quotes, you were making the cookie's value a string instead of a variable. So, the value would actually have literally been $sale_value, rather than the value for that

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-27 Thread Andrew Hucks
coded in about 3 years and need to get my hand back in.  Trying to make use of one idea led to several others.  Thanks, tedd! Charles On Sat, Apr 25, 2009 at 4:54 AM, tedd tedd.sperl...@gmail.com wrote: At 7:00 PM -0400 4/24/09, Andrew Hucks wrote: I've been coding PHP for about

[PHP] Change color of anything in double/single quotes

2009-04-25 Thread Andrew Hucks
If I have something like $string = 'hello there'; (the word hello is in double quotes, if you can't see it), how would I output it as something like font color=colorhello/font there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [php] graph with two or more input display

2009-04-24 Thread Andrew Williams
Hi All, Does anyone know of any php grahp that will enable you to show/analyse more than one inputs like price versus time? -- Best Wishes Andrew Williams willandy.co.uk

[PHP] [php] embedding excel chart/graph

2009-04-24 Thread Andrew Williams
* I have been to see how to embed excel charts and graph to php code. does any knows how* willandy.co.uk

Re: [PHP] MySQL, MD5 and SHA1

2009-04-24 Thread Andrew Ballard
to MySQL in open text, you don't have to worry about whether the connection is (or becomes) sniffable. For that matter if you're going to bring up performance, I know many DBAs who would argue this as performance issue as well. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] error with hosting

2009-04-24 Thread Andrew Ballard
On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. ro0ot.w...@googlemail.com wrote: Do yourself a favour: * remopve that 1337 hax0r name - it makes you look like a dumbass This coming from someone whose e-mail address is ro0ot.w...@? Sounds a little ironic. ;-) Andrew -- PHP General Mailing

[PHP] I need ideas for things to code

2009-04-24 Thread Andrew Hucks
I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any suggestions, I'd greatly appreciate it.

Re: [PHP] how to determine if a mysql query returns an empty set?

2009-04-23 Thread Andrew Ballard
? It won't be any of those because the query is successful even if it returns no records. You could use http://us2.php.net/manual/en/mysqli-stmt.num-rows.php to determine how many rows were returned. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Andrew Ballard
and letting MySQL calculate the hash. That way the sensitive data has already been hashed and you don't have to worry about whether the communication between PHP and MySQL travels over an unencrypted network connection -- now or in the future. Andrew -- PHP General Mailing List (http://www.php.net

Re: [PHP] Best way to deal with $_SERVER['REQUEST_URI'] on IIS?

2009-04-21 Thread Andrew Ballard
users who encounter the same thing, so the easier the instructions and the less tinkering, the better. Is there a php.ini setting, for instance? What have you found that works for you? Thanks, Mattias It works just fine on the servers where I work. Andrew -- PHP General Mailing List (http

Re: [PHP] Best way to deal with $_SERVER['REQUEST_URI'] on IIS?

2009-04-21 Thread Andrew Ballard
On Tue, Apr 21, 2009 at 4:21 PM, Mattias Thorslund matt...@thorslund.us wrote: Andrew Ballard wrote: On Tue, Apr 21, 2009 at 4:04 PM, Mattias Thorslund matt...@thorslund.us wrote: Hi all, Apparently, $_SERVER['REQUEST_URI'] doesn't get set the same way when running PHP on IIS as when

Re: [PHP] cURL - Error 400

2009-04-17 Thread Andrew Ballard
of your examples. (If I missed it somewhere, just ignore the noise.) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-15 Thread Andrew Ballard
cycle. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] https and Credit Cards

2009-04-14 Thread Andrew Ballard
payment processor if they find out that the site is not securing cardholder information. You (and your client) should read up on PCI compiance. http://www.pcicomplianceguide.org/ Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] difficult select problem

2009-04-09 Thread Andrew Ballard
with $Auth and stops returning rows when it finds a value is greater than the pattern. To evaluate WHERE LEFT('$Auth', LENGTH('$Auth')) = '$Auth' , the server has to calculate a substring of last_name for every row in the table and then compare those substrings to the value $Auth. Andrew -- PHP General

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-09 Thread Andrew Ballard
On Thu, Apr 9, 2009 at 1:53 PM, Shawn McKenzie nos...@mckenzies.net wrote: Per Jessen wrote: Andrew Ballard wrote: A bit off topic, but Ctrl+I no longer brings up the Page Info in Firefox like it used to -- at least on my Windows computers. (It opens the bookmark list in the sidebar.) Does

Re: [PHP] Am I being hacked?

2009-04-08 Thread Andrew Ballard
seconds before allowing the connection to continue. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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