php-general Digest 5 Oct 2012 03:30:09 -0000 Issue 7993
Topics (messages 319356 through 319369):
Re: cURL issues posting to an end point
319356 by: Alejandro Michelin Salomon
319357 by: Bastien Koert
319358 by: Alejandro Michelin Salomon
Programatically create directory
319359 by: Jen Rasmussen
319360 by: Jen Rasmussen
Re: Differences
319361 by: Marco Behnke
319362 by: Tim Streater
319363 by: Jim Giner
319365 by: David McGlone
319366 by: Jim Giner
[PHP-DEV] PHP 5.3.18RC1 and 5.4.8RC1 Released for Testing!
319364 by: Johannes Schlüter
building upon the code RE: Differences
319367 by: David McGlone
319368 by: Jim Giner
319369 by: Jim Giner
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Bastien:
-----Mensagem original-----
De: Bastien Koert [mailto:phps...@gmail.com]
Enviada em: quinta-feira, 4 de outubro de 2012 11:54
Para: PHP-General
Assunto: [PHP] cURL issues posting to an end point
Hi All,
I have a page that receives third party data into my app, xml data via https
post. This works fine and I receive the data as expected. The issue I am
facing is around posting XML data back as a synchronous response to the post
I receive. I am using the following code:
function sendXMLConfirmation($data)
{
/*
* XML Sender/Client.
*/
// Get our XML. You can declare it here or even load a file.
$xml_builder = '<?xml version="1.0" encoding="utf-8"?>
<Envelope version="01.00">
<Sender>
<Id/>
<Credential>25412</Credential>
</Sender>
<Recipient>
<Id/>
</Recipient>
<TransactInfo
transactType="response">
<TransactId>'.$hash.'</TransactId>
<TimeStamp>'.date("Y-m-d H:m
").'</TimeStamp>
<Status>
<Code>200</Code>
<ShortDescription>Success</ShortDescription>
<LongDescription>CANDIDATE Data transfer was a success</LongDescription>
</Status>
</TransactInfo>
<Packet>
<PacketInfo
packetType="response">
<PacketId>1</PacketId>
<Action>SET</Action>
<Manifest>Manifest
Data</Manifest>
<Status>
<Code/>
<ShortDescription/>
<LongDescription/>
</Status>
</PacketInfo>
<Payload><![CDATA[]]></Payload>
</Packet>
</Envelope>
';
// We send XML via CURL using POST with a http header of text/xml.
$ch = curl_init();
$url =
'https://staging.somesite.com/Sprocessor/DispatchMessage.asmx';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // for https
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 4);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_builder);
----- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
----- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: close'));
--- NEW ----
$sPost = '/Sprocessor/DispatchMessage.asmx';
$sHost = ' https://staging.somesite.com';
curl_setopt($ch, CURLOPT_HTTPHEADER,
array(
'User-Agent: My Program',
'Accept-Encoding: gzip, deflate',
'POST ' . $sPost . ' HTTP/1.1',
'Host: ' . $sHost,
'Content-type: application/soap+xml; charset="utf-8"',
'Content-Length: ' . strlen($xml_builder)
);
---- END NEW -----
//Execute the request and also time the transaction ( optional )
$start = array_sum(explode(' ', microtime()));
$result = curl_exec($ch);
curl_close($ch);
// Print CURL result.
echo $ch_result;
}
The endpoint recipient says they are not receiving the data and I am at a
loss to figure out why. Any insight would be appreciated.
Thanks,
--
Bastien
Cat, the other other white meat
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Thu, Oct 4, 2012 at 1:35 PM, Alejandro Michelin Salomon
<amichel...@hotmail.com> wrote:
> Bastien:
>
> -----Mensagem original-----
> De: Bastien Koert [mailto:phps...@gmail.com]
> Enviada em: quinta-feira, 4 de outubro de 2012 11:54
> Para: PHP-General
> Assunto: [PHP] cURL issues posting to an end point
>
> Hi All,
>
> I have a page that receives third party data into my app, xml data via https
> post. This works fine and I receive the data as expected. The issue I am
> facing is around posting XML data back as a synchronous response to the post
> I receive. I am using the following code:
>
> function sendXMLConfirmation($data)
> {
> /*
> * XML Sender/Client.
> */
> // Get our XML. You can declare it here or even load a file.
>
>
> $xml_builder = '<?xml version="1.0" encoding="utf-8"?>
> <Envelope version="01.00">
> <Sender>
> <Id/>
>
> <Credential>25412</Credential>
> </Sender>
> <Recipient>
> <Id/>
> </Recipient>
> <TransactInfo
> transactType="response">
>
> <TransactId>'.$hash.'</TransactId>
> <TimeStamp>'.date("Y-m-d H:m
> ").'</TimeStamp>
> <Status>
> <Code>200</Code>
>
> <ShortDescription>Success</ShortDescription>
>
> <LongDescription>CANDIDATE Data transfer was a success</LongDescription>
> </Status>
> </TransactInfo>
> <Packet>
> <PacketInfo
> packetType="response">
>
> <PacketId>1</PacketId>
> <Action>SET</Action>
> <Manifest>Manifest
> Data</Manifest>
> <Status>
> <Code/>
>
> <ShortDescription/>
>
> <LongDescription/>
> </Status>
> </PacketInfo>
>
> <Payload><![CDATA[]]></Payload>
> </Packet>
> </Envelope>
> ';
>
>
> // We send XML via CURL using POST with a http header of text/xml.
> $ch = curl_init();
>
> $url =
> 'https://staging.somesite.com/Sprocessor/DispatchMessage.asmx';
>
> curl_setopt($ch, CURLOPT_URL, $url);
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // for https
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
> curl_setopt($ch, CURLOPT_TIMEOUT, 4);
> curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_builder);
>
> ----- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
> ----- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: close'));
>
> --- NEW ----
> $sPost = '/Sprocessor/DispatchMessage.asmx';
> $sHost = ' https://staging.somesite.com';
>
> curl_setopt($ch, CURLOPT_HTTPHEADER,
> array(
> 'User-Agent: My Program',
> 'Accept-Encoding: gzip, deflate',
> 'POST ' . $sPost . ' HTTP/1.1',
> 'Host: ' . $sHost,
> 'Content-type: application/soap+xml; charset="utf-8"',
> 'Content-Length: ' . strlen($xml_builder)
> );
>
> ---- END NEW -----
> //Execute the request and also time the transaction ( optional )
>
> $start = array_sum(explode(' ', microtime()));
>
> $result = curl_exec($ch);
>
> curl_close($ch);
> // Print CURL result.
> echo $ch_result;
> }
>
>
> The endpoint recipient says they are not receiving the data and I am at a
> loss to figure out why. Any insight would be appreciated.
>
> Thanks,
>
> --
>
> Bastien
>
> Cat, the other other white meat
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
Thanks, Alejandro,
So much closer that before, however I am getting an error on this.
"Unexpected ';' on line 151 which is the closing array );
curl_setopt($ch, CURLOPT_HTTPHEADER,
array(
'User-Agent: My Program',
'Accept-Encoding: gzip, deflate',
'POST ' . $sPost . ' HTTP/1.1',
'Host: ' . $sHost,
'Content-type: application/soap+xml; charset="utf-8"',
'Content-Length: ' . strlen($xml_builder)
);
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
Bastien:
curl_setopt($ch, CURLOPT_HTTPHEADER,
array(
'User-Agent: My Program',
'Accept-Encoding: gzip, deflate',
'POST ' . $sPost . ' HTTP/1.1',
'Host: ' . $sHost,
'Content-type: application/soap+xml; charset="utf-8"',
'Content-Length: ' . strlen($xml_builder)
) --- This is missing
);
Alejandro M.S
-----Mensagem original-----
De: Bastien Koert [mailto:phps...@gmail.com]
Enviada em: quinta-feira, 4 de outubro de 2012 15:49
Para: Alejandro Michelin Salomon
Cc: PHP-General
Assunto: Re: [PHP] cURL issues posting to an end point
On Thu, Oct 4, 2012 at 1:35 PM, Alejandro Michelin Salomon
<amichel...@hotmail.com> wrote:
> Bastien:
>
> -----Mensagem original-----
> De: Bastien Koert [mailto:phps...@gmail.com] Enviada em: quinta-feira,
> 4 de outubro de 2012 11:54
> Para: PHP-General
> Assunto: [PHP] cURL issues posting to an end point
>
> Hi All,
>
> I have a page that receives third party data into my app, xml data via
> https post. This works fine and I receive the data as expected. The
> issue I am facing is around posting XML data back as a synchronous
> response to the post I receive. I am using the following code:
>
> function sendXMLConfirmation($data)
> {
> /*
> * XML Sender/Client.
> */
> // Get our XML. You can declare it here or even load a file.
>
>
> $xml_builder = '<?xml version="1.0" encoding="utf-8"?>
> <Envelope version="01.00">
> <Sender>
> <Id/>
>
> <Credential>25412</Credential>
> </Sender>
> <Recipient>
> <Id/>
> </Recipient>
> <TransactInfo
> transactType="response">
>
> <TransactId>'.$hash.'</TransactId>
>
> <TimeStamp>'.date("Y-m-d H:m ").'</TimeStamp>
> <Status>
>
> <Code>200</Code>
>
> <ShortDescription>Success</ShortDescription>
>
> <LongDescription>CANDIDATE Data transfer was a success</LongDescription>
> </Status>
> </TransactInfo>
> <Packet>
> <PacketInfo
> packetType="response">
>
> <PacketId>1</PacketId>
>
<Action>SET</Action>
>
> <Manifest>Manifest Data</Manifest>
> <Status>
>
> <Code/>
>
> <ShortDescription/>
>
> <LongDescription/>
> </Status>
> </PacketInfo>
>
> <Payload><![CDATA[]]></Payload>
> </Packet>
> </Envelope>
> ';
>
>
> // We send XML via CURL using POST with a http header of text/xml.
> $ch = curl_init();
>
> $url =
> 'https://staging.somesite.com/Sprocessor/DispatchMessage.asmx';
>
> curl_setopt($ch, CURLOPT_URL, $url);
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // for https
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
> curl_setopt($ch, CURLOPT_TIMEOUT, 4);
> curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_builder);
>
> ----- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:
text/xml'));
> ----- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: close'));
>
> --- NEW ----
> $sPost = '/Sprocessor/DispatchMessage.asmx';
> $sHost = ' https://staging.somesite.com';
>
> curl_setopt($ch, CURLOPT_HTTPHEADER,
> array(
> 'User-Agent: My Program',
> 'Accept-Encoding: gzip, deflate',
> 'POST ' . $sPost . ' HTTP/1.1',
> 'Host: ' . $sHost,
> 'Content-type: application/soap+xml; charset="utf-8"',
> 'Content-Length: ' . strlen($xml_builder) );
>
> ---- END NEW -----
> //Execute the request and also time the transaction ( optional
> )
>
> $start = array_sum(explode(' ', microtime()));
>
> $result = curl_exec($ch);
>
> curl_close($ch);
> // Print CURL result.
> echo $ch_result;
> }
>
>
> The endpoint recipient says they are not receiving the data and I am
> at a loss to figure out why. Any insight would be appreciated.
>
> Thanks,
>
> --
>
> Bastien
>
> Cat, the other other white meat
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
Thanks, Alejandro,
So much closer that before, however I am getting an error on this.
"Unexpected ';' on line 151 which is the closing array );
curl_setopt($ch, CURLOPT_HTTPHEADER,
array(
'User-Agent: My Program',
'Accept-Encoding: gzip, deflate',
'POST ' . $sPost . ' HTTP/1.1',
'Host: ' . $sHost,
'Content-type: application/soap+xml; charset="utf-8"',
'Content-Length: ' . strlen($xml_builder)
);
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
Hi all,
I am hoping someone can point me in the right direction here. This may be
more of an Apache than PHP issue, but in the hopes someone here might have
had some experience with this ..
I am developing functionality which will allow our users to upload photos so
that we can share comments on the photos between ourselves and the user.
The issue I am having is that when someone creates an account for this, I am
programmatically creating a folder specific to that user in an temporary
/temp/ and permanent upload /upload/ directory (i.e. 2 folders). Although I
am chmod the folder at the time it is created, it seems the user cannot
upload to the folder.
The only way I am able to get it to work is if I create the folder manually
via FTP. My research indicates it might have something to do with the Apache
UID or GUID, but being a relative novice with Apache I am at a loss. I've
tried multiple directives via a per directory htaccess file and nothing
seems to work.
I can, of course, create a number of anticipated folders (based on a project
id) manually to get around this, but prefer not to do that.
I could also dump everything into just temp without having it in a project
id folder but I would like to separate content in case of simultaneous
users.
Additionally, the file upload only seems to work if the folder is 0777,
which I know can have security implications. Advice? I am using plupload.
Here is a portion my code:
//temp dir
$dir = $_SERVER['DOCUMENT_ROOT'].'/projects/temp/'.$pid.'/';
mkdir($dir);
//echo $dir."<br />";
if (is_dir($dir) ) {
chmod($dir, 0777);
}
Any suggestions for me, please? Thanks.
Jen Rasmussen
Web Development Manager | Cetacea Sound Corp.
763-225-8465 | www.cetaceasound.com
P Before printing this message, make sure that it's necessary. The
environment is in your hands
--- End Message ---
--- Begin Message ---
-----Original Message-----
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
Brown
Sent: Thursday, October 04, 2012 2:56 PM
To: j...@cetaceasound.com
Subject: Re: [PHP] Programatically create directory
On Thu, Oct 4, 2012 at 3:05 PM, Jen Rasmussen <j...@cetaceasound.com> wrote:
[snip!]
>
> The issue I am having is that when someone creates an account for
> this, I am programmatically creating a folder specific to that user in
> an temporary /temp/ and permanent upload /upload/ directory (i.e. 2
> folders). Although I am chmod the folder at the time it is created, it
> seems the user cannot upload to the folder.
>
> The only way I am able to get it to work is if I create the folder
> manually via FTP. My research indicates it might have something to do
> with the Apache UID or GUID, but being a relative novice with Apache I
> am at a loss. I've tried multiple directives via a per directory
> htaccess file and nothing seems to work.
>
> I can, of course, create a number of anticipated folders (based on a
> project
> id) manually to get around this, but prefer not to do that.
>
> I could also dump everything into just temp without having it in a
> project id folder but I would like to separate content in case of
> simultaneous users.
>
> Additionally, the file upload only seems to work if the folder is
> 0777, which I know can have security implications. Advice? I am using
plupload.
This is a shared Linux server I presume. Correct?
It's not Apache-specific, but rather a general permission issue.
If you don't have the ability to chown/chgrp the directory to the user as
which Apache runs (which should be automatic, since it's the combination of
Apache and PHP that is creating the directory in the first place), you'd
need to chmod 0777 the target location(s).
Are the users only uploading via a web form that's being served by the
same Apache server? If so, perhaps the parent directory of the directories
you're creating on the fly is owned by your FTP user, which - if you're not
using any form of suexec or similar - should differ from the user as which
Apache runs (httpd, apache, nobody, www, www-data, psacln, et cetera).
In any case, it's not a PHP issue, as you are aware, so it should
probably be followed-up on an entry-level Linux forum such as
www.linuxquestions.org. And, as you suspect, you're right: if it can be
avoided, don't cheat and chmod 0777 $dir. That's so 1997 Perl script README
instructions.
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/
Yes, it's a shared Linux server, correct. Yes, the users are uploading via a
web form served by the same server.
Thanks for helping me understand the problem better, I appreciate it!
Jen
--- End Message ---
--- Begin Message ---
Am 04.10.12 02:48, schrieb David McGlone:
> Hi everyone, I have been playing around with some code the list helped me
> with
> a while back and I'm not grasping the concept between return and echo and the
> PHP manual doesn't answer this, unless I'm missing something. There is an
> example at the very bottom of PHP's return manual, but it's confusing.
Basically there is only difference, they have nothing in common.
http://de.php.net/echo
echo --- Output one or more strings
http://de.php.net/return
If called from within a function, the /return/ statement immediately
ends execution of the current function, and returns its argument as the
value of the function call. /return/ will also end the execution of an
eval() <http://de.php.net/manual/en/function.eval.php> statement or
script file.
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
On 04 Oct 2012 at 01:48, David McGlone <da...@dmcentral.net> wrote:
> Hi everyone, I have been playing around with some code the list helped me with
> a while back and I'm not grasping the concept between return and echo and the
> PHP manual doesn't answer this, unless I'm missing something. There is an
> example at the very bottom of PHP's return manual, but it's confusing.
It's a poor example, for one thing. As others have said, echo and return have
nothing to do with each other.
> So now I'm left wondering why return will only give me the first result in an
> array, but echo will give me all the results of the array. Using stuart's
> example he had sent me a while back I've messed around with it and modified it
> to better understand it:
>
> function filename($prefix)
> {
> $matches = glob('images/property_pics/'.$prefix.'*');
> foreach($matches as $filename){
> return $filename;
> }
> }
>
> echo completeImageFilename($row['MLS_No']);
>
> With the above code I only get the first image of each picture name, but when
> I change return to echo, it groups and displays all the pics that have the
> same picture name.
I assume that where you have "function filename" above, you really mean
"function completeImageFilename".
Why do you think that the return you have coded above should give more than one
filename when you've written "return $filename"? That's one filename. You then
echo that out with your echo statement (because it's the return value of the
function), and that's what you see. If you change the return to an echo, then
instead of returning after once round your while loop, the while loop goes
round and round dealing with each filename you have in $matches, and echoes out
each one. When the while loop has completed, the function returns, but returns
nothing at all. So your original echo then does nothing at all. And so you see
the observed behaviour.
--
Cheers -- Tim
--- End Message ---
--- Begin Message ---
On 10/3/2012 8:48 PM, David McGlone wrote:
Hi everyone, I have been playing around with some code the list helped me with
a while back and I'm not grasping the concept between return and echo and the
PHP manual doesn't answer this, unless I'm missing something. There is an
example at the very bottom of PHP's return manual, but it's confusing.
So now I'm left wondering why return will only give me the first result in an
array, but echo will give me all the results of the array. Using stuart's
example he had sent me a while back I've messed around with it and modified it
to better understand it:
function filename($prefix)
{
$matches = glob('images/property_pics/'.$prefix.'*');
foreach($matches as $filename){
return $filename;
}
}
echo completeImageFilename($row['MLS_No']);
With the above code I only get the first image of each picture name, but when I
change return to echo, it groups and displays all the pics that have the same
picture name.
--
David M.
I've read thru 9 responses to the OP and not one of you mentioned that
the code presented is problematic in itself. Very forgiving, but
perhaps someone should have suggested that he post "actual code" when
looking for help in the future, and not some typing that is supposed to
represent the problem.
In this case, I"m looking for the function he called
"completeImageFilename"
:):)
--- End Message ---
--- Begin Message ---
On Thursday, October 04, 2012 06:06:50 PM Jim Giner wrote:
> On 10/3/2012 8:48 PM, David McGlone wrote:
> > Hi everyone, I have been playing around with some code the list helped me
> > with a while back and I'm not grasping the concept between return and
> > echo and the PHP manual doesn't answer this, unless I'm missing
> > something. There is an example at the very bottom of PHP's return manual,
> > but it's confusing.
> >
> > So now I'm left wondering why return will only give me the first result in
> > an array, but echo will give me all the results of the array. Using
> > stuart's example he had sent me a while back I've messed around with it
> > and modified it to better understand it:
> >
> > function filename($prefix)
> > {
> >
> > $matches = glob('images/property_pics/'.$prefix.'*');
> > foreach($matches as $filename){
> > return $filename;
> >
> > }
> >
> > }
> >
> > echo completeImageFilename($row['MLS_No']);
> >
> > With the above code I only get the first image of each picture name, but
> > when I change return to echo, it groups and displays all the pics that
> > have the same picture name.
> >
> >
> > --
> > David M.
>
> I've read thru 9 responses to the OP and not one of you mentioned that
> the code presented is problematic in itself. Very forgiving, but
> perhaps someone should have suggested that he post "actual code" when
> looking for help in the future, and not some typing that is supposed to
> represent the problem.
>
> In this case, I"m looking for the function he called
> "completeImageFilename"
>
> :):)
Uh Oh, we're in trouble ;-)
Sorry about that Jim, I accidently typed the wrong function name. Here's the
corrected code. Everybody's answer was spot on and I learned a great deal
about return and echo. :-)
function completeImageFilename($prefix)
{
$matches = glob('images/property_pics/'.$prefix.'*');
foreach($matches as $filename){
return $filename;
}
}
echo completeImageFilename($row['MLS_No']);
--
David M.
--- End Message ---
--- Begin Message ---
On 10/4/2012 7:08 PM, David McGlone wrote:
On Thursday, October 04, 2012 06:06:50 PM Jim Giner wrote:
On 10/3/2012 8:48 PM, David McGlone wrote:
Hi everyone, I have been playing around with some code the list helped me
with a while back and I'm not grasping the concept between return and
echo and the PHP manual doesn't answer this, unless I'm missing
something. There is an example at the very bottom of PHP's return manual,
but it's confusing.
So now I'm left wondering why return will only give me the first result in
an array, but echo will give me all the results of the array. Using
stuart's example he had sent me a while back I've messed around with it
and modified it to better understand it:
function filename($prefix)
{
$matches = glob('images/property_pics/'.$prefix.'*');
foreach($matches as $filename){
return $filename;
}
}
echo completeImageFilename($row['MLS_No']);
With the above code I only get the first image of each picture name, but
when I change return to echo, it groups and displays all the pics that
have the same picture name.
--
David M.
I've read thru 9 responses to the OP and not one of you mentioned that
the code presented is problematic in itself. Very forgiving, but
perhaps someone should have suggested that he post "actual code" when
looking for help in the future, and not some typing that is supposed to
represent the problem.
In this case, I"m looking for the function he called
"completeImageFilename"
:):)
Uh Oh, we're in trouble ;-)
Sorry about that Jim, I accidently typed the wrong function name. Here's the
corrected code. Everybody's answer was spot on and I learned a great deal
about return and echo. :-)
function completeImageFilename($prefix)
{
$matches = glob('images/property_pics/'.$prefix.'*');
foreach($matches as $filename){
return $filename;
}
}
echo completeImageFilename($row['MLS_No']);
Hopefully you got my point tho - don't post code that is not THE ACTUAL
CODE that you are running.
--- End Message ---
--- Begin Message ---
Hi!
We've released PHP 5.3.18RC1 and 5.4.8RC1 which can be found here:
5.3.18RC1:
http://downloads.php.net/johannes/php-5.3.18RC1.tar.bz2
http://downloads.php.net/johannes/php-5.3.18RC1.tar.gz
5.4.8RC1:
http://downloads.php.net/stas/php-5.4.8RC1.tar.bz2
http://downloads.php.net/stas/php-5.4.8RC1.tar.gz
Windows binaries for both as always are at:
http://windows.php.net/qa/
This is a regular bugfix release, the full list of issues fixed can be
found in the NEWS files. Please test and report if anything is broken.
If no critical issues is found in this RC, the final version will be
released in two weeks.
Regards,
Stas Malyshev, David Soria Parra, Johannes Schlüter
--- End Message ---
--- Begin Message ---
I hope I'm not being a pest.
I've played with the return and echo so much today I've finally realized I'm
going in circles. But I can say I understand it more than ever.
Now whats on my mind is breaking out of this circle and doing more with this
code. What I am trying to do now is instead of having ALL the images display,
I want to try and group them by their name.
If I were using SQL I'd simply use a where clause and be done with it, but
I'm not sure what would acomplish the same thing or similiar to a where clause
in php.
--
David M.
--- End Message ---
--- Begin Message ---
On 10/4/2012 10:15 PM, David McGlone wrote:
I hope I'm not being a pest.
I've played with the return and echo so much today I've finally realized I'm
going in circles. But I can say I understand it more than ever.
Now whats on my mind is breaking out of this circle and doing more with this
code. What I am trying to do now is instead of having ALL the images display,
I want to try and group them by their name.
If I were using SQL I'd simply use a where clause and be done with it, but
I'm not sure what would acomplish the same thing or similiar to a where clause
in php.
I dont' see how a where clause in sql provides you with a result that
organizes the images by name.
--- End Message ---
--- Begin Message ---
On 10/4/2012 10:15 PM, David McGlone wrote:
I hope I'm not being a pest.
I've played with the return and echo so much today I've finally realized I'm
going in circles. But I can say I understand it more than ever.
Now whats on my mind is breaking out of this circle and doing more with this
code. What I am trying to do now is instead of having ALL the images display,
I want to try and group them by their name.
If I were using SQL I'd simply use a where clause and be done with it, but
I'm not sure what would acomplish the same thing or similiar to a where clause
in php.
ok - your idea of using where implies that you would do multiple queries
to get all of the files, one group at a time. I see that now.
In your case, with the data just being filenames and not table records,
you should look at the myriad of functions under 'array' in the manual.
A handy thing that manual :)
--- End Message ---