[PHP] Re: Basic Auth

2013-08-27 Thread B. Aerts
On 27/08/13 15:37, Jim Giner wrote: I"m 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 server/applicat

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 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. The calen

[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 Thunder

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" 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 va

[PHP] error_handler : unique "caller ID" ?

2012-11-13 Thread B. Aerts
of-snippet 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 = Oute

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 t

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 c

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 st

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] 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 of the

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 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 simplifi

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 p

[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 ignor

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 t

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 wrote: > On Wed, Jun 3, 2009 at 12:27 PM, R B wrote: > > Hi, > > > > Do you know if amazon s3 host

[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] 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
ing 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

[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 SCRIPT # 2 The script # 1 with the .swf file works fine: the video is executed with streaming. The script # 2 with the .flv file is executed but without streaming. If i execute the movie.flv direc

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 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.ph

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
PM, Shawn McKenzie wrote: > 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

Re: [PHP] Re: mysql_query - CREATE DATABASE

2009-02-09 Thread R B
e database, because a prefix is added. On Mon, Feb 9, 2009 at 12:17 PM, 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 th

[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? Th

[PHP] Include PHP library file in the .htaccess

2009-01-30 Thread R B
Hello. Supose that i have this script: 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, chr

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 O

[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

[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 www.dBASEd

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 n

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 fi

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 write

Re: [PHP] 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 = "helloierhellohello"; ^ Should be Definitely no : Or ma

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 a

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 al

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 t

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 t

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 that

[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 informatio

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

2008-08-18 Thread Cameron B. Prince
kslash > anything yourself, let 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 >> b

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

2008-08-18 Thread Cameron B. Prince
= > preg_replace('/"http\:\/\/www\.domain\.com([\/\w\.\-]*\??)(?!PHPSESSID\=2u0c > caffoh6jaeapkke35qpp87;?)/', > '"http://www.domain.com$1?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;', $buffer); > > (not tested) > > > > Simcha Younger >

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] 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 = preg_replace('/

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 ap

[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] 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: >> >> > header("E

[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: With Internet explorer the script works fine. But Firefox have two types of cache: Memory cache and disk cache. With firefox disk cache, the script works fine, because don´t appear

[PHP] Another way to send variables

2008-06-13 Thread R B
Hello. I have this script (script1.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] 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
sh On Sat, 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, > Sangam

[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 I've created the /etc/pam.d/ph

Re: [PHP] Developing existing java portal in php

2008-03-28 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

[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 use

[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 st

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] [mailto:[

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

2007-05-07 Thread Andy B.
. A simple error 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

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

2007-05-06 Thread Andy B.
3:58 To: php-general@lists.php.net 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? > &

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

2007-05-05 Thread Andy B.
ve already 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

[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 and php-cli use the same php.ini file. Php via Apache is launched as a module, NOT as CGI! sendmail_path is correctly se

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 hightligh

[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 use

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

2006-09-18 Thread Michael B Allen
Thank you very much. I don't have a definitive answer for you 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 SS

Re: [PHP] Odd PHP memory issue

2006-09-15 Thread Michael B Allen
ts. Then I would scale down your test. Create a db 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 S

Re: [PHP] Filter MS Word Garbage

2006-09-12 Thread Michael B Allen
characters in there, > usually 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 th

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 Cummi

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,

[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: copy(htt

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 :)

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

Re: [PHP] substr and UTF-8

2006-08-30 Thread Michael B Allen
UTF-8 character does not have bit 8 set whereas all preceeding bytes do. 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] Problems with UTF

2006-08-28 Thread Michael B Allen
the META tag is for. I suspect it's 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
/", > $_POST['email']); This is what I use: eregi("[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] active directory and PHP

2006-08-17 Thread Michael B Allen
ldap_bind because those credentials are passed in clear text so a sniffer could collect passwords. At least use ldap_sasl_bind or do a TLS 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 on

Re: [PHP] active directory and PHP

2006-08-17 Thread Michael B Allen
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:14:18 +0200 "Alain Roger&

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

Re: [PHP] PHPSESSID used sporatically

2006-08-16 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 brow

[PHP] PHPSESSID used sporatically

2006-08-16 Thread Michael B Allen
ning? I'm 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: And

[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: Luego llamas a este archivo desde el que lo necesites. Te generas el código (en es

Re: [PHP] Problem Loading Extension

2006-08-11 Thread Michael B Allen
ppears in the apache error log. Also, of course the .so needs to be in the right 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
ith MySQL and work your way down. Mike BTW: htmlentities has nothing to do with character 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
he source for a few it should become apparent what techniques are superior to others. 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] Return Values Copied? Copied if By Reference?

2006-07-26 Thread Michael B Allen
tion foo(&$arr) { $arr[] = "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

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

2006-07-24 Thread Michael B Allen
oice_date" => "Date", "invoice_amount" => "Amount", "invoice_transaction_id" => "Txn. ID", "invoice_approval_code" => "App. Code", "invoice_name" => "Name", "invoice_email"

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

2006-07-24 Thread Michael B Allen
spect. 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] 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)

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

2006-07-13 Thread Michael B Allen
e and takes them back to the > form page. Actually what would be even better is if there were a header that indicated the form data should NOT be reposted on back 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] Separation between View and State (The Back Button)

2006-07-13 Thread Michael B Allen
rt 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 Extension for SSO w/ Windows Group Authoriz

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

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:

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 o

[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

[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 Alle

[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=112&single=1 but it doesn't use current session handling, needs validation, etc. Any ideas? Thanks, Mike -- Michael B Allen PHP Extension for SSO w/

[PHP] Re: Get recursive array

2006-02-06 Thread Bruno B B Magalhães
& $reference[$argument]; } } unset($reference); } And I didn't double posted, I had to subscribe... and I didn't know if my message had been sent or not. Thanks, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Get recursive array

2006-02-06 Thread Bruno B B Magalhães
} } else { $this->vars[$key] = $value; } } For example I have: $this->vars['config']['database_type'] = 'mysql'; or... $this->vars['http']['get'] = 'b'; But now I want

  1   2   3   4   5   6   7   8   9   >