Re: [PHP] Check if a word is in my string.

2001-08-28 Thread daniel james
if you're just looking for the 1st occurrence of the string, it's-- $check = "good"; $var = "This is a good..."; if (!strstr($var, $check)) { print("$check not found"); } also, i think strstr() is case-insensitive, so it won't be able to differentiate between 'Good' and 'good', and will NOT ret

Re: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
eger. As the following > is numeric and not an integer but rather, a string : > > > $num = '123'; > > Anyone have an authoritative answer on this? Like, > something that would > go in the manual as the official php3 is_numeric > check? > > Reg

RE: [PHP] is_numeric for php3

2001-08-28 Thread daniel james
ith... perhaps it will be of > some > help to you (even though it doesnt work) > > > function is_num($number) { > > // $x contains number, $y contains any decimal > value > list ($x, $y) = split("\.", $number); > > // if there's no decimal valu

Re: [PHP] change info in database not successful

2001-08-29 Thread daniel james
maybe somebody else will be able to come up with a much more graceful solution to this, but i think you need to forget unset()-- all it does is destroy a var within a script. your db data doesn't become a var until you fetch it, but unset() isn't a mysql function and doesn't interact with the db a

[PHP] Re: im puzzled

2001-08-29 Thread James Potts
SELECT uid FROM users WHERE uid NOT IN (SELECT uid FROM picks) HTH, James Potts "Jeremy Morano" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi , > > this is my query > > SELECT users.uid FROM users, picks WHERE us

Re: [PHP] Database Preference? -- Manuel, Michael, Miles

2001-08-30 Thread James Potts
e able to check metabase out later this evening. If it can handle the above native database language, I think it will be an asset, especially for some of our older applications. Thanx again, James Potts "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTE

[PHP] Re: A Separate Process?

2001-08-30 Thread James Potts
s * of its children and doesn't want to have them become * zombies and clog up the system. With System V all we * need to do is ignorre the signal. With BSD, however, * we have to catch each signal and execute the wait3() * system call. */ if (

Re: [PHP] Database Preference? -- Manuel, Michael, Miles

2001-08-30 Thread James Potts
Manuel, Thanx again for your help. I will check it out this evening. Sounds like you're a busy man. ;-) Keep up the good work. James Potts "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > James Potts wrote: &

[PHP] Re: just 10 characters from a string

2001-08-31 Thread James Holloway
Hi Marcos, use substr(); http://www.php.net/manual/en/function.substr.php $string = substr($string, 0, 10); James "Marcos Lloret" <[EMAIL PROTECTED]> wrote in message 019701c131f1$f57bdfa0$371c94c1@mlloret">news:019701c131f1$f57bdfa0$371c94c1@mlloret... hi to all,

[PHP] Re: mysql_fetch_array

2001-09-06 Thread James Holloway
some better formatting than this } } ?> I'd do more than just use $REMOTE_ADDR too, but you get the picture. HTH, James -- 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] Re: problem with form values

2001-09-12 Thread James Holloway
Sorry, I didn't mean it quite like that. After the user presses submit $string = htmlentities($string); // now, do whatever with the string J - Original Message - From: Niklas Lampén To: James Holloway ; Php-General Sent: Wednesday, September 12, 2001 9:52 AM Su

[PHP] Private functions

2001-09-19 Thread James Gregory
Hi, Is there a way to make a function 'private' in a php class? I'm guessing there isn't since I haven't been able to find reference to it in the php docs, but if this is the case, is there some way I can emulate private scoping? thanks, James. -- PHP G

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread James Holloway
elds the data is to go in: "INSERT INTO com (column1, column2) VALUES ('something', 'something else'), ('something again', 'something else again')"; James "VM ÁÖ¿N" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">n

[PHP] class name in static functions

2001-09-25 Thread James Gregory
HI!!! Is it possible to get the name of the class from a static member function for which no object has been instantiated? THANKS! James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] is there a more efficient query?

2004-08-06 Thread James Lobley
er_id) $result2 = mysql_query($query2) or die("could not $query2 " . mysql_error()); hth, James -Original Message- From: Brian Tully [mailto:[EMAIL PROTECTED] Sent: 06 August 2004 17:15 To: PHP Subject: [PHP] is there a more efficient query? i currently have to query a table for 5

Re: [PHP] mail() function problem

2004-09-01 Thread James Kaufman
On Wed, Sep 01, 2004 at 06:09:04PM +0300, Dre wrote: > Hi > I was trying to use the mail() function, but it did not work, maybe because > of some settings problem or something that I can't figure out > > I went online and tried to execute the following > //=

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread James Kaufman
On Wed, Sep 01, 2004 at 04:39:51PM -0400, blackwater dev wrote: > I have tried recompiling with --with-mssql and --with-mssql=/usr/include/freetds > It all appears to compile correctly, except the info page does not > reflect the config was done with mssql at all. below is a snippet of > the confi

Re: [PHP] Help With PEAR::DB Connection

2004-09-11 Thread James Kaufman
On Sat, Sep 11, 2004 at 01:48:43AM -0500, [EMAIL PROTECTED] wrote: > Hello everyone, > > I have a problem connecting to the Database. When I execute the code at the > bottom, it gives me this message: "DB Error: extension not found". It sees > the DB file and the parameters are correct. I checked

Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread James Lobley
On Thu, 16 Sep 2004 13:02:31 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Hi all. > > Hoping this might be relatively easy... > > I'm wondering if I can create a dropdown menu (ABCDE) by > using a select statement and then populating this using PHP...? > > -- > - > M

[PHP] Re: Thumbnails and access denied.

2004-09-24 Thread James Smith
James Smith wrote: Hi, I'm having a problem with loading a page full of thumbnails. I'm useing this to load each thumbnail. header("Content-type: image/jpeg"); readfile ($dir."/thumbs/".$filename); but, if your connection to the server is too fast (eg, your on a lan

Re: [PHP] ezmlm-sub or alternative

2004-10-11 Thread James McGlinn
x27;From:' header of your emails to the address of your subscriber. You can find information on the mail() function at http://www.php.net/mail James McGlinn Project Manager BCom, BSc, Zend Certified Engineer (PHP) Servers.co.nz Ltd 68 Shortland St, Auckland PO Box 3688 Shortland St, Auc

[PHP] Program that does registration, rsvp, reminders, etc??

2004-10-12 Thread James Stewart
tp://jystewart.net/webdev/invite.html James. -- James Stewart : Web Developer Work: http://jystewart.net Play: http://james.anthropiccollective.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend PHP Certification test

2004-09-29 Thread James McGlinn
number of questions which were definitely experience-based, I found the questions were generally somewhat easier than the chapter questions and practice exam questions in the guide. If you're happy with those you should have no trouble in the exam. All the best for tomorrow morning! James McGlinn

Re: [PHP] Zend PHP Certification test

2004-09-29 Thread James McGlinn
ajor version of PHP once it becomes main stream. In my opinion, the PHP 5 certification will be release in late 2005." James McGlinn Project Manager BCom, BSc, Zend Certified Engineer (PHP) Servers.co.nz Ltd 68 Shortland St, Auckland PO Box 3688 Shortland St, Auckland, New Zealand Phone: 0800

Re: [PHP] Mac OS X and Editor

2004-10-20 Thread James McGlinn
Hi Jonel, Hi guys, I just like to ask those using Macs here as to what editor and/or IDE they are using for writing PHP codes. I'm using Zend Studio (ZDE) - it works as well as any I've tried. It's significantly faster than Eclipse too (on a G4 PowerBook 1.33Ghz/512MB RAM).

[PHP] Replacing special characters with their HTML equivalents

2008-12-21 Thread James Colannino
g it's the right function for the job, how would I go about representing these special characters in PHP so that it will understand what I'm trying to do? Thanks! James -- "Black holes are where God divided by zero." --Steven Wright signature.asc Description: OpenPGP digital signature

Re: [PHP] Replacing special characters with their HTML equivalents

2008-12-21 Thread James Colannino
Daniel Brown wrote: > Welcome to the list, James. Thanks :) > Check out htmlentities(): http://php.net/htmlentities I'll check that out. James -- "Black holes are where God divided by zero." --Steven Wright signature.asc Description: OpenPGP digital signature

[PHP] unpack bug?

2009-01-15 Thread James Lucas
rror go away but causes a different result: Array ( [th] => 52905 [tl] => -2147483648 [fudge] => 0 [mac_size] => 0 ) Is this being caused by the format validator and if so should it be allowing this, or is there another way I can unpack this correctly. Regards James

[PHP] Re: unpack bug?

2009-01-15 Thread James Lucas
Nathan Rixham wrote: it's the pack offset that's wrong; remove all together and you'll get the correct results: $d = unpack('nth/Ntl/nfudge/nmac_size', $data); Thanks, thought I had already tried that but obviously not. Cheers James -- PHP General Mailing List

Re: [PHP] Re: 64bit vs. 32bit

2009-01-19 Thread James Colannino
protected mode, so the way DOS is run now is via VM software like KVM, VMWare, Xen, etc. Not sure how Wine was implemented though, so I could be very wrong :) James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with MySQL

2009-02-13 Thread James Colannino
to document what the data types were (DOH!) I'm sure there's something, but I wasn't quite sure what to google for, so I wasn't really able to turn up anything. Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread James Ausmus
fensive. > > > Anyway, nice meeting you all, even it was on such terms. > > God Bless. > > XOXOXOXO > OK, umm... Wow. Bi-polar, anyone??? I'm getting whiplash reading this thread. Not to say it isn't entertaining... ;) -James > > > > -Origina

RE: [PHP] ftp_put issues

2009-04-16 Thread James Hill
e DU1.pdf along with ftp_chdir. The local file path is being passed through a html form and consists of L:/mypdfs/testpdf.pdf I've disabled my firewall to try that to no avail. James -Original Message- From: j's php general [mailto:php-generals-php-dot-...@jhive.net]

RE: [PHP] ftp_put issues

2009-04-16 Thread James Hill
Ah ok, I guess that would explain it. Thanks for your help :-) -Original Message- From: j's php general [mailto:php-generals-php-dot-...@jhive.net] Sent: Thursday, April 16, 2009 10:39 AM To: James Hill Cc: php-general@lists.php.net Subject: Re: [PHP] ftp_put issues On Thu, Apr 16,

Re: [PHP] Directing form to different handlers?

2009-06-01 Thread James Ausmus
t you have (and yes, everyone has them... ;) ) -James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Issues with APC, cache corruption?

2009-06-14 Thread James McLean
were using and due to time constraints simply ran without APC and didn't investigate further. Has anyone seen this issue in the past and perhaps even rectified it? Any information would be appreciated. Cheers, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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] Persistent data between two executions

2009-06-16 Thread James Colannino
curity and relative efficiency into account. I would want to make sure that data isn't shared between multiple concurrent sessions, which would be a bad thing for what I'm doing. my oh-so-limited knowledge of PHP is shining through, I think :) Thanks so much! James -- PHP Gener

Re: [PHP] Persistent data between two executions

2009-06-16 Thread James Colannino
on would be to design things such that as little data as possible is serialized between page refreshes. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-06-21 Thread James McLean
er at the time we assumed it was an issue with the framework we were using and due to time constraints simply ran without APC and didn't investigate further. Has anyone seen this issue in the past and perhaps even rectified it? Any information would be appreciated. Cheers, James -- PHP Ge

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

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

[PHP] Off Subject / Feedback Needed

2009-07-06 Thread Karl James
. Karl James <mailto:karlja...@tampabay.rr.com> karlja...@tampabay.rr.com My Website: <http://www.theufl.com> www.theufl.com

[PHP] Object type determined at runtime

2009-07-06 Thread James Colannino
like this: $object = new $objType(); Where $objType is the type of object, which must be determined at runtime. I'm sure the syntax I have above is incorrect. My question is, is there any way that I can determine the object's type at runtime and do the same type of thing? Thanks! Ja

Re: [PHP] Object type determined at runtime

2009-07-06 Thread James Colannino
Ah, thanks very much. That was very helpful! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Manual in PDF format

2009-07-07 Thread James Colannino
Richard Quadling wrote: > $ pecl install haru > [...] > $ phd -f pdf -t phppdf -d .manual.xml I installed haru, yet when I try the phd command, I get a "class 'HaruDoc' not found" error :( Has this happened to anyone else? James -- PHP General Mailing

[PHP] HTTP headers and include()

2009-07-09 Thread James Colannino
s why HTTP headers were being sent out by my includes. I'm sure there's a good reason. I'm just very curious :) Thanks very much in advance. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP headers and include()

2009-07-10 Thread James Colannino
Eddie Drapkin wrote: > HTTP headers are sent and finalized after the first bit of output. I > had the same problem before and it turned out to be because I had a > close tag "?>" at the end of a file followed by some whitespace. The > solution was to remove the ?> from the end of all the files

Re: [PHP] HTTP headers and include()

2009-07-12 Thread James Colannino
om one of my includes, even though I wasn't yet printing anything to the browser. That's why I was so confused. I've been following what tedd said in an earlier post (to make session_start() your first line of code) and haven't had a problem since. James -- PHP Gene

Re: [PHP] reason for a "Notice:.." on one site but not another? (Same code.)

2009-08-09 Thread James Colannino
John Butler wrote: > if($_POST['UserWishesDateRange']) { //--line 79 > echo'submitted'; > } else { > echo'NOT submitted'; > } Try this instead: if (isset('UserWishesDateRange'])) { // [...

[PHP] Using fopen on a site with popups

2009-08-14 Thread James Colannino
Hey everyone! I have a question. I know that you can use fopen to open not just local files, but also files via HTTP. My question is, assuming you're attempting to open a page that has popups, is there anyway to get at the actual content underneath the popup? Thanks! James -- PHP Ge

Re: [PHP] Re: Using fopen on a site with popups

2009-08-14 Thread James Colannino
effect on the content I read. Me needs to get some sleep :) James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache 2.2 + PHP5.2 + php_oci8.dll

2006-12-28 Thread james tanhs
Hi Roman, Why can't you use the newest client? Bcoz 10g client doesn't connect to mine server runing on 8i. Which procedure is it? Use depends.exe to find out what other libraries you're missing. Noting is missing, but when it starts it prompts that error. Tq On 12/23/06, Roman Neuhauser <[EMAIL

[PHP] preg_match

2007-02-06 Thread James Lockie
I am trying to use this code to display a button at the root but it always displays the button. :-( if (! (preg_match( "/$\/index.php/", $_SERVER['PHP_SELF'] ))) { # display a button -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match

2007-02-06 Thread James Lockie
Myron Turner wrote: James Lockie wrote: I am trying to use this code to display a button at the root but it always displays the button. :-( if (! (preg_match( "/$\/index.php/", $_SERVER['PHP_SELF'] ))) { # display a button You got the end-of-string character ($

[PHP] reversing utf-8 string

2007-02-21 Thread James Tu
There doesn't seem to be a multibyte equivalent of strrev(). Is there an easy way to reverse the order of "characters" in a string w/o traversing the "characters" backwards and creating a new string by concatenating the "characters"? -James -- PHP Gener

[PHP] need help on project-Creating Database

2007-03-28 Thread Karl James
seeing it please let me know so I can email you off the list, as I am not able to send out attachments. :-) Your alls help would be greatly appreciated Karl Karl James ("TheSaint") <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED

[PHP] finding a particular record within a MySQL result set

2007-04-04 Thread James Tu
at Joe is from Maine. I want to do a query of all employees from Maine, ordered by hiring date, and figure out where Joe falls in that list. (i.e. which record number is he?) -James Here's my new plan of attack... Right now I'm trying to use PHP to do a binary search on the r

Re: [PHP] finding a particular record within a MySQL result set

2007-04-04 Thread James Tu
I've looked at those, but both approaches requires traversing through the entire mysql result set to create another array ( could be memory intensive if the result set is large...100,000 ? ) -James On Apr 4, 2007, at 1:39 PM, Jim Moseby wrote: You will probably get a better approach

[PHP] Help with table in database and login scripts.

2007-04-07 Thread Karl James
Then once register they should be taken to login screen then once logged in they should be taken to their team page IE cougars.php or something like that. Can you all please give me a how to write a script on that and let me know if I did the table right? Karl James ("TheSaint") [EMAIL

[PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread James Colannino
y PHP is inserting those extra characters. Thanks! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-09-04 Thread James Colannino
le representations of newline. I 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 tri

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

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

2009-09-06 Thread James Colannino
in PHP? If not, what should I do? Thanks everyone! James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] Converting print_r() output to an array

2009-09-30 Thread James Colannino
I go 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] utf8_decode() and mixed character sets

2009-10-10 Thread James Colannino
ranslate unicode 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.p

Re: [PHP] security/deployment issue

2009-10-11 Thread James McLean
ave found it to be an excellent piece of software for this task. I use Beyond Compare 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

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, 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 imported into a > reco

[PHP] php mail() function

2009-10-22 Thread James Prentice
I'm trying to use the php mail() function to send a mail within a php script. This is using PHP 5.2.4 and Ubuntu Hardy Heron linux. The script runs fine and the return value of the mail function is TRUE, but the mail is never received. I'm trying to send an email to my gmail account via the local s

Re: [PHP] php mail() function

2009-10-22 Thread James Prentice
 You should also be able to setup PHP > to use your ISP's SMTP server and never touch the SMTP service on your > local machine (if you don't feel like playing with Postfix). > > On Thu, Oct 22, 2009 at 3:56 PM, James Prentice > wrote: >> I'm trying to use th

Re: [PHP] php mail() function

2009-10-23 Thread James Prentice
A7010A: to=, relay=none, delay=0.03, delays=0.02/0/0/0.01, dsn=5.0.0, status=bounced ([shawmail.vc.shawcable.net]) Oct 23 21:00:31 homemade postfix/qmgr[7045]: 75517A7010A: removed Have I edited main.cf incorrectly, or are there other values that need to be edited? Cheers On Thu, Oct 22, 2009 at

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: htt

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
, from userid 33) id 19BE8A70109; Sat, 24 Oct 2009 13:57:26 -0700 (PDT) To: x...@shaw.ca I will investigate how to change the loglevel of postfix, because right now the error messages don't seem very helpful (at least to me). Cheers On Sat, Oct 24, 2009 at 1:27 PM, John Black wrote: &g

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
olof Ljungmark 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 >> >

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
; ... mail($to, $subject, $msg, '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 i

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

2009-10-27 Thread James McLean
is includes spaces after closing ?> in any included files before the header() 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
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] Netbeans IDE 6.5

2009-10-28 Thread James McLean
. Zend would (mostly) 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] 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] 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] php mail() function

2009-11-25 Thread James Prentice
Thanks for all your help. On Mon, Oct 26, 2009 at 4:37 AM, Bob McConnell 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 gettin

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 wrote: > Afte

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] 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] 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 + 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] 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] 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] 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] 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] 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 wrote: > I remembered a coworker found an online

Re: [PHP] database abstraction layer

2010-02-02 Thread James Colannino
ation, 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] 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] 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

[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
in mysql. I would assume that the reason 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&

<    4   5   6   7   8   9   10   11   12   13   >