php-windows Digest 4 Jun 2008 13:12:46 -0000 Issue 3483
Topics (messages 28917 through 28920):
Re: PHP 5.2.6 not giving or logging any errors
28917 by: Warren Vail
mime_content_type remote file
28918 by: Joris Willekens
28919 by: Joris Willekens
28920 by: Brereton, Stephen
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 ---
I had this occur with a wamp server package that I installed, seems strict
was set and the error log file was not set or was set to null. I suggest
you start adding the php.ini overrides in your script to setup exactly the
error reporting you want, includig a location the log file, with full write
permissions to the world, of course, keep in mind that stuff that runs under
apache should run without a userid or something like that.
I believe your simple script has an error in it;
<?php echo 'Hello' echo ' World!'; ?> should be
<?php echo 'Hello';echo ' World!'; ?>
Your first echo statement needs to end before beginning the next statement.
HTH,
Warren
> -----Original Message-----
> From: Hilton Janfield [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 02, 2008 9:28 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP 5.2.6 not giving or logging any errors
>
> I've got a freshly installed PHP 5.2.6 (with a freshly
> installed Apache
> 2.2.8) on a Windows XP SP2 box (yes, I know SP3 is out).
>
> Any file with even the slightest error in it (even a missing comma or
> semicolon) causes PHP to balk.
>
> Even a simple test script:
> <?php echo 'Hello' echo ' World!'; ?>
> causes PHP to output 0 bytes. No errors output, no errors logged.
>
> In php.ini, display_errors = on, error_reporting = E_ALL.
> I've also tried setting them in the script -
> ini_set('display_errors',1); error_reporting(E_ALL);
>
>
> Using PHP-CLI nets the same results. PHP stops in less than half a
> second with zero output. The same script with no error takes
> 5 seconds
> and then spits out the output.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello
I am using following to determine the mime_type of a remote file
$filename = str_replace("%20", " ",$_GET["image"]);
echo "Filetype: ". mime_content_type($filename) .
"\n\n\n\n\n\n\n<bR><br><br>";
When I view the link in browser, it's show ok. When i run the script, I get
following message:
Warning: mime_content_type(REMOTEURL/AMD AM2 X2.JPG)
[function.mime-content-type]: failed to open stream: HTTP request failed!
HTTP/1.1 404 Not Found
The remote file is on a Unix server, I know it's case sensitive.
Best Regards
Joris Willekens
--- End Message ---
--- Begin Message ---
Hello
I am using following to determine the mime_type of a remote file
$filename = str_replace("%20", " ",$_GET["image"]);
echo "Filetype: ". mime_content_type($filename) .
"\n\n\n\n\n\n\n<bR><br><br>";
When I view the link in browser, it's show ok. When i run the script, I get
following message:
Warning: mime_content_type(REMOTEURL/AMD AM2 X2.JPG)
[function.mime-content-type]: failed to open stream: HTTP request failed!
HTTP/1.1 404 Not Found
The remote file is on a Unix server, I know it's case sensitive.
Best Regards
Joris Willekens
--- End Message ---
--- Begin Message ---
A 404 error only ever means the remote file cannot be found.
Being as you're swapping out the encoded spaces, I'd be inclined to
start with that as the possible cause - did you try the script with the
encoding still in place?
-----Original Message-----
From: Joris Willekens [mailto:[EMAIL PROTECTED]
Sent: 04 June 2008 13:18
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] mime_content_type remote file
Hello
I am using following to determine the mime_type of a remote file
$filename = str_replace("%20", " ",$_GET["image"]);
echo "Filetype: ". mime_content_type($filename) .
"\n\n\n\n\n\n\n<bR><br><br>";
When I view the link in browser, it's show ok. When i run the script, I
get following message:
Warning: mime_content_type(REMOTEURL/AMD AM2 X2.JPG)
[function.mime-content-type]: failed to open stream: HTTP request
failed! HTTP/1.1 404 Not Found
The remote file is on a Unix server, I know it's case sensitive.
Best Regards
Joris Willekens
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* * * * * * * * * * * *
Help protect the environment - please don't print this email unless you really
need to.
* * * * * * * * * * * *
This communication is from City of York Council.
The information contained within, and in any attachment(s), is confidential and
legally privileged. It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any form of
distribution, copying or use of this communication, or the information within,
is strictly prohibited and may be unlawful. Equally, you must not disclose all,
or part, of its contents to any other person.
If you have received this communication in error, please return it immediately
to the sender, then delete and destroy any copies of it.
City of York Council disclaims any liability for action taken in reliance on
the content of this communication.
--- End Message ---