Discussion:
[nycphp-talk] tabs disappearing after mail function
(too old to reply)
selyah
2010-02-14 20:43:47 UTC
Permalink
Hello:
I have an issue. first let me layout my site which is testing mode. I am having problem with the php page that handles the form information.
the pages blocks are controlled by <div> statements, no tables. there is a block on the top for the logo, below that is the content block, and to the right is the block for the tabs, then there is the footer block at the bottom of the page. all of the pages work fine. problem is when I test the php page to handle the form information, the tabs to the right with the index and the footer disappears and the thank you information from the form also appears. In testing it, i remove the php part and run it and the blocks appears, when i re-enter the php portion of the code, they disappears again........any ideas

PS. I am using wamp and have not configured the mail function in php.ini (that should not affect it should it ?)
thanks


Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100214/bf6356f6/attachment.html>
David Krings
2010-02-14 20:49:34 UTC
Permalink
I have an issue. first let me layout my site which is testing mode. I am
having problem with the php page that handles the form information.
the pages blocks are controlled by <div> statements, no tables. there is
a block on the top for the logo, below that is the content block, and to
the right is the block for the tabs, then there is the footer block at
the bottom of the page. all of the pages work fine. problem is when I
test the php page to handle the form information, the tabs to the right
with the index and the footer disappears and the thank you information
from the form also appears. In testing it, i remove the php part and run
it and the blocks appears, when i re-enter the php portion of the code,
they disappears again........any ideas
PS. I am using wamp and have not configured the mail function in php.ini
(that should not affect it should it ?)
thanks
*/Ian
/*
Take a look at the XHTML ooutput of your PHP code. My guess is that you echo a
line that closes the div or html tag prematurely. When you have the PHP code
in place and look at the source of the resulting page it is often fairly easy
to figure out where the problem is.

David
Michele Waldman
2010-02-14 20:54:00 UTC
Permalink
Hum. Bug somewhere. Lol



Why don't you test it out using another php module, even one doing next to
nothing.



I know echos and prints can really skew a layout.



A bug in the php will halt any rendering below the include, but I haven't
seen the code, so .



First, I'd try to identify where the bug is on the page or the php. I'm
guessing the php.



A few experiments might help identify it.



Do you have display_errors on?



But, my money is on a php error.



Michele

_____

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of selyah
Sent: Sunday, February 14, 2010 3:44 PM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] tabs disappearing after mail function



Hello:
I have an issue. first let me layout my site which is testing mode. I am
having problem with the php page that handles the form information.
the pages blocks are controlled by <div> statements, no tables. there is a
block on the top for the logo, below that is the content block, and to the
right is the block for the tabs, then there is the footer block at the
bottom of the page. all of the pages work fine. problem is when I test the
php page to handle the form information, the tabs to the right with the
index and the footer disappears and the thank you information from the form
also appears. In testing it, i remove the php part and run it and the
blocks appears, when i re-enter the php portion of the code, they disappears
again........any ideas

PS. I am using wamp and have not configured the mail function in php.ini
(that should not affect it should it ?)
thanks



Ian





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100214/76a0e1f0/attachment.html>
selyah
2010-02-14 21:43:08 UTC
Permalink
i have display_errors off...i will try it with that on and see what happens. do you or any one know of any issues with firefox version 3.5 and php?






________________________________
From: Michele Waldman <mmwaldman at nyc.rr.com>
To: NYPHP Talk <talk at lists.nyphp.org>
Sent: Sun, February 14, 2010 2:54:00 PM
Subject: Re: [nycphp-talk] tabs disappearing after mail function


Hum. Bug somewhere. Lol

Why don?t you test it out using
another php module, even one doing next to nothing.

I know echos and prints can really skew a
layout.

A bug in the php will halt any rendering
below the include, but I haven?t seen the code, so ?

First, I?d try to identify where the
bug is on the page or the php. I?m guessing the php.

A few experiments might help identify it.

Do you have display_errors on?

But, my money is on a php error.

Michele

________________________________

From:talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On
Behalf Of selyah
Sent: Sunday, February 14, 2010
3:44 PM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] tabs
disappearing after mail function

Hello:
I have an issue. first let me layout my site which is testing mode.
I am having problem with the php page that handles the form information.
the pages blocks are controlled by <div> statements, no
tables. there is a block on the top for the logo, below that is the
content block, and to the right is the block for the tabs, then there is the
footer block at the bottom of the page. all of the pages work fine.
problem is when I test the php page to handle the form information, the tabs to
the right with the index and the footer disappears and the thank you
information from the form also appears. In testing it, i remove the
php part and run it and the blocks appears, when i re-enter the php portion of
the code, they disappears again........any ideas

PS. I am using wamp and have not configured the mail function in php.ini
(that should not affect it should it ?)
thanks

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100214/50a66c0e/attachment.html>
David Krings
2010-02-14 22:07:29 UTC
Permalink
Post by selyah
i have display_errors off...i will try it with that on and see what
happens. do you or any one know of any issues with firefox version 3.5
and php?
No, and the browser doesn't matter. You know, PHP is a server side scripting
language....
And yea, turn display_errors on and leave it on. It is there for a reason.
selyah
2010-02-14 21:55:57 UTC
Permalink
michele:
I am attaching the page for you

ian







________________________________
From: Michele Waldman <mmwaldman at nyc.rr.com>
To: NYPHP Talk <talk at lists.nyphp.org>
Sent: Sun, February 14, 2010 2:54:00 PM
Subject: Re: [nycphp-talk] tabs disappearing after mail function


Hum. Bug somewhere. Lol

Why don?t you test it out using
another php module, even one doing next to nothing.

I know echos and prints can really skew a
layout.

A bug in the php will halt any rendering
below the include, but I haven?t seen the code, so ?

First, I?d try to identify where the
bug is on the page or the php. I?m guessing the php.

A few experiments might help identify it.

Do you have display_errors on?

But, my money is on a php error.

Michele

________________________________

From:talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On
Behalf Of selyah
Sent: Sunday, February 14, 2010
3:44 PM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] tabs
disappearing after mail function

Hello:
I have an issue. first let me layout my site which is testing mode.
I am having problem with the php page that handles the form information.
the pages blocks are controlled by <div> statements, no
tables. there is a block on the top for the logo, below that is the
content block, and to the right is the block for the tabs, then there is the
footer block at the bottom of the page. all of the pages work fine.
problem is when I test the php page to handle the form information, the tabs to
the right with the index and the footer disappears and the thank you
information from the form also appears. In testing it, i remove the
php part and run it and the blocks appears, when i re-enter the php portion of
the code, they disappears again........any ideas

PS. I am using wamp and have not configured the mail function in php.ini
(that should not affect it should it ?)
thanks

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100214/8aca55cf/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sample.txt
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100214/8aca55cf/attachment.txt>
Michele Waldman
2010-02-15 01:38:52 UTC
Permalink
Don't forget to reboot or set the flag in the module.


Michele


_____

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of selyah
Sent: Sunday, February 14, 2010 4:43 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] tabs disappearing after mail function


i have display_errors off...i will try it with that on and see what happens.
do you or any one know of any issues with firefox version 3.5 and php?






_____

From: Michele Waldman <mmwaldman at nyc.rr.com>
To: NYPHP Talk <talk at lists.nyphp.org>
Sent: Sun, February 14, 2010 2:54:00 PM
Subject: Re: [nycphp-talk] tabs disappearing after mail function



Hum. Bug somewhere. Lol



Why don't you test it out using another php module, even one doing next to
nothing.



I know echos and prints can really skew a layout.



A bug in the php will halt any rendering below the include, but I haven't
seen the code, so .



First, I'd try to identify where the bug is on the page or the php. I'm
guessing the php.



A few experiments might help identify it.



Do you have display_errors on?



But, my money is on a php error.



Michele


_____


From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of selyah
Sent: Sunday, February 14, 2010 3:44 PM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] tabs disappearing after mail function



Hello:
I have an issue. first let me layout my site which is testing mode. I am
having problem with the php page that handles the form information.
the pages blocks are controlled by <div> statements, no tables. there is a
block on the top for the logo, below that is the content block, and to the
right is the block for the tabs, then there is the footer block at the
bottom of the page. all of the pages work fine. problem is when I test the
php page to handle the form information, the tabs to the right with the
index and the footer disappears and the thank you information from the form
also appears. In testing it, i remove the php part and run it and the
blocks appears, when i re-enter the php portion of the code, they disappears
again........any ideas

PS. I am using wamp and have not configured the mail function in php.ini
(that should not affect it should it ?)
thanks



Ian





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100214/544235fb/attachment.html>
Michele Waldman
2010-02-15 01:39:33 UTC
Permalink
I'd leave it on til I go live.

Michele
-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Krings
Sent: Sunday, February 14, 2010 5:07 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] tabs disappearing after mail function
Post by selyah
i have display_errors off...i will try it with that on and see what
happens. do you or any one know of any issues with firefox
version 3.5
Post by selyah
and php?
No, and the browser doesn't matter. You know, PHP is a server
side scripting
language....
And yea, turn display_errors on and leave it on. It is there
for a reason.
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/Show-Participation
Michele Waldman
2010-02-15 01:48:28 UTC
Permalink
Your problem is line 92.

exit();

I'm not doing anymore. You'll receive an invoice. :-)


Michele


_____

From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of selyah
Sent: Sunday, February 14, 2010 4:56 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] tabs disappearing after mail function



michele:
I am attaching the page for you

ian







_____

From: Michele Waldman <mmwaldman at nyc.rr.com>
To: NYPHP Talk <talk at lists.nyphp.org>
Sent: Sun, February 14, 2010 2:54:00 PM
Subject: Re: [nycphp-talk] tabs disappearing after mail function



Hum. Bug somewhere. Lol



Why don't you test it out using another php module, even one doing next to
nothing.



I know echos and prints can really skew a layout.



A bug in the php will halt any rendering below the include, but I haven't
seen the code, so .



First, I'd try to identify where the bug is on the page or the php. I'm
guessing the php.



A few experiments might help identify it.



Do you have display_errors on?



But, my money is on a php error.



Michele


_____


From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of selyah
Sent: Sunday, February 14, 2010 3:44 PM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] tabs disappearing after mail function



Hello:
I have an issue. first let me layout my site which is testing mode. I am
having problem with the php page that handles the form information.
the pages blocks are controlled by <div> statements, no tables. there is a
block on the top for the logo, below that is the content block, and to the
right is the block for the tabs, then there is the footer block at the
bottom of the page. all of the pages work fine. problem is when I test the
php page to handle the form information, the tabs to the right with the
index and the footer disappears and the thank you information from the form
also appears. In testing it, i remove the php part and run it and the
blocks appears, when i re-enter the php portion of the code, they disappears
again........any ideas

PS. I am using wamp and have not configured the mail function in php.ini
(that should not affect it should it ?)
thanks



Ian





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100214/f10b2639/attachment.html>
selyah
2010-02-15 15:23:09 UTC
Permalink
Michele:
thanks, that was the problem.......


Ian






________________________________
From: Michele Waldman <mmwaldman at nyc.rr.com>
To: NYPHP Talk <talk at lists.nyphp.org>
Sent: Sun, February 14, 2010 7:48:28 PM
Subject: Re: [nycphp-talk] tabs disappearing after mail function


Your problem is line 92.

exit();

I'm not doing anymore. You'll receive an
invoice. :-)

Michele


________________________________
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On Behalf Of
selyah
Sent: Sunday, February 14, 2010 4:56 PM
To: > NYPHP Talk
Subject: Re: [nycphp-talk] tabs disappearing after mail
function
I am attaching the page for you
ian
________________________________
From: Michele Waldman
<mmwaldman at nyc.rr.com>
To: NYPHP Talk
<talk at lists.nyphp.org>
Sent: Sun, February 14, 2010 2:54:00
PM
Subject: Re: [nycphp-talk]
tabs disappearing after mail function
Hum. Bug
somewhere. Lol
Why don?t you test it
out using another php module, even one doing next to
nothing.
I know echos and
prints can really skew a layout.
A bug in the php will
halt any rendering below the include, but I haven?t seen the code, so
?
First, I?d try to
identify where the bug is on the page or the php. I?m guessing the
php.
A few experiments
might help identify it.
Do you have
display_errors on?
But, my money is on a
php error.
Michele
________________________________
From:> talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of selyah
Sent: Sunday, February 14, 2010 3:44
PM
To: > talk at lists.nyphp.org
Subject: > [nycphp-talk] tabs disappearing after mail function
I have an issue. first let me layout my site which is testing
mode. I am having problem with the php page that handles the form
information.
the pages blocks are controlled by <div> statements, no
tables. there is a block on the top for the logo, below that is
the content block, and to the right is the block for the tabs, then there is
the footer block at the bottom of the page. all of the pages work
fine. problem is when I test the php page to handle the form
information, the tabs to the right with the index and the footer disappears
and the thank you information from the form also appears. In
testing it, i remove the php part and run it and the blocks appears, when i
re-enter the php portion of the code, they disappears again........any
ideas
PS. I am using wamp and have not configured the mail
function in php.ini (that should not affect it should it
?)
thanks
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100215/f573f728/attachment.html>
CED
2010-02-15 17:36:31 UTC
Permalink
Has anyone ever configured this?

I have followed several online suggestions and still no luck, a fail
authentication error is all i receive from this:

CODE:
<?php
echo 'trying to connect' ;
$server = 'SERVERNAME\INSTANCE';
$link = mssql_connect($server, 'username', 'password');
if (!$link) {
die('Something went wrong while connecting to MSSQL');
}
?>


Suggestions greatly appreciated.

-Ed
CED
2010-02-15 17:54:44 UTC
Permalink
Post by CED
Has anyone ever configured this?
I have followed several online suggestions and still no luck, a fail
<?php
echo 'trying to connect' ;
$server = 'SERVERNAME\INSTANCE';
$link = mssql_connect($server, 'username', 'password');
if (!$link) {
die('Something went wrong while connecting to MSSQL');
}
?>
Suggestions greatly appreciated.
-Ed
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/Show-Participation
Nevermind, got it. =D
--
<img src="Loading Image..." border ="0">
995 Maple Hill Road
Castleton, New York 12033
518-331-5061
Consult at CovenanteDesign.com
David Krings
2010-02-15 19:06:41 UTC
Permalink
Post by CED
Has anyone ever configured this?
I have followed several online suggestions and still no luck, a fail
<?php
echo 'trying to connect' ;
$server = 'SERVERNAME\INSTANCE';
$link = mssql_connect($server, 'username', 'password');
if (!$link) {
die('Something went wrong while connecting to MSSQL');
}
?>
Do you have TCP/IP enabled? That is turned off by default in MSSQL. Why?
Because everyone needs it....

David
Justin Dearing
2010-02-15 19:58:20 UTC
Permalink
Post by David Krings
Do you have TCP/IP enabled? That is turned off by default in MSSQL. Why?
Because everyone needs it....
I'm actually kinda glad that Microsoft turns that off, because not
"everybody" needs it.

First of all, you don't need it if your application is on the same machine
as the SQL server. Second of all, if you don't know what your doing, you
don't want your SQL server open to the world. Third, its not that hard to
turn on once you know where to look. So its secure by default.

Don't get me wrong, I'd be all for a prompt during the install to turn on
TCP access and warn you of the risks. I also realize that most real world
usages of SQL server require TCP access. However, especially for the
developer and express editions, a few hoops to make it harder to hang
yourself is a good thing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20100215/0e8bbdb7/attachment.html>
David Krings
2010-02-15 23:25:43 UTC
Permalink
On Mon, Feb 15, 2010 at 2:06 PM, David Krings <ramons at gmx.net
Do you have TCP/IP enabled? That is turned off by default in MSSQL.
Why? Because everyone needs it....
I'm actually kinda glad that Microsoft turns that off, because not
"everybody" needs it.
First of all, you don't need it if your application is on the same
machine as the SQL server. Second of all, if you don't know what your
doing, you don't want your SQL server open to the world. Third, its not
that hard to turn on once you know where to look. So its secure by default.
Don't get me wrong, I'd be all for a prompt during the install to turn
on TCP access and warn you of the risks. I also realize that most real
world usages of SQL server require TCP access. However, especially for
the developer and express editions, a few hoops to make it harder to
hang yourself is a good thing.
I agree, but working with especially SQL2008 professionally made me really
deeply loathe this POS. I could give plenty of reasons, but that will be
somewhat pointless here. Not to say others are better, the new MySQL workbench
doesn't work on Server 2003 and is incapable of making remote connections.
Which idiot decided that this sad excuse of a GUI tool is ready for prime
time? Luckily they still offer the old tools, which work perfectly fine.
Maybe that is what I get for shying away from the command line....
In regards to TCP/IP and SQL2k5, how many apps run on the same server? Yea,
there are some, but my guess is that in reality the vast majority connects
remotely. Aside from that, security is a good thing, but then why is it
allowed by default to use weak or even no sa password? Just asking
rhethorically....

David

tedd
2010-02-15 13:01:34 UTC
Permalink
Post by selyah
I have an issue. first let me layout my site which is testing mode.
I am having problem with the php page that handles the form
information.
the pages blocks are controlled by <div> statements, no tables.
there is a block on the top for the logo, below that is the content
block, and to the right is the block for the tabs, then there is the
footer block at the bottom of the page. all of the pages work fine.
problem is when I test the php page to handle the form information,
the tabs to the right with the index and the footer disappears and
the thank you information from the form also appears. In testing
it, i remove the php part and run it and the blocks appears, when i
re-enter the php portion of the code, they disappears
again........any ideas
PS. I am using wamp and have not configured the mail function in
php.ini (that should not affect it should it ?)
thanks
Ian
It simply means that you a have an error in your php coding. Fix the
error and you'll see all the blocks again. It may still not work as
you want, but at least the php part will not fail.

cheers,

tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
Loading...