[PHP] Re: Basic Auth

2013-08-27 Thread B. Aerts
On 27/08/13 15:37, Jim Giner wrote: Im using basic auth for a few of my pages that I want to limit access to - nothing of a sensitive nature, but simply want to limit access to. Want to implement a signoff process, but can't figure it out. From the comments in the manual I take it one can't

[PHP] Premature end of script

2013-07-17 Thread R B
Hello, 5 years ago, y developed a php system and was working fine. But 20 days ago, when y try to access to some pages (not all the pages), in the log appears this message and the page is not displayed: == /usr/local/apache/logs/error_log == [Wed Jul 3 02:36:58 2013] [error] [client 10.30.6.161]

Re: [PHP] webDAV/CalDAV client class experience ?

2013-02-18 Thread B. Aerts
- Adding the HTTP header Accept: */* made sure all read actions ( e.g. GET, PROPFIND, REPORT) worked perfectly This is interesting. The Accept header has to do with what media types the browser will accept in return. I didn't think it had anything to do with what operations the

Re: [PHP] webDAV/CalDAV client class experience ?

2013-02-16 Thread B. Aerts
On 13/02/13 14:27, Daniel Brown wrote: On Tue, Feb 12, 2013 at 3:40 PM, B. Aerts ba_ae...@yahoo.com wrote: Hello, I'm working on this one for more than a year (personal project) - but I'm turning pretty desperate here. I'm trying to connect to 2 Calendars through the CalDAV protocol

[PHP] webDAV/CalDAV client class experience ?

2013-02-12 Thread B. Aerts
Hello, I'm working on this one for more than a year (personal project) - but I'm turning pretty desperate here. I'm trying to connect to 2 Calendars through the CalDAV protocol. The calendars are hosted by 2 webmail providers. If I try to sync through a dedicated calendar, like iCal or

Re: [PHP] error_handler : unique caller ID ?

2012-11-14 Thread B. Aerts
On 13/11/12 20:04, Robert Williams wrote: On 11/13/12 11:20, B. Aerts ba_ae...@yahoo.com wrote: Having read access to a variable's address (like a C-pointer) would be perfect - but Google tells me you can't in PHP. If you can restrict yourself to objects for the passed variables, you can

[PHP] error_handler : unique caller ID ?

2012-11-13 Thread B. Aerts
function Outer($a) { trigger_error('entering Outer'); $a=Inner($a) ; trigger_error('leaving Outer') ; } function Inner($x) { trigger_error('entering Inner'); return(2*$x) ; } trigger_error('Here we go '); $b = 1 ; $b = Outer($b) ; trigger_error('End result is $b'); // end-of-snippet

Re: [PHP] Character encoding

2009-08-05 Thread b
On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.) wrote: Hi, I have a mysql database, which the users can insert comments. As the users can be from different countries, with different character encoding, the mysql table can contain various special characters. How can I be sure to display

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread b
On 07/30/2009 08:53 AM, Peter Ford wrote: Have you tried using 'file -i' from the command line: after all you are looking for a MIME type with your fileinfo... Having said that, with file -i on my system, Word documents are 'application/msword' and Excel files are 'application/octet-stream'

Re: [PHP] Formatting plain text file

2009-07-30 Thread b
On 07/30/2009 06:29 PM, Skip Evans wrote: Jim Lucas wrote: Skip Evans wrote: Hey all, Am I brain fading or what? I'm so used to formatting text in tables for HTML display I can't think of how to do it for a plain text file. I just need to create a columned table of names and addresses type

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread b
On 07/30/2009 10:15 AM, Ashley Sheridan wrote: On Thu, 2009-07-30 at 07:12 -0700, Christoph Boget wrote: You could email it to me, which I presume is better if you replied back just to me and not the list? Just copying the list back on in this one now. I don't know of any places that you

[PHP] preg_match too greedy

2009-07-29 Thread b
I'm trying to figure out how to test if a string matches *exactly* another string, using a regexp pattern. The manual says that ereg() is deprecated (in favour of what?) and preg_match() is giving me trouble. The problem is that I'm passing the end-of-line delimiter ($) but it seems to be

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 02:07 PM, Jim Lucas wrote: b wrote: I'm trying to figure out how to test if a string matches *exactly* another string, using a regexp pattern. The manual says that ereg() is deprecated (in favour of what?) and preg_match() is giving me trouble. The problem is that I'm passing

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 03:03 PM, Ben Dunlap wrote: Jim Lucas wrote: I expected 'no match' but get 'match'. [8] cut/paste your code and it works for me. Works for me as well. I get 'no match' from PHP 5.1.2, 5.2.6, and 5.2.8. What version do you have? 5.2.9 If I might suggest a couple of

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 07:48 PM, Daniel Kolbo wrote: code works (no match) for me too on php 5.2.6 build date May 2 2008 18:01:20 with dumbdows NT. preg_match fails but for a reason other than what I think you may be expecting. It fails b/c of the first forwards slash in $url. The regex engine

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 11:18 PM, Daniel Kolbo wrote: b wrote: On 07/29/2009 07:48 PM, Daniel Kolbo wrote: code works (no match) for me too on php 5.2.6 build date May 2 2008 18:01:20 with dumbdows NT. preg_match fails but for a reason other than what I think you may be expecting. It fails b/c

Re: [PHP] PHP as Language

2009-07-24 Thread b
On 07/24/2009 02:06 PM, Kyle Smith wrote: Martin Scotta wrote: Hi all Is there a formal definition for the php language? Where I can found it? I've STW with no results. Not sure if this is what you mean, but PHP stands for PHP: Hypertext Processor - Kyle I think Martin is looking for

[PHP] Amazon s3 and PHP

2009-06-03 Thread R B
Hi, Do you know if amazon s3 hosting support php files? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Amazon s3 and PHP

2009-06-03 Thread R B
To configure a AMI have some extra fee? Do you have a link to read how to run php files in amazon s3? Thanks. On Wed, Jun 3, 2009 at 11:13 AM, Bastien Koert phps...@gmail.com wrote: On Wed, Jun 3, 2009 at 12:27 PM, R B rbp...@gmail.com wrote: Hi, Do you know if amazon s3 hosting

Re: [PHP] Re: PHP Security

2009-06-02 Thread b
Grant Peel wrote: ??? I think you can safely assume that was a joke. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-27 Thread b
to a different language because of this. I guess you could look for a language that has a parser with 0 configuration options. Sounds like a bundle of fun. Meanwhile, why don't you consider a) moving to a new host; or, b) setting up your own server so you can ~shudder~ *configure* it however you

[PHP] Fileinfo and MSWord bug

2009-05-16 Thread b
PHP 5.2.6 file-4.17-15.el5_3.1 Fileinfo installed through PECL Checking certain MSWord files, I'm getting back (sans quotes) application/msword application/msword. Someone reported (in the manual comments) this same thing back in 2007: http://ca2.php.net/manual/en/ref.fileinfo.php#79063 Can

[PHP] Execute flash files with PHP

2009-02-19 Thread R B
Hello. I have two scripts in php that reads a .swf or .flv movie file, like this: SCRIPT # 1 ?php $movie = movie.swf; readfile($movie); ? SCRIPT # 2 ?php $movie = movie.flv; readfile($movie); ? The script # 1 with the .swf file works fine: the video is executed with streaming. The script

[PHP] mysql_query - CREATE DATABASE

2009-02-09 Thread R B
Hello, When i create a mysql database with the next command: mysql_query(CREATE DATABASE my_db,$con) In the server is created the database, but usually the name is created with a prefix. In this case: someuser_my_db How can i detect with PHP the complete name of the new database created?

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
, because a prefix is added. On Mon, Feb 9, 2009 at 12:17 PM, Shawn McKenzie nos...@mckenzies.netwrote: R B wrote: Hello, When i create a mysql database with the next command: mysql_query(CREATE DATABASE my_db,$con) In the server is created the database, but usually the name is created

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
McKenzie nos...@mckenzies.netwrote: Shawn McKenzie wrote: R B wrote: Hello, When i create a mysql database with the next command: mysql_query(CREATE DATABASE my_db,$con) In the server is created the database, but usually the name is created with a prefix. In this case

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
thank you. On Mon, Feb 9, 2009 at 1:14 PM, Shawn McKenzie nos...@mckenzies.net wrote: R B wrote: I´m looking that i have another problem: I´m making a software to install in any server. The software needs a database, so i want to create a script install.php to create the database

[PHP] Include PHP library file in the .htaccess

2009-01-30 Thread R B
Hello. Supose that i have this script: ?php require_once(lib.php); lib_function(); ? I want to know if there is a way to call the lib.php library from the .htaccess instead of the PHP script? Thanks.

[PHP] Non-traditional software accessing my website

2009-01-26 Thread R B
Hello, Is there a way to be sure that a website is going to be accessed only by traditional browsers and not from another software that send to the server the same headers of any of the traditional browsers? For example, supose that i only want to give access to my site users from firefox, ie,

[PHP] PHP and Apache configuration

2009-01-19 Thread R B
Hello, I need that every time someone access one image file in my server, then redirect to a php file. I make this well with: Redirect 301 imagefile.jpg scriptfile.php But i need that the file scriptfile.php can only be accessed by this redirect command. If someone try to access directly from

Re: [PHP] PHP and Apache configuration

2009-01-19 Thread R B
I like this apache solution, but if i put SetEnvIf Referer ^http://www.yourdomain.com; local_referal Then i can access the file putting this path in the URL: http://www.yourdomain.com/xyz/scriptfile.php And i don´t want the script to be access by the url. That is the main problem. Thanks On

[PHP] Create PHP form from MySQL table structure

2008-12-21 Thread R B MacGregor
Hi folks Anybody got any recommendations for a utility which would create a quick head start by creating the php/html code for a basic form using the field structure of a MySQL table ? Thanks for any suggestions. -- Ronnie MacGregor Scotland Ronnie at dBASEdeveloper dot co dot uk

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread b
Thodoris wrote: Hello everybody, I have a mysql result set that I want to print out in an html table. But some times it gets so big that I will probably need to separate it in to multiple ones. I wrote a function that separates the result set into three ones like this: ... But I really

Re: [PHP] calling functions from one or multiple files

2008-09-24 Thread b
Lamp Lists wrote: Hi, Right now I use one file, usually called functions.php, with all functions I'm going to use most likely on every page. Then, I create each function I'm going to use once in a while as separate file. Pro: I would include a function when I'm going to use. Con: I have to

Re: [PHP] calling functions from one or multiple files

2008-09-24 Thread b
Ashley Sheridan wrote: On Wed, 2008-09-24 at 12:37 -0400, b wrote: Lamp Lists wrote: Hi, Right now I use one file, usually called functions.php, with all functions I'm going to use most likely on every page. Then, I create each function I'm going to use once in a while as separate file. Pro: I

Re: [PHP] br was [PHP] Re: render html

2008-09-21 Thread b
tedd wrote: At 8:17 AM +0200 9/21/08, Lupus Michaelis wrote: Michelle Konzack a écrit : $body = hellobr/ulier/ulhellohello; ^ Should be br / Definitely no : http://www.w3.org/TR/2006/REC-xml-20060816/#dt-empty http://www.w3.org/TR/2006/REC-xml-20060816/#NT-S

Re: [PHP] Associative array issues with loading values after initialization

2008-09-19 Thread b
Thomas Bolioli wrote: I should add, it is not working with this funciton, which could be the source of the issue. function dropbox_from_list($list, $selected_index){ while ($nex = next($list)) { I'd use foreach() here and avoid next(). At least, reset the array first. And maybe pass the

Re: [PHP] Paypal Integration

2008-09-16 Thread b
Ashley Sheridan wrote: I don't recommend HSBC at all. They make you jump your code through so many hoops and their documentation was awful. I don't know why large companies think it's acceptable to produce bad/out-of-date documentation and expect it all to be OK. Thanks for the heads-up. I

Re: [PHP] tedd's back from vacation

2008-09-10 Thread b
tedd wrote: hi gang: For those who wondered where I went -- I was on vacation. I would have announced it before I left, but I was afraid that someone would have broken into my collection of stuff. I'll post pictures of my vacation soon. Oh, I had lot's of fun -- so much so, I broke my big

Re: [PHP] New Server Install

2008-09-10 Thread b
Robbert van Andel wrote: I am working on a new webserver running Fedora 9. I installed php-mysql and php-mssql via yum. When I try to connect to our mysql server using php, I get the following error: Can't connect to MySQL server on 'mysqlservername' (13) Here's the weird part, I can connect

Re: [PHP] php image and javascript include

2008-09-07 Thread b
javasac wrote: [lots of stuff ...] I'm guessing that was the *output* of the PHP file, not the script itself. You've got a couple different errors here. The first is that you're not creating img tags. All you have here is the path to the image. A browser isn't going to do anything with

[PHP] Sending POST variables without html code

2008-09-05 Thread R B
Hi, I need to create a cron job PHP script to access every day the information of a webpage that is out of my server. This webpage needs POST variables to display the information. How can i send this POST variables from my PHP script without having a html form, and receive the required

Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-18 Thread Cameron B. Prince
caffoh6jaeapkke35qpp87;?)/', 'http://www.domain.com$1?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;', $buffer); (not tested) Simcha Younger -Original Message- From: Cameron B. Prince [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 12:56 AM To: php-general@lists.php.net Subject: [PHP

Re: [PHP] Re: Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-18 Thread Cameron B. Prince
preg_quote() do it. Cameron B. Prince wrote: Hello, I¹ve run into a problem with a regex and need help determining if this is my mistake or a bug. The regex is for inserting a SID into every link in the buffer before it¹s flushed, but only when each link doesn¹t already have a SID

[PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Cameron B. Prince
Hello, I¹ve run into a problem with a regex and need help determining if this is my mistake or a bug. The regex is for inserting a SID into every link in the buffer before it¹s flushed, but only when each link doesn¹t already have a SID. An example of the code is here: $buffer =

Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Cameron B. Prince
Hi Ash, As far as I can tell, you have an error in your syntax. You're using a - (hyphen) character in the first match, but Regex uses this to define a range of characters. It seems that if you don't escape it, the whole thing behaves a little strangely. For example, using your URL as the

[PHP] PHP and Apache

2008-06-23 Thread R B
Hello, I´m developing a PHP system that needs one of these lines in the .htaccess, depending of the server configuration: AddHandler application/x-httpd-php .xyz or AddHandler application/x-httpd-php4 .xyz or AddHandler application/x-httpd-php5 .xyz How can i detect on the fly which line i

Re: [PHP] PHP and Apache

2008-06-23 Thread R B
The people that will install this system, don´t have programming knowledge. They have a website, buy don´t have knowledge of configurations. If i add all the lines, it don´t works, unless the last line is the correct for that particular server. Why not just read the manual and add the

[PHP] Another way to send variables

2008-06-13 Thread R B
Hello. I have this script (script1.php): ?php $a = Hello; header(Location: script2.php); ? I need to send the $a variable to script2.php, but i don´t want to send it in the url. Is there another method? Maybe with another header instruction without putting in the url? Thank you.

[PHP] Memory cache problem

2008-06-13 Thread R B
Hello, I´m making a video manual, but i don´t want to be cached in the client machine. I make a script like this: ?php header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate);

Re: [PHP] Memory cache problem

2008-06-13 Thread R B
, Jun 13, 2008 at 4:17 PM, Stut [EMAIL PROTECTED] wrote: On 13 Jun 2008, at 23:12, R B wrote: I´m making a video manual, but i don´t want to be cached in the client machine. I make a script like this: ?php header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d

[PHP] PHP with C++

2008-06-09 Thread R B
Hi, I have a C++ script containing the function hello(x, y, z) I want to access this C++ function from PHP, and output with PHP the return information. How can i do this? Thank you.

Re: [PHP] Developing existing java portal in php

2008-04-14 Thread Sangamesh B
, Mar 29, 2008 at 12:10 PM, Sangamesh B [EMAIL PROTECTED] wrote: Thanks for the reply. Can it be done by just using php + html or perl + html. Also, May I know a beginners document to start working on html, php and perl. Thanks, Sangamesh On Fri, Mar 28, 2008 at 1:50 AM, ganu [EMAIL

[PHP] pecl/PAM

2008-04-02 Thread Kyle B
Hi, I've recently installed the pecl/PAM module, however, it appears that it is not functioning as it should. It's returning a value of 1, even if the username and password are completely incorrect. This is the file I'm using to test: development# cat test.php ?php if(pam_auth('sfdfgfdu',

Re: [PHP] Developing existing java portal in php

2008-03-29 Thread Sangamesh B
Thanks for the reply. Can it be done by just using php + html or perl + html. Also, May I know a beginners document to start working on html, php and perl. Thanks, Sangamesh On Fri, Mar 28, 2008 at 1:50 AM, ganu [EMAIL PROTECTED] wrote: On Thu, Mar 27, 2008 at 7:52 AM, Sangamesh B [EMAIL

[PHP] Developing existing java portal in php

2008-03-27 Thread Sangamesh B
Hi all, Here is one web portal product which is already developed using java tools. I don't know java, php or perl. But I can learn php quickly compared to java. My question is: Is it possible to develop such web portal using php html? Let me explain how the java portal/product works: The

[PHP] query not working properly

2007-07-26 Thread Joey B
Hi everyone, I'mt trying to do the below query which itself works correctly, but when I add a order by statement just bombs. $query = select * from articles where ( {$now} BETWEEN startdate AND enddate) and categoryid = 1 limit 0,3; $query = select * from articles order by

RE: [PHP] Currency Exchange Database?

2007-06-28 Thread Andy B.
You could have a look at the Euro foreign exchange reference rates rom the European Central Bank. They also provide a regularly updated XML file: http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html Hope it helps... Andy -Original Message- From: Tom Ray [Lists]

RE: [PHP] mail() only working with php-cli

2007-05-07 Thread Andy B.
message like /usr/sbin/sendmail: permission denied would have made it. Regards, Andy -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 01:01 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only working with php-cli

RE: [PHP] mail() only working with php-cli

2007-05-06 Thread Andy B.
Cc: Andy B. Subject: Re: [PHP] mail() only working with php-cli Hello Andy, did you take a look into the apache log files? Regards, Oliver Am Samstag, 5. Mai 2007 22:53 schrieb Andy B.: Is there any way to debug the mail() function within PHP4 or PHP5? The following code is not working

[PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
Is there any way to debug the mail() function within PHP4 or PHP5? The following code is not working when called from a browser, but it does work from the command line: ?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'hello...'; $headers = 'From: [EMAIL PROTECTED]'

RE: [PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
tested with E_ALL and also dumping errors/warnings into log files... Andy -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Saturday, May 05, 2007 23:58 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only working with php-cli Are you sure

Re: [PHP] Text Editor for Windows?

2007-02-08 Thread Alexandre B.
u can try PSPad, a freeware code editor (kind of ultraedit but free) http://www.pspad.com/ ALexandre B On 2/8/07, Andrei [EMAIL PROTECTED] wrote: Lots of ppl would tell u lots of different php editors. I personally use editplus2 bcuz it's very light and has syntax hightlighting on php

[PHP] Problem with copy() function

2007-01-05 Thread R B
Hi, I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? Thanks,

[PHP] Recomended host

2006-12-18 Thread R B
Hello. I'm looking for a host to put my website. I was looking godaddy.com, but i read in phplist forum that godaddy have limitations in the number of mail to send per day. Someone can recomend me a good host provider, with good stability, good support, good features, and no limitation in the

Re: [PHP] how to build env to develop php extension

2006-09-18 Thread Michael B Allen
but there's not much to the bare skeleton of an extension. Just copy one of the existing ones and start from that. That's what I did (although I didn't use Windows). Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Odd PHP memory issue

2006-09-15 Thread Michael B Allen
connection and close it printing memory usage along the way to make sure all memory is restored within the script execution. If that doesn't work there are memory references hanging around *somewhere*. Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing

[PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
Hello, I need to copy, open or manipulate a gif images that is hosted in a https server. But when i try to do this, i recive a warning like this: *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream: Invalid argument in . I recive a similar message if i use:

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
It's not a syntaxis problem. On 9/12/06, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2006-09-12 at 12:27 -0600, R B wrote: Hello, I need to copy, open or manipulate a gif images that is hosted in a https server. But when i try to do this, i recive a warning like this: *Warning

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
I think it's a security https problem. I was reading that with IIS, you can't use fopen in a https server... I think i have this problem also with copy... Some ideas? On 9/12/06, R B [EMAIL PROTECTED] wrote: It's not a syntaxis problem. On 9/12/06, Robert Cummings [EMAIL PROTECTED

Re: [PHP] Filter MS Word Garbage

2006-09-12 Thread Michael B Allen
associated with Smart Quotes. If I take the content out of the DB, throw it into BBEdit and use the convert to ASCII command that solves the problem. Iterate of each character (byte) and use chr(b) to get the numeric value. If that value is less than 128 the character is ASCII. Otherwise

Re: [PHP] substr and UTF-8

2006-08-30 Thread Michael B Allen
-- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] substr and UTF-8

2006-08-30 Thread Michael B Allen
On Wed, 30 Aug 2006 10:08:36 -0400 Michael B Allen [EMAIL PROTECTED] wrote: On Wed, 30 Aug 2006 18:34:20 +0700 Peter Lauri [EMAIL PROTECTED] wrote: Hi group, I want to limit the number of characters that are shown in a script. The characters happen to be Thai, and the page is encoded

Re: [PHP] substr and UTF-8

2006-08-30 Thread Michael B Allen
On Wed, 30 Aug 2006 21:46:18 +0700 Peter Lauri [EMAIL PROTECTED] wrote: function is_utf8_start($b) { return (($b 0x80) == 0) || ($b 0x40); } [/snip] :) I think I will go with the mb_substr function, it works for me :) Yeah, I guess that's the right thing to do. Otherwise

Re: [PHP] Problems with UTF

2006-08-28 Thread Michael B Allen
for caching or when you open an HTML file from disk perhaps. Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email with pregmatch

2006-08-27 Thread Michael B Allen
([EMAIL PROTECTED],6}$, $email) Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHPSESSID used sporatically

2006-08-17 Thread Michael B Allen
On Thu, 17 Aug 2006 14:26:17 +1000 Chris [EMAIL PROTECTED] wrote: Michael B Allen wrote: On Thu, 17 Aug 2006 12:06:08 +1000 Chris [EMAIL PROTECTED] wrote: Michael B Allen wrote: Searching through the logs and browsing my site (see sig) I sometimes see PHPSESSID is used as opposed

Re: [PHP] PHPSESSID used sporatically

2006-08-17 Thread Michael B Allen
On Thu, 17 Aug 2006 12:06:08 +1000 Chris [EMAIL PROTECTED] wrote: Michael B Allen wrote: Searching through the logs and browsing my site (see sig) I sometimes see PHPSESSID is used as opposed to cookies. I know it's not simply that the client doesn't support cookies because I can see

Re: [PHP] active directory and PHP

2006-08-17 Thread Michael B Allen
being a hack it's not SSO and doesn't scale because it requires communication with the DC whereas Kerberos does not. And it's insecure because you have to cache the users credentials in the user's session. -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ On Thu, 17 Aug 2006 12

Re: [PHP] active directory and PHP

2006-08-17 Thread Michael B Allen
connection. 2) It's slow. Kerberos does not require communication between the web server and AD. With LDAP you would need to communicate with AD at least once for every new session. Otherwise, yeah it would work. Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General

[PHP] PHPSESSID used sporatically

2006-08-16 Thread Michael B Allen
using PHP 4. Thanks, Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Codigo de Captcha en PHP

2006-08-15 Thread Julio B.
Hi Richard, my example is not safe, but already I wrote in the last part of my message to Ricardo that, by security, would be necessary to make use of session variables, for example, to pass the value of catpcha generated and to be able to compare it. The modification would be like this: ?php

[PHP] Re: Codigo de Captcha en PHP

2006-08-14 Thread Julio B.
Hay muchos y muy variados en Internet. En alguna ocasión he usado el que viene en sBlog. Es muy sencillo de implementar y para la mayoría de los casos suficiente para evitarnos problemas de spam. En código es: ?php $key = (array_key_exists('k', $_GET) strlen($_GET['k']) == 4) ? $_GET['k']

Re: [PHP] Problem Loading Extension

2006-08-11 Thread Michael B Allen
location and the php.ini needs the appropriate extension directive. Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Greek Characters from MySQL to PHP to the Browser: ??????

2006-08-08 Thread Michael B Allen
conversions. -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Frameworks - Opinion

2006-08-01 Thread Michael B Allen
-- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Return Values Copied? Copied if By Reference?

2006-07-26 Thread Michael B Allen
[] = bar; return $arr; // is this copied? } I'm working on some code that would be called to generate a cell in a possibly large table and therefore a small difference in performance may have a significant impact. Thanks, Mike -- Michael B Allen PHP Extension for SSO w/ Windows Group

[PHP] SQL Result Set - HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
. If so, can you post it? Mike -- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Result Set - HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
, invoice_amount = db_cr_gt_1000); echo table class=\d\ border='0' cellpadding=\3\\n; db_result_print($result, $names, $renderers, db_cr_shade_odd); echo /table\n; -- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/ -- PHP General Mailing List (http

Re: [PHP] Different php.ini files for different apache processes on one server

2006-07-18 Thread Michael B Allen
On Tue, 18 Jul 2006 20:44:35 +0200 [EMAIL PROTECTED](Karl Pflästerer) wrote: Hi, suppose you had several directories a, b and c where in each directory you had an Apache http.conf file. For each directory Apache gets started with the http.conf (and other conf files) in that directory. PHP

[PHP] Separation between View and State (The Back Button)

2006-07-13 Thread Michael B Allen
\ value=\ . token_generate() . \/\n; ? // display cart contents I don't get to do much web programming so I'm wondering what the PHP crowd thinks of this method. Can anyone improve on this? Is it fatally flawed? How would you solve this problem in general? Thanks, Mike -- Michael B Allen PHP

Re: [PHP] Separation between View and State (The Back Button)

2006-07-13 Thread Michael B Allen
or reload. Anyone heard of such a thing? Mike -- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Debugging Log

2006-07-12 Thread Michael B Allen
What is the standard method of logging debug info? Should I just fopen a file for append and write the message or is there a facility provided? Mike -- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Debugging Log

2006-07-12 Thread Michael B Allen
On Wed, 12 Jul 2006 19:13:53 +0100 Stut [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael B Allen wrote: What is the standard method of logging debug info? Should I just fopen a file for append and write the message or is there a facility provided? http

Re: [PHP] Debugging Log

2006-07-12 Thread Michael B Allen
On Wed, 12 Jul 2006 21:13:31 +0100 Stut [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael B Allen wrote: On Wed, 12 Jul 2006 19:13:53 +0100 Stut [EMAIL PROTECTED] wrote: Michael B Allen wrote: What is the standard method of logging debug info? Should I

Re: [PHP] Debugging Log

2006-07-12 Thread Michael B Allen
On Wed, 12 Jul 2006 22:44:23 +0100 Stut [EMAIL PROTECTED] wrote: Michael B Allen wrote: Thanks for the tip dipshit. Maybe I'm in a sensitive mood, but that was uncalled for. Michael, meet /dev/null, I hope you live happily ever after. Oh, no. What am I going to do now? You're like The Man

[PHP] List of Restricted Countries to Leave Out of Credit Card Form?

2006-07-11 Thread Michael B Allen
For my credit card form I provide the user with a list of countries. I suppose these are ISO country codes? For the US is there an official list of countries with which I'm not supposed to do business with? Will Authorize.Net catch those transactions? Thanks, Mike -- Michael B Allen PHP

[PHP] Shopping Carts

2006-07-08 Thread Michael B Allen
I need a (free) shopping cart. The simpler the better. This one is what I'm looking for: http://www.zend.com/codex.php?id=112single=1 but it doesn't use current session handling, needs validation, etc. Any ideas? Thanks, Mike -- Michael B Allen PHP Extension for SSO w/ Windows Group

[PHP] Get recursive array

2006-02-06 Thread Bruno B B Magalhães
{ $this-vars[$key] = $value; } } For example I have: $this-vars['config']['database_type'] = 'mysql'; or... $this-vars['http']['get'] = 'b'; But now I want a function that gets those values and subvalues, but there is one small catch, I need to dynamically get parsed

[PHP] Get recursive array

2006-02-06 Thread Bruno B B Magalhães
{ $this-vars[$key] = $value; } } For example I have: $this-vars['config']['database_type'] = 'mysql'; or... $this-vars['http']['get'] = 'b'; But now I want a function that gets those values and subvalues, but there is one small catch, I need to dynamically get parsed

  1   2   3   4   5   6   7   8   9   >