php-general Digest 8 Apr 2010 11:42:47 - Issue 6681
Topics (messages 303875 through 303891):
Re: mysql query returning slowly
303875 by: David Murphy
Re: Howto send command over ssh using sockets
303876 by: Thomas Anderson
Greate day for you,
303877 by: Chris G
Hi List,
The other day, I read an article that mentioned about a tool that would
permit to simulate a web environment for PHP, so that testing could be made
before uploading the page on the server. Unfortunately, I don't seem to find
the article again.
So here am I with this question: What
On Thu, 2010-04-08 at 13:42 +0200, Bastien Helders wrote:
Hi List,
The other day, I read an article that mentioned about a tool that would
permit to simulate a web environment for PHP, so that testing could be made
before uploading the page on the server. Unfortunately, I don't seem to find
The best option in windows would be xampp or wamp same goes true
with linux.
Midhun Girish
On Thu, Apr 8, 2010 at 5:12 PM, Bastien Helders eldroskan...@gmail.com wrote:
Hi List,
The other day, I read an article that mentioned about a tool that would
permit to simulate a web
On Thu, 2010-04-08 at 17:24 +0530, Midhun Girish wrote:
The best option in windows would be xampp or wamp same goes true
with linux.
Midhun Girish
On Thu, Apr 8, 2010 at 5:12 PM, Bastien Helders eldroskan...@gmail.com
wrote:
Hi List,
The other day, I read an article
On Wed, Apr 7, 2010 at 6:46 PM, Ryan Sun ryansu...@gmail.com wrote:
On Wed, Apr 7, 2010 at 6:29 PM, tedd tedd.sperl...@gmail.com wrote:
[snip]
Let's look at the problem again (a vote collection problem):
Array 1
(
[1] = 75
[2] = 31
[3] = 31
[4] = 31
[5] = 40
)
Array
At 6:46 PM -0400 4/7/10, Ryan Sun wrote:
rsort(array_combine(array2, array1));
you should expect array(
'Personal Email' = 75,
'USPS mail' = 40,
'Personal Phone' = 31,
'Web site' = 31,
'Text Message' = 31
)
logically, the items are your key but not the count of votes
Logically,
At 8:28 AM -0400 4/8/10, Andrew Ballard wrote:
On Wed, Apr 7, 2010 at 6:46 PM, Ryan Sun ryansu...@gmail.com wrote:
rsort(array_combine(array2, array1));
you should expect array(
'Personal Email' = 75,
'USPS mail' = 40,
'Personal Phone' = 31,
'Web site' = 31,
'Text Message' = 31
Hi List,
The other day, I read an article that mentioned about a tool that would
permit to simulate a web environment for PHP, so that testing could be
made
before uploading the page on the server. Unfortunately, I don't seem to
find
the article again.
So here am I with this
On Thu, Apr 8, 2010 at 9:55 AM, tedd tedd.sperl...@gmail.com wrote:
At 8:28 AM -0400 4/8/10, Andrew Ballard wrote:
On Wed, Apr 7, 2010 at 6:46 PM, Ryan Sun ryansu...@gmail.com wrote:
rsort(array_combine(array2, array1));
you should expect array(
'Personal Email' = 75,
'USPS mail'
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax error, unexpected '{' in file.php on line 27 *
Let's assume that file.php is the file that is giving me some troubles.
The structure is pretty easy to understand, however
Can you paste your code somewhere?
On Thu, Apr 8, 2010 at 7:51 PM, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax error, unexpected '{' in file.php on line 27 *
Let's assume
tedd wrote:
At 8:28 AM -0400 4/8/10, Andrew Ballard wrote:
On Wed, Apr 7, 2010 at 6:46 PM, Ryan Sun ryansu...@gmail.com wrote:
rsort(array_combine(array2, array1));
you should expect array(
'Personal Email' = 75,
'USPS mail' = 40,
'Personal Phone' = 31,
'Web site' = 31,
'Text
On Thu, Apr 8, 2010 at 10:21 AM, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax error, unexpected '{' in file.php on line 27 *
Let's assume that file.php is the file that is
On Thu, Apr 8, 2010 at 10:21 AM, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax error, unexpected '{' in file.php on line 27 *
Sorry, I gave you bad information...
Its the
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
The structure is pretty easy to understand, however I'm not able to
solve this. Could you tell me why I'm not able to run this code.
Your else has a condition on it
} else (empty($b) and empty($c)) {
Should be
} else {
BTW, the
On 8 April 2010 16:30, David Otton phpm...@jawbone.freeserve.co.uk wrote:
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
The structure is pretty easy to understand, however I'm not able to
solve this. Could you tell me why I'm not able to run this code.
Your else has a
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax error, unexpected '{' in file.php on line 27 *
Let's assume that file.php is the file that is giving me
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax error, unexpected '{' in file.php on line 27 *
Let's assume that file.php is the file that is giving me
2010/4/8 Richard Quadling rquadl...@googlemail.com:
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax error, unexpected '{' in file.php on line 27 *
Let's
On Thu, 2010-04-08 at 12:17 -0300, Juan wrote:
2010/4/8 Richard Quadling rquadl...@googlemail.com:
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is :
* Parse error: syntax
On Thu, Apr 08, 2010 at 04:26:08PM +0100, Ashley Sheridan wrote:
On Thu, 2010-04-08 at 12:17 -0300, Juan wrote:
2010/4/8 Richard Quadling rquadl...@googlemail.com:
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the following little php
On Thu, 2010-04-08 at 12:00 -0400, Paul M Foster wrote:
On Thu, Apr 08, 2010 at 04:26:08PM +0100, Ashley Sheridan wrote:
On Thu, 2010-04-08 at 12:17 -0300, Juan wrote:
2010/4/8 Richard Quadling rquadl...@googlemail.com:
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
I get a couple of errors like this one for undefined variable:
PHP Notice: Undefined variable: s_company_name
And this one for undefined contstant
PHP Notice: Use of undefined constant account_type - assumed 'account_type'
I am putting a piece of code from each so that hopefully someone
On Thu, Apr 8, 2010 at 12:26 PM, Jack jacklistm...@gmail.com wrote:
I get a couple of errors like this one for undefined variable:
PHP Notice: Undefined variable: s_company_name
And this one for undefined contstant
PHP Notice: Use of undefined constant account_type - assumed
On Thu, 2010-04-08 at 12:26 -0400, Jack wrote:
I get a couple of errors like this one for undefined variable:
PHP Notice: Undefined variable: s_company_name
And this one for undefined contstant
PHP Notice: Use of undefined constant account_type - assumed 'account_type'
I am
Hello Jack,
I have tons of errors like this and now I'm eliminating them, so I'll
tell what to do:
1. Put apostrophes (single quotes) around the array item:
$auth['company_name'] instead of $auth[company_name];
2. (Just a suggestion) It's better to put the SQL tables and
fields between grave
On 04/08/2010 06:51 PM, Andre Polykanine wrote:
2. (Just a suggestion) It's better to put the SQL tables and
fields between grave accents (backquotes).
But if you do that then you will have to remove them again when you
decide to switch or support PostgreSQL.
--
John
After coming into
So the first two print statements generate NO notices, while the second
obviously generates:
Notice: Undefined offset: 1 in /home/shawn/www/test.php on line 11
Notice: Undefined index: test in /home/shawn/www/test.php on line 12
This sucks. A bug???
error_reporting(E_ALL);
On Thu, 2010-04-08 at 12:36 -0500, Shawn McKenzie wrote:
So the first two print statements generate NO notices, while the second
obviously generates:
Notice: Undefined offset: 1 in /home/shawn/www/test.php on line 11
Notice: Undefined index: test in /home/shawn/www/test.php on line 12
Hello Shawn,
Hm... isn't it expected behavior? Since you haven't defined a
$a['test'] item, PHP throws a notice... or I'm wrong?
--
With best regards from Ukraine,
Andre
Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @
jabber.org
Yahoo! messenger: andre.polykanine; ICQ:
In the first case, $a=5 creates a multi-typed variable. The interpreter
makes its best guess how the next two expressions should be interpreted.
In both cases, they look a lot like an index into a character array
(string), and 'test' evaluates numerically to zero. Both are valid
offsets for a
Paul M Foster wrote:
On Thu, Apr 08, 2010 at 04:26:08PM +0100, Ashley Sheridan wrote:
On Thu, 2010-04-08 at 12:17 -0300, Juan wrote:
2010/4/8 Richard Quadling rquadl...@googlemail.com:
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
Hi guys,
I'm having trouble with the
I suspect I've either done something horribly wrong or found a weird
bug, probably the former. I'm running PHP 5.2.13 on Solaris 10 under
Apache 2.2.14. Memory usage is 98.8% free (default 1 slice of 30MB).
Here are stats on the cache:
Cached Files1 (288.2 KBytes)
Hits
Andre Polykanine wrote:
Hello Shawn,
Hm... isn't it expected behavior? Since you haven't defined a
$a['test'] item, PHP throws a notice... or I'm wrong?
Yes it is expected. I'm saying the opposite that it doesn't in the
first case.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General
Bob McConnell wrote:
In the first case, $a=5 creates a multi-typed variable. The interpreter
makes its best guess how the next two expressions should be interpreted.
In both cases, they look a lot like an index into a character array
(string), and 'test' evaluates numerically to zero. Both are
Shawn McKenzie wrote:
Bob McConnell wrote:
In the first case, $a=5 creates a multi-typed variable. The interpreter
makes its best guess how the next two expressions should be interpreted.
In both cases, they look a lot like an index into a character array
(string), and 'test' evaluates
Review your mantis mail settings. If I remember well, there are two
possibilities, direct (pop3) mail or phpmailer. In www.mantisbt.org you can
find all information you need. I've been in the same situation, and found
out how to resolve it with success.
2010/4/7 Paul M Foster
On Thu, 2010-04-08 at 15:22 -0500, Shawn McKenzie wrote:
Shawn McKenzie wrote:
Bob McConnell wrote:
In the first case, $a=5 creates a multi-typed variable. The interpreter
makes its best guess how the next two expressions should be interpreted.
In both cases, they look a lot like an
print $a[0]; // prints 5
print $a[100]; // Notice: Uninitialized string offset: 100
Yup, this should happen when 5 is treated as an array of characters.
In other words as a string.
$a = '5';
echo $a[0];
echo $a[100];
gives you the expected result
regarding the original question, i think that
Hey guys, quick question. I had to re-install my Ubuntu, and I forgot
what package I needed so firefox will display the php files and not ask
me to if I want to download them. I've done installed PHP5, mysql, and
php-mysql. What did I miss. I know the package name, but it's completely
slipping my
you forgot httpd
KK.
On Fri, Apr 9, 2010 at 08:32, David McGlone da...@dmcentral.net wrote:
Hey guys, quick question. I had to re-install my Ubuntu, and I forgot
what package I needed so firefox will display the php files and not ask
me to if I want to download them. I've done installed
it's apache2 module for php
#apt-cache search php5 apache
libapache2-mod-php5 - server-side, HTML-embedded scripting language
(Apache 2 module)
~viraj
On Fri, Apr 9, 2010 at 8:32 AM, David McGlone da...@dmcentral.net wrote:
Hey guys, quick question. I had to re-install my Ubuntu, and I forgot
Hello Shawn,
Why dont you report a bug? When we know the expected behavior or the
way it SHOULD behave. and its not behaving that way. Its certainly a
bug.. Only then we can know the real reason why the novicas are not
showing up.
On 4/8/10, Shawn McKenzie nos...@mckenzies.net wrote:
So the
A tip for you. If you have internet access, type in
sudo apt-get install phpmyadmin
This will install all the dependencies and your server will be ready.
On 4/9/10, David McGlone da...@dmcentral.net wrote:
Hey guys, quick question. I had to re-install my Ubuntu, and I forgot
what package I
45 matches
Mail list logo