Re: [PHP] A Strange Problem

2013-06-21 Thread tamouse mailing lists
On Jun 20, 2013 7:20 PM, "Tedd Sperling" wrote: > > On Jun 20, 2013, at 7:12 PM, Stuart Dallas wrote: > > Whatever the reason for this, I'd recommend you always specify a path relative to the current script. > > > > In PHP 5.3+: > > > > $fcontents = file(__DIR__.'/docs/admin-email.txt'); > > > >

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread tamouse mailing lists
On Thu, May 30, 2013 at 8:45 PM, Stephen wrote: > On 13-05-30 09:36 PM, dealTek wrote: >> >> Hi all, Thanks for your help... >> >> I'm looking for a very good, pre made, working PDO and/or mysqli database >> class (in a wrapper) - to get started with, that has all the basic needs >> like UPDATE -

Re: [PHP] Re: limit access to php page

2013-05-30 Thread tamouse mailing lists
On May 30, 2013 8:10 AM, "Jim Giner" wrote: > > On 5/29/2013 9:38 PM, tamouse mailing lists wrote: > >> >> Okay, first off, your application *has* to have some entry point that >> *is* accessible to a browser; otherwise nothing will find it. >> >

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 8:20 PM, Glob Design Info wrote: > On 5/29/13 6:14 PM, Jim Giner wrote: >> >> On 5/29/2013 7:11 PM, Tim Dunphy wrote: >>> >>> Hello list, >>> >>> I've created an authentication page (index.php) that logs into an LDAP >>> server, then points you to a second page that some

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 8:14 PM, Jim Giner wrote: > On 5/29/2013 7:11 PM, Tim Dunphy wrote: >> >> Hello list, >> >> I've created an authentication page (index.php) that logs into an LDAP >> server, then points you to a second page that some folks are intended to >> use to request apache redirect

Re: [PHP] limit access to php page

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 6:11 PM, Tim Dunphy wrote: > Hello list, > > I've created an authentication page (index.php) that logs into an LDAP > server, then points you to a second page that some folks are intended to > use to request apache redirects from the sysadmin group (redirect.php). > > Ever

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Sat, May 25, 2013 at 3:21 AM, tamouse mailing lists wrote: > On Sat, May 25, 2013 at 3:14 AM, tamouse mailing lists > wrote: >> On Fri, May 24, 2013 at 2:06 AM, Radek Krejča >> wrote: >>> {"result_ok":true,"result_message":null,"client_na

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Sat, May 25, 2013 at 3:14 AM, tamouse mailing lists wrote: > On Fri, May 24, 2013 at 2:06 AM, Radek Krejča wrote: >> {"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"} > > How odd -- when i run that through js

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Fri, May 24, 2013 at 2:06 AM, Radek Krejča wrote: > {"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"} How odd -- when i run that through json_decode, it works fine: $d = '{"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"}'; echo "Initial: $d\n"

Re: [PHP] Random

2013-05-23 Thread tamouse mailing lists
On Thu, May 23, 2013 at 3:51 PM, Last Hacker Always onpoint wrote: > Hey I need code for random number 1-30 for my site. function rand_from_1_to_30() { return 4; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread tamouse mailing lists
Back to the OP's request, Ken Pugh's "Interface Oriented Design" goes quite a long way in describing OO* and directly to the heart of why interfaces make so much sense as a way of designing your code. It does not show PHP examples, it tries to remain agnostic to language.

Re: [PHP] Re: Sync CSV files with MySQL Database.

2013-05-12 Thread tamouse mailing lists
On Sat, May 11, 2013 at 9:41 AM, Jim Giner wrote: > On 5/11/2013 12:57 AM, Carlos Sura wrote: >> >> Hello mates, >> >> Perhaps this seems to be a silly question, but it is not to me, here is >> the >> scenario: >> >> I know how to import CSV files with PHP to a MySQL database, the thing is, >> tha

Re: [PHP] undef func

2013-05-10 Thread tamouse mailing lists
On Fri, May 10, 2013 at 12:23 PM, Daniel Brown wrote: > On Fri, May 10, 2013 at 6:15 AM, georg wrote: >> Hello ! >> >> im increasingly frustrated on my effort to get PHP/ODBC going with Apache on >> Linux (did it on MS XP, that was trixy but this is worse, nothing seem to be >> correct; utiliti

Re: [PHP] filesize question

2013-05-08 Thread tamouse mailing lists
ove offending code without removing the entire file... I don't know anything about joomla. > tamouse mailing lists wrote: >> >> On Tue, May 7, 2013 at 8:16 AM, Curtis Maurand wrote: >>> >>> Hello, >>> I'm feeding a filename to a php script on the c

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 9:42 PM, tamouse mailing lists wrote: > On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard > wrote: >> [snip]Globals being used in a function. [/snip] >> >> *smacks forehead* > > > > It bites me all the time, too. (Might be worth a refacto

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard wrote: > [snip]Globals being used in a function. [/snip] > > *smacks forehead* It bites me all the time, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] filesize question

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 8:16 AM, Curtis Maurand wrote: > Hello, > I'm feeding a filename to a php script on the command line (command line > program). I run the following against it: > > $inputline = fread($inputfile, filesize($argv[1])); > > I'm getting an error complaining that the second parame

Re: [PHP] generate onfly PDF

2013-05-04 Thread tamouse mailing lists
On Sat, May 4, 2013 at 3:31 PM, Rafnews wrote: > On 04.05.2013 23:05, Tedd Sperling wrote: >> >> On May 4, 2013, at 5:00 PM, Ashley Sheridan >> wrote: >>> >>> Rafnews wrote: >>> Is there a solution to generate onfly PDF from HTML page, and from data user typed in form (let's say like a

Re: [PHP] Load testing an app

2013-04-24 Thread tamouse mailing lists
On Tue, Apr 23, 2013 at 8:04 AM, Andrew Ballard wrote: > On Tue, Apr 23, 2013 at 2:29 AM, Adam Richardson wrote: >> On Mon, Apr 22, 2013 at 10:41 PM, Andrew Ballard wrote: >>> The other developer in our office spent some time profiling the site with >>> xdebug and found that an exec() call to ne

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
After all this, the OP remains unenlightened. This is just a waste of time. "You are doing this wrong." "There are existing tools that do what your client wants." "A command line tool is not the same as the php library." are all met with "I don't want to learn, just tell me what isn't working." To

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact > same values into mysql_connect as s

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 9:49 AM, Stuart Dallas wrote: > On 21 Apr 2013, at 15:46, tamouse mailing lists > wrote: > >> On Sun, Apr 21, 2013 at 9:12 AM, Tedd Sperling >> wrote: >>> On Apr 21, 2013, at 9:32 AM, Stuart Dallas wrote: >>>> However, a mor

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 9:12 AM, Tedd Sperling wrote: > On Apr 21, 2013, at 9:32 AM, Stuart Dallas wrote: >> However, a more important question for me is why you are doing this. You say >> you are aware of the security implications, and that you'll "deal with that >> later," but I question how

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 5:20 AM, Glob Design Info wrote: > I am aware of the security implications. I will deal with that later. Right > now I am just trying to get the WS architecture working. I'm wondering, if you can get it to work with the creds in the script, why do you have to have them co

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread tamouse mailing lists
On Sat, Apr 20, 2013 at 1:51 PM, Angela Barone wrote: > I've written a script that logs all visits to a web site, complete > with referrer and IP address. It also logs all 4xx errors. What I'd like to > add to this is, if someone adds extra code after the page_name.php, to be > able t

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sat, Apr 20, 2013 at 9:37 PM, Glob Design Info wrote: > Night now this is just a test server. On the real thing I'll do it right. > > > On 4/20/13 10:58 AM, Tedd Sperling wrote: >> >> On Apr 20, 2013, at 11:44 AM, Stuart Dallas wrote: >> >>> On 20 Apr 2013, at 16:25, Jim Giner wrote: >>>

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread tamouse mailing lists
This will be brief as I'm on a tablet... On Apr 19, 2013 5:53 PM, "dealTek" wrote: > > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting

Re: [PHP] mysql_connect noob question

2013-04-20 Thread tamouse mailing lists
gt; >>>> Sorry. The error displayed is: > >>>> > >>>> *Warning*: mysql_connect() [function.mysql-connect > >>>> <http://localhost/wservices/function.mysql-connect>]: Access denied > for > >>>> user ''@'ip70

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 4:04 PM, dealTek wrote: > > On Apr 19, 2013, at 1:33 PM, Sebastian Krebs wrote: > >> A "webpage" is a file, that (usually) a browser downloads and parses. You'll >> do exactly the same :-) I don't know exactly, but you can try to pass the >> URL directly to simplexml_loa

Re: [PHP] mysql_connect noob question

2013-04-19 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact > same values into mysql_connect as s

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
On Thu, Apr 11, 2013 at 1:12 PM, Rafnews wrote: > On 11.04.2013 19:19, Jim Giner wrote: >> >> On 4/11/2013 10:48 AM, Rafnews wrote: >>> >>> On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently n

Re: [PHP] search array

2013-04-11 Thread tamouse mailing lists
On Thu, Apr 11, 2013 at 1:37 PM, Russell Brackett wrote: > I need help with this code to echo all items in the general database and not > just the fields I'm searching for. > > > // filter function > function cleanInput($input) { > > $search = array('OEM Name, Category, OEM N

Re: [PHP] how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
On Apr 11, 2013 6:35 AM, "Rafnews" wrote: > > Hi, > > I would like to insert a piece of HTML code inside several pages. > all pages are differently named. > > i need in each page to find a particular tag, let's say ... (so based on its ID and tagname) and inside it to insert my PHP/HTML code. > >

Re: [PHP] webform spam prevention

2013-04-04 Thread tamouse mailing lists
On Apr 4, 2013 3:57 AM, "Ashley Sheridan" wrote: > > Captchas are not very accessible. Not only do you often need a near super-human ability to identify the scrawl that's displayed, but if you can't actually see very well to start with (maybe your vision isn't perfect or you can't see at all) then

Re: [PHP] webform spam prevention

2013-04-03 Thread tamouse mailing lists
I'd love to learn how to do that WITHOUT A MOUSE On Wed, Apr 3, 2013 at 8:10 PM, jomali wrote: > On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists > wrote: >> >> These folks might have direction for you: http://textcaptcha.com/really >> >> (And my apologi

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-03 Thread tamouse mailing lists
Sorry, in all of that, I don't see what the question is? On Wed, Apr 3, 2013 at 3:27 PM, Jose Nobile wrote: > Hi, > > In Apache 2.2 forward all request that > point to phisical .php file to PHP-FPM is as follow: > > LoadModule fastcgi_modu

Re: [PHP] webform spam prevention

2013-04-03 Thread tamouse mailing lists
These folks might have direction for you: http://textcaptcha.com/really (And my apologies for top posting. It seems Google has forced their new mail compose widget upon me. I can no longer use my own editor to smoothly and easily edit message, and Google forces the top post.) On Tue, Apr 2, 2013

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 8:34 PM, Ashley Sheridan wrote: >>> > On Thu, Mar 14, 2013 at 7:02 PM, >>georg >>> >>> I have tried to find a way to check if a character string is >>> >>> possible to >>> >>> test whether it is convertible to an intger ! > The op wasn't about casting a str

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 10:36 AM, Jim Giner wrote: > On 3/15/2013 10:11 AM, georg wrote: >> >> Actually I think you are right; >> >> what I would have liked (as a natural extension of the depression:) >> is actually a tag that stands without the >> and which as target="framename" instead of

Re: [PHP] PHP context editor

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 4:03 PM, Ashley Sheridan wrote: > On Fri, 2013-03-15 at 12:05 +0100, Sebastian Krebs wrote: > >> 2013/3/15 Karim Geiger >> >> > Hi Georg, >> > >> > On Thu, 2013-03-14 at 23:10 +0100, georg wrote: >> > > hello, >> > > annyone knows of some good PHP context editor freeware ?

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 4:00 PM, Ashley Sheridan wrote: > ** > On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: > > On Fri, Mar 15, 2013 at 3:55 AM, Peter Ford wrote: > > On 15/03/13 06:21, Jim Lucas wrote: > >> > >> On 3/14/2013 4:05 PM, Ma

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 9:11 AM, georg wrote: > Actually I think you are right; > > what I would have liked (as a natural extension of the depression:) > is actually a tag that stands without the > and which as target="framename" instead of the frame defining > name="framename" > and which j

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 5:00 AM, georg wrote: > I have a need to make a pure "display" in a (HTML tagged area defined by) > FRAME > now so far I have only succeeded in making output into a frame by landing > a clicked tag to open the new doc (href or src) in a specified frame. > Possibly its not

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-14 Thread tamouse mailing lists
On Mar 13, 2013 1:52 PM, "Ashley Sheridan" wrote: > > On Wed, 2013-03-13 at 19:24 +0100, Marco Behnke wrote: > > > Am 13.03.13 12:57, schrieb Gary: > > > ma...@behnke.biz wrote: > > > > > >> Do us all a favor abnd stay away from open source if you do not honor > > >> the work > > >> us wannabes pu

Re: FW: [PHP] Accessing Files Outside the Web Root

2013-03-14 Thread tamouse mailing lists
On Mar 13, 2013 7:06 PM, "David Robley" wrote: > > "Dale H. Cook" wrote: > > > At 05:04 PM 3/13/2013, Dan McCullough wrote > > : > >>Web bots can ignore the robots.txt file, most scrapers would. > > > > and at 05:06 PM 3/13/2013, Marc Guay wrote: > > > >>These don't sound like robots that would re

Re: [PHP] Re: Populate input from another form

2013-03-08 Thread tamouse mailing lists
On Fri, Mar 8, 2013 at 9:17 PM, Jim Giner wrote: > On 3/8/2013 2:45 PM, John Taylor-Johnston wrote: >> >> I have a form >> >> > target="_CRTP">> type="submit"> >> >> OnSubmit, I want to include data from another form (form="DPRform"). >> >> > value=""> >> >> I should use a hidden identical field a

Re: [PHP] PHP 5.4 Help

2013-03-06 Thread tamouse mailing lists
On Wed, Mar 6, 2013 at 10:41 AM, Great Recordings, LLC wrote: > > > I need help from someone knowledgeable about PHP and I hope I am seeking it > in the right place. I beg your forgiveness if this is not the right place. > > I purchased a software (1-2-3 Music) a few years ago and have used part

Re: [PHP] Strange Error calling method of wsdl based SOAP client

2013-03-06 Thread tamouse mailing lists
On Wed, Mar 6, 2013 at 1:36 PM, Tobiah wrote: > I'm talking to the Membersuite SOAP api. They have a Get() method > and a Save() method for objects. I call Get(), and get an object > back representing an individual. I pass it back to Save() and I > get this: > > Fatal error: Uncaught SoapFault

Re: [PHP] PHP Web Developer Opportunity

2013-03-06 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 6:42 PM, Matijn Woudt wrote: > On Wed, Mar 6, 2013 at 1:34 AM, Tedd Sperling wrote: > >> >> On Mar 5, 2013, at 7:18 PM, Matijn Woudt wrote: >> On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling wrote: >> > On Mar 4, 2013, at 3:10 PM, Allison Garcia >> wrote: >> > -snip- >> >

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-03-05 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 5:55 PM, tamouse mailing lists wrote: > On Tue, Mar 5, 2013 at 12:42 PM, Barry Smith wrote: >> I know less about WordPress than I do about Joomla, but I did notice a >> template site that I cannot find any support for (cool templates) which >> sup

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-03-05 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 12:42 PM, Barry Smith wrote: > I know less about WordPress than I do about Joomla, but I did notice a > template site that I cannot find any support for (cool templates) which > supports both Joomla and WordPress, as well as HTML/CSS. > I know that there

Re: [PHP] Re: Open form in new window

2013-03-05 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 8:37 AM, Jim Giner wrote: > On 3/4/2013 11:04 PM, tamouse mailing lists wrote: >> >> I would like to just take a step back and ponder what the user >> experience of this will be. Click a submit button, one of *many* as >> the OP says, and a new br

Re: [PHP] Re: Open form in new window

2013-03-04 Thread tamouse mailing lists
I would like to just take a step back and ponder what the user experience of this will be. Click a submit button, one of *many* as the OP says, and a new browser window opens? I don't think that is how most people experience the web these days. Technicalities of how one does this notwithstanding, I

Re: [PHP] Not counting my own page visits

2013-03-04 Thread tamouse mailing lists
On Mon, Mar 4, 2013 at 5:58 PM, Ashley Sheridan wrote: > On Tue, 2013-03-05 at 10:19 +1030, David Robley wrote: > >> Angela Barone wrote: >> >> > On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: >> >> You can manually write a cookie on your machine, or use a special script >> >> that only you v

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread tamouse mailing lists
On Sat, Mar 2, 2013 at 5:04 AM, Michael CALDER wrote: > > -- G'day , G'day, cobber! > Here is the current contact2.php file - but the SUBJECT only shows as > RVRA Contact Form - Others have addressed that, as well as not needing the stripslashes. If you will permit, I have a few other comments.

Re: [PHP] Introduction ... !

2013-03-02 Thread tamouse mailing lists
On Sat, Mar 2, 2013 at 10:35 AM, Jay Blanchard wrote: > [snip] > > Speak for yourself, I'm an autumn turkey! -Stuart > [/snip] > > My body is an Autumn turkey, my head says differently - save on certain > mornings when too much popping and cracking occurs. See, you can't really call yourself old

Re: [PHP] Holding "datetimes" in a DB.

2013-03-01 Thread tamouse mailing lists
On Fri, Mar 1, 2013 at 11:53 AM, Matijn Woudt wrote: > On Fri, Mar 1, 2013 at 11:49 AM, Richard Quadling wrote: > >> Hi. >> >> My heads trying to remember something I may or may not have known to start >> with. >> >> If I hold datetimes in a DB in UTC and can represent a date to a user >> based up

Re: [PHP] Introduction ... !

2013-03-01 Thread tamouse mailing lists
On Fri, Mar 1, 2013 at 11:56 AM, Daniel Brown wrote: > On Fri, Mar 1, 2013 at 12:54 PM, Jim Giner > wrote: >> >> What gives you such optimism? I recently saw a list of languages in use and >> PHP has dropped quite a bit over the last 5 or more years. >> Being a relative newbie myself, I'm happy

Re: [PHP] Close enough to Friday...

2013-03-01 Thread tamouse mailing lists
On Thu, Feb 28, 2013 at 9:59 PM, Adam Richardson wrote: > On Thu, Feb 28, 2013 at 10:19 PM, tamouse mailing lists > wrote: >> >> Congratulations on ditching the Dreamweaver Templates! >> >> Now, as to preprocessing: how does this benchmark out? Have you >>

Re: [PHP] Close enough to Friday...

2013-02-28 Thread tamouse mailing lists
On Thu, Feb 28, 2013 at 7:50 PM, Adam Richardson wrote: > Just wanted to toss this out as something I quick developed in case it > could help others: > https://github.com/AdamJonR/PreHP > > Essentially, I just wanted a quick pre-processor that would work with > PHP so I could limit some of the pro

Re: [PHP] Stupid question

2013-02-27 Thread tamouse mailing lists
On Wed, Feb 27, 2013 at 2:42 AM, Sebastian Krebs wrote: > 2013/2/27 tamouse mailing lists >> Well, *I* have a stupid question: is $lhv =& expr the same as $lhv = &expr >> ?? > > Yes :) Because an operator "=&" doesn't exists, thus the l

Re: [PHP] Arrays

2013-02-26 Thread tamouse mailing lists
On Mon, Feb 25, 2013 at 9:51 PM, Karl DeSaulniers wrote: > Never mind. I found a different function that reads out the children as well > into the array. > > > function xml_parse_into_assoc($data) { > $p = xml_parser_create(); > >

Re: [PHP] Stupid question

2013-02-26 Thread tamouse mailing lists
On Tue, Feb 26, 2013 at 4:41 PM, Jim Lucas wrote: > On 02/26/2013 01:27 PM, Curtis Maurand wrote: >> >> I have the following: >> >> $dsn = "mysqli://$username:$password@$hostname2/$database"; >> $options = array( >> 'debug' => 3, >> 'result_buffering' => false, >> ); >> $dbh =& MDB2::factory($dsn,

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-02-26 Thread tamouse mailing lists
Have you considered setting this up in wordpress? On Tue, Feb 26, 2013 at 5:14 PM, Barry Smith wrote: > Yes, Jim, and "tamouse", > > Apologies for the length of this response. > > I am asking for help organizing the rewrite of the site, from a LOT of > HTMLs that have 90% in common, containing a

Re: [PHP] Big File Upload how to catch stream

2013-02-25 Thread tamouse mailing lists
On Sun, Feb 24, 2013 at 1:10 PM, Wim wrote: > > Hello, > > I have been looking how to upload big files more than 1GB , with php but it > doesn't work well. I guess php POST multipart method is to memory consuming. > Is there a way , like in the apache.commons to catch the stream and handle > it ?

Re: [PHP] File Upload MultiPart

2013-02-24 Thread tamouse mailing lists
On Sun, Feb 24, 2013 at 1:07 PM, wrote: > Hello, > > I have been looking how to upload big files more than 1GB , with php but it > doesn't work well. I guess php POST multipart method is to memory consuming. > Is there a way , like in the apache.commons to catch the stream and handle > it ? > I'v

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-02-22 Thread tamouse mailing lists
On Fri, Feb 22, 2013 at 1:48 PM, wrote: > Intro -- > Sorry to post in php.general . Just found the newserver, and I'm still > trying to figure out where to post this question. > Thus, I posted in .general ... either to get help or find out in which > newsgroup I should post my question. Thank y

Re: [PHP] parsing select multiple="multiple"

2013-02-21 Thread tamouse mailing lists
On Thu, Feb 21, 2013 at 8:46 AM, Jim Giner wrote: > >> >> I *have* heard claims that something like this is preferrable, though: >> >> if (FALSE === $variable) >> > I believe I read a comment somewhere once that writing your IF statements > that way helped to trigger an error message when the code

Re: [PHP] parsing select multiple="multiple"

2013-02-20 Thread tamouse mailing lists
On Tue, Feb 19, 2013 at 1:02 PM, John Taylor-Johnston wrote: > > tamouse mailing lists wrote: >>> >>> >I hate arrays. :D >> >> Here's a small snippet showing how it works, I hope: >> >> foreach ($DPRpriority as $item => $value) { >&

Re: [PHP] phpinfo()

2013-02-20 Thread tamouse mailing lists
On Wed, Feb 20, 2013 at 1:31 PM, Stuart Dallas wrote: > -Stuart > > -- > Sent from my leaf blower > -- Did you get the 4G model, or is this just the WiFi version? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread tamouse mailing lists
On Mon, Feb 18, 2013 at 7:28 PM, John Taylor-Johnston wrote: > >>> >>> 1. Crimes Against >>> Persons >>> 2. Disturbances >>> 3. Assistance / >>> Medical >>> 4. Crimes Against >>> Property >>> 5. Accidents >>> / >>> Traffic

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread tamouse mailing lists
On Mon, Feb 18, 2013 at 6:54 PM, John Taylor-Johnston wrote: > I am capable with . (I suppose I did it > correctly? :p ) > But I haven't the first clue how to parse a and multiply > select name="DPRtype". > Would anyone give me a couple of clues please? :) > Thanks, > John > >Priority

Re: [PHP] OOP to run sequential SQL queries?

2013-02-17 Thread tamouse mailing lists
On Sun, Feb 17, 2013 at 10:00 AM, AmirBehzad Eslami wrote: > We have a bunch of SQL-queries, they should be executed in > a sequential order, with a defensive programming style in mind. > > We were thinking to implement the solution as "Stored Procedures" > instead of a PHP solution that runs SQL

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread tamouse mailing lists
On Sat, Feb 9, 2013 at 12:21 PM, Stuart Dallas wrote: > On 9 Feb 2013, at 16:42, AmirBehzad Eslami wrote: >> We're a developing a PHP-driven web service with a RESTful API, >> and we have a dedicated Linux server for that with 6GB of RAM. > I would personally recommend nginx + php-fpm over Apach

Re: [PHP] Integer

2013-02-01 Thread tamouse mailing lists
On Fri, Feb 1, 2013 at 11:27 PM, tamouse mailing lists wrote: > On Fri, Feb 1, 2013 at 10:40 PM, Ron Piggott > wrote: >> In the following the “2.” means a moderator response and “25” is the account >> # of the moderator. >> >> > >> $author = 2.000

Re: [PHP] Integer

2013-02-01 Thread tamouse mailing lists
On Fri, Feb 1, 2013 at 10:40 PM, Ron Piggott wrote: > In the following the “2.” means a moderator response and “25” is the account > # of the moderator. > > > $author = 2.00025 > > ?> > > How can I get the 25 by itself? > - I want to drop the “2.” and remove all the zero’s >

Re: [PHP] Web User Management

2013-01-30 Thread tamouse mailing lists
On Wed, Jan 30, 2013 at 10:21 AM, Jonathan Sundquist wrote: > For Zend Framework 2, take a look at https://github.com/ZF-Commons/ZfcUser > > > On Wed, Jan 30, 2013 at 10:19 AM, Adolfo Olivera > wrote: > >> >You can take a look at the classes from the Zend Framework (they can be >> used >> >stand a

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread tamouse mailing lists
On Sun, Jan 27, 2013 at 3:10 AM, jupiter wrote: > Hi, > > I have a client.php which calls an external python socket client > program exec("Client.py"), the Client.py calls > sockobj.connect(("localhost", 6)) to connect socket. > > If I run the client.php from Linux command line $ ./client.php

Re: [PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread tamouse mailing lists
On Fri, Jan 18, 2013 at 9:26 PM, tamouse mailing lists wrote: > On Fri, Jan 18, 2013 at 9:43 AM, Daniel Brown wrote: >> On Fri, Jan 18, 2013 at 10:33 AM, KISE wrote: >>> Paul Dragoonis, >>> >>> Actually it wont work i did tried it before, if the dir end wit

Re: [PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread tamouse mailing lists
On Fri, Jan 18, 2013 at 9:43 AM, Daniel Brown wrote: > On Fri, Jan 18, 2013 at 10:33 AM, KISE wrote: >> Paul Dragoonis, >> >> Actually it wont work i did tried it before, if the dir end with / it will >> list the directories inside the path you gave it and if it doesn't have any >> directories it

Re: [PHP] PHP programming a members only access site

2013-01-13 Thread tamouse mailing lists
On Sun, Jan 13, 2013 at 11:05 AM, Stephen wrote: > I know there are existing solutions for this, but the ones I have found are > complex, turnkey and don't really facilitate learning. When learning is the goal, writing your own is probably the best course. When deploying a live site, go with some

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread tamouse mailing lists
On Sat, Jan 12, 2013 at 4:49 PM, admin wrote: > As much as the php list would like to force people from using mysql, I guess > you should not have invented it, if you don't want people to still use it. It's not this php list. It's the php developers. mysql* functions are set to be removed in a r

Re: [PHP] Pear Page2

2013-01-05 Thread tamouse mailing lists
On Sat, Jan 5, 2013 at 8:52 AM, Ashley Sheridan wrote > On Sat, 2013-01-05 at 15:23 +0100, Silvio Siefke wrote: >> On Sat, 05 Jan 2013 07:53:04 + >> Ashley Sheridan wrote: >> >> > I'm not sure quite what you'd expect such a module to do? Is this for >> > templating? >> >> page2 creates compl

Re: [PHP] Pear Page2

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 8:18 PM, Silvio Siefke wrote: > Is there something similar to Pear/Page2 module, that can working with HTML5? Would phptal be of use? http://phptal.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 4:25 PM, Sebastian Krebs wrote: > 2013/1/4 tamouse mailing lists > >> On Fri, Jan 4, 2013 at 1:56 AM, Sebastian Krebs >> wrote: >> > 2013/1/4 tamouse mailing lists >> >> Bit operators are not comparing values, they're CO

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 1:56 AM, Sebastian Krebs wrote: > 2013/1/4 tamouse mailing lists >> Bit operators are not comparing values, they're COMBINING values. > > Technically spoken they're comparing bits, whereas boolean operators does > the same, but treaten every

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread tamouse mailing lists
On Mon, Dec 31, 2012 at 5:47 PM, Stephen wrote: > The common stuff for every page is defined in the file "include.php". I > define the variable $markup in that file. > > Here is the definition for $markup > > $markup=<< HEREDOC; > > By using require_once instead of fopen and fread, I have simpler

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread tamouse mailing lists
On Mon, Dec 31, 2012 at 2:37 PM, Nelson Green wrote: > > On Mon, 31 Dec 2012 14:47:20 Stephen D wrote: >> >> Yes! >> >> Easy standard stuff. >> >> $title = 'Mr."; >> $user_name = 'John Doe'; >> >> $message = "Hello $title $user_name " >> >> Just define the value for the variables before defini

Re: [PHP] how to build multilingual e-commerce website

2012-12-28 Thread tamouse mailing lists
On Fri, Dec 28, 2012 at 5:19 AM, Sachin Raut wrote: > Dear Friends, > > I have to develop multilingual e-commerce (clothing) website. Could anyone > who has developed these kind of sites before guide me on how to start the > development or recommend any tutorial / book for developing these kind of

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread tamouse mailing lists
On Fri, Dec 21, 2012 at 7:06 PM, Jim Giner wrote: > That actually makes sense tho. Afterall, a string is truly only one memory > allocation whereas array elements are basically multiple vars having the > same name. So - how can you unset one char in a string? That actually depends on what you m

Re: [PHP] Noobie starting to learn OOP for databases needs help

2012-12-17 Thread tamouse mailing lists
On Sun, Dec 16, 2012 at 9:38 AM, dealTek wrote: > Noobie starting to learn oop for databases from here: Cool. :) > mysql_insert_id (depricated?) or mysqli_insert_id() (I am using mySql 5.3) The mysqli version would be preferred, since you're using mysqli in that class. > 2 - how does one do ag

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Sat, Dec 15, 2012 at 11:22 AM, Jim Giner wrote: > On 12/15/2012 8:29 AM, tamouse mailing lists wrote: >> >> On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: >>> >>> >>> Thanks for all the posts. After reading and googling all

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Sat, Dec 15, 2012 at 11:21 AM, Jim Giner wrote: > On 12/15/2012 8:26 AM, tamouse mailing lists wrote: >> >> On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: >>> >>> >>> Thanks for all the posts. After reading and googling all

Re: [PHP] Formatting -- defining sections of code

2012-12-15 Thread tamouse mailing lists
On Dec 14, 2012 9:49 AM, "Andy McKenzie" wrote: > > Hey folks, kind of a strange question here. > > Basically, I've been trying to move my style from "self taught" to "Oh > yeah, there IS a standard for this." One of the things I frequently > want to do is define sections of my code: to take a s

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Dec 15, 2012 7:29 AM, "tamouse mailing lists" wrote: > > > On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: > > > > Thanks for all the posts. After reading and googling all afternoon, I think the best approach for me is: > > > > Create two macr

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: > > Thanks for all the posts. After reading and googling all afternoon, I think the best approach for me is: > > Create two macros in Word (done!) to export each of my .doc files to .txt and .pdf formats. > > Create a sql table to hold the .txt contents

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: > > Thanks for all the posts. After reading and googling all afternoon, I think the best approach for me is: > > Create two macros in Word (done!) to export each of my .doc files to .txt and .pdf formats. > > Create a sql table to hold the .txt contents

Re: [PHP] Session ?

2012-12-07 Thread tamouse mailing lists
On Fri, Dec 7, 2012 at 2:04 PM, Jim Giner wrote: > On 12/7/2012 2:59 PM, Daniel Brown wrote: >> >> On Fri, Dec 7, 2012 at 2:54 PM, Jim Giner >> wrote: >>> >>> >>> What if my sub-domain names are not in the form of 'a.domain.com' and >>> 'b.domain.com'. >> >> >> A subdomain is a subdomain. U

Re: [PHP] how to read emails with php

2012-12-05 Thread tamouse mailing lists
On Tue, Dec 4, 2012 at 12:24 PM, Farzan Dalaee wrote: > Warning: imap_open() [function.imap-open]: Couldn't open stream > mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php on line 6 > > Warning: imap_check() expects parameter 1 to be resource, boolean > given in C:\xampp\htdocs\mail.php

Re: [PHP] Re: shared memory on php servers?

2012-12-05 Thread tamouse mailing lists
On Tue, Dec 4, 2012 at 7:02 AM, Alessandro Pellizzari wrote: > Il Tue, 04 Dec 2012 11:49:22 +0100, rene7705 ha scritto: > >> I'm wondering, what's the fastest way to put a large and deep array() >> structure in shared memory on a PHP server? > > Using MongoDB. :) +++ -- PHP General Mailing List

  1   2   3   4   5   6   7   >