[PHP] What makes a PHP expert

2007-01-18 Thread h
Dear All I often see job ads asking for a PHP expert and was wandering what you all thought makes a PHP programmer into an expert. what would you mark out as the key skills that distinguishes an expert from the ordinary i.e. OOP mastery, regular expressions etc. p.s. I am not an expert b

[PHP] PHP shell_exec

2007-02-27 Thread h
Hi I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible to target a command like this on another server? So fr

[PHP] Form trouble

2002-11-25 Thread David H
Hi, After I submited a query, if I use back then forward again the form will resubmit itself. Which I do not want. Does anyone have a solution for this problem? Thanks, David __ Do you Yahoo!? Yahoo! Mail Plus – Powerful. Affordable. Sign up now. h

RE: [PHP] Form trouble

2002-11-25 Thread David H
the data being > submitted then don't > do the insert. If there is not a record there, then > insert the record.. > > HTH > Clint > > -Original Message- > From: David H [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 25, 2002 2:21 PM > To: [EMAI

[PHP] php as shell script

2003-01-30 Thread David H
Hi, I am trying to run php as shell script. I have this: helloworld.php: I run php helloworld.php then I got this: Hello World. Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0 I am using Redhat 8, anyone knows what is the problem is? Thanks, David __

[PHP] database selection

2003-02-16 Thread H Prins
Hello, Im trying to select only one row in a mysql database (in this case a poll with the smallest pollID)... Each row has a field called "pollID" which is the primary key and is auto incremented when a new row is inserted. I could possible do the following but I think its a bit extensive

[PHP] cookie problem.

2003-03-07 Thread H M
hello. i'm new to this NG, so i don't know if this is the right mailinglist / newsgroup for my problem. if not, please let me know which one to post it to. anyway, here goes: i'm designing a new website with several php scripts. for that purpose i've configuerd my server (apache under MacOSX 10

[PHP] repost: cookie problem

2003-03-08 Thread H. Miersch
i've posted this before to the newsgroup, and i don't think it got through to the mailinglist, so i'll try again. hello. i'm new to this NG, so i don't know if this is the right mailinglist / newsgroup for my problem. if not, please let me know which one to post it to. anyway, here goes: i'm d

[PHP] Re: Cannot connect PostgreSQL 7.3.1. Using PHP thru...

2003-03-10 Thread H. Etzel
-BEGIN PGP SIGNED MESSAGE- I think the problem is the username. you have a user "administrator"? At postresql the administratzor is the user postgres. Perhaps you try first with 'reateuser' to create a new user, peraps with all rights, and then you can try to connect with this usernam

RE: [PHP] RE: ############

2002-07-09 Thread David H
"An eye for an eye makes the world go blind." Mahatma Gandhi I think we should just kick him out of the list. Notify his ISP and black list him on the web. David --- Steve Bradwell <[EMAIL PROTECTED]> wrote: > agreed. > > -Original Message- > From: Rick Emery [mailto:[EMAIL PROTECTED]

[PHP] argg - new install of php 4.3.3 on iis/w2k - post variables are empty

2003-09-09 Thread Tom H
, but as yet I'm unable to track it down. Thanks in advance for any pointers on fixing this one!! Cheers Tom H -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] win32 php on win2000 does not seem to be searching its own C:\php\dlls folder???

2003-09-16 Thread Tom H
Hi, Im using php 4.3.3 on win 2000 server, and ive enabled extensions like so; extension=php_gd2.dll extension=php_gettext.dll and set the extension_dir to C:\php\extensions and php loads the gd2 library ok, it just fails to open the gettext dll. with a "PHP Warning: Unknown(): Unable to load dyna

[PHP] include not returning true under zend debugger - possible bug?

2003-09-19 Thread Tom H
Hi, if I have a statement like this; $success = @include "somefile.inc"; under normally runnning in win2000 php 4.3.3 $success is true if the file somefile.inc exists, but when run under the server debugger, $success is false, unless somefile.inc has a return statement such as; return 1; in i

[PHP] Calculate Directory Size

2002-01-26 Thread Simon H
smime.p7m Description: application/pkcs7-mime

[PHP] ereg(i) for form input validation for SQL - tutorial?

2002-01-27 Thread Simon H
he moment. Any links for tutorials or sample scripts would be much appreciated. Thanks Simon H -- 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] Yet another regex question

2002-02-04 Thread Simon H
on is for updating a DB with SQL, and I cant find anything suitable. If there is any other advice for data input into DB's regarding security, I'd really to hear it. Thanks in advance for any help at all! Simon H -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Yet another regex question

2002-02-04 Thread Simon H
Thanks bvr This is good to know, but I still need some validation with my particular application, as below. Thanks for your time. Simon H > -Original Message- > From: bvr [mailto:[EMAIL PROTECTED]] > Sent: 04 February 2002 17:44 > To: php-general; Simon H > Subject

[PHP] RE: Yet another regex question

2002-02-04 Thread Simon H
Thanks James This is excellent. If you don't mind digging out your functions, I'd much appreciate it... > Hello, Simon.... > > "Simon H" wrote in message... > > I'm trying to validate an input form, for database INSERT/UPDATE. I'm > > lo

[PHP] Dynamic Date Select and SQL

2002-02-15 Thread Simon H
date into the SQL where ONLY the month and year are relevant. I am using Pear DB and need this to work on MySQL and Access through Pear so the SQL needs to be quite standard. The above code is not syntaxed properlyjust meant for readability. Any ideas are much appreciated as I don't ev

RE: [PHP] Dynamic Date Select and SQL

2002-02-15 Thread Simon H
s it would be great...what I would like is to get the earliest month & year from the DB table then fill in the gaps between then and now, month by month to populate the SELECT BOX Options. Thanks Simon H > -Original Message- > From: Rick Emery [mailto:[EMAIL PROTECTED]] > Se

[PHP] help!!!

2002-05-05 Thread J. H.
Can anyone here help me write a simple auto shop scheduling program? Would really appreciate it if you would help me out. Jane H. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General

[PHP] Directory Size

2002-03-05 Thread Simon H
argument (errno 22) in F:\OBS\WinPartnerWeb\www\partners\pa\obsWebsite\testsize.php on line 13 User5 0 bytes Warning: OpenDir: Invalid argument (errno 22) in F:\OBS\WinPartnerWeb\www\partners\pa\obsWebsite\testsize.php on line 13 User6 0 bytes Warning: OpenDir: Invalid argument (errno 22) in F:\OB

[PHP] Directory Size Calculation...trying again!

2002-03-05 Thread Simon H
ze.php on line 13 User3 0 bytes User4 26.33 Mb Warning: OpenDir: Invalid argument (errno 22) in F:\OBS\WinPartnerWeb\www\partners\pa\obsWebsite\testsize.php on line 13 User5 0 bytes Warning: OpenDir: Invalid argument (errno 22) in F:\OBS\WinPartnerWeb\www\partners\pa\obsWebsite\testsize.

[PHP] large object problem

2001-12-16 Thread David H
Hi all, I am trying to findout what is wrong with this script can anyone help? $dbconn = pg_connect ("cnnection string") or die ( "Error: ".pg_errormessage ($dbconn)) ;

Re: [PHP] Re: large object problem

2001-12-17 Thread David H
Manuel, Thanks for the comment. I am able to load the output correctly, if I do a import directly from the server. I am only having trouble with the upload code. Any idea from the code below? Thanks, David --- Manuel Lemos <[EMAIL PROTECTED]> wrote: > Hello, > > David H wro

[PHP] php imap functions problem

2004-09-09 Thread Markus H
Hello NG Please excuse my bad english because I come from austria. I hope you understand me... I have searched in the NG and in internet and don't found an answer to my php problem: When I use the imap functions with php all looks like good but when I will get the body or structure from an em

Re: [PHP] php imap functions problem

2004-09-09 Thread Markus H
John Holmes wrote: > From: "Markus H" <[EMAIL PROTECTED]> > >> $structure = imap_fetchstructure($mbox, msgnum ); >> Warning: imap_fetchstructure(): Bad message number in (...) on line (...) > > Is "msgnum" a constant or do you mean to have "

[PHP] Learning PHP

2009-12-12 Thread Robert H
What is a good beginners programming book for PHP? I like "dead trees" more than reading stuff on my screen, so I am looking for a book. Thanks! Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Learning PHP

2009-12-13 Thread Robert H
On 12/13/09 8:50 AM, tedd wrote: As such, the best book I've read lately has been "PHP, MySQL & Javascript" by Nixon published by O'Reilly. You can buy it on Amazon for less than $27.00 and it's well worth the price. Cheers, tedd Thanks Tedd, Bob -- PHP General Mailing List (http://www.ph

Re: [PHP] Setting up a 2 Column Display for SQL Recordset

2010-08-13 Thread chris h
Dave I would look into something like the array_slice function. http://us3.php.net/manual/en/function.array-slice.php With this function you could create two arrays - one for the left column, and one for the right column - and iterate through them simultaneously. i.e. untested: given $allNames i

Re: [PHP] It's Friday (a MySQL Question)

2010-08-13 Thread chris h
Tedd I don't know if this will resolve your issue or not, but have you looked into using mysqldump? http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html That's what I use for my backups. Chris. On Fri, Aug 13, 2010 at 6:47 PM, tedd wrote: > At 6:11 PM -0400 8/13/10, Daniel P. Brown wrote: >

Re: [PHP] login to protected directory by php

2010-08-13 Thread chris h
Based off what your saying my guess is that the request is not hitting your php script. Is the php script in the protected directory? If so what is it's file name and what url are you hitting for the test? Chris. On Fri, Aug 13, 2010 at 6:21 PM, Ali Asghar Toraby Parizy < aliasghar.tor...@gmail

Re: [PHP] Updating Multiple rows in mysql w php at once (newbie)

2010-08-13 Thread chris h
you can do it like this... on the php side this would equate to... echo $_POST['field'][0]; // prints "zero" echo $_POST['field'][1]; // prints "one" echo $_POST['field'][65]; // prints "sixty-five" echo $_POST['field']['car']; // prints "truck" provided the form is submitted via a POST met

Re: [PHP] It's Friday (a MySQL Question)

2010-08-14 Thread chris h
hoose to use I would suggest reading over the link I sent you so you can customize it's output. Chris. On Sat, Aug 14, 2010 at 8:51 AM, tedd wrote: > At 6:53 PM -0400 8/13/10, chris h wrote: > >> Tedd I don't know if this will resolve your issue or not, but have you &

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
php is not processing the file. There's a few reasons for this, but the first thing I would check is the permissions of the file. From the directory try $ ls -oa This should tell you who owns the file and what it's permissions are. You mentioned that you copied it as root, you could change it'

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
at 6:47 AM, e-letter wrote: > On 18/08/2010, chris h wrote: > > php is not processing the file. There's a few reasons for this, but the > > first thing I would check is the permissions of the file. From the > > directory try > > > > $ ls -oa > > > T

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
On Wed, Aug 18, 2010 at 7:10 AM, e-letter wrote: > On 18/08/2010, chris h wrote: > > What are the actual file permissions when you run ls -o? > > > root > What's the entire output of ls -o? > > > > Do you know if PHP is installed as an apache mod or c

Re: [PHP] method overloading in a class

2010-08-18 Thread chris h
Would something like this work for you? class foo { public function bar($arg1, $arg2, $arg3=null) { if (isset($arg3)){ { return $this->_bar3($arg1, $arg2, $arg3); } else { return $this->_bar2($arg1, $arg2); } } also you may want to look into the fu

Re: [PHP] Can't read $_POST array

2010-08-18 Thread chris h
Does $_SERVER['HTTP_METHOD'] show a GET or POST? On Wed, Aug 18, 2010 at 4:58 PM, Adam Richardson wrote: > On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson >wrote: > > > On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan < > a...@ashleysheridan.co.uk > > > wrote: > > > >> On Wed, 2010-08-18 at 13:

Re: [PHP] PHP, Soap, and WDSL

2010-09-03 Thread chris h
Alternatively you can pass the var through htmlspecialchars... echo htmlspecialchars( $response ); and for a really simple solution you can echo it inside a textarea... echo " $response "; Though you'll likely want to increase the size of the textarea! ;-) Chris. On Fri, Sep 3, 2010

Re: [PHP] a test (list is too quite)

2010-09-04 Thread chris h
Evidently all is well in the world of php... :) On Sat, Sep 4, 2010 at 12:45 PM, tedd wrote: > Hi gang: > > Just checking to see if I am still receiving postings. :-) > > Cheers, > > tedd > -- > --- > http://sperling.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubsc

Re: [PHP] a test (list is too quite)

2010-09-04 Thread chris h
On Sat, Sep 4, 2010 at 2:24 PM, Marc Guay wrote: > Can I make a facebook site using PHP? If yes, how? > > Please send me the infos privately. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I'm also trying to make a Facebook site

Re: [PHP] Hi

2010-09-06 Thread chris h
You can check the extension of the uploaded file http://www.php.net/manual/en/features.file-upload.post-method.php But to be sure that it's truly a zip file you could actually open the file with php's zip function. http://php.net/manual/en/ref.zip.php Chris. On Mon, Sep 6, 2010 at 9:46 AM, Jo

Re: [PHP] Hi

2010-09-06 Thread chris h
On Mon, Sep 6, 2010 at 1:45 PM, chris h wrote: > Per PHPdocs on $_FILES['userfile']['type']... > > "The mime type of the file, if the browser provided this information. An > example would be "image/gif". This mime type is however not checked on th

Re: [PHP] Reformat array result.

2010-09-08 Thread chris h
Paul, How are you matching the records in the "event count" array to the ones in the timestamp array? Is it safe to say that: "$timestamp[ $i ]" corresponds to "$eventCount[ $i ]"? If so, you could just iterate through the timestamp array; on each iteration create a record in a new array that ho

[PHP] Zend framework

2010-09-09 Thread chris h
Hello all, I'm starting a new project and I'm thinking about building it on Zend framework and possibly Zend server. I've only used the framework slightly and I've never really used Zend server. That being said I hear that the framework is pretty decent to work with. I want something that is st

Re: [PHP] newbie question about code

2010-09-10 Thread chris h
I would check this out to give you a decent understanding of php's oop. http://php.net/manual/en/language.oop5.php Chris. On Fri, Sep 10, 2010 at 2:27 PM, Adam Williams wrote: > I'm looking at someone's code to learn and I'm relatively new to > programming. In the code I see commands like: >

Re: [PHP] Zend framework

2010-09-10 Thread chris h
t: RE: [PHP] Zend framework > > > > http://www.php.net/manual/en/language.oop5.basic.php > > > > > -Original Message- > > > From: David Harkness [mailto:davi...@highgearmedia.com] > > > Sent: Friday, September 10, 2010 10:59 AM > > > To: rqua

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread chris h
On Mon, Sep 13, 2010 at 5:09 PM, Daevid Vincent wrote: > > > > -Original Message- > > From: tedd [mailto:t...@sperling.com] > > Sent: Sunday, September 12, 2010 9:32 AM > > To: PHP-General list > > Subject: [PHP] 1984 (Big Brother) > > > > Hi gang: > > > > I have a client who wants his em

Re: [PHP] Adjusting Session Times

2010-09-14 Thread chris h
> My thought is to adjust the session expiration in the table based on the > client currently logged in. > > I don't know if there's a better way, but I would probably just do that. The expiration would be set to whatever the client's preference is, and default to 8 hours if he doesn't have one.

Re: [PHP] 1984 (Big Brother)

2010-09-18 Thread chris h
So whenever the boss is in a meeting and his screen saver kicks on then the business shuts down. Also I think we've established that thumbdrive + database = disaster. Maybe a thumbdrive that has file with some random hash. Then create a cron that checks for the existence of that file each minute

Re: [PHP] How to store data that doesn't change?

2010-09-18 Thread chris h
When you really NEED a global resource I'm a fan of a registry class. It's a little slower but not noticeable in most cases. With a registry you can store all global data in a single, controlled area. You can also store arrays and resources instead of just strings. One down side to most registr

Re: [PHP] How to store data that doesn't change?

2010-09-18 Thread chris h
On Sat, Sep 18, 2010 at 12:37 PM, Ashley Sheridan wrote: > On Sat, 2010-09-18 at 12:21 -0400, chris h wrote: > > When you really NEED a global resource I'm a fan of a registry class. It's > a little slower but not noticeable in most cases. > > With a registry you ca

Re: [PHP] PHP Email Question

2010-09-20 Thread chris h
> Ignore the other parameters unless you are very familiar with RFCs 2821, > 2822 and their associated RFCs > I would advise against ignoring the other parameters. Doing so will pretty much guarantee having your email end up in SPAM. Instead look up the examples in the docs, or better yet use s

Re: [PHP] Copying an Object

2010-09-22 Thread chris h
ferent class - please correct me if I'm wrong. Is it possible that there's a more elegant solution to your problem that does not include a mass copy of all an object's properties? (e.g. using statics like Mr Bungle suggested or perhaps some nifty design pattern?) Chris H. On

Re: [PHP] Re: Copying an Object

2010-09-24 Thread chris h
On Fri, Sep 24, 2010 at 8:35 AM, Peter Lind wrote: > On 24 September 2010 14:22, Bob McConnell wrote: > > From: David Hutto > > > >> On Fri, Sep 24, 2010 at 4:09 AM, Gary > wrote: > >>> Daniel Kolbo wrote: > >>> > Say you have two classes: human and male. Further, say male extends >

Re: [PHP] Re: Copying an Object

2010-09-24 Thread chris h
"Gang of Four" http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612 An excellent book on OOP. Chris H. On Fri, Sep 24, 2010 at 9:34 AM, Bob McConnell wrote: > From: chris h > > > On Fri, Sep 24, 2010 at 8:35 AM, Peter Lind > w

Re: [PHP] if/elseif being treated as if/if

2010-09-24 Thread chris h
Andy I see no reason why both echo's would fire; unless this block of code gets executed multiple times. can we see more of the code? Chris H. On Fri, Sep 24, 2010 at 1:50 PM, Andy McKenzie wrote: > Hey folks, > > Here's the deal. I have the following code: > &

Re: [PHP] Array question

2010-09-25 Thread chris h
#x27;; $normal[1] = 'b'; $normal[2] = 'c'; - And yes, in your example "$results[]" would be equivalent to "$results[$j]" For more reference: http://www.php.net/manual/en/language.types.array.php Chris H. On Sat, Sep 25, 2010 at 4:31 PM, MikeB wrote

Re: [PHP] Little Parsing help...

2010-10-02 Thread chris h
Don, How far along are you? To get started something like this may work for you... preg_match_all('/[A-G]{1}#?/', $line, $matches); That SHOULD return each note of the line (you can retrieve them via the $matches array), given that there are no other upper-case characters that are not notes. Al

Re: [PHP] Scraping Multiple sites

2010-10-02 Thread chris h
On Sat, Oct 2, 2010 at 9:03 PM, Russell Dias wrote: > I'm currently stuck on a little problem. I'm using cURL in conjunction > with DOMDocument and Xpath to scrape data from a couple of websites. > Please note that is only for personal and educational purposes. > > Right now I have 5 independent

Re: [PHP] Syntax Error

2010-10-03 Thread chris h
On Sun, Oct 3, 2010 at 12:47 PM, Gary wrote: > I have just created a registration page using Webassist, and I am getting a > syntax error that I am not understanding. Anyone be able to point me in > the > right direction? > > You have an error in your SQL syntax; check the manual that correspond

[PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread chris h
I'm currently working on a project that requires the parsing of excel files. Basically the user uploads an excel file, and then a script needs to save a row in a Postgres database for each row in the excel file. The issue we are having is that when we task PHPExcel with parsing an excel file with

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread chris h
rote: > On Tue, Oct 5, 2010 at 12:39 AM, chris h wrote: > > I'm currently working on a project that requires the parsing of excel > files. > > Basically the user uploads an excel file, and then a script needs to > save a > > row in a Postgres database for

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-05 Thread chris h
"If I paste the script into a web page" What do you mean by "paste the script into a web page"? Can you tell us exactly what you are doing when you do that? Chris. On Tue, Oct 5, 2010 at 7:54 AM, Col Day wrote: > Hi Shreyas, > > Ok, as far as I can tell the script should show "This is an H

Re: [PHP] which one is faster

2010-10-05 Thread chris h
Benchmark and find out! :) What are you using this for? Unless you are doing something crazy it probably doesn't matter, and you should pick whichever you feel looks nicer / is easier to code in / etc. Chris H. On Tue, Oct 5, 2010 at 3:23 PM, saeed ahmed wrote: > $a = 'hey&#

Re: [PHP] which one is faster

2010-10-05 Thread chris h
ing(30) "By concat op: 2.2123351097107" string(27) "By string: 2.2798750400543" string(29) "By concat op: 2.1521489620209" string(27) "By string: 2.2470209598541" string(29) "By concat op: 2.1347990036011" string(27) "By string: 2.1982681751251"

Re: [PHP] which one is faster

2010-10-05 Thread chris h
On Tue, Oct 5, 2010 at 3:53 PM, Ashley Sheridan wrote: > On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: > > > On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: > > > On Tue, 2010-10-05 at 15:28 -0400, chris h wrote: > > > > > > > Bench

Re: [PHP] Variable (Class instantiation) collision

2010-10-05 Thread chris h
Just to clarify, both packages are instantiating and calling their respective database classes from the $db var, which is in the global scope. Is this correct? This is why I hate the global scope, I hate it, I hate it! On Tue, Oct 5, 2010 at 3:47 PM, Brian Smither wrote: > I am running into a v

Re: [PHP] which one is faster

2010-10-05 Thread chris h
On Tue, Oct 5, 2010 at 3:58 PM, Steve Staples wrote: > On Tue, 2010-10-05 at 20:53 +0100, Ashley Sheridan wrote: > > On Tue, 2010-10-05 at 15:46 -0400, Steve Staples wrote: > > > > > On Tue, 2010-10-05 at 20:35 +0100, Ashley Sheridan wrote: > > > > On Tue

Re: [PHP] Variable (Class instantiation) collision

2010-10-05 Thread chris h
Short of refactoring ApplicationB, can you set it up as a SOAP/REST service that AppA calls? On Tue, Oct 5, 2010 at 5:02 PM, Brian Smither wrote: > > >Just to clarify, both packages are instantiating and calling their > >respective classes from the $db var, which is in the global scope. > >Is t

Re: [PHP] Class mysqli not found

2010-10-06 Thread chris h
mysqli is set of functions not a class. The name to connect is mysqli_connect mysqli can be used as either a set of functions ( mysqli_connect(..) ) OR it can be used an an object ( new mysqli(...) ). When used as an object you just use the various functions as methods. http://www.php.net/manua

Re: RES: [PHP] Class mysqli not found

2010-10-06 Thread chris h
Are you doing phpinfo() off the CLI or via apache mod? Is it the same way you are running the actual script that's calling on mysqli? On Wed, Oct 6, 2010 at 4:58 PM, sueandant wrote: > phpinfo() includes mysqli in its detailed output: > > mysqli > MysqlI Support enabled > Client API libr

Re: [PHP] Array / form processing

2010-10-07 Thread chris h
]) && isset($value[2]['quantity']) ) { $personal_quantity = $value[2]['quantity']; } Technically the above IF's are optional, but they are proper syntax. I don't know how you are with OOP, but you may have more luck using objects instead of a complex array. Chris H.

Re: [PHP] Array / form processing

2010-10-07 Thread chris h
I don't know what the context is like, but you may be better off just using an entire form here with hidden fields. i.e. Without knowing what else is going on in your page, and how the request is being handled on the server, it's kind of hard to give exact advice. :) Chris H.

Re: [PHP] class object vs array for db table model

2010-10-12 Thread chris h
On Tue, Oct 12, 2010 at 2:38 AM, Tommy Pham wrote: > Hi everyone, > > It's been a couple years since I've did a project in PHP. The current > project I'm working on is for PHP 5.3 and I noticed a performance issue. > Is > it just me or is there a BIG difference in performance between class obje

Re: [PHP] class object vs array for db table model

2010-10-12 Thread chris h
hehe that's pretty funny; also funny oversight of mine in regards to isset()... so I guess we're both comedians today? ;-) Glad you got that worked out Tommy! Chris. On Tue, Oct 12, 2010 at 8:46 AM, Tommy Pham wrote: > On Tue, Oct 12, 2010 at 4:45 AM, c

Re: [PHP] Buffering output to allow headers late in code?

2010-10-14 Thread chris h
> > > I'm working through my class on PHP and I tried to put information from my > sign-on process in the navbar. This didn't work well, since I had to reload > the page to see it as the navbar was constructed earlier in the code than > the signon process. (Hard to explain, as we are building a "dy

Re: [PHP] floored by floor()

2010-10-14 Thread chris h
floor(32703) is different then floor(327.03 * 100). The former is an int, while the later is a float. Read those links that were sent :) Chris. On Thu, Oct 14, 2010 at 2:14 AM, Glen Fuller wrote: > On 10/13/2010 10:48 PM, Mattias Thorslund wrote: > >> Hi List, >> >> I'm having a problem wit

Re: [PHP] Text messaging from the web

2010-10-14 Thread chris h
> > You can send a text message via email: > >Verizon: 10digitphonenum...@vtext.com >AT&T: 10digitphonenum...@txt.att.net >Sprint: 10digitphonenum...@messaging.sprintpcs.com >T-Mobile: 10digitphonenum...@tmomail.net >Nextel: 10digitphonenum...@messaging.nextel.com >Cingular:

Re: [PHP] Re: Buffering output to allow headers late in code?

2010-10-14 Thread chris h
> > > Then someone said that using buffering was a bad idea and I should disable > it. > > I think it leads to poor habits like calling controller methods out of the view (essentially what you are wanting to use it for). Using it like that is asking for spaghetti code that's hard to maintain, scale

Re: [PHP] Execute a php page and don't wait for it to finish

2010-10-19 Thread chris h
What about simply having the script trip a flag that another background script checks every 60 seconds or so? Once a minutes a background script checks to see if it needs to preform any tasks. When a user hits a certain page it does an ajax request to trip this flag and immediately returns. The ne

Re: [PHP] require_once

2010-10-19 Thread chris h
> > I'm having a problem including files using Zend Framework. I have in a > controller file this > > Jim why not use the Zend autoloader? Chris.

Re: [PHP] require_once

2010-10-19 Thread chris h
l) and not worrying about requiring all your files is a plus. Chris. On Tue, Oct 19, 2010 at 10:00 AM, jim wrote: > I am following an example. Also, doesn't that require the class name to be > something like models_members? > > Jim > > > On 10/19/2010 09:40 AM, chris

Re: [PHP] simple class & constructor

2010-10-19 Thread chris h
Can you paste the index page's code here? If the page is going blank there's probably an error (syntax, bad file path, etc). If you have access you can turn error reporting on so you can actually see the error - or better yet check the php error log file. Settings for both of these are in the ph

Re: [PHP] simple class & constructor

2010-10-19 Thread chris h
Also wanted to point out that you can check the error reporting level and log file location (really all of the php's settings) by calling phpinfo(); in your code. Chris. On Tue, Oct 19, 2010 at 4:54 PM, chris h wrote: > > Can you paste the index page's code here? If t

Re: [PHP] "My truth comes out" [1]

2010-10-21 Thread chris h
settype looks like a no-go for this; per the php docs... http://php.net/manual/en/function.settype.php -- $bar = true; // boolean settype($bar, "string"); // $bar is now "1" (string) -- I think using a conditional here is the best (only?) way. $bool = (strtolower($string)=='true')? tr

[PHP] header function odd behavior

2011-06-27 Thread H Rao
Hi, I am trying to understand odd(different) behavior of the header function under two different environments. Here is the code which I am trying to execute from two different servers When executed from server1(OS X), both cookies are set in browser, but when executed from server2(Linux), only

[PHP] Why use session_register()?

2008-03-10 Thread Lamonte H
Is it necessary to use session_register()? What exactly was the point of this function if you can set sessions using $_SESSION it self?

Re: [PHP] Why use session_register()?

2008-03-10 Thread Lamonte H
So you wouldn't need to use session_start() when dealing with session_register()? On 3/10/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 10, 2008 at 12:15 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 10, 2008 at 12:08 PM, Lamonte H <[EM

[PHP] Timezone management

2008-03-11 Thread Lamonte H
After a while of studying different softwares, I've still been getting confused on how to make a timezone management script to display time in different time zones. Like right now im in -0600 CST GMT, how would I create a script that would work on any server that would allow me to display my cur

[PHP] How do I search the archives?

2008-03-11 Thread Lamonte H
I went to the page, but I didn't find a search box and what not. Is there a way to search the archives? Else when I get home I'll just create a script to DL all the links to a page then create a simple search box.

[PHP] Re: Whats faster? simplexml_load_string or simplexml_load_file?

2008-03-11 Thread Lamonte H
Daniel Brown gmail.com> writes: > snipped It worked like a charm, thanks. Made it a bit faster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php-compile error: No rule to make target

2007-06-09 Thread H. Hübel
eated the following files under my footer. than i started to typing "phpsize", "./configure..." and "make" from that directory as described in the site called above. thank you very much for any help! kind regards, h. huebel

Re: [PHP] php-compile error: No rule to make target

2007-06-09 Thread H. Hübel
Hi Daniel >That's a bit out of the scope of this list, but a simple fix > anyway. Change config.m4: > PHP_NEW_EXTENSION(hello, hello.c, $ext_shared) > > to > PHP_NEW_EXTENSION(hello, php_hello.c, $ext_shared) > Thank you very much! You made my day :) it was the wrong filename

[PHP] Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

2006-11-02 Thread John . H
My php program whose owner is root: and the folder 'test' 's owner is 'nobody'? why?should the folder belong to 'root' too? By the way,the safe mode is turned on.

Re: [PHP] Re: Frameworks

2006-11-05 Thread John . H
I have just watched the Code Igniter Video Tutorials and found thtat it is very easy to make a MVC module by using this framework,and it is very similar to the CMS I just developed.Also I still pay attention to other framework,and I hope to find a framework that can be really helpful to my work,bu

[PHP] What is 'object class introspection '?

2006-11-06 Thread John . H
It is a shortage of PHP4?Right?

[PHP] [Smarty]How smarty name its combiled file?

2006-11-23 Thread John . H
It just like "%%58^588^588C8934%%second.html.php". How does this filename be created?

[PHP] Re: is there way to pass an array( or variables) to another page without sessions or cookies?

2005-07-05 Thread H P
Try sending them via POST ""Ross"" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Can you give me a quick emaple of how this would work, with an array. > > I have an array of errors ($errors[]) for a form, when the errors are > trigger, I am trying to send them to a window which t

  1   2   3   4   >