php-general Digest 24 Apr 2008 13:33:29 -0000 Issue 5422
Topics (messages 273509 through 273530):
Re: Testing HTTPS without certificate
273509 by: Shawn McKenzie
Re: php framework vs just php?
273510 by: Robert Cummings
273517 by: Sancar Saran
273526 by: Eric Butera
273528 by: Sancar Saran
273529 by: Eric Butera
Newbie select statement questions 'WHERE'
273511 by: revDAVE
273512 by: Robert Cummings
Re: the most amazing php code i have ever seen so far
273513 by: paragasu
273514 by: mike
273515 by: paragasu
273516 by: mike
Re: Big companies that use PHP?
273518 by: Warren Vail
273519 by: Lester Caine
273520 by: Iñigo Medina García
273521 by: Tom Chubb
273524 by: James Dempster
273530 by: Thiago Pojda
Re: Large XML manipulation within PHP
273522 by: Per Jessen
Re: FRench characters not displayed correctly
273523 by: Angelo Zanetti
how to use passthru ()
273525 by: J. Manuel Velasco - UBILIBET
273527 by: M. Sokolewicz
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 ---
Ken Kixmoeller.com wrote:
On Apr 23, 2008, at 4:53 PM, Shawn McKenzie wrote:
Ken Kixmoeller wrote:
I know how to test for the existance of HTTPS, and stuff like that.
So: Can one test https on a local machine? Resources, anyone? I have
Googled my fingers off.
Why not just generate a free self-signed certificate for use on the
dev server or workstation?
Thanks, Shawn & Mike --
I'll research that. Many thanks...
Ken
May be more involved with IIS 5 (most likely download openssl and go
thru some gyrations), but IIS 6 and greater you can use the IIS resource
kit. Apache on Windows probably requires the same openssl incantations
plus more, but anything on linux should be fairly easy with just 1 or
several commands. No clue on OSX, but will probably be same as linux
but you'll probably not have the needed libs etc installed so you'll
need to install some openssl stuff, etc...
-Shawn
--- End Message ---
--- Begin Message ---
On Wed, 2008-04-23 at 20:32 -0500, Shawn McKenzie wrote:
>
> Robert Cummings wrote:
> > On Wed, 2008-04-23 at 16:50 -0500, Shawn McKenzie wrote:
> >
> >> Robert Cummings wrote:
> >>
> >>> On Tue, 2008-04-22 at 19:05 -0500, Shawn McKenzie wrote:
> >>>
> >>>> Tony Marston wrote:
> >>>>
> >>>>> ""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message
> >>>>> news:[EMAIL PROTECTED]
> >>>>> [snip]
> >>>>>
> >>>>>>> You haven't answered the question. Where can this piece of wizardry be
> >>>>>>> downloaded so that it can be reviewed by your peers?
> >>>>>>>
> >>>>> [/snip]
> >>>>>
> >>>>>
> >>>>>> It is not available for download
> >>>>>>
> >>>>> So your claims cannot be substantiated by anyone in this group.
> >>>>>
> >>>>>
> >>>>>> but it has been reviewed by peers on
> >>>>>> several project teams who have used it. It was developed specifically
> >>>>>> for a company who owns the work product. I have not re-created for
> >>>>>> general use by mere mortals but I will soon.
> >>>>>>
> >>>>> Let me know when as I could do with a good laugh.
> >>>>>
> >>>>>
> >>>> Well, if you would take the time to individually download > 1,000
> >>>> classes and piece them together you may find a very feature rich
> >>>> framework: http://www.phpclasses.org. Or maybe meta storage
> >>>> http://www.meta-language.net/metastorage.html.
> >>>>
> >>> Or you may find you've got >999 classes of code you'll never use :) That
> >>> would be one hell of an undertaking to piece them together. I'm going to
> >>> guess you'll need namespaces too since I bet some of them step on each
> >>> other's toes.
> >>>
> >>> Cheers,
> >>> Rob.
> >>>
> >> Obviously not a very good one, but that was in the spirit of a joke. ;-)
> >>
> >
> > I took it that way :)
> >
> > Cheers,
> > Rob.
> >
>
> Then say haha, not a long dissection of how sorry and shitty my post was :-)
Hah hah! :B
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
On Wednesday 23 April 2008 21:29:40 tedd wrote:
> At 5:24 PM +0300 4/22/08, Sancar Saran wrote:
> >Hello there,
> >
> >Is anyone looking jQuery recently ?. Thas what I call framework...
>
> Yes, and I'm programming with it.
>
> But, that's what jQuery and I call a library.
>
> Cheers,
>
Name it whatever you want.
From my point of view
It works, It helps lot and it was fun to writing programs with jQuery.
and When I try to use zend frame work (or name it your favorite framework).
It works. It needs to read tons of docs before writing someting useful and it
was [EMAIL PROTECTED]@ to writing programs with zend framework.
Regards
Sancar
--- End Message ---
--- Begin Message ---
On Thu, Apr 24, 2008 at 2:42 AM, Sancar Saran <[EMAIL PROTECTED]> wrote:
> It works. It needs to read tons of docs before writing someting useful and it
> was [EMAIL PROTECTED]@ to writing programs with zend framework.
It has tons of real unit tests to know it really works. Plus there
are a lot of eyes on it from various platforms. So you're pretty much
guaranteed that it is going to work out for you in the end. It has a
very nice manual, better than any other attempt I've seen in our
community. I think some of the api's do feel a little weird but I
understand that after releasing you can't just break BC for glam. :)
With all of that said... I tend to stay away from a lot of it though
because it feels very heavy to use. I guess that is how it has to be
when you can override/hook into so many different things (specifically
the controller).
--- End Message ---
--- Begin Message ---
On Thursday 24 April 2008 14:52:12 Eric Butera wrote:
> On Thu, Apr 24, 2008 at 2:42 AM, Sancar Saran <[EMAIL PROTECTED]>
wrote:
> > It works. It needs to read tons of docs before writing someting useful
> > and it was [EMAIL PROTECTED]@ to writing programs with zend framework.
>
> It has tons of real unit tests to know it really works. Plus there
> are a lot of eyes on it from various platforms. So you're pretty much
> guaranteed that it is going to work out for you in the end. It has a
> very nice manual, better than any other attempt I've seen in our
> community. I think some of the api's do feel a little weird but I
> understand that after releasing you can't just break BC for glam. :)
>
> With all of that said... I tend to stay away from a lot of it though
> because it feels very heavy to use. I guess that is how it has to be
> when you can override/hook into so many different things (specifically
> the controller).
Hello,
I did not say to it did not work. It works certanly...
And I do not know anything about overriding and hook in the controller.
AND
Thanks, with your answer my mind flashes
I finally realize the all of those framework madness and OO nazisim.
Here My Conclusion...
After booming web, tons of unemployement Desktop programmer changes their jobs
to create dynamic web pages to earn more food.
Meanwhile some kids form lazytown doing some very interesting sites (and earn
some big bucks) using some kind of scripting language named PHP.
After some inspection they found interesting facts and began to scraming.
"OMG. OMG, those nuts writing dynamic web pages with functions only. They even
don't know anything about object oriented programming."
Then some of then really pissed off. Because those kiddies doing very popular
sites even using some proper programming skillz... Then they create a mission
for themselves to good of community.
"Lets teach them how to write programming with proper way"
And they forget someting...
This was web industry. Your instances are 1 sec. In 6 month your aproach was
old and dull. Somebody in somewhere doing different way to do very
interesting things and you have to refactor entire thing.
From My Point of View
None of those frameworks can cover everything for world of HTML and WEB.
And I do not remember when I was extend somebody elses classes...
I'm pretty sure everone has lots of mini functions in their personal libs
which does not touch and use for years.
But classes ? Or frameworks
I'm not sure
Regards
Sancar
--- End Message ---
--- Begin Message ---
On Thu, Apr 24, 2008 at 9:05 AM, Sancar Saran <[EMAIL PROTECTED]> wrote:
> Thanks, with your answer my mind flashes
I wish I shared your passion on things! I started out with functional
programming using various languages. PHP was the first time I
attempted writing classes. The reason I wanted to was because I kept
thinking there was a "better way" to save me time and effort on my
projects. With all of my functional stuff I kept duplicating my
add/edit/remove crud file and I thought why not just try making a
class and extending it to save on lines of code. Then I realized that
was quite slow since it was all being done at runtime. From there
things only got worse as I learned about composition over inheritance,
all the other rules, and also as you put it "OO naziism" in general.
Everything I do is always wrong in someone's book. Progress indeed!
Years later in the end it's all the same crap no matter what the
syntax is. I'm still grabbing input and moving it around. I just
prefer my shovel to be objects instead of functions to keep my mind
occupied. Otherwise I might start thinking there really isn't much
difference between being a code monkey and a factory worker. ;)
--- End Message ---
--- Begin Message ---
NEWBIE! I have some GET data coming from a previous search form.
How do I add the WHERE part ?
orig:
$query_get1 = "SELECT p_First, p_id, p_Last, p_Lvl, p_Sel
FROM contacts";
------W / WHERE...???
$query_get1 = "SELECT p_First, p_id, p_Last, p_Lvl, p_Sel
FROM contacts
WHERE p_First like $_GET['p_First'] or p_Last like $_GET['p_Last']";
I tried various things that make errors:
where p_First like '%$_GET['p_First ']%'";
where p_First like ".$_GET['p_First ']."";
Etc...
How can I make this work?
--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists]
--- End Message ---
--- Begin Message ---
On Wed, 2008-04-23 at 19:07 -0700, revDAVE wrote:
> NEWBIE! I have some GET data coming from a previous search form.
>
> How do I add the WHERE part ?
>
> orig:
>
> $query_get1 = "SELECT p_First, p_id, p_Last, p_Lvl, p_Sel
> FROM contacts";
>
> ------W / WHERE...???
>
> $query_get1 = "SELECT p_First, p_id, p_Last, p_Lvl, p_Sel
> FROM contacts
> WHERE p_First like $_GET['p_First'] or p_Last like $_GET['p_Last']";
>
>
> I tried various things that make errors:
>
> where p_First like '%$_GET['p_First ']%'";
> where p_First like ".$_GET['p_First ']."";
> Etc...
>
> How can I make this work?
<?php
$escape = 'mysql_real_escape_string';
$query_get1 =
"SELECT "
." p_First, "
." p_id, "
." p_Last, "
." p_Lvl, "
." p_Sel "
."FROM "
." contacts "
."WHERE "
." p_First LIKE '".$escape( $_GET['p_First'] )."' "
." OR "
." p_Last LIKE '".$escape( $_GET['p_Last'] )."' ";
?>
But really... you're not doing any partial matching so don't bother with
'LIKE'. Just do the following:
<?php
$query_get1 =
"SELECT "
." p_First, "
." p_id, "
." p_Last, "
." p_Lvl, "
." p_Sel "
."FROM "
." contacts "
."WHERE "
." p_First = '".$escape( $_GET['p_First'] )."' "
." OR "
." p_Last = '".$escape( $_GET['p_Last'] )."' ";
?>
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--- End Message ---
--- Begin Message ---
> Yes: mine.
kind enough to let me see your code .. =)
--- End Message ---
--- Begin Message ---
Some day I'll package up some stuff and release it.
Sadly I have nothing worthwhile out in public right now.
On 4/23/08, paragasu <[EMAIL PROTECTED]> wrote:
> > Yes: mine.
>
> kind enough to let me see your code .. =)
>
--- End Message ---
--- Begin Message ---
>
> Some day I'll pac
> Sadly I have nothing worthwhile out in public right now.
everything is relative in this small world. honestly, just like you,
i also tend to think my code is good (of course because i wrote it)..
personal opinion is different than what the public might say.
some day, when you confident enough to release you code. i hope
i will be there to see.. =)
--- End Message ---
--- Begin Message ---
i'm confident, there just isn't much use to the barrage of snippets
and customized stuff.
i am in the middle of some useful, generic code, we're using it where
i work, but it isn't in any sort of distributable fashion at the
moment. it almost mirrors the idea of the zend framework, but in a
procedural fashion.
On 4/23/08, paragasu <[EMAIL PROTECTED]> wrote:
>
> > Some day I'll pac
> > Sadly I have nothing worthwhile out in public right now.
>
> everything is relative in this small world. honestly, just like you,
> i also tend to think my code is good (of course because i wrote it)..
> personal opinion is different than what the public might say.
>
> some day, when you confident enough to release you code. i hope
> i will be there to see.. =)
>
--- End Message ---
--- Begin Message ---
How about Yahoo and Google, extensively, in fact, I believe Rasmus Lerdorf
is still on staff at Yahoo, unless it's Micro Hoo by now ;-).
Warren
> -----Original Message-----
> From: Nathan Nobbe [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 23, 2008 1:50 PM
> To: Thiago Pojda
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Big companies that use PHP?
>
> On Wed, Apr 23, 2008 at 2:26 PM, Thiago Pojda <
> [EMAIL PROTECTED]> wrote:
>
> > Thanks everyone for replying, I think those names can
> change someone's
> > mind
> > ;)
>
>
> i know where youre coming from; i recall a certain manager
> once saying to me 'php doesnt scale when it goes OO'. i
> wanted to take his head off, but instead i mentioned wikipedia.
>
> -nathan
>
--- End Message ---
--- Begin Message ---
Warren Vail wrote:
How about Yahoo and Google, extensively, in fact, I believe Rasmus Lerdorf
is still on staff at Yahoo, unless it's Micro Hoo by now ;-).
That does bug the question - will M$ try to change things like they did with
Hotmail :)
--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--- End Message ---
--- Begin Message ---
Warren Vail wrote:
> How about Yahoo and Google, extensively, in fact, I believe Rasmus Lerdorf
> is still on staff at Yahoo, unless it's Micro Hoo by now ;-).
:-) I think he is in fact at Google.
Iñigo
> Warren
>
>> -----Original Message-----
>> From: Nathan Nobbe [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, April 23, 2008 1:50 PM
>> To: Thiago Pojda
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: [PHP] Big companies that use PHP?
>>
>> On Wed, Apr 23, 2008 at 2:26 PM, Thiago Pojda <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Thanks everyone for replying, I think those names can
>> change someone's
>>> mind
>>> ;)
>>
>> i know where youre coming from; i recall a certain manager
>> once saying to me 'php doesnt scale when it goes OO'. i
>> wanted to take his head off, but instead i mentioned wikipedia.
>>
>> -nathan
>>
>
>
--
--------
Iñigo Medina García
Librería Díaz de Santos Madrid (Spain)
[EMAIL PROTECTED] [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
On 23/04/2008, Thiago Pojda <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
>
>
> I've been asked this common question: What big companies use PHP in big
> apps?
>
>
>
> I don't know where to find this kind of stuff and, well. here I am :)
>
>
>
>
>
> Do any of you know?
>
>
>
> And what % of the web market share does PHP take?
>
>
>
>
>
> Thanks,
>
> Thiago Pojda
>
>
Wasn't there something you could append to any file in the URL that
would show if it had been parsed using PHP?
--
Tom Chubb
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
there is the php easter
eggs<http://shiflett.org/blog/2006/feb/php-easter-eggs>which show that
it's php. but most large companies turn that off.
> expose_php = 'off'
>
--
/James
On Thu, Apr 24, 2008 at 8:54 AM, Tom Chubb <[EMAIL PROTECTED]> wrote:
> On 23/04/2008, Thiago Pojda <[EMAIL PROTECTED]> wrote:
> > Hey guys,
> >
> >
> >
> > I've been asked this common question: What big companies use PHP in big
> > apps?
> >
> >
> >
> > I don't know where to find this kind of stuff and, well. here I am :)
> >
> >
> >
> >
> >
> > Do any of you know?
> >
> >
> >
> > And what % of the web market share does PHP take?
> >
> >
> >
> >
> >
> > Thanks,
> >
> > Thiago Pojda
> >
> >
>
> Wasn't there something you could append to any file in the URL that
> would show if it had been parsed using PHP?
>
> --
> Tom Chubb
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Actually I was at FISL (Free Software International Forum) last week and
Rasmus was there.
He was talking about Large Scale PHP (fair enough, huh?) and he said he
still works for Yahoo, it's been 6 years now.
There's a link for his talk: http://talks.php.net/show/fisl08
That just rang a bell: Rasmus+Yahoo+M$ != PHP?
I did not know Google used it, does anyone have any proof of that? I know
they make extense use of python, but not sure about PHP.
-----Mensagem original-----
De: Iñigo Medina García [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 24 de abril de 2008 04:37
Cc: [EMAIL PROTECTED]
Assunto: Re: [PHP] Big companies that use PHP?
Warren Vail wrote:
> How about Yahoo and Google, extensively, in fact, I believe Rasmus Lerdorf
> is still on staff at Yahoo, unless it's Micro Hoo by now ;-).
:-) I think he is in fact at Google.
Iñigo
> Warren
>
>> -----Original Message-----
>> From: Nathan Nobbe [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, April 23, 2008 1:50 PM
>> To: Thiago Pojda
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: [PHP] Big companies that use PHP?
>>
>> On Wed, Apr 23, 2008 at 2:26 PM, Thiago Pojda <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Thanks everyone for replying, I think those names can
>> change someone's
>>> mind
>>> ;)
>>
>> i know where youre coming from; i recall a certain manager
>> once saying to me 'php doesnt scale when it goes OO'. i
>> wanted to take his head off, but instead i mentioned wikipedia.
>>
>> -nathan
>>
>
>
--
--------
Iñigo Medina García
Librería Díaz de Santos Madrid (Spain)
[EMAIL PROTECTED] [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Steve Gula wrote:
> I work for a company that has chosen to use XML (Software AG Tamino
> XML database) as its storage system for an enterprise application. We
> need to make a system wide change to information within the database
> that isn't feasible to do through our application's user interface. My
> solution was to unload the XML collection in question, open it,
> manipulate it, then write it back out. Problem is it's a 230+MB file
> and even with PHP's max mem set to 4096MB (of 8GB available to the
> system) SimpleXML claims to still run out of memory. Can anyone
> recommend a better way for handling a large amount of XML data?
xalan.
/Per Jessen, Zürich
--- End Message ---
--- Begin Message ---
-----Original Message-----
From: Ford, Mike [mailto:[EMAIL PROTECTED]
Sent: 17 April 2008 12:25
To: [EMAIL PROTECTED]
Subject: RE: [PHP] FRench characters not displayed correctly
On 17 April 2008 10:05, Robert Cummings advised:
> On Thu, 2008-04-17 at 10:57 +0200, Angelo Zanetti wrote:
>>
>> Thanks Robert,
>>
>> I have the following headers:
>>
>>
>> http://fr.xxxx.com/student/themes/english/locker_room/student.html
>>
>> GET /student/themes/english/locker_room/student.html? HTTP/1.1 Host:
>> fr.xxxx.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US;
>> rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
>> Accept:
>>
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
> ,text/plain;q=
>> 0.8,image/png,*/*;q=0.5
>> Accept-Language: en-us,en;q=0.5
>> Accept-Encoding: gzip,deflate
>> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>> Keep-Alive: 300
>> Connection: keep-alive
>> Referer:
> http://fr.xxxx.com/student/themes/english/locker_room/student.html
>> Cookie: PHPSESSID=818678404c170c8e4f5d237c1d0280a8
>> If-Modified-Since: Sat, 17 Nov 2007 11:40:26 GMT
>> If-None-Match: "6b97e-a9d-619b9e80"
>> Cache-Control: max-age=0
>>
>> HTTP/1.x 304 Not Modified
>> Date: Thu, 17 Apr 2008 08:31:32 GMT
>> Server: Apache/2.0.55 (Unix) PHP/5.1.2
>> Connection: Keep-Alive
>> Keep-Alive: timeout=15, max=200
>> Etag: "6b97e-a9d-619b9e80"
>> -----------------------------
>>
>>
>> Now I see that the headers have:
>>
>> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>
>> Which to me seems like it is sending both ISO-8859-1 and UTF-8?
>
> No, that's what kind of content the server is willing to accept from
> various sources such as POST.
Er, no, that's what kind of content the browser is prepared to accept
back from the server -- the headers starting from the GET line are what
the browser sends to the server as part of the request. The lines
starting at the HTTP/1.x line are what the server returns.
In this case, you're getting a 304 Not Modified, which means the server
is not even serving any content on this request, nor, probably, even a
full set of headers -- it's just telling the browser it can use its
cached page. To be absolutely sure what the relevant headers are, you
need to force the server to send the full page -- usually, the best way
to do this is to hold down the Ctrl key whilst clicking the
Refresh/Reload button.
Incidentally, I notice that what's being served here is a .html page,
and the presence of a 304 response, and no PHP headers, suggests it
actually is plain HTML, and not a disguised script, so this whole thread
is really very OT...!! ;) However, this being the case, it suggests you
have a static .html file on your site claiming to be charset=utf-8, but
not saved in UTF-8! There are two obvious ways to solve this: (i)
convert the file into UTF-8, or (ii) edit it to have the correct
charset= value in the tag.
----------------------
Mike, thanks very much I have done a ctrl+F5
And have the following:
----------------------------------------------------------
http://fr.xxxxx.com/student/themes/english/locker_room/student.html
GET /student/themes/english/locker_room/student.html HTTP/1.1
Host: fr.xxxxx.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14)
Gecko/20080404 Firefox/2.0.0.14
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer:
http://fr.xxxxxx.com/student/themes/english/locker_room/student.html
Cookie: PHPSESSID=5d5af707c9c34205d30708326872ad27
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.x 200 OK
Date: Thu, 24 Apr 2008 08:34:10 GMT
Server: Apache/2.0.55 (Unix) PHP/5.1.2
Last-Modified: Sat, 17 Nov 2007 11:40:26 GMT
Etag: "6b97e-a9d-619b9e80"
Accept-Ranges: bytes
Content-Length: 2717
Keep-Alive: timeout=15, max=198
Connection: Keep-Alive
Content-Type: text/html
I can now see that the response is a 200 OK response.
So basically to get these pages to serve the French characters correctly
would I need to do the following:
(i) convert the file into UTF-8, or
(ii) edit it to have the correct charset= value in the tag.
When you refer to charset are you referring to: iso-8859-1 or UTF-8?
(iii) Also would I need to send the PHP headers as follows:
header( 'Content-type: text/html; charset=iso-8859-1' );
(iv) Also does the fact that there is no <DOCTYPE> declaration have any
impact on the showing of the French characters?
Anyone who feels like that are able to comment on the above please assist,
as it is greatly appreciated.
Thanks
Angelo
--- End Message ---
--- Begin Message ---
Hello,
I have two perl scripts that runs fine in the shell. But when I build a
page with them, only in one case the results are shown in the other case
i see a blank page.
I have done different test and I don't understand this issue. I don't
know what i am doing wrong.
Follows the link to the code:
EURID script: http://pastebin.com/m3d6cbffe
ESNIC script: http://pastebin.com/m40755f40
PAGINA: http://pastebin.com/m5f8e1043
Thanks in advance to help me with this.
--- End Message ---
--- Begin Message ---
J. Manuel Velasco - UBILIBET wrote:
Hello,
I have two perl scripts that runs fine in the shell. But when I build a
page with them, only in one case the results are shown in the other case
i see a blank page.
I have done different test and I don't understand this issue. I don't
know what i am doing wrong.
Follows the link to the code:
EURID script: http://pastebin.com/m3d6cbffe
ESNIC script: http://pastebin.com/m40755f40
PAGINA: http://pastebin.com/m5f8e1043
Thanks in advance to help me with this.
So you're basically asking for help with your perl scripts on a PHP-only
mailinglist?! Well... flame away...
- Tul
--- End Message ---