Re: [PHP] php-cli-shebang

2011-06-08 Thread Joe Francis
why not using php.exe instead of php-cgi.exe as a parser ?

On Wed, Jun 8, 2011 at 7:42 AM, Lists li...@euca.us wrote:

 Lists wrote:

 Windows Server 2003
 PHP fastcgi 5.2




 O.K. '-q' is quiet mode (no header info), which works better when not using
 the -f flag when calling the script (it appears).

 anyway, I solved my issues with a work around, so no worries.


 Donovan


 --
 dbrooke

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Powered By Francis™.
Welcome to my website: http://www.francistm.com
Rewrite to francis...@gmail.com please.


Re: [PHP] Help needed with php.ini

2011-06-06 Thread Joe Francis
I remember that there's 2 php.ini in Fedora, one is for SAPI like apache or
other CGIServer, and another is for CLI.

Can you confirm that you edited  a right config file?

On Mon, Jun 6, 2011 at 4:55 AM, Camilo Sperberg unrea...@gmail.com wrote:

 On 05-06-2011, at 10:31, Adam Tong adam.to...@gmail.com wrote:

  Hi,
 
  I can't set correctly the error display and reporting properties. I
  don't know what i'm doing wrong.
 
  Here is the section that i modified in php.ini:
  -
  display_errors = On
  ;   Default Value: On
  ;   Development Value: On
  ;   Production Value: Off
 
  display_startup_errors = On
  ;   Default Value: Off
  ;   Development Value: On
  ;   Production Value: Off
 
  error_reporting = E_ALL | E_STRICT
  ;   Default Value: E_ALL  ~E_NOTICE
  ;   Development Value: E_ALL | E_STRICT
  ;   Production Value: E_ALL  ~E_DEPRECATED
  
 
  And here is the output of phpinfo():
  -
  display_errorsOffOff
  display_startup_errorsOffOff
  doc_rootno valueno value
  docref_extno valueno value
  docref_rootno valueno value
  enable_dlOffOff
  error_append_stringno valueno value
  error_logno valueno value
  error_prepend_stringno valueno value
  error_reporting22527 22527
  -
 
  I'm using a default installation (using yum) of php on Fedora14. This
  is my development environment, and want to see all the errors on
  standard output.
 
  Thank you
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


 Have you modified the example values instead of the ones mid-way php.ini?
 If so, scroll down to check. The latest settings should override the
 previous one.

 Have you restarted apache with service httpd restart or /etc/init.d/httpd
 restart? (or apachectl restart)

 In your php script or htaccess file, do you override those values?

 Sent from my iPhone 5 Beta [Confidential use only]
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Powered By Francis™.
Welcome to my website: http://www.francistm.com
Rewrite to francis...@gmail.com please.


[PHP] a shortcut to set variable

2011-04-12 Thread Joe Francis
eh, I just want to get a shortcut like

$id = isset($_GET['id']) ? $_GET['id'] : 0;


BTW, I'm using PHP5.3+, thanks bros.

-- 
Powered By Francis™.
Welcome to my website: http://www.francistm.com
Rewrite to francis...@gmail.com please.