[PHP] Accented character 'echo'ed randomly
Hi people. I submitted the issue below to the bug site, but the people there suggested I present it here. I've tried some more, but until now, I couldn't find any cause for the problem. Any suggestion would be appreciated! John Description: I have a very simple web-page script with mainly 'echo' commands. Randomly the accented characters are replaced by question-marks. If or not the question mark appears seems to be depending on the page contents, though at least in one of the cases, the only thing that changes in the page is a GIF image. All this happens in the same html-session, using the same script. I've seen other -similar- reports, though none about 'echo'. I can't be sure if this is an apache problem or php-related. Sorry if was already solved... Please indicate. Reproduce code: --- echo "Página Índice"; Expected result: Página Índice Actual result: -- Randomly Página Índice P?gina ?ndice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accented character 'echo'ed randomly
On Tue, 05 Apr 2005 09:44:35 +0200 Marek Kilimajer <[EMAIL PROTECTED]> wrote: > John Coppens wrote: > > Hi people. > > > > I submitted the issue below to the bug site, but the people there > > suggested I present it here. I've tried some more, but until now, I > > couldn't find any cause for the problem. > > > > Any suggestion would be appreciated! > > > > John > > > > > > Description: > > > > I have a very simple web-page script with mainly 'echo' commands. > > Randomly the accented characters are replaced > > by question-marks. If or not the question mark appears > > seems to be depending on the page contents, though at least > > in one of the cases, the only thing that changes in the > > page is a GIF image. > > > > All this happens in the same html-session, using the same > > script. > > > > I've seen other -similar- reports, though none about 'echo'. > > I can't be sure if this is an apache problem or php-related. > > > > Sorry if was already solved... Please indicate. > > > > Reproduce code: > > --- > > echo "Página Índice"; > > > > Expected result: > > > > Página Índice > > > > Actual result: > > -- > > Randomly > > Página Índice > > P?gina ?ndice > > > > Is the character set indicated on the page? Thanks for the reply, Marek. The page is started with , according to rfc3066. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accented character 'echo'ed randomly
On Tue, 5 Apr 2005 19:14:17 +0200 [EMAIL PROTECTED] (Satyam) wrote: > One think I can tell you for sure because I just checked is that > Microsoft does not list 'lang' as an atribute for the html tag, so I > wouldn't expect Internet Explorer to care about it: > > http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/html.asp?frame=true Ok. MS ignores many standards and norms. I took the information from: http://www.w3.org/International/articles/language-tags/ > I think that what you are looking for is to define the character set, > as I mentioned in a previous reply. Apparently this is a specific problem with Mozilla. I tried with Firefox, Opera and Dillo, and didn't have any problem. I've traced the HTTP exchange over the 'net, and the HTML code is served correctly. It's the browser that gets confused. I've filed a bug report on bugzilla... Thanks for the replies, and sorry for blaming PHP (not really ;-). John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] image maps in PHP
On Fri, 22 Apr 2005 19:11:23 +0530 [EMAIL PROTECTED] (Dasmeet Singh) wrote: > Actually I am not able to make image maps because of uneven state > boundaries.. > > Can you please suggest some tools... I haven't used any yet... Did you check GIMP? It has an option to make HTML image maps. Check Filters|Web|ImageMap John > > Thanks > > - > Free Website Promotion - A Complete Guide > http://hostwindow.info/web-hosting/9/free-website-promotion/1/ > > > Mike wrote: > >>Hi! > >>I need to create an image map on a country map, where people > >>can click on any state and get some info related to it.. In > >>such case the regular polygon/circle/rectengle image map wont > >>do bcoz of shapes of state.. > >> > >>I guess this must be possible someway in PHP.. please tell me > >>if you have any idea how to go abt this.. > >> > > > > Is the problem you're experiencing that the image map isn't being > > built properly or are you passing information to it that does not > > appear to be consistant. > > > > If it's the former, then PHP has nothing to do with that. I'm sure > > you can find some tools to generate image maps for you. There have > > always been free ones with a minimum of effort. > > > > If you're having problem with PHP in the mix, can you describe the PHP > > problem, provide some code, some sample output, etc.? > > > > I've used image maps in the past (though I try to stay away from > > them) and you can create a link with virtually any polygon if you > > have the patience to may out the plot points. You could easily create > > a star with many, many points and have it be clickable - which would > > indicate that most states would be a piece of cake. > > > > -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Time zones and $_ENV vs getenv
Hello people. Argentina changed timezones (Oct 19th), just two weeks ago, and, as PHP has a separate table, I forgot to change the zones both in my machine and on the server. I did so yesterday, and have some problems. Here's what I did: 1) Downloaded the latest timezonedb (2008.9), compiled and installed it locally and on the server. Apparently no problem there. 2) I have a calendar on my pages (http://www.jcoppens.com/kayak/peperina/agenda.php&uniz=1) which shows the unix time stamp if the cursor is above a date (just to help debugging). The stamps coincide till Oct 19th, then differ by one hour (as compared to my PC). At the remote server, the time seems correct (-0200), on my machine it isn't (-0300). I _did_ restart my apache, and yes, the php.ini is correct. One strange thing I noticed (on both my machine and the server) is that $_ENV['TZ'] was empty, while getenv('TZ') was correctly set (America/Argentina/Cordoba). I'm confused... Can someone point me to some more tests I could do? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Time zones and $_ENV vs getenv
On Mon, 3 Nov 2008 13:01:14 -0200 [EMAIL PROTECTED] (John Coppens) wrote: > I'm confused... Can someone point me to some more tests I could do? Solved. Apparently the apachectl start/stop/restart script didn't work correctly, or wasn't able to do its work. I _thought_ I had restart apache after each modification, but it just continued running. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ming - php sync problem?
Hi all. I have simple page that generates a simple flash with some random images, then publishes it - on the same page. If I do this, i regularly have several kinds of problems, one of them, an error message like: getimagesize(img/topmovie/toplogo.swf): failed to open stream: No such file or directory or the size getimagesize reports isn't the correct one. If I only _call_ the swf (no generation), the message isn't there and things look more normal. Is the swf generation an asynchronous process and do I have to wait until the movie->save(xxx) finishes? Thanks for suggestions John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: read file from specific line
On Thu, 27 Jan 2005 15:15:48 +0100 (CET) [EMAIL PROTECTED] wrote: > Hi there! > > Is there any way reading a file from a specific line? (textfile) > > /G > @varupiraten.se Not directly - there's no way to know where the line starts, except if they are all of the same length. Read the file, split it on \n's, and then use it as an array. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Ming - php sync problem?
On Thu, 27 Jan 2005 10:54:18 -0800 (PST) [EMAIL PROTECTED] (Richard Lynch) wrote: > Change your php.ini to send error messages somewhere else, and get in > the habit of checking that "somewhere else" when you code. Thanks for the hint > It has NOTHING to do with your current problem of having error output > mixed in with the Flash content though, so for your current purposes, No - I didn't worry about the fact the messages were there - just the flash problem > $movie->save(xxx); > header("Content-type: application/swf"); > readfile(xxx); > ?> You are right, of course. I made a mistake in my script. Your error hint was welcome though. Thanks. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php