Re: [PHP] undef func

2013-05-10 Thread James Yerge
On 05/10/2013 06:08 PM, Gabriel Ricci wrote: pear isntall php-dev Att. Gabriel Ricci Website http://gabrielricci.github.com Follow @gabrielricci http://www.twitter.com/gabrielricci Facebook profile http://www.facebook.com/gabrielricci2, GitHub

[PHP] Re: htaccess question

2013-04-10 Thread James Moe
On 04/09/2013 11:07 AM, Al wrote: I know it's not a php question, but I can't readily find the answer elsewhere. Try http://www.apache.org/foundation/mailinglists.html. -- James Moe jmm-list at sohnen-moe dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Does Scope-Resolution Operator Always Follow 'parent'?

2013-03-10 Thread Eric James Michael Ritz
Hello everyone, I have a question about the `parent` keyword: is there any valid situation where it can appear without the `::` operator following? I am asking to fix a bug in php-mode[1] for GNU Emacs. Consider the following code: echo $parent; echo parent::$foo; echo

[PHP] A Recent Emacs Mode for PHP

2012-12-22 Thread Eric James Michael Ritz
Hello everyone, I do not know how many PHP developers use GNU Emacs for writing code. But I assume it must be a decent amount since there are multiple PHP modes for Emacs floating around the Internet. For months I have worked to improve one of those modes, what seemed to be the most popular:

Re: [PHP] memory allocation error

2012-11-12 Thread James
This could be an issue with the library you're using, adodb, I'd check to see if it has any debugging options to enable. I'm not familiar with it at all but that may be helpful. I'd also check out adodbs bug tracker, if one exists. Another suggestion would be use a profiler, such as xdebug, I

Re: Re: [PHP] memory allocation error

2012-11-12 Thread James
Original Message From: James ja...@nixsecurity.org To: Carol Peck carolap...@gmail.com, Jim Lucas li...@cmsws.com Cc: php-general@lists.php.net Sent: Mon, Nov 12, 2012, 12:53 PM Subject: Re: [PHP] memory allocation error This could be an issue with the library you're using, adodb, I'd

Re: [PHP] Differences

2012-10-03 Thread James
All of the images are displaying because you're simply instructing the function to print out each file found with your call to glob(). The glob() function returns an indexed array containing files found in the path you specified, or an empty array if no files were found or false if glob()

[PHP] How to catch an exception using SoapClient.

2012-08-06 Thread James Newman
I was wondering how I'd catch an exception using SoapClient. $data = array( 'Particular'='Payment for stuff', 'Email' ='e phi...@newman.net.nzmail address', 'CardNumber'=', 'CardType' ='MC', 'CardExpiry'='0423', 'CardHolderName'='James Newman', 'CardCSC' ='111', 'StoreCard

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread James Newman
has probably already happened, but the author doesn't know how to handle the response to the authentication correctly. --Curtis Matijn Woudt wrote: Op 17 jul. 2012 05:23 schreef James Newman james.new...@primalmedia.co.nz het volgende: I'm having a few authentication issues

Re: [PHP] Creating drop-down menus

2012-07-17 Thread James Newman
Just to put my 2cents in, you might want to try jQuery if you're going to go down the AJAX road. James. On Wed, Jul 18, 2012 at 1:59 AM, Ramiro Barrantes ram...@precisionbioassay.com wrote: Thanks to everyone for their help, AJAX is the way to go. Daevid, it's interesting you welcome me

[PHP] SOAP and Php question about authentication

2012-07-16 Thread James Newman
I'm having a few authentication issues and I'm not sure if it's my code or the web service I'm connecting to. The code below shows what I'm working with not sire if I'm going about it the right way. This is the error I get! Fatal error: Uncaught SoapFault exception: [soap:Client]

Re: Re: [PHP] else if vs switch

2012-06-18 Thread James
-z0-9-\\s\\(\\)\\?\\:\\;@\\.trade;\\,\\ndash;\\'\\t]/uis, $class)) {...} Does this do the same thing as isset? Would isset be better? April On Sun, Jun 17, 2012 at 7:41 PM, James ja...@nixsecurity.org wrote: Same logical check with my personal preference ;) $toaddress = $mapping['default

Re: [PHP] else if vs switch

2012-06-17 Thread James
Same logical check with my personal preference ;) $toaddress = $mapping['default']; if ( isset($city) isset($mapping[$city]) ) { ... } -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Jim Lucas li...@cmsws.com wrote: On 6/15/2012 3:29 PM, Joshua Kehn wrote: Way easier

Re: [PHP] else if vs switch

2012-06-15 Thread James Yerge
the array has the appropriate file permissions to do so. Just my two cents :) - James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Exception Handling

2012-06-01 Thread James Colannino
(Database_Exception $var) to make it work. I've been reading that Exception should be sufficient, since every exception object is a child class of Exception. Did this perhaps change in 5.4? I think it was working properly in 5.3, but I'm not sure. Any clarification would be greatly appreciated! James

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 07:30, ma...@behnke.biz wrote: James Colanninocrankycycl...@gmail.com hat am 1. Juni 2012 um 16:25 geschrieben: Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using a framework that throws a Database_Exception object

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 08:08, James Colannino wrote: On 06/01/12 07:30, ma...@behnke.biz wrote: James Colanninocrankycycl...@gmail.com hat am 1. Juni 2012 um 16:25 geschrieben: Hey guys, Haven't posted in a long time... Happy Memorial Day! I have an issue with exception handling. I'm using

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
On 06/01/12 07:32, Mackintosh, Mike wrote: Hi James, You would have to catch Database_Exception. It is also good practice to also always catch exception afterwards. Hey Mike, Thanks for the reply! I saw this comment in the documentation (http://www.php.net/manual/en

Re: [PHP] Exception Handling

2012-06-01 Thread James Colannino
to confirm. Thanks! James

[PHP] Setting allow_url_fopen

2012-05-26 Thread James Moe
. :-( $oldval = ini_set(allow_url_fopen, 1); The remote call is made after the above statement. Clearly there is more to it than I expected. What is the correct way to allow URL fopen on the fly? - -- James Moe moe dot james at sohnen-moe dot com 520.743.3936 -BEGIN PGP SIGNATURE

Re: [PHP] Your Citi Credit Card Statement

2012-05-10 Thread James
Original Message From: Citi Cards citica...@info.citibank.com To: php-general@lists.php.net Sent: Thu, May 10, 2012, 1:19 PM Subject: [PHP] Your Citi Credit Card Statement Your Citi Credit Card Statement

[PHP] Adding Rows In PHPMYADMIN

2012-04-02 Thread Karl James
+droppedphpMyAdmin=0b5ebd941a4bbe87db1e38f60fd10dadec30e8e7 Description: Drop product_id mailto:karlja...@tampabay.rr.com Karl James Need Web Design Check Out My Site: http://kjwebsitedesign.com/ http://kjwebsitedesign.com Flexible in Cost

[PHP] PHP ISSUE!!!

2012-04-01 Thread Karl James
. mailto:karlja...@tampabay.rr.com Karl James

[PHP] Critical Error

2012-03-28 Thread Karl James
keep in mind as some of you I do not claim to be a know php very well. Just beginning stages. I wanted to send a screen shot but don't want to get email bounced. Any help would be appreciated. mailto:karlja...@tampabay.rr.com Karl James

Re: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread James
Original Message From: Eric Butera eric.but...@gmail.com To: Jim Long p...@umpquanet.com Cc: php-general@lists.php.net Sent: Fri, Oct 28, 2011, 1:22 PM Subject: Re: [PHP] Why does this script run out of memory? On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm

Re: [PHP] Need help Wth PHP

2011-10-09 Thread James Yerge
On 10/09/2011 08:41 PM, Rod Lindgren wrote: I have a hosting account and am trying to get a friend's website up and running. We downloaded his existing site from his current host and uploaded it to my host. It is currently under a subdomain, www.egypt.aragren.com http://www.egypt.aragren.com/

[PHP] PHP process 32 v 64 bit virtual memory

2011-09-22 Thread James
Looking for some explanation (and verification) as to why the virtual memory increases by 5 fold (at the minimum) from 32 bit to 64 systems. I'm aware (for the most part) of the int, struct, etc changes from 32 to 64 bit. Results from running `php -r 'sleep(1000);' ` on 32 and 64 bit systems

[PHP] Re: XML enabled but not working

2011-09-16 Thread James Moe
need to install libxml[2]? -- James Moe jmm-list at sohnen-moe dot com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread James Yerge
On 09/13/2011 08:40 PM, Jim Lucas wrote: On 9/13/2011 5:23 PM, tamouse mailing lists wrote: On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings rob...@interjinn.com wrote: I'm a big fan of editors that work in the terminal. You'll get my emacs when you pry it out of my cold dead hands. +1

Re: [PHP] dev to production server

2011-09-07 Thread James Yerge
is simply minifies all CSS and JavaScript. Anyway, enough about that, just an example of what can be done. There's always the option of compiling everything from source as well :) James

Re: [PHP] REQUEST and COOKIE

2011-09-06 Thread James Yerge
that the contents of $_REQUEST cannot be trusted. James

Re: [PHP] mysqli sql question

2011-08-31 Thread James Yerge
On 08/31/2011 05:23 AM, Peet Grobler wrote: Is it possible to get the actual sql that is being used to query or update the database? E.g $sth = $dbh-prepare (update table set field=?, field2=? where id=?); mysqli_bind_param ($sth, 'ssi', 'text1', 'text2', 10); $sth-execute(); Something

Re: Re: [PHP] Re: mysqli sql question

2011-08-31 Thread james
Original Message From: Louis Huppenbauer louis.huppenba...@gmail.com To: php-general@lists.php.net Sent: Wed, Aug 31, 2011, 10:24 AM Subject: Re: [PHP] Re: mysqli sql question Hi there Richard It's part of the prepared statements http://php.net/manual/de/pdo.prepared-statements.php ;)

[PHP] (Kinda sorta) PHP related: recovering lost passwords

2011-08-16 Thread James Colannino
. If it matches the unencrypted version stored in the database, you know you have the correct answer, and use it to decrypt the user's password and send it to the email the user has setup for their account. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] (Kinda sorta) PHP related: recovering lost passwords

2011-08-16 Thread James Colannino
passwords ;) Good point. I think I'll go that route instead. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (Kinda sorta) PHP related: recovering lost passwords

2011-08-16 Thread James Colannino
On 08/16/11 02:08, Richard Quadling wrote: Take a look at https://code.google.com/p/loginsystem-rd/ Whilst it is just a login system, the techniques here could be adapted and probably learned from (if you are new to security). Ah, that looks interesting. Thanks for the link! James

Re: [PHP] Form Already Filled Out

2011-08-04 Thread James Yerge
On 08/05/2011 12:43 AM, wil prim wrote: Hello, S i created a simple login system, and I am using sessions Everything seems to work fine, however; when I upload my files to my server and type my domain name my index.php page comes up and the form is automatically filled out with a

Re: [PHP] Top Posting

2011-07-05 Thread James Moe
is popular is that responders do not have to think about tidying up, just spit out a reply and move on. The result is a message that grows in size with every reply containing every useless bit since the thread began. It becomes quite a mess. - -- James Moe moe dot james at sohnen-moe dot com

Re: [PHP] Upgrade or Die?

2011-06-24 Thread james
Chrome. Enough said. Now, if we can only convince the rest of the world ... Original Message From: ad...@buskirkgraphics.com To: php-general@lists.php.net Sent: Fri, Jun 24, 2011, 1:17 PM Subject: [PHP] Upgrade or Die? In shifting gears to a faster pace of development and release,

Re: [PHP] Memory limit Problem

2011-06-23 Thread james
Check the value of the upload_max_filesize and post_max_size directives in the php.ini. Original Message From: Graham Drabble usene...@drabble.me.uk To: php-general@lists.php.net Sent: Thu, Jun 23, 2011, 9:46 AM Subject: [PHP] Memory limit Problem Hi, I've got a problem with

Re: [PHP] mysqli_query() returns NULL?

2011-06-18 Thread James Colannino
. But in that case it would return boolean true rather than NULL, right? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysqli_query() returns NULL?

2011-06-17 Thread James Colannino
an integer), instead of false I get a return value of NULL. Does anyone know why? Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: The desired result is. Array ( [0] = On the; [1] = course or in the; [2] = of colver; ); I am just not sure the delimiter can be an array in the Explode function. Richard L. Buskirk -Original

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 07:53 PM, ad...@buskirkgraphics.com wrote: The desired result is. Array ( [0] = On the; [1] = course or in the; [2] = of colver; ); I am just not sure the delimiter can be an array in the Explode function. Richard L. Buskirk -Original

Re: [PHP] Explode Question

2011-05-17 Thread James Yerge
On 05/17/2011 09:09 PM, ad...@buskirkgraphics.com wrote: That is exactly it. Thanks James I knew it was simple just forgot how it was done. Richard L. Buskirk -Original Message- From: James Yerge [mailto:ja...@nixsecurity.org] Sent: Tuesday, May 17, 2011 8:51 PM To: ad

[PHP] Upload size limit stays at 8MB

2011-05-06 Thread James Moe
Hello, apache v2.2.15 (Linux/SUSE) phpv5.3.3 linux v2.6.34.7-0.7-desktop #1 SMP I updated /etc/php5/apache2/php.ini to change upload_max_filesize = 2M to upload_max_filesize = 60M. php_info() shows the changed value; echo ini_get(upload_max_filesize) shows the changed value. Yet

Re: [PHP] possible variable declaration error

2011-03-25 Thread james
Correct me if I wrong, but you're declaring $id AFTER binding the SQL parameter, therefore your :id isn't being bound to anything, hence the empty returned array. I think: $d_series_fetch = $db-prepare(SELECT * FROM defaultseries WHERE publisher :id); $id = 'DC Comics';

Re: [PHP] Connection Handling - unreliable at best?

2011-02-20 Thread James Green
Hm. Commented out the line re-tested. Absolutely no change whatsoever :( Even made it false. I'm really hoping I've been an idiot on this one. Makes no sense otherwise but this is where I am. Hope to hear further suggestions. James On 20 February 2011 03:05, Daniel Brown danbr...@php.net

[PHP] DOMDocument depth limit

2011-02-16 Thread James Devine
Is there any way to pass LIBXML_PARSEHUGE to DOMDocument::loadHTML ? I'm trying to load an in-memory html document and I'm hitting this limit, DOMDocument::load and DOMDocument::loadXML both look like they accept options but DOMDocument::loadHTML does not. -- PHP General Mailing List

Re: [PHP] Eclipse, Komodo, Netbeans, Zend Studio, PHP Storm, other?

2010-10-13 Thread James Diamond
Hey Mike, I use zend eclipse, love it. What I love about it is what I love about any IDE, code complete, project configurations, customizable preferences of the editor, etc. I have used Eclipse (Pre-Zend), Zend Eclipse, Zend Studio, Komodo, and Easyclipse. James On Oct 13, 2010, at 12:58

Re: [PHP] Unexpected behaviour from define()

2010-06-25 Thread James Long
for 'display_errors = 1' in php.ini since I was seeing error messages for other errors. Thanks again. Jim On Fri, Jun 25, 2010 at 10:38:39AM +0100, Richard Quadling wrote: On 24 June 2010 22:41, James Long p...@umpquanet.com wrote: ?php error_reporting(-1); ini_set('display_errors', 1); define

[PHP] Unexpected behaviour from define()

2010-06-24 Thread James Long
Perhaps I am missing something basic here. Why does the LOG_WARNING constant take on a value of 4, when it is defined with a value of 1? Thank you! Jim $ cat bug.php ? define( 'LOG_NORMAL', 0 ); define( 'LOG_WARNING', 1 ); define( 'LOG_ERROR', 2 ); echo 'LOG_NORMAL ' . LOG_NORMAL . \n;

[PHP] Re: Unexpected behaviour from define()

2010-06-24 Thread James Long
On Thu, Jun 24, 2010 at 02:41:51PM -0700, James Long wrote: Perhaps I am missing something basic here. Why does the LOG_WARNING constant take on a value of 4, when it is defined with a value of 1? Thank you! Jim Answering my own question here LOG_WARNING is already defined

[PHP] Question about logins and locking

2010-06-22 Thread James Colannino
in and when the user logs out? I'm just looking for some conceptual ideas. Thanks everyone! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about logins and locking

2010-06-22 Thread James Colannino
of application, service, user level access, and the strict security you require. Thanks Tommy. That was very helpful, and some of it is similar to how I was thinking of doing it. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] var_dump( (0 == 'heading') ) == TRUE ?!

2010-05-14 Thread James Colannino
hand side as just 0, which is equal to the left hand side. James Daevid Vincent wrote: Can someone explain why an integer 0 compared to a string evaluates to boolean true?? var_dump( (0 == 'heading') ); Yet, var_dump( (1 == 'heading') ); Is FALSE. WTF? I would expect the 0 one

[PHP] MySQL: Return Number of Matched Rows

2010-03-25 Thread James Colannino
something done with as few SQL queries as possible. Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL: Return Number of Matched Rows

2010-03-25 Thread James Colannino
for, but it might. Yeah, the extra select is what I was hoping to avoid :-P The MySQL client will return both the number of rows matched and the number of rows affected by the query; I was hoping perhaps the PHP API offered a way for me to do the same. Ah well... Thanks! James -- PHP General

Re: [PHP] Revision control?

2010-03-09 Thread James McLean
of the entire file for each instance of binary data, rather than storing the changes as it would with a Text file. Cheers, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail Function In PHP

2010-03-08 Thread james . stojan
Any volume of mail sent direct to mx records is a red flag for anti spammers and without an smtp spf dkim and rdns you are wasting your time. The logic is that only people sending spam would be sending direct to mx like that. Fair or not that is just how life works. Oh and most mail servers do

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread James McLean
On Thu, Feb 25, 2010 at 4:22 PM, Rick Dwyer rpdw...@earthlink.net wrote: OK... external function... that would explain why I could not locate it. Let me get right to the problem I am having with this code as someone may be able to help directly. I have a link on a page that opens a contact

[PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread james stojan
I'm at my wits end trying to make this mysql statement insert work in PHP. I'm not getting any errors from PHP or mysql but the insert fails (nothing is inserted) error reporting is on and is reporting other errors. When I echo out the query and manually paste it into PHP myAdmin the query inserts

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread james stojan
it works in phpmyadmin is that it filters the query somehow to add the tick marks in. Joseph james stojan wrote: I'm at my wits end trying to make this mysql statement insert work in PHP. I'm not getting any errors from PHP or mysql but the insert fails (nothing is inserted) error

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread James McLean
On Fri, Feb 12, 2010 at 8:27 AM, Joseph Thayne webad...@thaynefam.org wrote: Actually, the syntax is just fine.  I personally would prefer it the way you mention, but there actually is nothing wrong with the syntax. The ,'$date1'. is not correct syntax, change it to ,'.$date.' My personal

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread James McLean
On Fri, Feb 12, 2010 at 9:31 AM, Jochem Maas joc...@iamjochem.com wrote: Op 2/11/10 10:51 PM, James McLean schreef: My personal preference these days is to use Curly braces around variables in strings such as this, I always find excessive string concatenation such as is often used when

Re: [PHP] Mysql statement works in phpmyadmin but not in php page

2010-02-11 Thread James McLean
On Fri, Feb 12, 2010 at 9:31 AM, Joseph Thayne webad...@thaynefam.org wrote: As for the backticks, they are required because of MySQL, not because of phpMyAdmin.  The issue was not that phpMyAdmin uses backticks, it is that MySQL pretty much requires them when naming a field the same as an

Re: [PHP] PHP Manual problems

2010-02-09 Thread James McLean
On Wed, Feb 10, 2010 at 2:26 PM, clanc...@cybec.com.au wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for using IE6 ... WTF ... you do realise this is essentially a web developers mailing list right? The interesting things in my websites go on

Re: [PHP] Owner or other; permissions for webpage users

2010-02-09 Thread James McLean
On Wed, Feb 10, 2010 at 2:51 PM, clanc...@cybec.com.au wrote: I'm basically familiar with the UNIX permissions - 'owner', 'group', or 'other', but I have no real idea how these apply to webpage users under PHP. I know that if I FTP to the server I am the owner, and I think that if I, or

Re: [PHP] database abstraction layer

2010-02-02 Thread James Colannino
, however, such as dealing with users and permissions, will be unique to the db engine. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good source for sample data?

2010-01-28 Thread james stojan
Fakenamegenerator.com is pretty good for these kinds of records, alot of variety and can change order/formating for them but they do limit free orders to 50k records. http://www.fakenamegenerator.com/order.php On Thu, Jan 28, 2010 at 8:06 PM, TG tg-...@gryffyndevelopment.com wrote: I

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread James McLean
On Wed, Jan 27, 2010 at 10:47 AM, Daevid Vincent dae...@daevid.com wrote: I'm not looking to start a holy war here or re-hash the tired debate. I just want some hard cold numbers to look at. Do you use a public framework or roll your own? http://www.rapidpoll.net/8opnt1e I have rolled my

Re: [PHP] Do you use a public framework or roll your own?

2010-01-26 Thread James McLean
On Wed, Jan 27, 2010 at 4:50 PM, Michael Kubler mdk...@gmail.com wrote: I read somewhere (can't find the link at the moment) that there's probably 2.5 frameworks per PHP developer. There would be a lot of truth to that, I hacked up a smaller simpler PHP4-centric framework back in the days when

Re: [PHP] Site Moved From PHP4 to PHP5 Server - header, location no longer working

2010-01-06 Thread James McLean
On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb ver...@comp-wiz.com wrote: I move a number of sites from one server to another and one the one server we had php4 and now we have php5 and since then my server seems to hang every time there is a header, location redirect. Anyone have any ideas on

Re: [PHP] Happy New Year

2009-12-31 Thread James Colannino
tedd wrote: May 2010 2009. Fortunately, I think that's automatically true by definition :-D James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + ODBC

2009-12-14 Thread James McLean
On Tue, Dec 15, 2009 at 10:03 AM, Philip Thompson philthath...@gmail.com wrote: My head hurts from hitting it on my desk all day, so I thought I'd turn to a fresher set of eyes. The issue I'm having is getting PHP to connect ODBC. I can get it to work using isql from the command line. Can you

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread James McLean
On Wed, Dec 2, 2009 at 9:18 AM, Brian Dunning br...@briandunning.com wrote: This is a holiday-crunch emergency. Aren't they all! :) It's WAY TOO SLOW. I can paste the URL into a browser and download even the largest files quite quickly, but the PHP method bottlenecks and cannot keep up.

Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread James McLean
On Fri, Nov 27, 2009 at 12:12 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Hi all, I've got a site set up that is using an htaccess file to provide secure access to a directory. That is working fine. What I wondered was, is there a way to log out via PHP. As I understand it, the login

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
, Oct 26, 2009 at 4:37 AM, Bob McConnell r...@cbord.com wrote: From: James Prentice I have tried setting both $to and $email to be the same shaw address since I assumed it should be recognized by the mail server, but it's still getting bounced. So why is 'www-d...@homemade' being listed

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
It looks like using XAMPP wasn't strictly necessary. I tried running this example again using my previous versions of mysql and apache and it worked fine. So the key is to configure Sendmail as described at the URL I gave. On Wed, Nov 25, 2009 at 10:58 AM, James Prentice prentice@gmail.com

Re: [PHP] How to call a vc++ dll from a HTML form

2009-11-17 Thread James McLean
On Wed, Nov 18, 2009 at 3:21 PM, Peter pet...@egrabber.com wrote: Thanks to All. I want to call a vc++ dll from a HTML form. The dll need to be triggered on a button click in the HTML form. I want to access the dll from the client end(javascrript) without using the server. Tell me whether

Re: [PHP] Netbeans IDE 6.5

2009-10-29 Thread James McLean
On Thu, Oct 29, 2009 at 8:13 PM, John Black s...@network-technologies.org wrote: James McLean wrote: I myself and I'm sure many others will agree that sticking to 'around' 80 chars is best-practice, it's handy for those times when you need to fix code in an emergency in an 80 col terminal

Re: [PHP] Netbeans IDE 6.5

2009-10-28 Thread James McLean
) agree: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html Cheers, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What would stop header(Location...) from working?

2009-10-27 Thread James McLean
() as well, not just text from echos or prints. If you have errors hidden or disabled, then you would not see the warning from header(), try it with all errors enabled. Cheers, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Converting tables into forms

2009-10-27 Thread James McLean
to be created and don't want to do so field by field by hand. With a little coding, Zend_Form should do what you need. http://framework.zend.com/manual/en/zend.form.html Cheers, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
Thanks, John. I set up the sasl_passwd file as per your instructions but am still getting status=bounced. I'm wondering, what should the values in main.cf be for 'myhostname' and 'mydestination'? These pages give some info on the Shaw mail servers, but I'm not certain which I should be using:

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
-technologies.org wrote: James Prentice wrote:   Also, I notice that in the mail.log file, the 'from:' value is 'www-d...@homemade'. The actual 'from:' value is provided to the php mail() function via a web form, so should be somebody's email address (e.g. my own in this case). I think PHP

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
Ljungmark p...@bsdlabs.com wrote: James Prentice wrote: It sends the bounced message to /var/mail/www-data and I get this: --19BE8A70109.1256417846/homemade Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; homemade X-Postfix-Queue-ID: 19BE8A70109

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
, 'From:' . $email); I have tried setting both $to and $email to be the same shaw address since I assumed it should be recognized by the mail server, but it's still getting bounced. So why is 'www-d...@homemade' being listed as the sender? Any ideas? On Sat, Oct 24, 2009 at 9:17 PM, James Prentice

Re: [PHP] php mail() function

2009-10-23 Thread James Prentice
? Cheers On Thu, Oct 22, 2009 at 6:24 PM, James Prentice prentice@gmail.com wrote: How would I determine my ISP's SMPT server ID? And do I need to edit main.cf in order to use that server? Also, is there a way to test the script just sending an email locally? I tried sending the email

Re: [PHP] Plotting a Line Graph

2009-10-16 Thread James Ausmus
jpgraph: http://www.aditus.nu/jpgraph/ On Fri, Oct 16, 2009 at 10:32 AM, c...@hosting4days.com wrote: (sorry about the long Subject line typo - resending) I have a data file that stores about 500 numbers in a record - meant to plot a basic line graph (left to right). The numbers can be

Re: [PHP] security/deployment issue

2009-10-11 Thread James McLean
which has the ability to connect over SFTP or SCP as well as regular FTP. It allows you to 'diff' the files as you go and view exact changes and you can transfer only the changes you want or whole files if you choose to. I would not be surprised if an Open Source equivalent exists. Cheers, James

[PHP] utf8_decode() and mixed character sets

2009-10-10 Thread James Colannino
characters in a non-unicode string to their Latin-1 equivalents? I need to be able to do this in order to sanitize a fairly common form of input. Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] utf8_decode() and mixed character sets

2009-10-10 Thread James Colannino
Andrew Ballard wrote: Have you tried iconv or mb_string? Is it a option to update the database to use UTF-8? I'll look into those functions. And, I suppose I could in fact convert my database to use UTF-8 if necessary. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Converting print_r() output to an array

2009-09-30 Thread James Colannino
about it? If not, what's a quick and easy way to parse a string and turn it into an array (I don't necessarily need the string to be in the format print_r returns). Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sorting an array of sub-arrays based on a sub-array's key

2009-09-06 Thread James Colannino
something, I didn't see a direct way to do what I want. If there were a sorting function in which I could pass as an argument the name of a function that compares two elements like qsort in C, I could do it easily. Is there a function like that in PHP? If not, what should I do? Thanks everyone! James

Re: [PHP] Sorting an array of sub-arrays based on a sub-array's key

2009-09-06 Thread James Colannino
Eddie Drapkin wrote: http://us3.php.net/uasort Exactly what I was looking for. Thanks. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread James Colannino
investigation, I found that all instances of substring\n were being replaced by substring(carriage return)\n after post. For now, I'm simply doing str_replace(chr(13), , $_POST['value']) before re-inserting it into the HTML, but I was wondering why PHP is inserting those extra characters. Thanks! James

Re: [PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread James Colannino
only ever place \n's inside double quotes in PHP, and am aware of the fact that I don't have to do that in PHP. For the life of me, I just can't figure out what's happening. Anyway, for now, filtering \r's out in PHP seems to do the trick. James -- PHP General Mailing List (http://www.php.net

Re: [PHP] accessing variable from inside a class

2009-09-04 Thread James Colannino
Lars Nielsen wrote: Hi, How do i access a variable from inside a class? Add the following statement: global $template_dir; James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP inserting carriage returns into POST values?

2009-09-04 Thread James Colannino
Nisse Engström wrote: It may be the browser that is converting those line breaks. Ah. That's probably it then. I didn't realize that was a part of the HTML standard. Thanks! James -- 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   >