Re: [PHP] LDAP and referrals

2004-12-12 Thread List User
Whoops. For some reason I've attached the wrong file. Here's the correct one. Cajus #!/usr/bin/php4 -q ldap://[^/]+)/.*$!', '\\1', $referral); if (!($ds= ldap_connect($server))){ echo "reconnect failed - "; return ($ldap); } ldap_set_option(

答复: [PHP] empty() problem

2004-12-12 Thread yangshiqi
Maybe this can help you. If (empty((string)$Game_rating)) …… -邮件原件- 发件人: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] 发送时间: 2004年12月12日 21:58 收件人: [EMAIL PROTECTED] 主题: [PHP] empty() problem Hi Group Members i have a problem with function empty() i use it to check if user entered the fo

[PHP] still have the same problem

2004-12-12 Thread Mecnun
I have a form and a php file. I enter some values from the form and click to submit button. The values that I enter can't be seen on the output. I'm using Php php-4.0.5 and my register_global is set to Off. HTML file: 9.2 Name: Address: PHP File: $_POST[user] \n\n"; prin

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Travis Conway
What user did you run your command line as? Trav - Original Message - From: "Michael Leung" <[EMAIL PROTECTED]> To: "Travis Conway" <[EMAIL PROTECTED]> Cc: "Andre Dubuc" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, December 12, 2004 8:01 PM Subject: Re: [PHP] PHP &Apache Upload f

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Raditha Dissanayake
Yes, this kind of script is working in my pervious old server. But after I have upgraded the OS to Fedora 3 with PHP 5.0.2 and Apache 2. Then as I mentioned in my previous mail SELinux is to blame. Uninstall it or disable it. (pass selinux=0 when you boot). -- Raditha Dissanayake. ---

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Michael Leung
Hi all, I am more believing this is a kind of apache configure problem. If that's Fedora 3 problem, I can't do this kind in command line. Therefore, if I bypassed Apache, my problem is solved. Moreover, my system is highly OOP , I can't fall back into PHP 4. yours, Michael -- PHP General Mail

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Travis Conway
Ha! Sorry for that Fedora 3 is causing all kinds of havoc. I would stay away for a while. Trav - Original Message - From: "Michael Leung" <[EMAIL PROTECTED]> To: "Andre Dubuc" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, December 12, 2004 7:25 PM Subject: Re: [PHP] PHP &

[PHP] Re: Infinity and nested categories

2004-12-12 Thread David Robley
On Sun, 12 Dec 2004 23:50, Bruno b b magalhães wrote: > Hi again everybody, > > well, I've asked it before, but I couldn't work on this at all. > > As some knows I have a system witch has a category system. The generic > part of the site is handled by a generic module called contents... > generi

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread David Robley
On Mon, 13 Dec 2004 00:56, Stuart Felenstein wrote: > > --- Jason Wong <[EMAIL PROTECTED]> wrote: > >> >> If in doubt, print it out (TM) >> >> echo '$Ind', "$Ind", $Ind; >> > $Ind > '1','2','3','4' > '1','2','3','4' > > Funny, they are both the same. I think you are missing the point Jaso

[PHP] Automaticly Play Sound when MySql Reach some Number

2004-12-12 Thread Sejati Opreker
How do I make automaticly PHP playing a sound (Ogg, or MP3 format file) when MySql (in Table, or Coulom) reach a number (for example 5) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PH

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Michael Leung
Hi Andre, thank you, I have hided my html path in the message. I have replace my real path with '/var/www/html/'. the error message should be like this. Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to > > move '/tmp/phpjsLZfC' to '/var/www/html/test/icons.zip' in > > /var

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Andre Dubuc
Dear Michael, I spent the better part of today trying to get a file upload script to work too. Same sort of problem: local linux works ok, but web - nope. Looking at your error message, it might be the renaming of the temp file that is barfing. if (($_FILES["pix"]["size"] > 0)&&($_FILES["pix"]

[PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Michael Leung
Hi all, I have faced the upload file permission denied for weeks. I can't write a new file/create a directory. I did a test in PHP standalone (Linux shell). The operation is very normal. But in web environment, I got this error message: Warning: move_uploaded_file() [function.move-uploaded-fil

Re: [PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Raditha Dissanayake
Michael Leung wrote: Hi all, I have faced the upload file permission denied for weeks. I can't write a new file/create a directory. I did a test in PHP standalone (Linux shell). The operation is very normal. But in web environment, I got this error message: Something that just occurred to me?

Re: [PHP] Classes and Functions

2004-12-12 Thread Rory Browne
your question is hard to answer. The difference between classes and functions is like the difference between a toolbox, and a spanner. A class is a container, that contains functions, and variables, or as they are called in Object-Oriented-Speak(methods, and properties). A method is a function tha

Re: [PHP] empty() problem

2004-12-12 Thread adwin wijaya
Ahmed Abdel-Aliem wrote: Hi Group Members i have a problem with function empty() i use it to check if user entered the form fields and store it in array for example : if (empty($Game_rating)) $errors[] = "You didn't enter the Online Status for the Game."; the problem when the user enter

Re: Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread John Holmes
> From: p80 <[EMAIL PROTECTED]> > >> I have several website that use mysql as a database and I would like them > >>to access each other DB. The problem is that I can't connect to each other > >>mysql > >> DB so I'm looking for a way to do so. > > >Why aren't you able to connect to the other data

Re: [PHP] Re: Data Access Object (DAO) with PHP

2004-12-12 Thread adwin wijaya
Thank you for DAO class that you recommended to me. I would like to read the Pear and Metalstorage documentation (& tried it) first before deciding which one I would like to use ;) -- === Best Regards Adwin Wijaya www.kuya-kuya.net www.e-rhema.net === -- PH

[PHP] PHP's PS(*) function

2004-12-12 Thread Colin
Hi, Can someone tell me how to create my own PS() in the source code eg, i want to make PS(sidd) in the session.c but it complains when I compile thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found

2004-12-12 Thread Raymond C. Rodgers
On Fri, 2004-12-10 at 13:23, Richard Lynch wrote: > Where exactly is png.h in your directory system? > If libpng is installed, it should be there. > > What are you using after the --with-png-dir= > Whatever you are using, it must be a directory far enough *above* png.h to > encompass not only '/in

Re: [PHP] Close all open tags in HTML text

2004-12-12 Thread Daniel Schierbeck
Matt Palermo wrote: I realize that I can use the strip_tags function to remove HTML. But I don't want to remove HTML tags. I just want to make sure all open HTML tags are closed. For example if they user submits HTML with a tag and never closes it, then the rest of the page will look screwed

Re: [PHP] Command Line

2004-12-12 Thread Travis Conway
- Original Message - From: "- Edwin -" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Travis Conway" <[EMAIL PROTECTED]> Sent: Sunday, December 12, 2004 10:40 AM Subject: Re: [PHP] Command Line Hi, On Sun, 12 Dec 2004 09:15:46 -0600 "Travis Conway" <[EMAIL PROTECTED]> wrote: How do you

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread p80
On Sunday 12 December 2004 05:15 pm, Jason Wong wrote: > On Sunday 12 December 2004 22:33, p80 wrote: > > > eg do you want to only make available > > > specific pre-defined bits of data to client websites, > > > > yes this is how I'd like to proceed > > OK, if there are only a limited number of the

Re: [PHP] Command Line

2004-12-12 Thread - Edwin -
Hi, On Sun, 12 Dec 2004 09:15:46 -0600 "Travis Conway" <[EMAIL PROTECTED]> wrote: > How do you reference command line arguments in php? > > i.e., chkmd5.php file.md5 > > I am wanting to reference file.md5. Since the output of md5sum is > not in the RFC I am having to manually parse each md5 and

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread p80
>> I have several website that use mysql as a database and I would like them >>to access each other DB. The problem is that I can't connect to each other >>mysql >> DB so I'm looking for a way to do so. >Why aren't you able to connect to the other databases? cause hosters forbid it. -- PHP Gener

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 22:33, p80 wrote: > > eg do you want to only make available > > specific pre-defined bits of data to client websites, > > yes this is how I'd like to proceed OK, if there are only a limited number of these "pre-defined bits of data" then the easiest way is probably jus

Re: [PHP] empty() problem

2004-12-12 Thread Craig Slusher
I use this function which I find is very useful: function isEmpty( & $var ) { return isset($var) && strlen(trim($var)) == 0; } On Sun, 12 Dec 2004 10:12:34 -0500, John Holmes <[EMAIL PROTECTED]> wrote: > Ahmed Abdel-Aliem wrote: > > > > Hi Group Members > > i have a problem with function e

Re: [PHP] dynamic include() in while loop

2004-12-12 Thread Sebastian
disregard this topic.. i slept on it and found out how to do it. - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 11, 2004 11:06 PM Subject: [PHP] dynamic include() in while loop > this is a brain buster, at least for me. > i ha

[PHP] Command Line

2004-12-12 Thread Travis Conway
How do you reference command line arguments in php? i.e., chkmd5.php file.md5 I am wanting to reference file.md5. Since the output of md5sum is not in the RFC I am having to manually parse each md5 and detect whether it is in Win32, Linux, or BSD format. And since php has good built in md5() sup

Re: [PHP] empty() problem

2004-12-12 Thread John Holmes
Ahmed Abdel-Aliem wrote: Hi Group Members i have a problem with function empty() i use it to check if user entered the form fields and store it in array for example : if (empty($Game_rating)) $errors[] = "You didn't enter the Online Status for the Game."; the problem when the user enter

[PHP] Re: empty() problem

2004-12-12 Thread Matt Palermo
How about: if($Game_Rating == "") $errors[] = "You didn't enter the Online Status for the Game."; This should work for you. -Matt "Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Group Members > i have a problem with function empty() > i use it to check if

Re: [PHP] empty() problem

2004-12-12 Thread Sebastian
trim it then use an operator..eg if(trim($Game_rating) == '') { // error .. } - Original Message - From: "Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 12, 2004 8:58 AM Subject: [PHP] empty() problem > Hi Group Members > i have a problem with f

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread p80
On Sunday 12 December 2004 03:16 pm, Jason Wong wrote: > On Sunday 12 December 2004 21:35, p80 wrote: > > I have several website that use mysql as a database and I would like them > > to access each other DB. The problem is that I can't connect to each > > other mysql DB so I'm looking for a way to

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > > If in doubt, print it out (TM) > > echo '$Ind', "$Ind", $Ind; > $Ind '1','2','3','4' '1','2','3','4' Funny, they are both the same. Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 21:35, p80 wrote: > I have several website that use mysql as a database and I would like them > to access each other DB. The problem is that I can't connect to each other > mysql DB so I'm looking for a way to do so. I'm thinking of droping the > mysql database in xml fil

Re: [PHP] Re: Sorry forgot to include the code for my last message - Mike Francis

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 21:40, Mike Francis wrote: Please do not top post. > Hi David, > Thanks for your help. I've taken out the @ character, and added the > error-trapping code to my file. > > The results: > When I run the file, nothing untoward is reported, and I end up with a > blank scree

[PHP] empty() problem

2004-12-12 Thread Ahmed Abdel-Aliem
Hi Group Members i have a problem with function empty() i use it to check if user entered the form fields and store it in array for example : if (empty($Game_rating)) $errors[] = "You didn't enter the Online Status for the Game."; the problem when the user enters 0 in the form field th

[PHP] LDAP and referrals

2004-12-12 Thread List User
Hello! Currently I'm playing with LDAP referrals in a PHP application and I've reached a point, where it's not clear if there's some kind of misunderstanding on my side, or if there's a problem either in the PHP functions or the OpenLDAP server here... The attached mini script tries to access the

Re: [PHP] Re: Sorry forgot to include the code for my last message - Mike Francis

2004-12-12 Thread Mike Francis
Hi David, Thanks for your help. I've taken out the @ character, and added the error-trapping code to my file. The results: When I run the file, nothing untoward is reported, and I end up with a blank screen in IE / Moxilla Firebird / Opera. There are no errors reported. In the Apache error log, th

[PHP] sharing info between websites with XML?

2004-12-12 Thread p80
I have several website that use mysql as a database and I would like them to access each other DB. The problem is that I can't connect to each other mysql DB so I'm looking for a way to do so. I'm thinking of droping the mysql database in xml files that could be parse using php xml parser but I'

[PHP] Infinity and nested categories

2004-12-12 Thread Bruno B B Magalhães
Hi again everybody, well, I've asked it before, but I couldn't work on this at all. As some knows I have a system witch has a category system. The generic part of the site is handled by a generic module called contents... generic like products, services, company, etc. Where the content layout

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 20:18, Stuart Felenstein wrote: > If I choose 1, 2 , 3 then > > print_r($Ind); returns > '1','2','3' > This looks okay. You *should* know what it should look like so I'll take your word for it. > I could not find a difference with '$Ind', or "$Ind", > except I would th

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > On Sunday 12 December 2004 18:15, Stuart Felenstein > wrote: > > > Still stuck on this one. I know I'm doing > something > > wrong and wouldn't mind some correction: > > Did you mockup some test HTML in a wysisyg editor as > suggested? Yep like this

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > > I'm pretty sure I need to loop through the $_Get > of > > the array. Not sure , and haven't found anything > > that shows this. > > Yes, you need to reference $_GET to see whether an > option was selected and > change the echo above accordingly. >

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Stuart Felenstein
--- Jason Wong <[EMAIL PROTECTED]> wrote: > > Close but no cigar. Since $Ind is already > imploded my > > thinking is it need not be incremented in the echo > > statement ? > > You tell me, print_r() and var_dump() it before you > use it and decide whether > it is correct. > > One final thing

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 18:15, Stuart Felenstein wrote: > Still stuck on this one. I know I'm doing something > wrong and wouldn't mind some correction: Did you mockup some test HTML in a wysisyg editor as suggested? > Code now: > > if (count($Ind) > 0 AND is_array($Ind)) { > $Ind = "'".

Re: [PHP] Question: Repopulating form parameters

2004-12-12 Thread Jason Wong
On Sunday 12 December 2004 19:32, Stuart Felenstein wrote: > > Did you mockup some test HTML in a wysisyg editor as > > suggested? > > Yep like this : > > > "None"))) {echo "SELECTED";} ?>>Black Um, your HTML wysiwyg editor can insert PHP code for you? The object of the exercise is to