[PHP] PHP, LDAP and SASL

2002-04-13 Thread Quinn Perkins
I have an OS X box that has been running PHP 4.1.2 and OpenLDAP 2.0.23 without any problems. I can bind to the LDAP database from PHP and everyone is happy. I wanted to build a new box with Cyrus-IMAP, Cyrus-SASL and OpenLDAP, moving my mail and authentication to it and leave the first box to

Re: [PHP] variable scoping...

2002-04-13 Thread Aric Caley
unfortunately, this doesnt seem to work. Rather, it works, but it doesnt seem to work any differently than an include() (although you can't use output buffering on it, so in that regard its different). It seems to pass in all the variables and classes. My other option, which I have been

[PHP] Re: Forms in PHP

2002-04-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi all, Now I have a weird problem. I am using this code and can't understand why it doesn't work. When the script is run it returns a blank page, no error or done. here it is and any help would be appreciated. if(($type ==

[PHP] Switching from Register_Globals=On

2002-04-13 Thread Andre Dubuc
To prototype my site, I've used register_globals=on, and track_vars=on. I'm at the point where I would like to switch the globals off', and prepare the site for production use. My problem is that I don't know how to implement the use of $HTTP_SESSION_VARS or $_SESSION in my webapages (or

php-general Digest 13 Apr 2002 11:17:33 -0000 Issue 1284

2002-04-13 Thread php-general-digest-help
php-general Digest 13 Apr 2002 11:17:33 - Issue 1284 Topics (messages 92821 through 92861): PHP 4.0.6 and xsl-transformation 92821 by: K. Pihl how to detect error 92822 by: Charmaine Tian 92843 by: Rasmus Lerdorf Re: Wanting a better understanding of classes in

Re: [PHP] Closing curly brackets?

2002-04-13 Thread The_RadiX
No it's okay lots' of people post general HTML questions in here.. I love studying other people's..code style... You really need to work on your style I think.. No offence but it's quite hard to read.. I had to painstakingly (thank God it was fairly small script) space it all

[PHP] Re: Php/Mysql

2002-04-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Just a noob php/mysql question... (I suppose) When I try just putting php code in my insert queries, it goes like this: insert into mytable values('?php echo some string; ?') select * from mytable, returns: ?php echo some string;

[PHP] Re: Cannot enter single quotation marks in fields

2002-04-13 Thread David Robley
In article 000701c1e2a8$d1600ac0$9e75fea9@pcdenis, [EMAIL PROTECTED] says... Hello friends , I cannot enter single quotation marks in fields. Is this a standard feature ? Is there a workaround? I am using mysql + php4 on unix. Thanks Denis Look at addslashes/stripslashes -- David

Re: [PHP] form mail with attachment

2002-04-13 Thread heinisch
At 13.04.2002 03:17, you wrote: i have this code for my form mail: ?php mail ([EMAIL PROTECTED], $subject, From: $name\r\nEmail: $email\r\nWebsite: $website\r\nMessage: $message, From: $email\r\n); ? i need to add an attachment file with the variable $file. what do i need to add in the

Re: [PHP] Switching from Register_Globals=On

2002-04-13 Thread Matt
I've read the manual on Session handling functions, but I must have a thick block on this concept . What should I do now that I want to use $HTTP_SESSION_VARS or $_SESSION ? How do I implement it on secondary pages? Will I be facing a major re-write of all my code? [Gulp :] Yes. 1. You must

Re: [PHP] Switching from Register_Globals=On

2002-04-13 Thread Andre Dubuc
Thanks Matt, Actually, at this point, I've reverted back to register_globals=on until I figure out what's the best way to do this. So far, I have no references to session_register() on any page. In your opinion, should I go with $_SESSION or use the other approach, $HTTP_SESSION_VARS. I

[PHP] Newsgroups? Which ones

2002-04-13 Thread The_RadiX
just a quick question what's the major newsgroup most people use here?? I just wanna know cos my alt.php and alt.php.sql are quite dead and empty... thx in adv. ::: Julien Bonastre [The-Spectrum.org CEO] A.K.A. The_RadiX [EMAIL

Re: [PHP] Switching from Register_Globals=On

2002-04-13 Thread Andre Dubuc
Thanks Matt. Well, I guess the best time to start is now. I'll use $_SESSION -- sounds like less work. Wish I had used them to begin with . . . but back then, I only had two pages -- I sort of forgot to switch over while coding. Thanks for your advice, Regards, Andre On Saturday 13 April

[PHP] WDDX

2002-04-13 Thread Stuart S
Hello List, I want to use WDDX in PHP but I don't have access to the WDDX module. Does anyone know if there is WDDX serializer/deserializer written in PHP? I've been working on one for about a day now, and it works pretty sweet. I'm relatively new to PHP and don't trust using it in commercial

[PHP] Including only I want

2002-04-13 Thread Alberto Wagner
Is there any way to include only the lines that I want in an other PHP file? something like Include(); like lines number 5,6 and 7. only this ones and not the entire script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
Break those lines out into another file... =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alberto Wagner [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 4:33 AM To: Php General Mailling List Subject: [PHP] Including

RE: [PHP] Mailings Lists?

2002-04-13 Thread Cal Evans
www.list.org * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Randum Ian [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 7:44 AM To: PHP Subject: [PHP] Mailings Lists? Hi there, I want to be able to send an email to

Re: [PHP] Cannot enter single quotation marks in fields

2002-04-13 Thread Jason Sheets
What happens when you try to enter them? What does the HTML source for your input field look like? Is ' being turned into \' ? Jason - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:05 PM Subject: [PHP] Cannot enter

Re: RE: [PHP] Including only I want

2002-04-13 Thread Alberto Wagner
But its exactely what I don't want 13/04/2002 11:11:54, Cal Evans [EMAIL PROTECTED] wrote: Break those lines out into another file... =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alberto Wagner [mailto:[EMAIL PROTECTED]]

Re: RE: [PHP] Including only I want

2002-04-13 Thread Rasmus Lerdorf
You can't do a partial include. Put some logic into your include file so only the appropriate lines are executed. Or if you are not executing anything but simply reading a file containing data, use fopen()/fgets() and read past the first 5 lines. -Rasmus On Sat, 13 Apr 2002, Alberto Wagner

Re: [PHP] Including only I want

2002-04-13 Thread Justin French
Best hope is to include some if statements into the included file, and establish what you want to get out of the file, eg: ? $section = a; include('file.php'); ? --file.php-- ? if($section == a) { // do something } ? -- Or perhaps make the few lines you're after a function, then

Re: [PHP] Mailings Lists?

2002-04-13 Thread Justin French
Contact your ISP, because it depends on your set-up... you basicaly need to pipe all emails to that address to the CGI version of PHP, and then you can grab the message and forward it to the entire list. But your ISP may also have other tools for this... if I send to all@ one of my domains, it

RE: RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
I guess it would help if you explained what you are trying to do. the answer to your initial question is no. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Alberto Wagner [mailto:[EMAIL PROTECTED]] Sent: Saturday, April

Re: [PHP] Mailings Lists?

2002-04-13 Thread Randum Ian
Can I just grab the required info from phpinfo() and post it here? Ian. - Original Message - From: Justin French [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Saturday, April 13, 2002 4:21 PM Subject: Re: [PHP] Mailings Lists? Contact your ISP, because it depends on your

[PHP] Does $_SESSION work in any release?

2002-04-13 Thread Patrick Aland
Running Apache,linux,php4.1.2 and I can't get $_SESSION to work, creates the temp file but doesn't actually put anything in it. There appears to be a bug report saying it is broke but does anyone know what version (if any) $_SESSION actually works in? I'm trying 4.1.1 also and its doing the same

[PHP] special charicters in form output

2002-04-13 Thread Paul Roberts
when i enter sZZsçe in to a form it's changed to s#377;Z#351;ç#281; I didn't code it to change it to html special characters, is php doing this? Paul Roberts [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] special charicters in form output

2002-04-13 Thread Cal Evans
If you are using METHOD=GET, your browser is probably doing it. Try METHOD=POST =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Paul Roberts [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 12:14 PM To: php Subject:

[PHP] Empty delimiter error - ??

2002-04-13 Thread Rich Pinder
I'm totally unfamiliar with php, and making some slight modificiations to Chris Heilmann's nice v 1.1 Newsleterscript. What exactly is meant by an empty delimiter? This code works just fine, but I get the following error: Warning: Empty delimiter in /home/sites/site56/web/trailcrew.php on line

[PHP] globals in functions

2002-04-13 Thread Paul Roberts
Is there a quick way to set all variables as global so that they are avalible to a function, i'm doing an eval inside, so i need all the submitted variables to be avalible, or do i have to decalre them individualy. Paul Roberts [EMAIL PROTECTED] -- PHP General

Re: RE: RE: [PHP] Including only I want

2002-04-13 Thread Alberto Wagner
I want to make a module system, that open a module and get the first $numberlines of it that will be some configuration variables, the $numberlines will probably be at top of file, at line 1, then I want to script to get the variables and execute them in the kernel.php, allowing me to make

Re: [PHP] special charicters in form output

2002-04-13 Thread Paul Roberts
it's METHOD=POST already, I'm trying to find out why a Polish address was changed! Paul Roberts [EMAIL PROTECTED] - Original Message - From: Cal Evans [EMAIL PROTECTED] To: Paul Roberts [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Saturday, April 13, 2002 6:37

[PHP] Re: globals in functions

2002-04-13 Thread phplists
function someCommand() { global $var1, $var2, $var3; stuff(); } I think you could also use define(); maybe.. Later, Bob Weaver Paul Roberts [EMAIL PROTECTED] wrote in message 00f301c1e311$fa421af0$dde5883e@laptop1">news:00f301c1e311$fa421af0$dde5883e@laptop1... Is there a quick way to

RE: [PHP] globals in functions

2002-04-13 Thread Cal Evans
1: Globals are bad...m'kay. You should never use globals. If your function needs a variable, you should pass it in. There are exceptions to this rule but it's not a good idea to program normally this way. 2: Is this a form? It sounds (from the way you word it) that the variables are part of a

RE: RE: RE: [PHP] Including only I want

2002-04-13 Thread Cal Evans
Ok, if you just want to retrieve values form the file and not PHP code, try opening it as a file instead of 'including' it. Read the lines you want, use the values you read in to set variables or branch or whatever. Personally (because I'm a database bigot) I'd stuff them in a table in a

Re: [PHP] Does $_SESSION work in any release?

2002-04-13 Thread Patrick Aland
I am doing a session_start and am definately not using session_register (minus ? and ?, the exact code is in my original email). phpinfo reports register_globals is off. Is there something else in the php.ini file I need to turn on to 'enable' $_SESSION? I tried using the php.ini-recommended and

[PHP] IMAGING WITH PHP

2002-04-13 Thread Vins
How would I find out the image size ratio so that I could resize and image without the image pixelating ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IMAGING WITH PHP

2002-04-13 Thread Jason Wong
On Sunday 14 April 2002 02:08, Vins wrote: How would I find out the image size ratio so that I could resize and image without the image pixelating ? Manual Image functions -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

RE: [PHP] Including only I want

2002-04-13 Thread Maxim Maletsky
You can call for this include inside a function and then Return inside included file. Not sure if it's suitable for you, inside functions there are quite a few extra things to do like Globals etc. Or, you could fopen(), read the needed lines, assign to a variable and eval() it. Quite a silly

[PHP] Re: Closing curly brackets?

2002-04-13 Thread Jennifer Downey
Well as I have seen lot's of people get yelled at if they post in the wrong list. So rather than letting that happen and risk not getting any help I thought I would apologize and send it to the right list. Anyway the file you sent is it in the correct format? I have asked about a tutorial on

Re: [PHP] IMAGING WITH PHP

2002-04-13 Thread Vins
There is nothing in there about image ratios but let me double check again. maybe it was my error and if so... forgive me I'm from South Africa LOL Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Sunday 14 April 2002 02:08, Vins wrote: How would I find out the

Re: [PHP] IMAGING WITH PHP

2002-04-13 Thread Vins
nope i'm not wrong. no functin to determine the image ratio Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Sunday 14 April 2002 02:08, Vins wrote: How would I find out the image size ratio so that I could resize and image without the image pixelating ? Manual

RE: [PHP] IMAGING WITH PHP

2002-04-13 Thread Mark Charette
Since you get width height the ratio is trivial. mark C. -Original Message- From: Vins [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 3:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] IMAGING WITH PHP There is nothing in there about image ratios but let me double

[PHP] Empty Delimiter error

2002-04-13 Thread Rich Pinder
Let me try again: This line of the script: if (!stristr($lines[$key], $email)) { yields the following error: Warning: Empty delimiter in /home/sites/site56/web. Do you know what causes this error ? Thanks r -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP MySQL Hosting services

2002-04-13 Thread Jennifer Downey
Hi everyone, I am wondering if anyone has a good hosting service? I am currently with Aletia which has an excellant package good tech support but sometimes not very functional servers. My site has gone down at least 3 times within the last 20 days. Too many for me. It has to be at least 50 mb

[PHP] first time user

2002-04-13 Thread zookie
hi folks, i am somewhat like a new newbie, just read my first php tutorial, installed an apache server on my windows and php on top for testing , first question is : is this the right place for me here to ask questions or is this newsgroup rather for advanced users? second question is my task i

php-general Digest 13 Apr 2002 23:37:19 -0000 Issue 1285

2002-04-13 Thread php-general-digest-help
php-general Digest 13 Apr 2002 23:37:19 - Issue 1285 Topics (messages 92862 through 92904): Re: Closing curly brackets? 92862 by: The_RadiX 92897 by: Jennifer Downey Re: Php/Mysql 92863 by: David Robley Re: Cannot enter single quotation marks in fields

[PHP] Re: Closing curly brackets? and BEING IGNORED!

2002-04-13 Thread The_RadiX
- Original Message - From: The_RadiX [EMAIL PROTECTED] To: Jennifer Downey [EMAIL PROTECTED] Sent: Sunday, April 14, 2002 9:47 AM Subject: [PHP] Re: Closing curly brackets? and BEING IGNORED! Happy to hear you fixed your problem... I sent you a reply about how you should correctly

Re: [PHP] PHP MySQL Hosting services

2002-04-13 Thread The_RadiX
wow.. 10-15gb.. where do you get that kinda hosting and for how much?? Here in Aus it'd cost you a packet.. Don't know where abouts in the globe you are though.. Here in AUS my host only gives me 1gb p/m and 50mb space... for AUD$399p/a that's USD$198... bit of a ripoff I think. but

[PHP] Re: globals in functions

2002-04-13 Thread The_RadiX
Just one thing... Is there an easier way than having to manually place global in each function...?? Other than passing by parameter? Like is it possible to actually declare var's in PHP as global? thx.. ::: Julien Bonastre

[PHP] Re: PHP MySQL Hosting services

2002-04-13 Thread phplists
http://webpipe.net They seem to be doing good with uptime.. In the last couple months I've been having a monitoring service check them frequently and so far we're at 100%.. Standard Virtual Package ($24.95/mo - $14.95 setup): Linux RedHat 7.1 300mb Disk Space 25 POP3 Accounts 10GB/mo transfer

[PHP] HTML select JS

2002-04-13 Thread Vladislav Kulchitski
HI I was wondering if anyone can answer my question :) it's more HTML related though, but I'll dare to post it here and apologize in advance if I am going against the rules. The issues is, if I am using the following code: select name=rows_per_page option selected25 option10 option50 option100

Re: [PHP] HTML select JS

2002-04-13 Thread phplists
Yeah, this really has nothing to do with PHP.. The Javascript question you ask can be answered with a simple query at http://www.google.com/search?hl=enq=select+onchange As for the other, can't help.. You should try an HTML group.. Later, Bob Vladislav Kulchitski [EMAIL PROTECTED] wrote in

Re: [PHP] Mailings Lists?

2002-04-13 Thread Justin French
No, it's not an issue of what PHP can do, it's an issue about the actual server, what mail programs they're running, what sort of filtering you can do on mail, whether you have a CGI version of PHP running, and the fact that they already may have a solution on the server which doesn't require any

[PHP] Multiple Threads?

2002-04-13 Thread Matthew Walker
I don’t remember the name of the module offhand, but once upon a time, I used a perl module that would fork multiple threads so that you could execute several web queries at the same time. This saved a lot of time, if, for instance, you had to get information from UPS, FedEx, and the USPS about

Re: [PHP] IMAGING WITH PHP

2002-04-13 Thread Jason Wong
On Sunday 14 April 2002 04:05, Vins wrote: nope i'm not wrong. no functin to determine the image ratio Let's go back to basics. What do you need to know to determine the image size ratio? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators *

Re: [PHP] Closing curly brackets?

2002-04-13 Thread Jason Wong
On Saturday 13 April 2002 19:24, The_RadiX wrote: No it's okay lots' of people post general HTML questions in here.. I hope people don't get the wrong impression. General HTML questions is NOT what this list is for. This list is called php-general for a very good reason! -- Jason Wong