Re: [PHP] how catch a warning by file_put_contents() ?

2011-08-19 Thread Adam Richardson
On Sat, Aug 20, 2011 at 1:23 AM, Simon J Welsh wrote: > On 20/08/2011, at 4:51 PM, Andreas wrote: > > > Hi, > > I wrote stuff with file_put_contents() in a try{} catch{} and it worked. > > > > Then I'd like to check what happens when some error occurs so I > writeprotected the targetfile. > > Ins

Re: [PHP] how catch a warning by file_put_contents() ?

2011-08-19 Thread Simon J Welsh
On 20/08/2011, at 4:51 PM, Andreas wrote: > Hi, > I wrote stuff with file_put_contents() in a try{} catch{} and it worked. > > Then I'd like to check what happens when some error occurs so I > writeprotected the targetfile. > Instead of getting my own message by the catch{} block I got a standar

[PHP] how catch a warning by file_put_contents() ?

2011-08-19 Thread Andreas
Hi, I wrote stuff with file_put_contents() in a try{} catch{} and it worked. Then I'd like to check what happens when some error occurs so I writeprotected the targetfile. Instead of getting my own message by the catch{} block I got a standard warning in the browser. Can't I catch those warni

Re: [PHP] Newbie security database connection question

2011-08-19 Thread Tamara Temple
On Aug 19, 2011, at 7:52 PM, DealTek wrote: Hello, NEWBIE: I have a security question: When working with PHP and MySQL, it seems that a one method is to create a connection.php page to the database that will store the connection parameters such as username, password and URL ip in clear

Re: [PHP] Newbie security database connection question

2011-08-19 Thread Midhun Girish
On Sat, Aug 20, 2011 at 6:22 AM, DealTek wrote: > Hello, > > NEWBIE: I have a security question: > > When working with PHP and MySQL, it seems that a one method is to create a > connection.php page to the database that will store the connection > parameters such as username, password and URL ip i

[PHP] Newbie security database connection question

2011-08-19 Thread DealTek
Hello, NEWBIE: I have a security question: When working with PHP and MySQL, it seems that a one method is to create a connection.php page to the database that will store the connection parameters such as username, password and URL ip in clear text and include this on various pages. Since hack

Re: [PHP] Login with Remember me Feature

2011-08-19 Thread Alekto Antarctica
Thank you for all the helpful input so far! I have now tried to implement the changes you suggested, but I unfortunately keep getting an error in line 114, in {-bracket in the switch statement. I know it is not very desirable to send all the code in a mail, but I think this is the best solution to

[PHP] Anyone has mcrypt working with Zend Community Edition and Mac OS X Lion?

2011-08-19 Thread robert mena
Hi, After I've upgraded it stopped working and even if I reinstall the Zend CE package it complains. Regards.

Re: [PHP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

2011-08-19 Thread Richard Quadling
Ah! The joy to mail readers. If you can supply a valid URL, I can take a look and see what it is doing. 2011/8/19 Ignacio Marín Hernández : > mmm, i think i understand you now! > > But the url it's ok, it's only > $web_service="http://url_of_the_webservice.asmx?WSDL";; > > The second part between

Re: [PHP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

2011-08-19 Thread Ignacio Marín Hernández
mmm, i think i understand you now! But the url it's ok, it's only $web_service="http://url_of_the_webservice.asmx?WSDL";; The second part between "< >" ($web_service=" http://url_of_the_webservice.asmx?WSDL< http://url_of_the_webservice.asmx/?WSDL>") was Gmail who wrote it (not me) when I

Fwd: [PHP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

2011-08-19 Thread Ignacio Marín Hernández
Dear Richard Surely (hehe): I don´t understand what do you want to say with "that should be $web_service="http://url_of_the_webservice.asmx?WSDL ";" Obviusly, "url_of_the_web_sevice" it's just an example. With the real url I can read without any problems t

Re: [PHP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

2011-08-19 Thread Richard Quadling
2011/8/19 Ignacio Marín Hernández : > $web_service="http://url_of_the_webservice.asmx?WSDL > "; Surely, that should be ... $web_service="http://url_of_the_webservice.asmx?WSDL";; And sorry for calling you Surely. Richard. -- Richard Quadling Twitter : E

[PHP] SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute

2011-08-19 Thread Ignacio Marín Hernández
Hi everybody! I've got some troubles trying to connect with a WS. I'd tried that with natives functions: $web_service="http://url_of_the_webservice.asmx?WSDL "; try { $client = new SoapClient($web_service, array('soap_version' => SOAP_1_1,

Re: [PHP] New version : EasyPHP (Wamp Server) 5.3.7.0 with PHP 5.3.7

2011-08-19 Thread Sharl.Jimh.Tsin
在 2011-08-19五的 15:16 +0800,EasyPHP写道: > Hi > > EasyPHP (Wamp Server) 5.3.7.0 is out and includes PHP 5.3.7 > > PHP 5.3.7 VC9 | Apache 2.2.19 VC9 | MySQL 5.5.15 | PhpMyAdmin 3.4.3.2 > | Xdebug 2.1.2 > > * Features * > - avalaible server port automatically detected (no more port conflict) > - admi

[PHP] New version : EasyPHP (Wamp Server) 5.3.7.0 with PHP 5.3.7

2011-08-19 Thread EasyPHP
Hi EasyPHP (Wamp Server) 5.3.7.0 is out and includes PHP 5.3.7 PHP 5.3.7 VC9 | Apache 2.2.19 VC9 | MySQL 5.5.15 | PhpMyAdmin 3.4.3.2 | Xdebug 2.1.2 * Features * - avalaible server port automatically detected (no more port conflict) - administration page :  > apache configuration manager (timezon