Re: [PHP] Re: Good and free encoder for PHP5

2004-12-14 Thread Octavian Rasnita
Oh yeah but probably the problem is that it wasn't updated in order to work with PHP 5. Or does it does? Teddy - Original Message - From: Manuel Lemos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 1:16 AM Subject: [PHP] Re: Good and free encoder for PHP5

Re: [PHP] Google search indexing

2004-12-14 Thread Octavian Rasnita
Yes Google index the entire url including the HTTP_QUERY_STRING (the part after the question mark). You will see many warnings in old tutorials telling that the search enginnes don't index the entire url, but I don't think it is the case anymore. However, if you want to avoid this, or to just

[PHP] installing php 5.02 and Apache 2

2004-12-06 Thread Octavian Rasnita
Hi all, I have installed Apache 2 under Fedora Core 2 and now I would like to install PHP 5.02 as a server module. I have downloaded and unpacked PHP 5.02, and I think that I need to run ./configure now but I don't know which parameters I need to add. I have added --prefix=dir --with-mysql=dir

[PHP] Compiling a php program

2004-11-30 Thread Octavian Rasnita
Hi all, Does anyone know a free php compiler that can create a single .exe program with all the necessary libraries included in it? I don't want that .exe file to require other .dll files. I have tried a compiler named PriadoBlender or something like that, but it has a bad interface which is

[PHP] Messengers libraries?

2004-11-30 Thread Octavian Rasnita
Hi all, Does anyone know if there are free php libraries for creating MSN or Yahoo or Skype or AOL Messenger clients? Thanks. Teddy Teddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compiling a php program

2004-11-30 Thread Octavian Rasnita
directory and run the php program from that location, so the php code can be seen. Thanks. Teddy - Original Message - From: Mike [EMAIL PROTECTED] To: 'Octavian Rasnita' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 3:13 PM Subject: RE: [PHP] Compiling a php

[PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Octavian Rasnita
Hi all, I use the following program: ?php print_form(); print_quotes (); function print_form () { ob_start(); output_add_rewrite_var(sort, sorting); echo EOF form ... /form EOF; ob_flush(); } function print_quotes () { output_reset_rewrite_vars(); echo EOF table ... /table EOF; } ?

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Octavian Rasnita
php under Linux also... Teddy - Original Message - From: Raditha Dissanayake [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 29, 2004 5:29 PM Subject: Re: [PHP] Is this a bug in PHP 4.3.4? Octavian Rasnita wrote: Hi all, I use the following program: function

[PHP] Range: bytes=x-y

2004-11-28 Thread Octavian Rasnita
Hi all, Does anyone know why some servers don't return a partial content when I use the HTTP header: Range: bytes=100-200 It should return the content of the page starting from byte 100 until the byte 200, but it still returns the whole page. Does this happen when the page is sent unbuffered?

Re: [PHP] automatic responder

2004-11-27 Thread Octavian Rasnita
You just need to get the HTTP_ACCEPT_LANGUAGE environment variable and see the order of the prefered languages. After that, you see if you have a translation for the first language, if the site doesn't have it, try for the next language, and so on. Teddy - Original Message - From:

[PHP] Bad PHP error

2004-11-27 Thread Octavian Rasnita
Hi all, I have tried the following script: $val = 100; if (is_int($val)) { echo $val; } else { echo $val is not an integer\n; } The answer is: 100 is not an integer. Why does this happen? I use PHP 5. Isn't PHP able to work with values like 10 billion? Do I need to use a

Re: [PHP] Re: Bad PHP error

2004-11-27 Thread Octavian Rasnita
Ok, I understand. But what can I do if I want to print big numbers like 123 billion? (but real numbers, not those written with the E letter in them? Is this possible with PHP or I need to do it with another language? Thank you. Teddy From: M. Sokolewicz [EMAIL PROTECTED] Octavian Rasnita

Re: [PHP] Re: Bad PHP error

2004-11-27 Thread Octavian Rasnita
tried just echo $var, but I thought that maybe if I put it between quotes, it will be printed right, but... Thank you. Teddy - Original Message - From: M. Sokolewicz [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Octavian Rasnita [EMAIL PROTECTED] Sent: Saturday, November 27, 2004 11:08 PM

Re: [PHP] Re: Bad PHP error

2004-11-27 Thread Octavian Rasnita
, and if I want to make some calculations, the numbers will be converted to numbers and... Thanks. Teddy - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, November 28, 2004 12:39 AM Subject: Re: [PHP] Re: Bad

Re: [PHP] Re: Bad PHP error

2004-11-27 Thread Octavian Rasnita
Hi, I also use Win 2k with PHP 5 in command line mode. It is pretty strange that in an older version of Jaws it works better. Or... could I make some settings to make it work like in your case? Teddy - Original Message - From: BAO RuiXian [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL

Re: [PHP] Re: Bad PHP error

2004-11-27 Thread Octavian Rasnita
Oh thanks, I hope I will find a good combination that migh help me finally. Teddy - Original Message - From: BAO RuiXian [EMAIL PROTECTED] To: M. Sokolewicz [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, November 28, 2004 2:23 AM Subject: Re: [PHP] Re: Bad PHP error Hello, M.

[PHP] Getting the contents of a file

2004-11-25 Thread Octavian Rasnita
Hi all, I am trying to use the file() function, but without success. Here is the code: $url = http://www.rasd.ro/Quotes/11-24-2004.txt; $file = file($url); And this is the error: PHP Parse error: syntax error, unexpected T_VARIABLE in [FILE] on line 13 The line 13 contains: $file =

[PHP] Simple coding question

2004-11-19 Thread Octavian Rasnita
Hi all, Please tell me which is the shortest method for writing the following code: $var = $_GET['var'] || 'value'; I want the program to put the value value in the variable $var if the array element 'var' is not defined or in case it is 0 and I would like to avoid using that long style with if

[PHP] converting a number

2004-11-18 Thread Octavian Rasnita
Hi all, I have a number like 1.0122E9 and I want to convert it into a real number in a common notation and not in that scientific one (with E). I have seen that very long numbers are always converted automaticly to that notation and I need to insert that number in a MySQL database and in that

Re: [PHP] converting a number

2004-11-18 Thread Octavian Rasnita
Not exactly. And this query gives me an error. Thank you. Teddy - Original Message - From: Warren Vail [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 18, 2004 11:24 AM Subject: RE: [PHP] converting a number I have a number

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Octavian Rasnita
What do you mean by perl discontinued? Perl 5 is continuu updated and this year I have seen perl 5.8.1, 5.8.3, 5.8.4, 5.8.5 is almost done. Perl 6 is planned to run in a precompiled code (like Java programs) in an environment that will also be able to run programs created in other programming

[PHP] Loading an extension

2004-11-16 Thread Octavian Rasnita
Hi all, I want to add an extension (CURL, mysql) to a php program without specifying it in php.ini (because on some servers I might not have the right to modify that configuration file). I have tried using the dl() function, but here is an error I get on the browser when doing this: Warning:

[PHP] Converting to integer

2004-11-16 Thread Octavian Rasnita
Hi all, I get some values from a MySQL table and some of them are in the format 1000.0, 234.0, etc. I want those values converted as 1000, 234, and so on, but the other string values need to remain the same. I have tried using the function is_numeric to test which of the values returned from

[PHP] Simple XML

2004-11-11 Thread Octavian Rasnita
Hi all, Does anyone know if PHP has a library for getting the content of an XML file like XML::Simple in perl? In that perl library I can get the whole content of an XML file in a reference to an array of arrays of arrays... with only 3 lines of code. Is there such a simple method in PHP?

[PHP] MySQL

2004-11-09 Thread Octavian Rasnita
Hi all, Please tell me how to send a null string to be inserted in a MySQL database. If I do something like: $string = null; mysql_query(insert ignore into table(field) values($string)); It gives me an error. In fact, I have multiple fields to insert, and the error just tell me that was an

Re: [PHP] Passing regexp substrings to a function

2004-10-25 Thread Octavian Rasnita
Hi, In perl, you can do something like: $string =~ s/---piece of text that contains a certain (VALUE) in it---/function($1)/gse; This expression replaces its first part with the result of the function function called with the parameter VALUE. Is this what you want? Maybe you can do something

Re: [PHP] List Etiquette

2004-09-22 Thread Octavian Rasnita
Michael Sims wrote: Octavian Rasnita wrote: No, there is no way for customizing the headers Outlook Express use to put in the email messages. I wish there was, because I don't like them also... Although I haven't used it personally, OE-QuoteFix may help: http://home.in.tum.de/~jain

Re: [PHP] List Etiquette

2004-09-21 Thread Octavian Rasnita
: [PHP] List Etiquette Hi, On Mon, 20 Sep 2004 04:01:47 +0300 Octavian Rasnita [EMAIL PROTECTED] wrote: My email client (Outlook Express) puts a lot of information at the top of the message automaticly, like: The signature, --- original message --- The From line - The to line

Re: [PHP] List Etiquette

2004-09-20 Thread Octavian Rasnita
- Original Message - From: John Nichel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 20, 2004 7:06 AM Subject: Re: [PHP] List Etiquette Octavian Rasnita wrote: snip In other words it's easier for you to reach your Delete key when you top post than when you

Re: [PHP] List Etiquette

2004-09-19 Thread Octavian Rasnita
Hi, I have a very strong reason for top posting and a very strong one for not agreeing too much bottom posting at all, and this is the fact that I am blind and if I need to read a bottom post, I need to read again and again the whole original message, even though most of the time I remember what

Re: [PHP] Browser caching problem.

2004-09-19 Thread Octavian Rasnita
BTW, does anyone know if there is a program or script that can listen to the stream and save it into a file? I know this can be done using a program for recording the sound, but that is not a very professional solution and it depends on the quality of the sound card, the speed of internet

Re: [PHP] List Etiquette

2004-09-19 Thread Octavian Rasnita
Hi, From: John Nichel [EMAIL PROTECTED] Do the words get smaller at the bottom? Having to scroll thru line after line of message doesn't deal with top vs. bottom posting...that stems from people not trimming non-releative parts out of the message. --- The rules should be made to make the

Re: [PHP] List Etiquette

2004-09-19 Thread Octavian Rasnita
Teddy - Original Message - From: -{ Rene Brehmer }- [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, September 20, 2004 1:12 AM Subject: Re: [PHP] List Etiquette At 16:57 19-09-2004, Octavian Rasnita wrote: Hi, From: John Nichel [EMAIL

Re: [PHP] List Etiquette

2004-09-19 Thread Octavian Rasnita
From: Chris Shiflett [EMAIL PROTECTED] This is like arguing that people choose to use IE instead of Firefox. Surely the flaws of this argument are obvious. For people who bother to make a choice, Firefox is a clear winner. The same is true for formatted email. People (who care) tend to agree on a

Re: [PHP] List Etiquette

2004-09-19 Thread Octavian Rasnita
From: John Nichel [EMAIL PROTECTED] Easier for reading? Yes, you're right. Do you read a book from the bottom of the page up? Trimming a message is easier if you top post? That's pretty weak. Follow a top posted thread, you'll see that most top posters just leave everything in there,

Re: [PHP] How does work shorten url services?

2004-09-18 Thread Octavian Rasnita
I don't think those sites use mod_rewrite because an URl can be anything, including: http://www.oijoij.com/eorier/eoroeir/oier/eorij.pl?terer=wer4334oijo=werooj=123# (or much more complicated urls). Those sites (because there are more) just put the urls in a database, and assign an ID to

Re: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Octavian Rasnita
I haven't downloaded it yet because I have seen that I need PHP 4 and that it won't work with PHP 5, but I will install PHP4 just for testing it. I am glad that it uses Win32 native classes because those classes are accessible for the most screen readers used by the blind, so the interfaces will

[PHP] Downloading a part of a file

2004-09-07 Thread Octavian Rasnita
Hi all, Please tell me how can I fetch an html document from a web page, let's say starting from the character 1000, and get the text until the caracter 5000. In fact, I want to use the GET or POST method, and to also send to the server the HTTP header: Range: bytes=1000-5000 Thanks. Teddy

Re: [PHP] Re: htmlentities and foreign characters from MS Word

2004-09-06 Thread Octavian Rasnita
You could store those texts as binary in MySQL... - Original Message - From: Monty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 06, 2004 11:07 AM Subject: [PHP] Re: htmlentities and foreign characters from MS Word That did it! It seems that my version of MySQL

Re: [PHP] tool to increase your web site?s profitability

2004-09-05 Thread Octavian Rasnita
Does this list have a moderator? Teddy From: theeb basheer [EMAIL PROTECTED] Dear Friend, Would you be excited if I told that YOU COULD EARN $3,500 EVERY DAY from a web site that gets only 100 visitors a day... and sells a product that costs less than $150? You could be earning over $100,000

Re: [PHP] Correct headers for I.E. to open PDF?

2004-09-03 Thread Octavian Rasnita
This has nothing to do with PHP or the server, but with the way the client computer is configured. If the user doesn't want to open a .pdf file in the browser but to be prompted for saving the file, that's the way he will have it. ...fortunately. Teddy Teddy - Original Message - From:

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Octavian Rasnita
I have taken a look and I have seen a {3} and I think this was for specifying the number of letters of the top domain name. Well, I think it should be {4} for making it work for .info domains also... T Teddy - Original Message - From: John Holmes [EMAIL PROTECTED] To: Jason Wong [EMAIL

[PHP] Reading the documentation

2004-08-22 Thread Octavian Rasnita
Hi all, I have 2 questions: 1. Do PHP libraries have a documentation included inside of them like in case of Perl's modules? 2. If yes, how can I read that documentation? Thank you. Teddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Reading the documentation

2004-08-22 Thread Octavian Rasnita
a documentation in comments, with some special marks... Teddy - Original Message - From: M. Sokolewicz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 22, 2004 11:29 AM Subject: [PHP] Re: Reading the documentation Octavian Rasnita wrote: Hi all, I have 2 questions: 1. Do

[PHP] Sending email

2004-08-22 Thread Octavian Rasnita
Hi all, I want to send a test message with the following specifications: 1. The message is sent by [EMAIL PROTECTED] 2. The message is sent to the following recipients: [EMAIL PROTECTED], [EMAIL PROTECTED] 3. The message has the subject: [EMAIL PROTECTED] 4. The message has the following

Re: [PHP] Re: Sending email

2004-08-22 Thread Octavian Rasnita
Subject: [PHP] Re: Sending email Octavian Rasnita wrote: Hi all, I want to send a test message with the following specifications: 1. The message is sent by [EMAIL PROTECTED] 2. The message is sent to the following recipients: [EMAIL PROTECTED], [EMAIL PROTECTED] 3

Re: [PHP] Storing, formatting and displaying data

2004-08-20 Thread Octavian Rasnita
Oh thank you. This is exactly what I need. I can create regular expressions to do the job, but I wanted some ideas for the mark points used. Teddy Teddy - Original Message - From: Justin French [EMAIL PROTECTED] To: Octavian Rasnita [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday

Re: [PHP] downloading files

2004-08-19 Thread Octavian Rasnita
You can put the files that need to be downloaded in a directory somewhere outside of the web server root, but in that case your PHP program will need to read the file and print it to the browser, and it will also need printing the HTTP headers: Content-type: application/octet-stream

[PHP] Storing, formatting and displaying data

2004-08-19 Thread Octavian Rasnita
Hi all, I would like to create a program that allow users to insert text into a database, than that text to appear in a web page formatted as HTML. It is simple to replace the end of line with br /\n in order to format that text as html, but I don't know how I could let the users to create

Re: [PHP] Cache

2004-08-17 Thread Octavian Rasnita
From: pan [EMAIL PROTECTED] What provides the new data? Can you run a html update from whatever is supplying the new data? Hmm, I don't think I can. The data is stored in MySQL by a separate program, but that data can be used in more pages. I think the only good solution would be to run a

Re: [PHP] Compile

2004-08-16 Thread Octavian Rasnita
From: raditha dissanayake [EMAIL PROTECTED] i think you are looking for something like turck mmcache. Do you know if Turck MMCache works with PHP 5.0? Teddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP templates

2004-08-16 Thread Octavian Rasnita
] To: Octavian Rasnita [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 16, 2004 4:38 AM Subject: Re: [PHP] PHP templates On 15/08/2004, at 7:02 AM, Octavian Rasnita wrote: Hi all, I have seen that there are many templating systems for PHP. Which is the most used and the best you

[PHP] Cache

2004-08-16 Thread Octavian Rasnita
Hi all, I want to create an html cache of a page, like when that page is saved to the disk and let the visitors download that static page and not a dynamic one. Of course, a dynamic PHP program will load that static page and display it, but without need to connect to databases, to make

Re: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Octavian Rasnita
Why is so important if Internet Explorer allows URLS of images where the file name is only .jpg, .png, or .gif? A url can be something like: http://www.site.com/script.php/image.jpg?logout=true Internet Explorer might think that the file is a .jpg and that script.php is a directory but only the

Re: [PHP] PHP Security Workbook

2004-08-15 Thread Octavian Rasnita
I have also read that pdf document and I have found another interesting advice. The author says that a good way of hiding the username/password is to put a file that exports 2 environment variables in a directory that can be read only by the root, then include a call to that file in httpd.conf in

Re: [PHP] PHP Security Workbook

2004-08-15 Thread Octavian Rasnita
Oh thank you for this information. This is very important for me to know. Yes, this is another thing that I mention in the talk but failed to include in the workbook. When this approach is being applied to a shared hosting environment, you want to put the Include directive within a

Re: [PHP] Re: Help with Regular Expressions

2004-08-15 Thread Octavian Rasnita
From: [EMAIL PROTECTED] Hi all, I am working on a small php script which should do the following. I want all the links in the page to be preceded by first character and first two characters of the link.Please look into the example below for more clarification. eg. a href=/code.htmllink

[PHP] PHP templates

2004-08-14 Thread Octavian Rasnita
Hi all, I have seen that there are many templating systems for PHP. Which is the most used and the best you have found? Can you recommend me a free and good templating system? Thank you. Teddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: