Re: [PHP-DB] Programs not running - Mystery SOLVED

2013-01-08 Thread tamouse mailing lists
On Tue, Jan 8, 2013 at 1:12 AM, Matt Pelmear  wrote:
> I personally *never* set the error reporting level in the code, and during
> code reviews I reject code that does so.
> It is much cleaner to manage this in php.ini.

I tend to agree -- settings like this are environment (dev, test,
stage, prod) dpendent and generally the code being developed should
work in all of them without modification.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running - Mystery SOLVED

2013-01-07 Thread Matt Pelmear

This is a *very* common problem, so don't feel too bad :-)

I personally *never* set the error reporting level in the code, and 
during code reviews I reject code that does so.

It is much cleaner to manage this in php.ini.

Glad you solved your problem.

-Matt

On 01/07/2013 08:49 AM, Ethan Rosenberg, PhD wrote:

Dear list -

Boy, Do I make STUPID MISTAKES!

The show_errors was turned off in the program in question!!
When I ran another program, that displayed errors, is threw the 
correct error message.


My apologies for running everyone around numerous trees.

Ethan





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-07 Thread Matt Pelmear

On 01/06/2013 07:09 PM, tamouse mailing lists wrote:
Actually, you might find netbeans just all that for writing the HTML, 
CSS and JS stuff, too. I used Dreamweaver when it first came out and 
compared to the other sorts of things available at the time, it was 
pretty spiffy. But time has marched on, and creating HTML isn't 
something I want a visual editor for. 


+1 for Netbeans.
I've used all the major IDEs that support PHP over the years. I keep 
coming back to Netbeans. (And ended up using it for Java and C/C++ as 
well, for small projects anyway.)
As much as it is terrible, it is still that much better than the 
alternatives. I don't even have that many complaints about the most 
recent versions. I suggest it for newcomers to multiple teams I work with.


I did really like NuSphere's PhpED, but unfortunately that was only an 
option for me when I still dual-booted into Windows. (They say it runs 
fine in Wine, but major things like the code completion popup are either 
difficult or impossible to get working. Anyone from NuSphere listening? 
I want to pay you for a native Linux version like you used to have...)


-Matt

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-07 Thread Karl DeSaulniers


On Jan 6, 2013, at 9:09 PM, tamouse mailing lists wrote:

On Sun, Jan 6, 2013 at 2:14 PM, Karl DeSaulniers  
 wrote:
Unfortunately, I am still working on an old G4 Powerbook trying to  
finish a

website of mine.
Adobe GoLive was the program I imprinted on and it stuck. Sadly it  
has gone

away now
and Dreamweaver is the replacement. I am not fond of DW but will no  
doubt

have to
adjust to get a job in the industry as it is the main stay these  
days for

HTML.
Sadly DW isn't any better (that I know of) when it comes to editing,
debugging  and creating
server-side tech. So this NetBeans thingamajig is a real pleaser  
for me...

:)


Actually, you might find netbeans just all that for writing the HTML,
CSS and JS stuff, too.

I used Dreamweaver when it first came out and compared to the other
sorts of things available at the time, it was pretty spiffy. But time
has marched on, and creating HTML isn't something I want a visual
editor for.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




I like fireworks for that. The export to CSS layout saves me loads of  
time
and separates things by layer instead of slices which Photoshop does  
not do (why I don't know).
I mostly use GoLive for the syntax highlighting and the site manager  
stuff and some built in javascript.
Because of using GoLive and no time to dive into DW I guess I just  
shied away.
But looks like NetBeans has a site manager built in, so this should  
prove interesting.
I have longed for some code completion features as well and NetBeans  
looks tasty.
I think it will help me in understanding PHP a little better as far as  
syntax that works.
I also work with Javascript and jQuery (LOVE! jQuery, had to learn  
quick as I was a Flash programer before. But I digress.. =)


I have to say though, signing up for this list has been one of my  
better decisions.

Thank you ALL for sharing your expertise. I find it invaluable!

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-06 Thread tamouse mailing lists
On Sun, Jan 6, 2013 at 2:14 PM, Karl DeSaulniers  wrote:
> Unfortunately, I am still working on an old G4 Powerbook trying to finish a
> website of mine.
> Adobe GoLive was the program I imprinted on and it stuck. Sadly it has gone
> away now
> and Dreamweaver is the replacement. I am not fond of DW but will no doubt
> have to
> adjust to get a job in the industry as it is the main stay these days for
> HTML.
> Sadly DW isn't any better (that I know of) when it comes to editing,
> debugging  and creating
> server-side tech. So this NetBeans thingamajig is a real pleaser for me...
> :)

Actually, you might find netbeans just all that for writing the HTML,
CSS and JS stuff, too.

I used Dreamweaver when it first came out and compared to the other
sorts of things available at the time, it was pretty spiffy. But time
has marched on, and creating HTML isn't something I want a visual
editor for.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] Programs not Running - SOLVED

2013-01-06 Thread Brad
Permissions?

-Original Message-
From: Ethan Rosenberg, PhD [mailto:erosenb...@hygeiabiomedical.com] 
Sent: Sunday, January 06, 2013 8:18 PM
To: PHP Database List
Subject: [PHP-DB] Programs not Running - SOLVED

Dear List -

Thanks to all for your help.

The problem was in this piece of code:

 require '/var/www/pass.inc';
 $db = "Store";
 $cxn = mysqli_connect($host,$user,$password,$db);
 if ( !$cxn ) {
   die( 'connect error: '.mysqli_connect_error() );
 }

I had moved the password file [/var/www/pass.inc] out of root, but forgot to
change the code!

This still leaves a question:

 if ( !$cxn ) {
   die( 'connect error: '.mysqli_connect_error() );
 }

Why did the above code catch the error??

Ethan



--
PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-06 Thread Karl DeSaulniers


On Jan 6, 2013, at 4:55 AM, tamouse mailing lists wrote:

On Sun, Jan 6, 2013 at 1:21 AM, Karl DeSaulniers  
 wrote:

I likey.. :)

Thanks!

Best,
Karl


On Jan 5, 2013, at 10:05 PM, Bastien wrote:

Get net beans. It's free and a great IDE with debuggers and other  
stuff


Bastien Koert


netbeans is pretty awesome; I haven't used it for PHP, though. the PHP
verison of Eclipse you can snag from Zend for free is okay, but creaky
slow on low-memory system. Sublime Text 2 is getting a lot of love
these days, although not a fully-fledged IDE, contains oodles of stuff
to help develop software.

I've never used GoLive, so really can't even compare.

Emacs is still my go-to editor, but that's mostly because it's the one
i imprinted on decades ago.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Unfortunately, I am still working on an old G4 Powerbook trying to  
finish a website of mine.
Adobe GoLive was the program I imprinted on and it stuck. Sadly it has  
gone away now
and Dreamweaver is the replacement. I am not fond of DW but will no  
doubt have to
adjust to get a job in the industry as it is the main stay these days  
for HTML.
Sadly DW isn't any better (that I know of) when it comes to editing,  
debugging  and creating
server-side tech. So this NetBeans thingamajig is a real pleaser for  
me... :)


Thanks BK!

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-06 Thread tamouse mailing lists
On Sun, Jan 6, 2013 at 1:21 AM, Karl DeSaulniers  wrote:
> I likey.. :)
>
> Thanks!
>
> Best,
> Karl
>
>
> On Jan 5, 2013, at 10:05 PM, Bastien wrote:
>
>> Get net beans. It's free and a great IDE with debuggers and other stuff
>>
>> Bastien Koert

netbeans is pretty awesome; I haven't used it for PHP, though. the PHP
verison of Eclipse you can snag from Zend for free is okay, but creaky
slow on low-memory system. Sublime Text 2 is getting a lot of love
these days, although not a fully-fledged IDE, contains oodles of stuff
to help develop software.

I've never used GoLive, so really can't even compare.

Emacs is still my go-to editor, but that's mostly because it's the one
i imprinted on decades ago.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-05 Thread Karl DeSaulniers

I likey.. :)

Thanks!

Best,
Karl


On Jan 5, 2013, at 10:05 PM, Bastien wrote:

Get net beans. It's free and a great IDE with debuggers and other  
stuff


Bastien Koert

On 2013-01-05, at 7:14 PM, Karl DeSaulniers   
wrote:




On Jan 5, 2013, at 8:52 AM, tamouse mailing lists wrote:

On Sat, Jan 5, 2013 at 12:48 AM, Karl DeSaulniers > wrote:

On Jan 4, 2013, at 8:00 PM, tamouse mailing lists wrote:
On Fri, Jan 4, 2013 at 6:09 PM, Matt Pelmear  
 wrote:

On 01/04/2013 01:40 PM, tamouse mailing lists wrote:
One should be able to solve parsing problems without resorting  
to using

a
web server. Every time I save a php file, I have my editor set  
to run it
through php -l. Saves lots of angst when I get to the web  
testing stage.


This is a good idea in general. It's also a good trick to check  
for this
problem from the command line when suspecting a parse problem.  
Most IDEs
will make parse errors very obvious while you are editing the  
file, too.
Unfortunately not all members of any given development team can  
be relied

upon to test things in this way before committing ;)


Committing a syntax error which breaks integration is a HUGE  
HUGE NO
NO. Such a person would likely be cast from a dev team, or  
relegated

to some more benign task.


For those of us who have no idea of what you speak,
can you elaborate so as we don't make that mistake?
Or are you just talking about submitting a file to production  
without

testing it?


Not necessarily directly to production, but the beginning of the
stream that will take something from development, through testing,
staging, and finally into production. The initial point where you
merge things is generally shared by all developers on a project, and
to break it means you are breaking things for everyone on your team.

Note this applies to mulitperson projects; if you do this to  
yourself

on your solo project, not so much of a problem.

I personally have not used command line. It is new to me, but  
sounds

integral.
Where can one study its use?


You can start with:

http://php.net/manual/en/features.commandline.php

As for telling your editor to pass the file through php -l, that's
something that is extremely editor specific. I can tell how it's  
done

in Emacs, TextMate and Sublime Text 2, but naught else. Using a
full-fledged IDE such as Eclipse or PHPStorm will automatigically  
flag

syntax problems.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Oh, ok. Then I was not as lost on the subject as I thought.
Being a solo worker who is seeking a job with a team,
I thought I may be missing something and would not want
to be cut from the team for my lack of knowledge on the subject.

I personally do what you all have been saying in response to  
Ethan's posts.
If I hit a snag or have a problem and no error code, I go through  
and remove functions
until I come to the one that is causing the problem. This is a  
little lengthily of a process,

but has proven the best method for me an my lack of php experience.
Unfortunately, I do not know or have experience using any php  
editing IDEs, my code is written in Adobe GoLive... lol
Does have syntax coloring, but about as good as Text edit or note  
pad when it comes to debugging.

Basically the same as hand coding.. actually that's what it is.. :)

Thank you for your response and the link on command line. I will  
take a look.


Best,


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-05 Thread Karl DeSaulniers


On Jan 5, 2013, at 8:52 AM, tamouse mailing lists wrote:

On Sat, Jan 5, 2013 at 12:48 AM, Karl DeSaulniers > wrote:

On Jan 4, 2013, at 8:00 PM, tamouse mailing lists wrote:
On Fri, Jan 4, 2013 at 6:09 PM, Matt Pelmear   
wrote:

On 01/04/2013 01:40 PM, tamouse mailing lists wrote:
One should be able to solve parsing problems without resorting  
to using

a
web server. Every time I save a php file, I have my editor set  
to run it
through php -l. Saves lots of angst when I get to the web  
testing stage.


This is a good idea in general. It's also a good trick to check  
for this
problem from the command line when suspecting a parse problem.  
Most IDEs
will make parse errors very obvious while you are editing the  
file, too.
Unfortunately not all members of any given development team can  
be relied

upon to test things in this way before committing ;)


Committing a syntax error which breaks integration is a HUGE HUGE NO
NO. Such a person would likely be cast from a dev team, or relegated
to some more benign task.


For those of us who have no idea of what you speak,
can you elaborate so as we don't make that mistake?
Or are you just talking about submitting a file to production without
testing it?


Not necessarily directly to production, but the beginning of the
stream that will take something from development, through testing,
staging, and finally into production. The initial point where you
merge things is generally shared by all developers on a project, and
to break it means you are breaking things for everyone on your team.

Note this applies to mulitperson projects; if you do this to yourself
on your solo project, not so much of a problem.


I personally have not used command line. It is new to me, but sounds
integral.
Where can one study its use?


You can start with:

http://php.net/manual/en/features.commandline.php

As for telling your editor to pass the file through php -l, that's
something that is extremely editor specific. I can tell how it's done
in Emacs, TextMate and Sublime Text 2, but naught else. Using a
full-fledged IDE such as Eclipse or PHPStorm will automatigically flag
syntax problems.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Oh, ok. Then I was not as lost on the subject as I thought.
Being a solo worker who is seeking a job with a team,
I thought I may be missing something and would not want
to be cut from the team for my lack of knowledge on the subject.

I personally do what you all have been saying in response to Ethan's  
posts.
If I hit a snag or have a problem and no error code, I go through and  
remove functions
until I come to the one that is causing the problem. This is a little  
lengthily of a process,

but has proven the best method for me an my lack of php experience.
Unfortunately, I do not know or have experience using any php editing  
IDEs, my code is written in Adobe GoLive... lol
Does have syntax coloring, but about as good as Text edit or note pad  
when it comes to debugging.

Basically the same as hand coding.. actually that's what it is.. :)

Thank you for your response and the link on command line. I will take  
a look.


Best,


Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-05 Thread tamouse mailing lists
On Sat, Jan 5, 2013 at 12:48 AM, Karl DeSaulniers  wrote:
> On Jan 4, 2013, at 8:00 PM, tamouse mailing lists wrote:
>> On Fri, Jan 4, 2013 at 6:09 PM, Matt Pelmear  wrote:
>>> On 01/04/2013 01:40 PM, tamouse mailing lists wrote:
 One should be able to solve parsing problems without resorting to using
 a
 web server. Every time I save a php file, I have my editor set to run it
 through php -l. Saves lots of angst when I get to the web testing stage.
>>>
>>> This is a good idea in general. It's also a good trick to check for this
>>> problem from the command line when suspecting a parse problem. Most IDEs
>>> will make parse errors very obvious while you are editing the file, too.
>>> Unfortunately not all members of any given development team can be relied
>>> upon to test things in this way before committing ;)
>>
>> Committing a syntax error which breaks integration is a HUGE HUGE NO
>> NO. Such a person would likely be cast from a dev team, or relegated
>> to some more benign task.
>
> For those of us who have no idea of what you speak,
> can you elaborate so as we don't make that mistake?
> Or are you just talking about submitting a file to production without
> testing it?

Not necessarily directly to production, but the beginning of the
stream that will take something from development, through testing,
staging, and finally into production. The initial point where you
merge things is generally shared by all developers on a project, and
to break it means you are breaking things for everyone on your team.

Note this applies to mulitperson projects; if you do this to yourself
on your solo project, not so much of a problem.

> I personally have not used command line. It is new to me, but sounds
> integral.
> Where can one study its use?

You can start with:

http://php.net/manual/en/features.commandline.php

As for telling your editor to pass the file through php -l, that's
something that is extremely editor specific. I can tell how it's done
in Emacs, TextMate and Sublime Text 2, but naught else. Using a
full-fledged IDE such as Eclipse or PHPStorm will automatigically flag
syntax problems.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-04 Thread Karl DeSaulniers


On Jan 4, 2013, at 8:00 PM, tamouse mailing lists wrote:

On Fri, Jan 4, 2013 at 6:09 PM, Matt Pelmear   
wrote:

On 01/04/2013 01:40 PM, tamouse mailing lists wrote:


One should be able to solve parsing problems without resorting to  
using a
web server. Every time I save a php file, I have my editor set to  
run it
through php -l. Saves lots of angst when I get to the web testing  
stage.



This is a good idea in general. It's also a good trick to check for  
this
problem from the command line when suspecting a parse problem. Most  
IDEs
will make parse errors very obvious while you are editing the file,  
too.
Unfortunately not all members of any given development team can be  
relied

upon to test things in this way before committing ;)


Committing a syntax error which breaks integration is a HUGE HUGE NO
NO. Such a person would likely be cast from a dev team, or relegated
to some more benign task.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




For those of us who have no idea of what you speak,
can you elaborate so as we don't make that mistake?
Or are you just talking about submitting a file to production without  
testing it?
I personally have not used command line. It is new to me, but sounds  
integral.

Where can one study its use?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-04 Thread Matt Pelmear

On 01/04/2013 06:00 PM, tamouse mailing lists wrote:

On Fri, Jan 4, 2013 at 6:09 PM, Matt Pelmear  wrote:

On 01/04/2013 01:40 PM, tamouse mailing lists wrote:

One should be able to solve parsing problems without resorting to using a
web server. Every time I save a php file, I have my editor set to run it
through php -l. Saves lots of angst when I get to the web testing stage.


This is a good idea in general. It's also a good trick to check for this
problem from the command line when suspecting a parse problem. Most IDEs
will make parse errors very obvious while you are editing the file, too.
Unfortunately not all members of any given development team can be relied
upon to test things in this way before committing ;)

Committing a syntax error which breaks integration is a HUGE HUGE NO
NO. Such a person would likely be cast from a dev team, or relegated
to some more benign task.


Yup. Again though, not everyone is so lucky as to only work with true 
professionals at all times. I've personally managed dev teams that are 
anywhere from largely green developers to largely seasoned 
professionals. Sometimes you have to work with what you have.

But we digress...


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 6:09 PM, Matt Pelmear  wrote:
> On 01/04/2013 01:40 PM, tamouse mailing lists wrote:
>>
>> One should be able to solve parsing problems without resorting to using a
>> web server. Every time I save a php file, I have my editor set to run it
>> through php -l. Saves lots of angst when I get to the web testing stage.
>
>
> This is a good idea in general. It's also a good trick to check for this
> problem from the command line when suspecting a parse problem. Most IDEs
> will make parse errors very obvious while you are editing the file, too.
> Unfortunately not all members of any given development team can be relied
> upon to test things in this way before committing ;)

Committing a syntax error which breaks integration is a HUGE HUGE NO
NO. Such a person would likely be cast from a dev team, or relegated
to some more benign task.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-04 Thread Matt Pelmear

On 01/04/2013 01:40 PM, tamouse mailing lists wrote:
One should be able to solve parsing problems without resorting to 
using a web server. Every time I save a php file, I have my editor set 
to run it through php -l. Saves lots of angst when I get to the web 
testing stage. 


This is a good idea in general. It's also a good trick to check for this 
problem from the command line when suspecting a parse problem. Most IDEs 
will make parse errors very obvious while you are editing the file, too.
Unfortunately not all members of any given development team can be 
relied upon to test things in this way before committing ;)



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 12:37 AM, Matt Pelmear  wrote:
> In my experience, the problem you are experiencing is caused by one of two
> issues:
>
> 1) A major parsing problem (sometimes no error is displayed-- you just get
> no output.)

One should be able to solve parsing problems without resorting to
using a web server. Every time I save a php file, I have my editor set
to run it through php -l. Saves lots of angst when I get to the web
testing stage.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-04 Thread Jim Giner
Is the failing one a .php file?

jg


On Jan 3, 2013, at 11:54 PM, "Ethan Rosenberg, PhD" 
 wrote:

> 
> On 01/03/2013 10:14 PM, Matt Pelmear wrote:
>> 
>> In addition to Jim's comments, 
>> 
>> Have you checked to see whether the permissions on all files are appropriate 
>> on the environment where this doesn't work? 
>> Are you running this in a web environment or CLI? If web, are you 100% sure 
>> the web server configuration is correct? 
>> 
>> -Matt 
>> 
>> On 01/03/2013 04:35 PM, Ethan Rosenberg, PhD wrote: 
>>> Dear List - 
>>> 
>>> I am running sid on my Lenovo desktop and squeeze on my Dell laptop.  The 
>>> php.ini files are the same.  The programs are the same except foro the 
>>> locatioln of the password file and of a file to be read for parameters. The 
>>> programs run beautifully on the desktop, but refuse to run on the laptop.  
>>> Error_reporting is set to -1. I receive no errors. 
>>> 
>>> Advice and help, please. 
>>> 
>>> Ethan 
> =
> Jim and Matt -
> 
> Did all the suggested debugging prior to sending the eml.  Note - 
> error_reporting(-1).  I hope that should catch anything.  If it helps, the 
> programs with just HTML code run OK.  the ones with  HTML/PHP do not.  In 
> fact, one of the HTML/PHP programs does not give any output at all, even w/ a 
> character string; eg, dtgfsvc, at the beginning f the code.
> 
> Are you running this in a web environment or CLI? If web, are you 100% sure 
> the web server configuration is correct? 
> 
> I can't answer because I do not understand.  gives the 
> correct output.
> 
> Hopefully, all the above should give us some hints at how to proceed.
> 
> Ethan
> 

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-04 Thread Jim Giner


On 01/03/2013 08:54 PM, Ethan Rosenberg, PhD wrote:

=

I can't answer because I do not understand.  gives
the correct output.



Ethan - whatever do you mean the phpinfo gives the correct output?  Do 
you mean that you compared every line and found them to match EXCEPT 
where you made deliberate changes?  Personally, I have very little idea 
about what is correct when I look at a phpinfo dump.  I just look to see 
what I expect to be set (by me) and let the rest go.  So much of it is 
meaningless to me - I let my host admins worry about the rest.



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Programs not running

2013-01-03 Thread Matt Pelmear

Ethan,


I'm not sure this conversation is appropriate for this mailing list. 
This question has probably been answered 1000 times on the general php list.



In my experience, the problem you are experiencing is caused by one of 
two issues:


1) A major parsing problem (sometimes no error is displayed-- you just 
get no output.)
2) An out-of-memory error (which can sometimes cause scripts to bail out 
even when error reporting is enabled)



I would recommend:
- Setting the error reporting level in php.ini rather than with 
error_reporting() while you debug this issue
- Systematically comment out your entire script (in which case you 
should be able to run it and do something simple like display a string), 
then slowly add things in until you no longer receive output.


ex:


becomes:



then:



Call me crazy, but I swear I've encountered problems where even comments 
weren't enough- I've had to actually remove the code from the file and 
paste it in bit by bit. PHP can be extremely annoying sometimes.



-Matt

On 01/03/2013 08:54 PM, Ethan Rosenberg, PhD wrote:

=
Jim and Matt -

Did all the suggested debugging prior to sending the eml.  Note - 
error_reporting(-1).  I hope that should catch anything.  If it helps, 
the programs with just HTML code run OK.  the ones with HTML/PHP do 
not.  In fact, one of the HTML/PHP programs does not give any output 
at all, even w/ a character string; eg, dtgfsvc, at the beginning f 
the code.


Are you running this in a web environment or CLI? If web, are you 100% 
sure the web server configuration is correct?


I can't answer because I do not understand.  gives 
the correct output.


Hopefully, all the above should give us some hints at how to proceed.

Ethan





Re: [PHP-DB] Programs not running

2013-01-03 Thread Matt Pelmear

In addition to Jim's comments,

Have you checked to see whether the permissions on all files are 
appropriate on the environment where this doesn't work?
Are you running this in a web environment or CLI? If web, are you 100% 
sure the web server configuration is correct?


-Matt

On 01/03/2013 04:35 PM, Ethan Rosenberg, PhD wrote:

Dear List -

I am running sid on my Lenovo desktop and squeeze on my Dell laptop.  
The php.ini files are the same.  The programs are the same except foro 
the locatioln of the password file and of a file to be read for 
parameters. The programs run beautifully on the desktop, but refuse to 
run on the laptop.  Error_reporting is set to -1. I receive no errors.


Advice and help, please.

Ethan



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php