Re: [PHP] Re: Sending PHP mail with Authentication

2013-09-29 Thread Paul M Foster
On Fri, Sep 27, 2013 at 12:06:30AM +0200, Maciek Sokolewicz wrote: [snip] > I'm sure I'm going to annoy people with this, but I would advise to > never use PEAR. It's the biggest load of extremely badly coded PHP > you'll ever find. Creating an SMTP client (with the purpose of just > sending mai

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:38 AM, Jim Giner wrote: session_start(); session_name("STORE"); set_time_limit(2400); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(-2); ini_set('error_reporting', 'E_ALL | E_STRICT'); ini_set('html_

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:29 AM, Ethan Rosenberg wrote: On 09/28/2013 11:59 PM, Jim Giner wrote: Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do you know how any of this is supposed to be written? You can not put Constants in quotes - they become just plain strings then, not Cons

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Ethan Rosenberg
On 09/28/2013 11:59 PM, Jim Giner wrote: Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do you know how any of this is supposed to be written? You can not put Constants in quotes - they become just plain strings then, not Constants with the predefined values you (and the

Re: [PHP] Re: assign database result to iinput text box

2013-09-18 Thread ITN Network
"; //select a database to work with $selected = mysql_select_db("iccsimd",$dbhandle) or die("Could not select aerver"); //execute the SQL query and return records $result = mysql_fetch_assoc(mysql_query("SELECT invid, invdate, note, amount FROM invheader")); ?> Like Maciek mentioned, if this

Re: [PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
Hi, Alessandro Would it be worth noting somewhere, that these two implementations of ISO8601 differ? Because I needed the DateTime::ATOM way to save the timezone ... Even so the other one was also about ISO 8601 ... My system is working towards a search-engine called ElasticSearch. This one makes

Re: [PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-03 Thread Daniel
Just so that you know, I've posted in the forum topic as well: http://forum.piwik.org/read.php?2,105879 Regards, Daniel Fenn On Tue, Sep 3, 2013 at 12:42 AM, Lester Caine wrote: > Jan Ehrhardt wrote: >>> >>> Could you try to add a function_exists check to >>> >libs/upgradephp/upgrade.php? >>

Re: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-03 Thread Jim Giner
On 9/3/2013 1:09 AM, Daevid Vincent wrote: -Original Message- From: Jim Giner [mailto:jim.gi...@albanyhandball.com] Sent: Monday, September 02, 2013 8:14 PM To: php-general@lists.php.net Subject: [PHP] Re: refernces, arrays, and why does it take up so much memory? On 9/2/2013 9:30 PM,

RE: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: Monday, September 02, 2013 8:14 PM > To: php-general@lists.php.net > Subject: [PHP] Re: refernces, arrays, and why does it take up so much > memory? > > On 9/2/2013 9:30 PM, Daevid Vincent wrote: > > I'm

Re: [PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-02 Thread Lester Caine
Jan Ehrhardt wrote: Could you try to add a function_exists check to >libs/upgradephp/upgrade.php? > >This at the function declaration of _json_encode: >if (!function_exists('_json_encode')) { function _json_encode($var, ... > >And a extra } at the end. This patch, together with upgrading to the

Re: [PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-01 Thread Jan Ehrhardt
Lester Caine in php.general (Sun, 01 Sep 2013 12:59:18 +0100): >Grant wrote: >>> >I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the >>> >opcache is disabled. Someone filed a piwik bug but was told it's a >>> >php bug: >>> > >>> >http://dev.piwik.org/trac/ticket/4093 > >> Is th

Re: [PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-01 Thread Lester Caine
Grant wrote: I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the >opcache is disabled. Someone filed a piwik bug but was told it's a >php bug: > >http://dev.piwik.org/trac/ticket/4093 Is this a known issue? I'm running my own port of piwik in production with eaccelerator

Re: [PHP] Re: Permissions

2013-08-27 Thread Ethan Rosenberg
On 08/27/2013 01:52 PM, Ethan Rosenberg wrote: On 08/27/2013 03:07 AM, David Robley wrote: Ashley Sheridan wrote: On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error.

Re: [PHP] Re: Permissions

2013-08-27 Thread Ethan Rosenberg
On 08/27/2013 03:07 AM, David Robley wrote: Ashley Sheridan wrote: On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error. rosenberg:/var/www# ls -la StoreInventory.php -rw

Re: [PHP] Re: Permissions

2013-08-27 Thread Daniel Brown
On Tue, Aug 27, 2013 at 3:07 AM, David Robley wrote: > > I beg to differ here. If the x bit isn't set on a directory, that will > prevent scanning of the directory; in this case apache will be prevented > from scanning the directory and will return a 403. Well, that's partially correct. If a

Re: [PHP] Re: Permissions

2013-08-27 Thread David Robley
Ashley Sheridan wrote: > On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: > >> Ethan Rosenberg wrote: >> >> > Dear List - >> > >> > Tried to run the program, that we have been discussing, and received a >> > 403 error. >> > >> > rosenberg:/var/www# ls -la StoreInventory.php >> > -rwxrwxr

Re: [PHP] Re: Permissions

2013-08-26 Thread Ashley Sheridan
On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: > Ethan Rosenberg wrote: > > > Dear List - > > > > Tried to run the program, that we have been discussing, and received a > > 403 error. > > > > rosenberg:/var/www# ls -la StoreInventory.php > > -rwxrwxrw- 1 ethan ethan 4188 Aug 26 20:26 St

Re: [PHP] Re: PHP vs JAVA

2013-08-22 Thread David Harkness
On Thu, Aug 22, 2013 at 12:29 AM, Sebastian Krebs wrote: > Actually I think ".." is quite error-prone, because it is hard to > distinguish from "." or "_" on the _first_ glance, which makes the get > quickly through the code. [1] > I surround all operators except member access ("." and "->") with

Re: [PHP] Re: PHP vs JAVA

2013-08-22 Thread Sebastian Krebs
2013/8/22 David Harkness > On Wed, Aug 21, 2013 at 7:56 PM, Curtis Maurand wrote: > >> Sebastian Krebs wrote: > > > Actually the problem is, that the dot "." is already in use. With > > > $foo.bar() you cannot tell, if you want to call the method "bar()" on >> the >> > object "$foo", or if you w

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread David Harkness
On Wed, Aug 21, 2013 at 7:56 PM, Curtis Maurand wrote: > Sebastian Krebs wrote: > Actually the problem is, that the dot "." is already in use. With > $foo.bar() you cannot tell, if you want to call the method "bar()" on the > > object "$foo", or if you want to concatenate the value of "$foo" to

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Curtis Maurand
Sebastian Krebs wrote: > 2013/8/21 Curtis Maurand > >> >> >> >> Sorry in advance for the top post. >> >> Use the right tool for >> the Job. I've use Java, C# and PHP. >> >> 1. I hate the >> Perl-like object calls in PHP. I'd rather use "." notation >> in C# and Java. It saves a lot of wear

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
2013/8/21 Curtis Maurand > > > > Sorry in advance for the top post. > > Use the right tool for > the Job. I've use Java, C# and PHP. > > 1. I hate the > Perl-like object calls in PHP. I'd rather use "." notation > in C# and Java. It saves a lot of wear and tear on my left pinky > finger. > A

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Curtis Maurand
Sorry in advance for the top post. Use the right tool for the Job.  I've use Java, C# and PHP. 1.  I hate the Perl-like object calls in PHP.  I'd rather use "." notation in C# and Java.  It saves a lot of wear and tear on my left pinky finger. 2.  Java and C# are both typed languages.  Say wha

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Stuart Dallas
On 21 Aug 2013, at 15:01, "georg chambert" wrote: > my I shake the subject a little; Ive been doing some PHP and found it "ok" to > work with > not so much fuss, but that was PHP4, what about PHP5 ? > Dont really checked the difference but made a short-scan and found that it > had be > screwed

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
2013/8/21 georg chambert > Hi, > > my I shake the subject a little; Ive been doing some PHP and found it "ok" > to work with > not so much fuss, but that was PHP4, what about PHP5 ? > Dont really checked the difference but made a short-scan and found that it > had be > screwed around with ? > > A

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread georg chambert
Hi, my I shake the subject a little; Ive been doing some PHP and found it "ok" to work with not so much fuss, but that was PHP4, what about PHP5 ? Dont really checked the difference but made a short-scan and found that it had be screwed around with ? Any think, should I change to 5 ? BR geo

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 2:11 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_ant

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner > On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: > >> 2013/8/8 Jim Giner >> >> On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: >>> >>> 2013/8/8 Jim Giner On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: > > $oppdater_lager_med_antall_kg = $kg_pa_l

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_pa_valgt_lager; r

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner > On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: > >> 2013/8/8 Jim Giner >> >> On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: >>> >>> $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_pa_valgt_lager; result: *Fat

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_**pa_valgt_lager; result: *Fatal error*: Unsupported operand types in * /Users/karl/Sites/kasen/io

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner > On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: > >> $oppdater_lager_med_antall_kg = $kg_pa_lager + >> $kg_fra_transportdokument_inn_**pa_valgt_lager; >> >> >> result: >> *Fatal error*: Unsupported operand types in * >> /Users/karl/Sites/kasen/io/kp/**index.php* on line *2970

Re: [PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 13:27 +0100, Tim Streater wrote: > On 04 Aug 2013 at 11:28, Ashley Sheridan wrote: > > > Like Matijn said, unless you're using some kind of client-side method to > > continually poll the server, you can't know if they've just closed their > > browser. There are Javascript

Re: [PHP] Re: SELECT data base on a upper level SELECT

2013-08-01 Thread jomali
On Thu, Aug 1, 2013 at 6:33 PM, iccsi wrote: > Thanks for the information and help, > The query can solve server side, but client side, user might select any > one dropdown, for example, user might select manager from drop down without > choose Department dropdown. > > For this case, application

Re: [PHP] Re: What wrong am I doing now?

2013-07-24 Thread Jim Giner
Jim, He already has that... - Matijn oops -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What wrong am I doing now?

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:45 PM, Jim Giner wrote: > On 7/24/2013 8:19 AM, Karl-Arne Gjersøyen wrote: > >> mysql> SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE >> dato >= '2013-07-20' AND dato <= '2013-07-24' GROUP BY dato DESC; >> +-**--+ >> | DATE_F

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Lester Caine > Karl-Arne Gjersøyen wrote: > >> // start the table >>> >> > $total = 0; > > >echo ""; >>> >echo "ProductAmount"; >>> >>> > >>> >// loop thru each item found >>> >while ($results = $qrslts->fetch(PDO::FETCH_ASSOC)) >>> >{ >>> >echo "".$results['product_nam

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Lester Caine
Karl-Arne Gjersøyen wrote: // start the table $total = 0; >echo ""; >echo "Product**Amount"; > >// loop thru each item found >while ($results = $qrslts->fetch(PDO::FETCH_**ASSOC)) >{ >echo "".$results['product_**name']."".$results['** >product_amt'].""; $total += $results['product_amt']

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get incorrect direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 9:07 AM, Karl-Arne Gjersøyen wrote: 2013/7/10 Jim Giner On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can register new product in stock.

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Jim Giner > On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: > >> Sorry, the first mail in this subject run out for me. This is an updated >> one. >> >> >> >> I am almost ready with my learning project in PHP/MySQL. >> I can register new product in stock. >> Add and increase the number

Re: [PHP] Re: mongo usage

2013-07-06 Thread Tim Dunphy
Thanks. Sorry to bug you guys with this. That did it. sigh On Sat, Jul 6, 2013 at 6:49 PM, Tim Streater wrote: > On 06 Jul 2013 at 23:27, Tim Dunphy wrote: > > > | You seem to spell the variable differently (1 'd' vs. 2 'd's)? > > > > Thanks! Fixed the type-o. Still no change. > > > > $conne

Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
Thanks for tips David! I'll play with your suggestion. I've never used abstract methods, but if I'm understanding the code you posted, they look pretty useful. I may be back with questions. Appreciate the help. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread David Harkness
There's no way to bypass an overridden method using "parent", but you could add an abstract method that Child would implement. class Parent function __construct() { $this->foo = $this->getFoo(); } abstract function getFoo(); } David

Re: [PHP] Re: [PHP-DEV] [PHP] PHP 5.5.0 final has been released!

2013-06-21 Thread Daniel
I hope this will get people like WordPress to get up and support mysqli out of the box. going to cause big issues if they don't. On Sat, Jun 22, 2013 at 8:59 AM, Martin Amps wrote: > I second this - great to see both finally available. Fantastic release! > > Martin Amps | CIO > www.iCrac

Re: [PHP] Re: [PHP-DEV] PHP 5.5.0 final has been released!

2013-06-21 Thread Ravi Gehlot
Awesome! On Thu, Jun 20, 2013 at 11:14 PM, Marco Pivetta wrote: > Well done! Congratulations! > On 20 Jun 2013 23:23, "Julien Pauli" wrote: > > > Hello! > > > > The PHP Development Team would like to announce the immediate release of > > PHP 5.5.0. This release includes a large number of new f

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > My ../apache2/conf.d directory is a symlink to the ../conf.d > > directory. This might indeed be the problem. > > Yes. > My system was Debian Squeeze and I just upgraded it to Debian > Wheezy. Some configuration files and directories remains from Squ

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > Csanyi Pal wrote: > >> It is interesting.. that when I switch to English language for > >> Moodle installation ( on the web interface ), then I get not this > >> error, but if I switch back to Hungarian language for installation, I > >> get it again.

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal wrote: > It is interesting.. that when I switch to English language for > Moodle installation ( on the web interface ), then I get not this error, > but if I switch back to Hungarian language for installation, I get it > again. I am completely unfamiliar with Moodle, have no idea what

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-30 Thread David Harkness
On Wed, May 29, 2013 at 10:20 AM, Matijn Woudt wrote: > It is possible to write a whole parser as a single regex, being it terribly > long and complex. > While regular expressions are often used in the lexer--the part that scans the input stream and breaks it up into meaningful tokens like

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

2013-05-30 Thread Jim Giner
On 5/30/2013 10:22 AM, tamouse mailing lists wrote: So - the include method still works, as would the single script 'controller' method. Within a php script any file is accessible (within your domain at least) and may therefore be included and execute. I want to throw in a caveat here, and th

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. >> > > Once again - I was wrong in my suggestion as Ashl

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

2013-05-30 Thread Jim Giner
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. Once again - I was wrong in my suggestion as Ashley has pointed out so correctly. Had to test it out this m

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-30 Thread Sebastian Krebs
2013/5/29 Matijn Woudt > > > On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs wrote: > >> >> >> >> 2013/5/29 Matijn Woudt >> >>> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >> >wrote: >>> >>> > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: >>> > > On Tue, 28 May 2013 14:17:06 -0700, Daev

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

2013-05-29 Thread jomali
On Wed, May 29, 2013 at 9: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 fo

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 Jim Giner
On 5/29/2013 9: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 folks are intended to use to reques

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] Re: limit access to php page

2013-05-29 Thread Glob Design Info
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 folks are intended to use to request apache redirects from the sysadmin group (red

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
On Wed, May 29, 2013 at 8:09 PM, Jim Giner wrote: > On 5/29/2013 1:39 PM, Ron Piggott wrote: > >> >> Good morning all: >> >> I have recently purchased a computer and am using it as a dedicated >> server. A friend helped me install PHP and configure. I am saying this >> because I wonder if using

Re: [PHP] Re: include() Error

2013-05-29 Thread Camilo Sperberg
You are most probable getting a fatal error, and the way PHP is configured now, doesn't show you that publicly. Enable that setting via php.ini or directly in the script (not recommended) or check out the webserver's error_log (assuming apache and a RedHat based distro this will be on /var/log/http

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Ashley Sheridan
Matijn Woudt wrote: >On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs >wrote: > >> >> >> >> 2013/5/29 Matijn Woudt >> >>> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >>> >wrote: >>> >>> > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: >>> > > On Tue, 28 May 2013 14:17:06 -0700, Daevid V

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs wrote: > > > > 2013/5/29 Matijn Woudt > >> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade > >wrote: >> >> > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: >> > > On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: >> > >> I'm adding some

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sebastian Krebs
2013/5/29 Matijn Woudt > On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >wrote: > > > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: > > > On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: > > >> I'm adding some minification to our cache.class.php and am running > into > > an > > >> e

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 1:33 PM, Matijn Woudt wrote: > > > > On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade > wrote: >> >> > It is possible to write a whole parser as a single regex, being it >> > terribly >> > long and complex. >> > That said, there's no other simple syntax that would work, fo

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade wrote: > > It is possible to write a whole parser as a single regex, being it > terribly > > long and complex. > > That said, there's no other simple syntax that would work, for example in > > javascript you could to the following: > > var http = 5;

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
> It is possible to write a whole parser as a single regex, being it terribly > long and complex. > That said, there's no other simple syntax that would work, for example in > javascript you could to the following: > var http = 5; > switch(value) { > case http:// Http case here! (this whould no

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Matijn Woudt
On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade wrote: > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: > > On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: > >> I'm adding some minification to our cache.class.php and am running into > an > >> edge case that is causing me grief. > >> >

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: > On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: >> I'm adding some minification to our cache.class.php and am running into an >> edge case that is causing me grief. >> >> I want to remove all comments of the // variety, HOWEVER I don't wan

Re: [PHP] Re: Can javascript or php help with this

2013-05-26 Thread Jim Giner
On 5/25/2013 9:11 PM, dealTek wrote: On May 25, 2013, at 4:30 PM, Jim Giner wrote: So - create another field on your form. Add an onclick event to your submit button. Have it run a js function that takes the two fields and places them into the new field. function combineFields() { va

Re: [PHP] Re: Can javascript or php help with this

2013-05-25 Thread dealTek
On May 25, 2013, at 4:30 PM, Jim Giner wrote: >> >> > So - create another field on your form. Add an onclick event to your submit > button. Have it run a js function that takes the two fields and places them > into the new field. > > function combineFields() > { > var mm = document.getEle

Re: [PHP] Re: Doing something wrong?

2013-05-22 Thread Lester Caine
David Robley wrote: Did you "make clean" after reconfiguring before re-compiling php? According tohttps://bugs.php.net/bug.php?id=63611 that may be a cause. That was the kick - Thanks ... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S

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] Re: array_map() with multiple callback functions

2013-05-08 Thread George Langley
On 2013-05-08, at 1:48 PM, Jim Giner wrote: > On 5/7/2013 5:29 PM, George Langley wrote: >> Hi all. I want to apply strtolower() AND trim() to all items in an array. >> But I don't see a way to call multiple callbacks with the array_map() >> function. >> Are my two choices the following: >> >>

Re: [PHP] Re: generate onfly PDF

2013-05-05 Thread Ashley Sheridan
Tim Behrendsen wrote: >I have had outstanding success with wkhtmltopdf: > >https://code.google.com/p/wkhtmltopdf/ > >It's a self-contained standalone program that you can call from PHP. It >uses a full-bodied HTML interpreter based on Webkit. Highly >recommended, I've been using it for years. I

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
As shown in the OP I am already doing that in the PHP scipt: $host = "instance43490.db.xeround.com:8904"; And then passing that as the 1st param to mysql_connect On 4/21/13 4:23 PM, Stuart Dallas wrote: On 22 Apr 2013, at 00:14, Glob Design Info wrote: However, I may have found the problem:

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 22 Apr 2013, at 00:14, Glob Design Info wrote: > However, I may have found the problem: the port. As a security measure the > BaaS provider appears to have changed MySQL to a non-standard port. > So > > On the command line: > > sudo mysql --host=instance43490.db.xeround.com --p

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread David Robley
Glob Design Info wrote: > On 4/21/13 3:27 PM, Stuart Dallas wrote: >> On 21 Apr 2013, at 20:29, Glob Design Info wrote: >> >>> If that is the case then why does logging in with exactly the same >>> params from a UNIX shell work fine? Command line login supposedly would >>> be adding the @localhos

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
On 4/21/13 3:27 PM, Stuart Dallas wrote: On 21 Apr 2013, at 20:29, Glob Design Info wrote: If that is the case then why does logging in with exactly the same params from a UNIX shell work fine? Command line login supposedly would be adding the @localhost or @IP_address as well but isn't. Onl

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 21 Apr 2013, at 20:29, Glob Design Info wrote: > If that is the case then why does logging in with exactly the same params > from a UNIX shell work fine? Command line login supposedly would be adding > the @localhost or @IP_address as well but isn't. Only when I pass the > variables to the

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
This for a commercial app - the client wants both an API connect via PHP and a web portal in which they can login from a web page and view the tables in the DB. Right now I am just trying to get the form/PHP interaction to work. On Apr 21, 2013, at 6:42 AM, tamouse mailing lists wrote: > On S

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
If that is the case then why does logging in with exactly the same params from a UNIX shell work fine? Command line login supposedly would be adding the @localhost or @IP_address as well but isn't. Only when I pass the variables to the script is that happening. I am doing exactly as you stated:

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] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
On 21 Apr 2013, at 11:20, Glob Design Info wrote: > I don't understand why mysql_connect should append something in the case of a > passed variable but not in the case of a local variable. Unless there is > something in the form parsing machinery I am unaware of. Nothing is being added by anyt

Re: [PHP] Re: self operator within a double quoted string

2013-04-17 Thread Matijn Woudt
On Wed, Apr 17, 2013 at 11:30 PM, NaMarPi wrote: > I found that double quoted strings are more elegant in some situations > than single ones, and I like identical solutions for identical problems, > so that's why I asked this question. > > But finally found a reason why use single quoted strings

Re: [PHP] Re: Is BBCode Installed

2013-04-12 Thread Stephen
On 13-04-12 02:28 AM, shiplu wrote: On Fri, Apr 12, 2013 at 4:24 AM, Stephen > wrote: Now I have to install on my home development machine! You can install it by following command pecl install bbcode Note: root privilege is necessary to install Thank you.

Re: [PHP] Re: Is BBCode Installed

2013-04-11 Thread shiplu
On Fri, Apr 12, 2013 at 4:24 AM, Stephen wrote: > Now I have to install on my home development machine! You can install it by following command pecl install bbcode Note: root privilege is necessary to install -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distingu

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] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
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 named. i need in each page to find a particular tag, let's say ... (so based on its I

Re: [PHP] Re: Is BBCode Installed

2013-04-11 Thread David Harkness
Hi Stephen, I just tried installing the PECL extension, but it failed to build on PHP 5.4.6-1ubuntu1.2. I see Xdebug in the phpinfo output, and I assume other PECL extensions will show up there once installed. Good luck! David

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

2013-04-11 Thread Rafnews
On 11.04.2013 14:14, Jim Giner wrote: On 4/11/2013 7:34 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

Re: [PHP] Re: Is BBCode Installed

2013-04-10 Thread David Robley
Stephen wrote: > On 13-04-10 10:59 PM, David Robley wrote: >> I ran phpinfo() on my host and searched for "BBCode". Not found. >> >> Does this mean that the extension is not installed? >> >> If not, how can I tell? >> >> Thanks >> >> BBCode isn't a php extension, but may be implemented using php o

Re: [PHP] Re: Is BBCode Installed

2013-04-10 Thread Stephen
On 13-04-10 10:59 PM, David Robley wrote: I ran phpinfo() on my host and searched for "BBCode". Not found. Does this mean that the extension is not installed? If not, how can I tell? Thanks BBCode isn't a php extension, but may be implemented using php or other languages. See http://www.bbcod

Re: [PHP] Re: 4/1/2013 3:46:37 AM

2013-03-31 Thread Sorin Badea
No spam filters for this list ? On Mon, Apr 1, 2013 at 5:46 AM, Adil Adil wrote: > http://www.siamphotographer.com/clvrcng/nikoffbkvvnjjcgwapmay.xmhpwcbrd -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com

Re: [PHP] Re: MOSSCon in Louisville in May! Submit your proposal this week!

2013-03-27 Thread Sorin Badea
You can unsubscribe. On Wed, Mar 27, 2013 at 3:07 PM, Jim Giner wrote: > On 3/27/2013 3:35 AM, John List wrote: > >> Preparations are in full swing for the very first Midwest Open Source >> Software Conference (MOSSCon), to be held in Louisville on May 18-19. >> Your help in spreading the word an

Re: [PHP] Re: target question

2013-03-26 Thread Matijn Woudt
On Tue, Mar 26, 2013 at 4:19 PM, Jim Giner wrote: > On 3/26/2013 10:35 AM, Matijn Woudt wrote: > >> On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner >> **wrote: >> >> Appreciate the attempt to help, but as I posted earlier I went around >>> and modified all my scripts to handle my 'target'

Re: [PHP] Re: target question

2013-03-26 Thread Jim Giner
On 3/26/2013 10:35 AM, Matijn Woudt wrote: On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner wrote: Appreciate the attempt to help, but as I posted earlier I went around and modified all my scripts to handle my 'target' problem by introducing multiple form tags into my pages. So - problem eradica

Re: [PHP] Re: target question

2013-03-26 Thread Matijn Woudt
On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner wrote: > On 3/25/2013 5:45 PM, Tommy Pham wrote: > >> >> What about >> >> onclick='window.open("http://**domain.com/path/to/generated/**pdf", >> "_blank")' >> >> ? >> >> Regards, >> Tommy >> >> Appreciate the atte

Re: [PHP] Re: target question

2013-03-26 Thread Jim Giner
On 3/25/2013 5:45 PM, Tommy Pham wrote: What about onclick='window.open("http://domain.com/path/to/generated/pdf";, "_blank")' ? Regards, Tommy Appreciate the attempt to help, but as I posted earlier I went around and modified all my scripts to handle my 'target' problem by introducing mul

Re: [PHP] Re: target question

2013-03-25 Thread Tommy Pham
On Mon, Mar 25, 2013 at 10:21 AM, Jim Giner wrote: > In light of the apparent lack of any solution, I have embarked on changing > all my report choices to use multiple forms with different target attribs as > needed. For many of them not a big deal, but for several it adds a degree > of difficult

Re: [PHP] Re: application level variable file

2013-03-22 Thread Samuel Lopes Grigolato
I highly suggest you to read some begginers book or the php.net/manualbefore trying to implement other technologies concepts with PHP. That is because you WILL find some "tricks" to do what you want, and you'll think PHP is a big chunk of bad smelling code, a totally wrong concept. Forget momentar

  1   2   3   4   5   6   7   8   9   10   >