Re: [PHP] Closing PHP tag best practice?

2011-07-25 Thread Daniel Brown
On Sun, Jul 24, 2011 at 10:18, Ashley Sheridan wrote: > > The PHP parser will automatically "add" the closing tag when it reaches > the end of the file, so you don't have to worry about the final closing > tag. I quit using closing tags years ago and haven't looked back once (except for code

[PHP] SimpleXMLElement, adding nodes that are SimpleXMLElement.

2011-07-25 Thread Richard Quadling
Hello all. I've got 2 XML documents (one from a URL and another via MS SQL Server). The structure of these documents is the same, with just a difference in attribute to identify things (the 'data' is different but the variable's name attribute is the key here). data ... I need t

[PHP] Re: SimpleXMLElement, adding nodes that are SimpleXMLElement.

2011-07-25 Thread Richard Quadling
On 25 July 2011 13:47, Richard Quadling wrote: > Hello all. > > I've got 2 XML documents (one from a URL and another via MS SQL Server). > > The structure of these documents is the same, with just a difference > in attribute to identify things (the 'data' is different but the > variable's name att

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Jamie Krasnoo
You should be using cURL for making requests. No, you won't be able to install any pecl packages on your host. It's a free account and I doubt they will be bending over backwards for you anytime soon. If you want custom hosting, pay for a VPS account or a dedicated server. On Thu, Jul 21, 2011 at

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Richard Quadling
On 25 July 2011 17:26, Jamie Krasnoo wrote: > You should be using cURL for making requests. > > No, you won't be able to install any pecl packages on your host. It's > a free account and I doubt they will be bending over backwards for you > anytime soon. If you want custom hosting, pay for a VPS a

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Andrew Ballard
On Mon, Jul 25, 2011 at 12:26 PM, Jamie Krasnoo wrote: [reordered and snipped] > > On Thu, Jul 21, 2011 at 8:52 PM, gato chalar wrote: >> Hi list, >> >> I need to perform http requests (GET,POST) , I have readed about pecl_http >> package, so it seem to be what I need. Reading further I sow some

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread Jamie Krasnoo
Most hosting companies have cURL already installed and available rather than pecl_http. I probably should have said "try using cURL" instead of "you should be using cURL". However most FREE hosting companies probably won't even have that installed due to security concerns. Jamie On Mon, Jul 25, 2

Re: [PHP] How to install pecl_http into a web hosting service

2011-07-25 Thread gato chalar
Hi to everybody, Currently I'm using curl, it is installed in my free hosting account. On 25 July 2011 16:29, Jamie Krasnoo wrote: > Most hosting companies have cURL already installed and available > rather than pecl_http. I probably should have said "try using cURL" > instead of "you should be