RE: [PHP] creating a mailing list

2004-04-29 Thread Chris W. Parker
chris o'shea mailto:[EMAIL PROTECTED] on Thursday, April 29, 2004 2:44 AM said: Does anybody know the best way of doing a mass mail through php? i recall a solution being to write a properly formatted email and dump it into server's outgoing queue allowing the MTA (sendmail, exim, postfix*)

[PHP] Re: $_SERVER['SERVER_NAME'] in read-only.

2004-04-29 Thread Red Wingate
AFAIK the content of the superglobal variables cannot be changed ( even though i haven't found this in the docs i can remeber got beaten by PHP for doing so :-) ) Back to the problem ( if existent ): If you don't do stuff like '$_SERVER['SERVER_NAME'] = ;' inside your script you won't run

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Aric Caley
Marek Kilimajer wrote: But workaround would be to call your function with array(): Thanks, I was afraid that might be the only way. I guess its possible if you write an extension (like mysqli) in C? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: global vars inside includes inside functions?

2004-04-29 Thread Tom Rogers
Hi, Friday, April 30, 2004, 1:29:12 AM, you wrote: RW [...] ? function safeInclude($file) { RW [...] RW foreach ( $GLOBALS AS $k = $v ) { RW $$k = $v ; RW } RW [...] if(file_exists($file)) { include($file); } else { debug(file $file not

Re: [PHP] Re: global vars inside includes inside functions?

2004-04-29 Thread Red Wingate
Again ain't no problem anyway foreach ( $GLOBALS AS $k = $v ) { $$k = $GLOBALS[$k] ; } zap you are done ... again when using a function to include a file with relying on depts within the file you would most probably use a registry-pattern or similar to access the required variables. -- red

Re: [PHP] Using HTTP_REFERRER to ensure forms posted from server

2004-04-29 Thread Chris Shiflett
--- Terence [EMAIL PROTECTED] wrote: To avoid malicious users creating their own forms and posting to my site, is it advisable to use the $_SERVER['HTTP_REFERRER'] to ensure that posted forms only come from the intended source? Anyone out there using this? Hopefully not. :-) Referer is just

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Tom Rogers
Hi, Friday, April 30, 2004, 1:40:26 AM, you wrote: AC I want to create a function similar to the MySqli extensions' AC mysqli_stmt_bind_param() function. I assume that this function takes AC its arguments passed by reference. Now, I know how to do variable AC length argument lists in a

Re: [PHP] Re: $_SERVER['SERVER_NAME'] in read-only.

2004-04-29 Thread John W. Holmes
From: Red Wingate [EMAIL PROTECTED] AFAIK the content of the superglobal variables cannot be changed ( even though i haven't found this in the docs i can remeber got beaten by PHP for doing so :-) ) They can be changed and you can even add to them. $_SERVER['foo'] = 'bar'; is valid and now

Re: [PHP] Listing all id's in array

2004-04-29 Thread Torsten Roehr
Alex Hogan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have asked a lot of questions in the last few weeks, but I do try to preface those questions by checking out the php.net online manual first. Anyway, here is one way to do it. There are probably more elegant solutions,

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Jason Barnett
A bit like this $num_args = func_num_args(); $arg_list = func_get_args(); $vars = 'function_to_call('; for ($i = 0; $i $num_args; $i++) { $vars .= ($i 0)? ',':''; $varname = 'variable'.$i; $$varname = $arg_list[$i]; $vars .= \$$varname; } $vars .= ');'; //that leaves you with a string

[PHP] Re: Single quotes inside double quoted string (Was: Re: [PHP] Re: Problem with a class... any help will be appreciated.)

2004-04-29 Thread Torsten Roehr
Elliot J. Balanza [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Actually you are right the problem is not in the proccess of writing to the database, the problem is that after writing to the database it wont jump to the next function it wont go to login() or any other function for

[PHP] how to verify PHP has been installed with ldap?

2004-04-29 Thread Bing Du
Greetings, I've installed PHP with ldap. But I got this error Fatal error: Call to undefined function: ldap_connect() in /home/me/public_html/test1.php on line 5. Why ldap_connect() is undefined? This is what I did: == # ./configure --with-apxs=/usr/local/apache/bin/apxs

php-general Digest 29 Apr 2004 20:35:55 -0000 Issue 2734

2004-04-29 Thread php-general-digest-help
php-general Digest 29 Apr 2004 20:35:55 - Issue 2734 Topics (messages 184930 through 184970): Re: global vars inside includes inside functions? 184930 by: De Greef Sébastien 184953 by: Red Wingate 184962 by: Tom Rogers 184963 by: Red Wingate web page

[PHP] Re: how to verify PHP has been installed with ldap?

2004-04-29 Thread Jason Barnett
So my question is how to verify PHP has been installed with ldap support? Thanks in advance for any help, Bing ?php phpinfo() ? or, more specifically: ?php $loaded = extension_loaded('ldap'); echo 'The ldap extension is ' . $loaded ? 'loaded' : 'not loaded'; ? -- PHP General Mailing List

[PHP] Midgard anyone?

2004-04-29 Thread Adrian Madrid
Has anyone dabbled long enough to figure out Midgard? I've been meaning to evaluate the Framework and CMS for a long time and I think I have the time now to do it. Nevertheless, I would like to get a heads up on it before jumping in. Any comparisons to other CMSs/Frameworks? Thanks in

Re: [PHP] how to verify PHP has been installed with ldap?

2004-04-29 Thread John W. Holmes
From: Bing Du [EMAIL PROTECTED] So my question is how to verify PHP has been installed with ldap support? ?php phpinfo(); ? And see if there is an ldap section. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php code in a .js file?

2004-04-29 Thread Marek Kilimajer
Craig Donnelly wrote: Why not just use a .php instead of a .js? script language=Javascript src=jsscript.php/script Regards, Craig That was what I meant ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to verify PHP has been installed with ldap?

2004-04-29 Thread Bing Du
I don't see a ldap section in the output of phpinfo(). I need to add a bit more background information here... This is not a fresh php install. I've already installed PHP Version 4.3.4. But now I want to add ldap support to it. So I added --with-ldap option in the configure command. Then I

Re: [PHP] Help please.

2004-04-29 Thread Elliot J. Balanza
JUST FOR ALL OF YOU OUTTHERE TO KNOW... the problem was that site had Frontpage 2002 extensions installed. Incredibly enough, that was sufficient not to accept the files. Thanks again to all that answered. Vamp Jason Sheets [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED]

[PHP] Re: Single quotes inside double quoted string (Was: Re: [PHP] Re: Problem with a class... any help will be appreciated.)

2004-04-29 Thread Elliot J. Balanza
Yes actually the same proccess in the first script works. If i remove the $this-login(); instruction and write the instruction within the if works also... the only thing not working is the $this-login(). Torsten Roehr [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Elliot J.

[PHP] Re: call_user_func possible bug in PHP5Rc1 PHP5RC2, am I crazy?

2004-04-29 Thread Vincent A. Wixer
Curt, Ben, Thank you for your thoughts. Actually, [EMAIL PROTECTED] addressed this via bugs at http://bugs.php.net/bug.php?id=28189 . [27 Apr 11:47pm CEST] [EMAIL PROTECTED] The behavior that's new in PHP 5 isn't the inability to call a method by call name instead of instance. It's that if

Re[2]: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Tom Rogers
Hi, Friday, April 30, 2004, 3:51:19 AM, you wrote: JB I know I'm probably paranoid, but eval() always bugs me. I think for JB what you want to do you can use call_user_func_array() JB $args = func_get_args(); JB call_user_func_array('function_to_call', $args); JB

Re: [PHP] Change Permissions in Windows

2004-04-29 Thread Jordi Canals
Stephen Craton wrote: I don't have a security tab, I don't know why, but it isn't there... http://www.melchior.us/tabs.gif Hi Stephen and List, I don't have an XP Pro at hand now. So, I will tell you how to activate the security tab with no exact instructions. Not having the security tab is

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Curt Zirzow
* Thus wrote Tom Rogers ([EMAIL PROTECTED]): Hi, Friday, April 30, 2004, 3:51:19 AM, you wrote: JB I know I'm probably paranoid, but eval() always bugs me. I think for JB what you want to do you can use call_user_func_array() JB $args = func_get_args(); JB

[PHP] Re: call_user_func possible bug in PHP5Rc1 PHP5RC2, am I crazy?

2004-04-29 Thread Jason Barnett
In light of this statement and further testing in PHP4, I'm not sure if an object was being instantiated or not. It certainly didn't pipe up with an error. Unfortunately, no (http://www.php.net/call_user_func): Object methods may also be invoked statically using this function by passing

Re: [PHP] how to verify PHP has been installed with ldap?

2004-04-29 Thread Curt Zirzow
* Thus wrote Bing Du ([EMAIL PROTECTED]): I don't see a ldap section in the output of phpinfo(). I need to add a bit more background information here... This is not a fresh php install. I've already installed PHP Version 4.3.4. But now I want to add ldap support to it. So I added

[PHP] Re: variable-length arguments passed by reference... how?

2004-04-29 Thread Jason Barnett
Aric Caley wrote: I want to create a function similar to the MySqli extensions' mysqli_stmt_bind_param() function. I assume that this function takes its arguments passed by reference. Now, I know how to do variable length argument lists in a function with func_get_arg(s) but how do I tell

[PHP] Introduction to Reflections: describe.php

2004-04-29 Thread Jason Barnett
I'm getting off the computer, so I figured I'd go ahead and just send this to you. As my subject suggests, this class shows all of the Reflections_* classes at work. One warning though: describe.php cannot describe the Reflections API itself, this causes the server to crash. Enjoy. Jason

[PHP] Create Password for EXISTING PDF FILE

2004-04-29 Thread PHP4Web
I want to create password to an existing pdf file How can I do that with PHP

[PHP] having problems setting up ez publish

2004-04-29 Thread dk
hello folks, I'm having problems setting up ez publish. do we have an ez publish guru here? I'm in need of help with how to implement this system. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problems with ez publish

2004-04-29 Thread dk
hello folks, I'm having problems setting up ez publish. do we have an ez publish guru here? I'm in need of help with how to implement this system. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] having problems setting up ez publish

2004-04-29 Thread dk
hello folks, I'm having problems setting up ez publish. do we have an ez publish guru here? I'm in need of help with how to implement this system. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re-keying an array

2004-04-29 Thread Justin French
been RTFMing for about 10 minutes, and can't find the function to re-key an array. In other words, I want an array of items to remain in their current order, but have the keys renumbered counting from zero. yes, I know it can be done with a foreach, but I was hoping for something native :)

Re: [PHP] having problems setting up ez publish

2004-04-29 Thread Justin French
We heard you the first two times. Please don't re-post. If there's a ez guru here, they'll respond in their own time. Of course you could try doing some work yourself first, perhaps visiting http://ez.no/community/forum -- a forum dedicated purely to EZ, in which I'm sure you'll find a

Re: [PHP] re-keying an array

2004-04-29 Thread Richard Harb
http://www.php.net/manual/en/function.array-values.php ? Richard Friday, April 30, 2004, 3:48:06 AM, thus was written: been RTFMing for about 10 minutes, and can't find the function to re-key an array. In other words, I want an array of items to remain in their current order, but have the

Re: [PHP] re-keying an array

2004-04-29 Thread John W. Holmes
Justin French wrote: been RTFMing for about 10 minutes, and can't find the function to re-key an array. In other words, I want an array of items to remain in their current order, but have the keys renumbered counting from zero. yes, I know it can be done with a foreach, but I was hoping for

Re: [PHP] re-keying an array

2004-04-29 Thread Justin French
On 30/04/2004, at 12:06 PM, John W. Holmes wrote: Although this begs the question of why you'd need to rekey an array... It seemed the easiest way to get the first two elements off the beginning of the array after shuffle()ing it, or so I thought -- but I'm more than happy to hear of a better

Re: [PHP] having problems setting up ez publish

2004-04-29 Thread dk
thanks mate I have done my homework first of course. I was posting to find some one who is an expert. php-general is a newsgroup that covers all issues related to php. that's my understanding. if i am wrong, then i'm sorry. thanks anyway. Justin French [EMAIL PROTECTED] news:[EMAIL

Re: [PHP] re-keying an array

2004-04-29 Thread John W. Holmes
Justin French wrote: On 30/04/2004, at 12:06 PM, John W. Holmes wrote: Although this begs the question of why you'd need to rekey an array... It seemed the easiest way to get the first two elements off the beginning of the array after shuffle()ing it, or so I thought -- but I'm more than happy

[PHP] hello list

2004-04-29 Thread Joseph Ross Lee
Do you guys know of any php based text indexers? similar to lucene? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re-keying an array

2004-04-29 Thread Curt Zirzow
* Thus wrote Justin French ([EMAIL PROTECTED]): On 30/04/2004, at 12:06 PM, John W. Holmes wrote: Although this begs the question of why you'd need to rekey an array... It seemed the easiest way to get the first two elements off the beginning of the array after shuffle()ing it, or so I

Re: [PHP] re-keying an array

2004-04-29 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): Justin French wrote: On 30/04/2004, at 12:06 PM, John W. Holmes wrote: Like I said, always happy to see something in a few less lines :) If I'm following what you want to do correctly: for($i=0;$i2;$i++) { $key =

Re: [PHP] how to verify PHP has been installed with ldap?

2004-04-29 Thread Evan Nemerson
Or... did you restart apache after running your make install? If not, that might be a good idea... `/path/to/apachectl restart` On Thursday 29 April 2004 04:00 pm, Curt Zirzow wrote: * Thus wrote Bing Du ([EMAIL PROTECTED]): I don't see a ldap section in the output of phpinfo(). I need to

Re: [PHP] re-keying an array

2004-04-29 Thread Justin French
On 30/04/2004, at 1:47 PM, Curt Zirzow wrote: foreach(array_slice($filenames, 0, 2) as $filename) { $files[] = path/to/ . $filelname; } Ahh array_slice() is EXACTLY what I was looking for :) --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To

[PHP] making changes on arrays

2004-04-29 Thread Katie Marquez
I'm practicing from a beginning PHP book regarding arrays and the PHP manual, so please no one flame me that I didn't try to research before posting. I'm thinking that what I want to do requires me to use the function array_walk or a foreach loop, but I'm not so sure so maybe someone help here

[PHP] Maintaining State Remotely

2004-04-29 Thread php chucker
I'm writing some code to login into my favorite sport site to get stats. I get logged in ok with the post request showing my username and password, the response screens welcomes me by name. However when I send a second request immediately after the successful login, I'm being told I need to

Re: [PHP] making changes on arrays

2004-04-29 Thread Travis Low
Hi Katie, The foreach construct operates on copies of the array values. I usually just stick to C-like syntax: for( $i = 0; $i count( $array ); $i++ ) { $array[$i] = doSomething( $array[$i] ); } cheers, Travis Katie Marquez wrote: I'm practicing from a beginning PHP book regarding

[PHP] about ssl socket programming

2004-04-29 Thread Seunghyun. Cho
Hi, I am running qmail+vpopmail+courier-imap on gentoo box with ssl. And now making the password change script in php. I used to use this code in my previous server. ?php $socket=fsockopen(ssl://localhost, 993, $errno, $errstr, 30); if(!$socket) { echo $errstr ($errno)br /\n; } else { echo

Re: [PHP] making changes on arrays

2004-04-29 Thread Richard Harb
Hi, that's something I tripped over myself when I started out :) foreach takes one element after another from the array and copies it into that new variable - in your case $value ... you can modify it all you want - the value 'still' being in the array will not be affected. you could operate

Re: [PHP] making changes on arrays (SOLVED)

2004-04-29 Thread Katie Marquez
Very cool, Travis! Thank you for answering so quickly! You guys work fast around here :) Katie --- Travis Low [EMAIL PROTECTED] wrote: Hi Katie, The foreach construct operates on copies of the array values. I usually just stick to C-like syntax: for( $i = 0; $i count( $array );

Re: [PHP] making changes on arrays

2004-04-29 Thread Curt Zirzow
* Thus wrote Katie Marquez ([EMAIL PROTECTED]): I want to have an array, perform an action on the values in the array, and have those actions permanently affect the values in the array. Here's something I've written to test it out how I thought it could be done: ?php $array =

Re: [PHP] Re: global vars inside includes inside functions?

2004-04-29 Thread Red Wingate
Pattern are always done using OOP, but phppatterns that is one of the best sources on this topic i could think of :-) -- red [] Red, can you provide any more info or resources on a registry-pattern? I've found this: http://www.phppatterns.com/index.php/article/articleview/75/1/1/ , but

[PHP] word to pdf via web server ??

2004-04-29 Thread john doe
hello, does any know how to conver microsoft word document to pdf via on the server using php language?? i try to implementing the feature that allow user to upload microsoft word document to the web server, after the upload, it automatic covert to pdf file ??? any one done that ? thanks john

[PHP] text indexers

2004-04-29 Thread Joseph Ross Lee
hello! anybody here who knows text based indexers? e.g. lucene(java based) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Maintaining State Remotely

2004-04-29 Thread Curt Zirzow
* Thus wrote php chucker ([EMAIL PROTECTED]): I'm writing some code to login into my favorite sport site to get stats. I get logged in ok with the post request showing my username and password, the response screens welcomes me by name. However when I send a second request immediately after

Re: [PHP] making changes on arrays (SOLVED)

2004-04-29 Thread RoyD
cheap webhosting only 8.25 U$ dollar a month for 400 MB and bandwith 5 GB transfer and only 10 U$ dollar a month for 600 MB and bandwith 10 GB transfer OUR DATA CENTER : http://www.duoservers.com/?r=dejavu91/ and conctac email me at : [EMAIL PROTECTED] and yahoo messeger : roy_daniel91