Re: [PHP] Revision control?

2010-03-09 Thread James McLean
On Wed, Mar 10, 2010 at 11:14 AM, Tom Sparks wrote: > --- On Wed, 10/3/10, Phpster wrote: > >> I believe pear has some stuff for subversion. > > Don't want to use subversion or any third-party app Why re-invent the wheel? Just use SVN, existing libraries out there, easy to use, easy to access an

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread James McLean
On Thu, Feb 25, 2010 at 4:22 PM, Rick Dwyer 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 form.  The link i

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 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 internal > function to m

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 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 8:27 AM, Joseph Thayne 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 preference thes

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

2010-02-09 Thread James McLean
On Wed, Feb 10, 2010 at 2:51 PM, 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 anyone else, opens

Re: [PHP] PHP Manual problems

2010-02-09 Thread James McLean
On Wed, Feb 10, 2010 at 2:26 PM, 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 behind-the-scenes, in t

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 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 it was suppor

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 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 own in the p

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 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 how to > resolve

Re: [PHP] PHP + ODBC

2009-12-14 Thread James McLean
On Tue, Dec 15, 2009 at 10:03 AM, Philip Thompson 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 verify my > settin

Re: [PHP] Emergency! Performance downloading big files

2009-12-01 Thread James McLean
On Wed, Dec 2, 2009 at 9:18 AM, Brian Dunning 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. Are you certain you

Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread James McLean
On Fri, Nov 27, 2009 at 12:12 AM, Ashley Sheridan 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 mechanism > is part

Re: [PHP] PHP Equivalent to Java Jar or Python Eggs

2009-11-25 Thread James McLean
On Thu, Nov 26, 2009 at 11:50 AM, wrote: > > Has anyone done any work towards packaging of PHP in a manner similar to jar > or eggs? I was working on a project the other day with a lot of class files > and thought this would be a cool, simple way to deploy the app. Yes; Greg Beaver has done a

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 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 its possib

Re: [PHP] Netbeans IDE 6.5

2009-10-29 Thread James McLean
On Thu, Oct 29, 2009 at 8:13 PM, John Black 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 emerg

Re: [PHP] Netbeans IDE 6.5

2009-10-28 Thread James McLean
On Thu, Oct 29, 2009 at 4:05 AM, Skip Evans wrote: > Now, if I can just get rid of that red line at the 80 column mark. I haven't > bothered with 80 columns since I wrote assembly on a terminal connected to a > PDP-11 in college. I myself and I'm sure many others will agree that sticking to 'arou

Re: [PHP] Re: Converting tables into forms

2009-10-27 Thread James McLean
On Wed, Oct 28, 2009 at 2:37 PM, ben...@gmail.com wrote: > I am trying to take MySQL tables and use the table structure to create > HTML/PHP forms in as few steps as possible for further development. I > have a project that has hundreds of tables and requires hundreds of > forms to be created and

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

2009-10-27 Thread James McLean
On Wed, Oct 28, 2009 at 10:01 AM, tedd wrote: > I just had a script stop following this statement: > >   header("Location:users.php"); > > It *was* working, but now instead of running "users.php", it defaults to the > parent script. > > When I place exit() after it, such as: > >   header("Location

Re: [PHP] security/deployment issue

2009-10-11 Thread James McLean
On Mon, Oct 12, 2009 at 4:06 PM, Augusto Flavio wrote: > i have a doubt about my security and deployment methods. Today i manage > several projects and these projects are versioned with subversion. My > environment is something like this: > > 1. The developer make some update in the source code of

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-22 Thread James McLean
On Tue, Jun 23, 2009 at 6:17 AM, Nathan Nobbe wrote: > hmm, 2 other thoughts i have.. > > . long shot, but do you have apc.php installed on a diff domain than the > moodle app (not sure but i suspect apc.php only shows cached values for the > domain in which its currently running (i know this is so

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 10:02 AM, Jonathan Tapicer wrote: > Can you do a phpinfo(); and tell us the value of the setting > apc.filters (or every apc.* if you can)? Just curious, but I've seen > apps set that setting to avoid APC opcode caching. Certainly, however it will have to wait until I am ho

Re: [PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
On Mon, Jun 22, 2009 at 9:40 AM, Nathan Nobbe wrote: > On Sun, Jun 21, 2009 at 5:56 PM, James McLean > wrote: > did you take a look at the size of the cache you created ? Yes. Tried multiple segments and single, with cache size values between 128mb and 256mb. Also tried with stat o

[PHP] Problems with APC, possible cache-corruption?

2009-06-21 Thread James McLean
(Resend from around 1 week ago, because of no responses) Hi All, Over the weekend I setup a test of APC intending to benchmark a Moodle installation with various APC settings to see how well I could get it to perform. I successfully installed Moodle 1.9 and 2.0 under Apache 2.2.3 (installed via a

[PHP] Re: Issues with APC, cache corruption?

2009-06-16 Thread James McLean
On Mon, Jun 15, 2009 at 9:42 AM, James McLean wrote: > Hi All, > > Over the weekend I setup a test of APC intending to benchmark a Moodle > installation with various APC settings to see how well I could get it > to perform. I successfully installed Moodle 1.9 and 2.0 under

[PHP] Issues with APC, cache corruption?

2009-06-14 Thread James McLean
Hi All, Over the weekend I setup a test of APC intending to benchmark a Moodle installation with various APC settings to see how well I could get it to perform. I successfully installed Moodle 1.9 and 2.0 under Apache 2.2.3 (installed via apt on Ubuntu 9.04), and with PHP 5.2.9 compiled from sourc

Re: [PHP] counting code lines

2007-06-14 Thread James McLean
On 6/15/07, Toni Torello <[EMAIL PROTECTED]> wrote: hi guys, just supposing... which is the right way to to count the number of code lines in a php application? do you think that the raw: $ find . -name '*.php' -exec cat {} \; | wc -l can be a good estimate? I recently desired to know a simil

[PHP] Printer funtions

2002-01-21 Thread James Mclean
the default printer specified on the client machine? The docs doent eben specify this... The site mentions listing the printer in php.ini, but this is not possible in this instance, having to cater for printers that will be unknown to me. any pointers helpful! TIA. Regards, James Mclean Adam

Re: [PHP] IF Statements

2002-01-13 Thread James Mclean
or()); if(mysql_num_rows($qu)=='0') { //does not exist } else { //exists //loop through records here. } hmmz might be wrong... just came back from a few weeks of holidays. Regards, James Mclean Adam Internet Web Design Team » [EMAIL PROTECTED] | www.adam.com.au « » 199 Sturt

[PHP] PHP Cron jobs

2001-01-26 Thread James Mclean
List, i do not have access to the cron system on my server, but would like to write a script that does some general housekeeping on my database, and various other things like removing old users, sending some newsletters etc... What would be the best way of getting the script to run on a t

Re: [PHP] Ultimate Editor

2001-01-18 Thread James Mclean
yes, but i preferr vim myself. bluefish has an excellent range of php functions available though, it is fast as well and crashes not often > Has anyone tried Bluefish for Linux? > > > > > -Original Message- > > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > > Sent: January 18, 2001

[PHP] mysql error

2001-01-16 Thread James Mclean
fellas, i built and tested my site on a linux machine, debian 2.2, with mysql 3.22.32 and php 4 (late something, standard debian 2.2) and now i have it on the net. i am recieving this error, whereas it worked corretly locally Warning: Supplied argument is not a valid MySQL result resource in ./co

Fw: Re: Re: [PHP] problem with includes

2001-01-10 Thread James Mclean
> include file has extension .php in the file is some php stuff, reading out of a > mysql database and printing to page. > > page it is bieng included in also has mysql functions in it, along with php > functionas also. > > > > On Wed, 10 Jan 2001, Brian Clark wrote: > > Date: Wed, 10 Jan 2

[PHP] problem with includes

2001-01-10 Thread James Mclean
list i am having a problem with pages that use includes. i am requiring the page like this require("./comment.php"); problem is, as soon as i view the page, only the tags show up!! what could this be? i have no trouble if i comment out the pages... the pages are running on debain 2.2, php4, a

[PHP] oops forgot to add

2001-01-09 Thread James Mclean
no particular errors or anything show up. page uses php & mysql -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] mysql and php possibly causing problem

2001-01-09 Thread James Mclean
|| | now what happens, is if the file admin.php is in the admin dir, all i get in the browser is the tags , but if i put the file admin.php into the website dir, it works fine. please help!! using php4.0b3, mysql 3.22.32 apache latest debian 2.2 please help!! thanks james mclean -- PHP