php-general Digest 15 Dec 2008 19:15:22 -0000 Issue 5847
Topics (messages 284625 through 284639):
Re: Chrome 1.0 released
284625 by: Luke Slater
284631 by: tedd
Re: Good PHP book?
284626 by: Micah Gersten
284627 by: Jay Blanchard
Re: apache and PHP / Eclipse
284628 by: Eric Butera
284629 by: Carlos Medina
XML Get Value of Node DOMXPath
284630 by: Stephen Alistoun
header modify errors
284632 by: Terion Miller
284633 by: Jay Moore
284634 by: Jim Lucas
284635 by: Jim Lucas
284636 by: Terion Miller
284637 by: Terion Miller
284638 by: VamVan
new xampp server problem w/mail
284639 by: Ian Lin
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hah, the world will only be a small collateral fallout in the mighty
battles . . .
On Mon, 15 Dec 2008, German Geek wrote:
> Conspiracy against M$? I thought they were conspiring against the world :-)
>
> Tim-Hinnerk Heuer
>
> http://www.ihostnz.com
>
>
> On Mon, Dec 15, 2008 at 2:22 PM, Yeti <[email protected]> wrote:
>
>> It more and more seems like a conspiracy against M$ to me. A company
>> trying to make up its own standards every once in a while, how can
>> that be wrong?
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
--- End Message ---
--- Begin Message ---
At 5:22 PM -0800 12/14/08, Yeti wrote:
It more and more seems like a conspiracy against M$ to me. A company
trying to make up its own standards every once in a while, how can
that be wrong?
The more experienced you become, the more you'll see M$ for what it
is. They are concerned about the bottom line and nothing else.
If complying to standards serves their interest, then they will.
However if they can figure out a way to make money by not complying,
then they won't.
One can say that all companies are concerned about the bottom line,
but not all companies rate that at the expense of everything else.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
O'reillys Learning PHP 5:
http://oreilly.com/catalog/9780596005603/index.html
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
jeffery harris wrote:
> Hi guys/gals. I'm a first time user. Does anyone know of a good php book?
>
>
>
>
--- End Message ---
--- Begin Message ---
[snip]
Hi guys/gals. I'm a first time user. Does anyone know of a good php
book?
[/snip]
http://www.amazon.com/PHP-Advanced-Visual-QuickPro-Guide/dp/0321376013
if you are already a programmer but want to get up to speed on PHP
--- End Message ---
--- Begin Message ---
On Sun, Dec 14, 2008 at 10:33 AM, Nathan Rixham <[email protected]> wrote:
> Eduardo Vizcarra wrote:
>>
>> I am having a hard time trying to get some pages work. I have PHP 5.2.8,
>> Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All
>> packages were installed, and configured, the strange thing is that pages
>> commonly work but when I add a new line (e.g. an echo line) with a dummy
>> text, Apache crashes and it is restarted
>>
>> I am using Eclipese europa to create the code
>>
>> e.g. I have this code and the page works:
>> include 'upper_pagina.php';
>> include 'forma.php';
>> $link = mysql_connect("127.0.0.1","root","root");
>> if (!$link)
>> {
>> echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'
>> bordercolor='FFFFFF'>\n";
>> echo "<tr>\n";
>> echo "<td bgcolor='FF9327'>\n";
>> echo "<b>La Base de datos no esta disponible en este momento.<BR>";
>> echo "Disculpe las molestias, intente mas tarde</b>";
>> echo "</td>\n";
>> echo "</tr>\n";
>> echo "</table>\n";
>> }
>> mysql_select_db("estoydevacacionesdb") or die("No pudo seleccionarse la
>> BD.");
>> $busquedasql1 = "select * from servicios";
>> include 'bottom_pagina.php';
>>
>> but if I add a new line ($servicios1 = mysql_query($busquedasql1);)
>> before the last include line, apache crashes, it has been very hard for me
>> to identify what it is causing this problem
>>
>> any clue ?
>>
>> Regards
>> Eduardo
>
> also.. you may find it worth while to upgrade to the PDT 2.0 version of
> eclipse which uses ganymede and comes with the zend debugger, allowing you
> to test and debug you're code in eclipse.
>
> http://www.zend.com/en/community/pdt
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I was playing with that last week at work. It's quite buggy.
--- End Message ---
--- Begin Message ---
TEric Butera schrieb:
On Sun, Dec 14, 2008 at 10:33 AM, Nathan Rixham <[email protected]> wrote:
Eduardo Vizcarra wrote:
I am having a hard time trying to get some pages work. I have PHP 5.2.8,
Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All
packages were installed, and configured, the strange thing is that pages
commonly work but when I add a new line (e.g. an echo line) with a dummy
text, Apache crashes and it is restarted
I am using Eclipese europa to create the code
e.g. I have this code and the page works:
include 'upper_pagina.php';
include 'forma.php';
$link = mysql_connect("127.0.0.1","root","root");
if (!$link)
{
echo "<table width='100%' border='0' cellspacing='0' cellpadding='5'
bordercolor='FFFFFF'>\n";
echo "<tr>\n";
echo "<td bgcolor='FF9327'>\n";
echo "<b>La Base de datos no esta disponible en este momento.<BR>";
echo "Disculpe las molestias, intente mas tarde</b>";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
mysql_select_db("estoydevacacionesdb") or die("No pudo seleccionarse la
BD.");
$busquedasql1 = "select * from servicios";
include 'bottom_pagina.php';
but if I add a new line ($servicios1 = mysql_query($busquedasql1);)
before the last include line, apache crashes, it has been very hard for me
to identify what it is causing this problem
any clue ?
Regards
Eduardo
also.. you may find it worth while to upgrade to the PDT 2.0 version of
eclipse which uses ganymede and comes with the zend debugger, allowing you
to test and debug you're code in eclipse.
http://www.zend.com/en/community/pdt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I was playing with that last week at work. It's quite buggy.
Try to use Xampp apachefriends.org
Regards
Carlos
--- End Message ---
--- Begin Message ---
Hello all,
Need help to get the value of the node.
We know how to get the value of the city , item and itemPrice nodes below.
How do we get the value of NumberOfRooms?
$hotelElements = $xpath->query( 'xxxx', $searchReponseElement );
foreach( $hotelElements as $hotelElement )
{
$city = $xpath->query( 'City' , $hotelElement );
$item = $xpath->query( 'Item' , $hotelElement );
$itemPrice = $xpath->query( 'ItemPrice' , $hotelElement );
$confirmation = $xpath->query( 'Confirmation' , $hotelElement );
}
Here is an example of the XML Response:
<Hotel HasExtraInfo="true">
<City Code="AMS"><![CDATA[ Amsterdam ]]></City>
<Item Code="JAN"><![CDATA[ JAN LUYKEN HTL AND
RESIDENCE]]></Item>
<LocationDetails>
<Location Code="G1"><![CDATA[ Central ]]></Location>
</LocationDetails>
<StarRating>4</StarRating>
<HotelRooms>
<HotelRoom
Code="SB"
NumberOfRooms="1" />
<HotelRoom
Code="TB"
ExtraBed="true"
NumberCots="1"
NumberOfExtraBeds="2"
NumberOfRooms="1
SharingBedding="true" />
</HotelRooms>
Thanks
--
View this message in context:
http://www.nabble.com/XML-Get-Value-of-Node-DOMXPath-tp21015877p21015877.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
I am working from home today and getting this error with my copy of my
project:
*Warning*: Cannot modify header information - headers already sent by
(output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
line *3*
*Warning*: Cannot modify header information - headers already sent by
(output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
line *4*
Could not connect to the database.
I have set my php.ini file output_buffering to ON it was off (read in a past
post that will fix this error--but it did not)
I also set session.cache_limiter = to nothing it was set to nocache....
Any other things I'm missing?
Thanks
Terion
--- End Message ---
--- Begin Message ---
Terion Miller wrote:
I am working from home today and getting this error with my copy of my
project:
*Warning*: Cannot modify header information - headers already sent by
(output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
line *3*
*Warning*: Cannot modify header information - headers already sent by
(output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
line *4*
Could not connect to the database.
I have set my php.ini file output_buffering to ON it was off (read in a past
post that will fix this error--but it did not)
I also set session.cache_limiter = to nothing it was set to nocache....
Any other things I'm missing?
Thanks
Terion
What's on/around line 31 in Welcome.php?
J
--- End Message ---
--- Begin Message ---
Terion Miller wrote:
> I am working from home today and getting this error with my copy of my
> project:
> *Warning*: Cannot modify header information - headers already sent by
> (output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
> line *3*
>
> *Warning*: Cannot modify header information - headers already sent by
> (output started at C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
> line *4*
> Could not connect to the database.
>
> I have set my php.ini file output_buffering to ON it was off (read in a past
> post that will fix this error--but it did not)
> I also set session.cache_limiter = to nothing it was set to nocache....
>
> Any other things I'm missing?
> Thanks
> Terion
>
Make sure you have no .htaccess or <VirtualHost ...> blocks that are overriding
your php.ini settings.
Plus, make sure you restart to make the changes take effect.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
Jay Moore wrote:
> Terion Miller wrote:
>> I am working from home today and getting this error with my copy of my
>> project:
>> *Warning*: Cannot modify header information - headers already sent by
>> (output started at
>> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
>> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
>> line *3*
>>
>> *Warning*: Cannot modify header information - headers already sent by
>> (output started at
>> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
>> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
>> line *4*
>> Could not connect to the database.
>>
>> I have set my php.ini file output_buffering to ON it was off (read in
>> a past
>> post that will fix this error--but it did not)
>> I also set session.cache_limiter = to nothing it was set to nocache....
>>
>> Any other things I'm missing?
>> Thanks
>> Terion
>>
>
> What's on/around line 31 in Welcome.php?
>
> J
>
Jay. I agree with your thought process. "Why not fix the warning instead of
hiding it."
But that isn't what the OP is asking for.
I think the OP understands why it is giving this warning, but is looking for a
way to not display the error.
Sounds like his production environment is setup to where it does not display
the warning. So, he wants his newly installed test machine to match what
the production is doing.
Correct me if I'm wrong Terion.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
On Mon, Dec 15, 2008 at 11:29 AM, Jay Moore <[email protected]> wrote:
> Terion Miller wrote:
>
>> I am working from home today and getting this error with my copy of my
>> project:
>> *Warning*: Cannot modify header information - headers already sent by
>> (output started at
>> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
>> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
>> line *3*
>>
>> *Warning*: Cannot modify header information - headers already sent by
>> (output started at
>> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
>> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
>> line *4*
>> Could not connect to the database.
>>
>> I have set my php.ini file output_buffering to ON it was off (read in a
>> past
>> post that will fix this error--but it did not)
>> I also set session.cache_limiter = to nothing it was set to nocache....
>>
>> Any other things I'm missing?
>> Thanks
>> Terion
>>
>>
> What's on/around line 31 in Welcome.php?
>
> J
Line 32-36 are:
<?php
If (!empty($msg)){
echo "<div class=\"Error\">". $msg ."</div><BR><BR>";
}
?>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Mon, Dec 15, 2008 at 11:37 AM, Jim Lucas <[email protected]> wrote:
> Jay Moore wrote:
> > Terion Miller wrote:
> >> I am working from home today and getting this error with my copy of my
> >> project:
> >> *Warning*: Cannot modify header information - headers already sent by
> >> (output started at
> >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> >> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php*
> on
> >> line *3*
> >>
> >> *Warning*: Cannot modify header information - headers already sent by
> >> (output started at
> >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> >> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php*
> on
> >> line *4*
> >> Could not connect to the database.
> >>
> >> I have set my php.ini file output_buffering to ON it was off (read in
> >> a past
> >> post that will fix this error--but it did not)
> >> I also set session.cache_limiter = to nothing it was set to nocache....
> >>
> >> Any other things I'm missing?
> >> Thanks
> >> Terion
> >>
> >
> > What's on/around line 31 in Welcome.php?
> >
> > J
> >
>
> Jay. I agree with your thought process. "Why not fix the warning instead
> of hiding it."
>
> But that isn't what the OP is asking for.
>
> I think the OP understands why it is giving this warning, but is looking
> for a way to not display the error.
>
> Sounds like his production environment is setup to where it does not
> display the warning. So, he wants his newly installed test machine to match
> what
> the production is doing.
>
> Correct me if I'm wrong Terion.
>
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Well If there is a problem with the script and that is why its giving the
warning I would want to fix that, I just figured the php.ini file on the
live server at the office is different from the one i have on my home xampp
install and I am not allowed access to the php.ini on the server at work, I
just tried getting it to compare it to my own. I have to go check to see
about the .htaccess file, I need to read up on these, like what is the
difference and if you have one do you need the other? .htaccess is for
directory control yes? If that is the case there is none in the directory I
have this project in.
I just stopped and restarted my xampp and that didn't work either...should I
make a .htaccess file for this directory to over ride whatever setting is
preventing the headers from loading?
Thanks guys
Terion
--- End Message ---
--- Begin Message ---
Hey,
Few things:
1) Check to see if you have any trailing spaces after the end of the file.
2) Check to see if your session_start() is not the first line of the code.
Thanks,
V
On Mon, Dec 15, 2008 at 9:36 AM, Terion Miller <[email protected]>wrote:
> On Mon, Dec 15, 2008 at 11:29 AM, Jay Moore <[email protected]> wrote:
>
> > Terion Miller wrote:
> >
> >> I am working from home today and getting this error with my copy of my
> >> project:
> >> *Warning*: Cannot modify header information - headers already sent by
> >> (output started at
> >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> >> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php*
> on
> >> line *3*
> >>
> >> *Warning*: Cannot modify header information - headers already sent by
> >> (output started at
> >> C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
> >> in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php*
> on
> >> line *4*
> >> Could not connect to the database.
> >>
> >> I have set my php.ini file output_buffering to ON it was off (read in a
> >> past
> >> post that will fix this error--but it did not)
> >> I also set session.cache_limiter = to nothing it was set to nocache....
> >>
> >> Any other things I'm missing?
> >> Thanks
> >> Terion
> >>
> >>
> > What's on/around line 31 in Welcome.php?
> >
> > J
>
> Line 32-36 are:
> <?php
> If (!empty($msg)){
> echo "<div class=\"Error\">". $msg ."</div><BR><BR>";
> }
> ?>
>
>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--- End Message ---
--- Begin Message ---
hi I have been searching for a way to get the php mail function to work and
have had no luck. I was hoping you could address my situation:
I have a fairly new xampp install and I need to know how to get mail() to work.
I would like to know tha simplest way possible to get the mail function to
work. I guess the major problem is that my xampp install doesn't have an email
server. please advise my what I need to do to get one for a linux box.
Please keep in mind that I am a newbie and need detailed instructions for
installing any software and configuring any files that may need altered in the
server's configuration files such as php.ini etc...
email me at [email protected] if you can help.
Thanks,
Ian
--- End Message ---