[PHP] Re: foreach fails on unitialized array?

2002-08-30 Thread Richard Lynch
>>From: "Richard Lynch" <[EMAIL PROTECTED]> >> >>If you absolute *MUST* refuse to initialize the array (BAD IDEA!) >> >>You would be *MUCH* better off listening to those >warnings and fixing your code. > >I totally agree with. I was just peeved that PHP would handle unitiliazed >strings without a

Re: [PHP] few things...

2002-08-30 Thread Chris Shiflett
Check our cURL for Web client functions. I'm not aware of a function like hidden() the way you describe it, but you could easily write it yourself. Look into user-defined functions in the manual. Happy hacking. Chris Matt Zur wrote: > A Call Function to emulate a browser and contact a remot

[PHP] few things...

2002-08-30 Thread Matt Zur
First of all... I'm a bit confused is there really a difference between echo and print? They seem to do the same thing? Also... I have trouble searching for these things in the docs: A Call Function to emulate a browser and contact a remote host? For example... to load in a piece of text f

Re: [PHP] PHP_AUTH_USER

2002-08-30 Thread Hendråwan Rinäldi
- Original Message - From: "Liam MacKenzie" <[EMAIL PROTECTED]> To: "Hendråwan Rinäldi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 30, 2002 4:49 PM Subject: Re: [PHP] PHP_AUTH_USER > I'm afraid you're going to have to be more specific than that my friend. > every body

RE: [PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread victor
I did a : session_unregister('xxx'); session_destroy(); header("Location: http://www.xxx.com/xxx";); and mozilla is the only browser out of ie6 netscape 4.7 and mozilla to respect the logout and not repost the data on reload or back request. Go mozilla. I guess the big boys somewhere are taking

Re: [PHP] request what a user clicked

2002-08-30 Thread Chris Shiflett
I'm not sure if you've gotten any responses to this, but you might try asking a question that doesn't require knowledge of ASP. Though a lot of people do know both PHP and ASP, just about everyone reading this list at least knows PHP. Some of us are lucky enough to have never had to learn ASP

Re: [PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread Justin French
If you were REALLY concerned, you could use JavaScript (JavasCrap) to open a new window and close the parent... this way there would be no such thing as a "back" button... it'd be disabled. I think later version of JS can empty the history too (unsure though). It's not going to be fool proof for

[PHP] --with-imap strangeness in 4.3 dev

2002-08-30 Thread Michael Geary
Hi Folks, I am on OS X 10.2, and I'm compiling the latest dev version of PHP as found at Zend: http://snaps.php.net/php4-latest.tar.gz In general, I am having good success with it. However, I am having some strangeness with Imap integration. For reference, I have OpenSSL and the C-client ins

RE: [PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread victor
K, thanks, i will sort of realized this, but I was wondering if the user is silly enough to leave the browser window open then someone can press the back button and go back, I will probably write a message somewhere to tell the user to close the browser window. To the one who asked about the sess

[PHP] Re: Using cURL

2002-08-30 Thread Richard Lynch
>Dear All, > >I'm using a shared server hosted by an ISP. I cannot get PHP recompiled >with --with-curl. I've read the information about cURL but it appears that I >need to be root in order to install it? I cannot do this. Does this mean >that I cannot use cURL or CURL at all? If it doesn't what d

[PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread Richard Lynch
>I can logout with session_unregister - but w00t about the back button? > >This is probably so trivial that it has been discussed before, if anyone >has some knowledge or link at hand mind passing it on? Thanks. If you are using Cookies, then everything is fine. Their cookies will be gone, and t

[PHP] Re: count errors

2002-08-30 Thread Richard Lynch
>I have a function that resets the count of fields with certain values when >called. 99.9 percent of the time it works fine. However occaisionally it >wont update the database. Even after breaking the selects up it still fails >sometimes. If anyone has an idea of why I would really appreciate hear

[PHP] Re: performing searches with random entries

2002-08-30 Thread Richard Lynch
>I'm trying to take a variable in that would be usually 3 to 4 words (could >be more or could be less). Right now, I'm exploding the variable and >testing each individually, but this obviously is a pain with the more >variables you get, and the result I get from the mysql search doesn't give >me

[PHP] Re: Reading header information

2002-08-30 Thread Richard Lynch
>What I'd like to do is get some of the information found when you do a >telent on port 80 like this below.. > >telnet www.hostname.com 80 >Trying www.hostname.com... >Connected to.www.hostname.com >Escape character is '^]'. >HEAD / HTTP/1.0 > >HTTP/1.1 200 OK >Date: Thu, 29 Aug 2002 17:00:09 GMT

[PHP] Re: gettext

2002-08-30 Thread Richard Lynch
>Hi >I'm using gettext to add i18n to a web site, and it seems to work fine, >but the translation is done randomly. I mean that if you reload many times >the page, sometimes it gives back the translated message and sometimes the >untranslated one. >These are the steps I followed to use gettext wit

[PHP] Re: Where is my REMOTE_USER?

2002-08-30 Thread Richard Lynch
>when logging in with username and password with the good old "Require user" >mechanism in Apache I could earlier see the name of the user logging in as >$REMOTE_USER. > >But it seems now to have disappeared. It seems to be nowhere, neither as > >$GLOBALS['REMOTE_USER'] >$_SERVER['REMOTE_USER']

[PHP] Re: Question about sending varibles to script

2002-08-30 Thread Richard Lynch
>I have following question. How can i send to a script varible, but not from >HTML form but via URL. (I'm talkin about something like >http://www.domain.com/script.php?id=1 > in earlyier version o php). -- Like Music? http://l-i-e.com/artists.htm -

[PHP] Re: using php from command line

2002-08-30 Thread Richard Lynch
>Hi to all, > > I have a problem here in using php in command line i cant find the php >executable in /usr/bin/php in my readhat linux after compiling php-4.2.2 >with --enable-cli. > >Any idea why? I need to run a php script using cron, or if you have any >suggestion please share. Did you do "mak

[PHP] Re: and or statement

2002-08-30 Thread Richard Lynch
>What is the "and" "or" statement in php? > >I need this to see if the first statement is whatever, and or the second >statement is whatever... > >if (!isset($PHP_AUTH_USER) "and or" blah($blah)) {} "and" and "or" mean pretty much what they would in English: The expression "x AND y" only returns

[PHP] Re: Permission Denied

2002-08-30 Thread Richard Lynch
>I use PHP to send mail. Recently, emails originating >from the server stopped sending. After some >investigation, I looked at the /var/log/maillog file, >and saw the following errors when a mailing tried to >originate: > >Aug 29 13:16:10 x sendmail[1162]: g7TIGA001162: >SYSERR(apache): Can't crea

[PHP] Re: Proxy taking me to localhost.com

2002-08-30 Thread Richard Lynch
>I am on a cable connection...and to connect to the net my provider gave me >an address where my browser would get automatically configured...maybe >because of that I am goint to localhost.com? >I may be way off track here coz I dont know the first thing about what the >heck a proxy itself is b

[PHP] Re: command line argument vs. urlencode ?

2002-08-30 Thread Richard Lynch
> Any one know why the "+" (plus sign) is not passed as argument to >$argv when calling a php script from linux shell ? > >php test.php 123 xxx+ Best guess is + is a special character in the shell, so you need: php test.php 123 "xxx+" Or maybe even so far as: php test.php 123 "xxx\

[PHP] Re: Scheduling tasks

2002-08-30 Thread Richard Lynch
>Hi, > >I'm trying to work out how to schedule tasks in php. I would like to use at >but are having a few difficulties. > >Does anyone have any suggestions on an alternate way to schedule a command >to run on the system via php. Make sure you have configured and installed PHP as a "CGI" as well a

[PHP] Re: include interpreted php file

2002-08-30 Thread Richard Lynch
>pb : include a php file in an other php file >contraints : the php file must be interpreted before being included >solution known : fsock then get the html code from the server and include >it... > >Is there an other solution (easier) to include that file? Not real sure if you *want* the PHP fil

[PHP] Re: Configure 'with' PHP

2002-08-30 Thread Richard Lynch
>I am proceeding with adding support for gd-2.0.1, libpng-1.2.0, jpeg-6b, >zlib-1.1.4, and freetype-2.1.2. The configure script is ending with an >error. Here is my configure command as well. I am using PHP 4.0.6. > >./configure \ >--with-apxs=/usr/local/apache/bin/apxs \ >--with-mysql=/usr/local/

[PHP] Re: php and gnupg problems.

2002-08-30 Thread Richard Lynch
>Hi, >Appologies if this comes through twice. I tried to post it via goolg groups >but it didn't seem to work. > > >If I run the following script from within apache, then the script >fails and returns $error=2 >$data="this is a test"; >$GNUPGHOME="/home/nobody/.gnupg"; >putenv("GNUPGHOME=$GNUPGHO

[PHP] Re: whats wrong with this?

2002-08-30 Thread Richard Lynch
> if($day = $system_day){ > >the problem i am experiencing is that it seems the "if" statement is setting >the $day value to equal $system_day instead of comparing their values >if i add That's because you have only one = sign there. = by itself does the assignment (setting a value) == does

[PHP] Re: Reconfigure PHP

2002-08-30 Thread Richard Lynch
>I have installed GD, libpng, zlib, jpeg-6b, and FreeType 2. I now need to >reconfigure PHP 'with' these additions. I don't understand how to determine >what directories to point to for each of these 'with' statements. In >Windows, I would just look for an exe, but under UNIX (Solaris 7) I not sur

[PHP] Re: Stepping through an array more than once

2002-08-30 Thread Richard Lynch
>Now, obviously this only echoes the first part, as it seems the array is >at the end when it tries to loop through again. >I tried a reset($myrow_it) , but it drops an error about $myrow_it not >being an array. It's not an array, it's a MySQL result identifier. You want http://php.net/mysql_dat

[PHP] Re: Window/Page/Browser/Screen width

2002-08-30 Thread Richard Lynch
>I've seen similar questions in archives so sorry if I'm asking the same thing >again! > >Is it possible, using php, to get the screen, page, or window width? Not really... >My aim would be to have a set of picture thumbnails, and give the html the best >number of columns depending on the size o

[PHP] Re: Problems with PHP 4.2.2 and *IMAP*

2002-08-30 Thread Richard Lynch
>Yes. Another poor soul who is having problems with PHP and installing the >IMAP library. I've installed Apache 1.3.26, PHP 4.2.2 and MySQL and they all >work just fine together. But I want IMAP as well, because I want my webmail >app to work. > >I compiled PHP like so: >$./configure --with-ap

[PHP] Re: that UNIX permissions thing again -- sort of

2002-08-30 Thread Richard Lynch
>Our image gallery application takes a directory tree of images uploaded >by the user and then does all sorts of magic to make thumbnails, track >comments, and so on. The only thing owned by the user is the directory >tree and its contents; everything else is owned by the web server ID. > >All of

[PHP] Re: foreach fails on unitialized array?

2002-08-30 Thread Richard Lynch
>When I use foreach on a uninitialized array I get the following warning: > >Warning: Invalid argument supplied for foreach() in >/www/htdocs/jc/cart/add_item.php on line 21 > >I would expect foreach to treat an unitialized variable as an empty >array and hence do nothing. Is this the expected

[PHP] Re: use curl.so with php4.1.0 and apache1.3.22 and curl7.9.8

2002-08-30 Thread Richard Lynch
>When I restart apache this is the message: > >Stopping httpd:[ OK ] >Starting httpd: PHP Warning: Unable to load dynamic library >'/usr/lib/php4/curl.so' - /usr/lib/php4/curl.so: cannot open shared object >file: No such file or directory in Unknown o

[PHP] Re: Apostrophe in preg_match?

2002-08-30 Thread Richard Lynch
>I'm trying to get an apostrophe (and a dash, as well) to be >included in a preg_match expression, but I don't know how to escape the >characters. The dash has to come "last" in your [] grouping: [!a-zA-Z-] ^ | This will work. The ' is a matter of counting how many \s PHP wan

[PHP] Re: bulk mail

2002-08-30 Thread Richard Lynch
>I know a lot has been discussed in this topic, but I still don't find any >solution. You keep ruling out the solutions you do find, which is not quite the same... :-) >What I want to do is send a lot of mails triggered from a web page using >php. Bad Idea. PHP was never designed to send a "

Re: [PHP] and validator problem

2002-08-30 Thread Tom Rogers
Hi, Friday, August 30, 2002, 7:28:45 PM, you wrote: PT> Hi all. PT> I have a tag: PT> CV PT> when I want to validate page (W3C online validator) , validator prints: PT> Line 37, column 50: PT> How can I solve this? (& doesn't functioning, because after that is PT> &PHPSESSID added automatical

[PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread CHAILLAN Nicolas
did you also destroyed the session? -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Victor" <[EMAIL PROTECTED]> a écrit dans le message

[PHP] Re: Security Permissions

2002-08-30 Thread CHAILLAN Nicolas
Nothing to do with it, verify your permissions on this directory, your user must have read and write permission. chmod -R u=rwx /directory/here . -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergeme

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Chris Wesley
On Fri, 30 Aug 2002, Cameron Thorne wrote: > I was hoping I could access by either name OR number, but apparently not. Just for kicks ... here's something pretty ugly (I'd never use it), but neat if you're interested (or somehow really have your heart set on using integers). There are probably

RE: [PHP] request what a user clicked

2002-08-30 Thread stu9820
It's not coming from a form. will the form request still work? >= Original Message From Steve Edberg <[EMAIL PROTECTED]> = >At 03:12 PM 8/30/02 , stu9820 wrote: >>what is php's request object? >>like in ASP - Request("variable") > > >Short answer: > > $_REQUEST['variable'] >

[PHP] Security Permissions

2002-08-30 Thread Georgie Casey
before on my host, i could make directories and write files in PHP. now i cant. my host removed frontpage extensions in the meantime, could they be what allow me? or do they have nothing to do with it -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv

Re: [PHP] Ridding myself of HTML tags

2002-08-30 Thread DL Neil
Liam, If you were to stristr()/remove everything up to and including the tag, would that take care of things? =dn > I've got a lil problem with HTML tags. Here's the description. > > My site accepts HTML files by upload. A lot of these files are written in MS > Word and then saved as HTML files

Re: [PHP] request what a user clicked

2002-08-30 Thread Steve Edberg
At 03:12 PM 8/30/02 , stu9820 wrote: >what is php's request object? >like in ASP - Request("variable") Short answer: $_REQUEST['variable'] (for PHP version >= 4.1.0) Long answer: http://www.php.net/manual/en/language.variables.external.php -steve >Jeff >UWG Stude

Re: [PHP] Resource ID??

2002-08-30 Thread DL Neil
John, This is the output: Resource id #15 or some other seemingly arbitrary Resource ID number? First of all what is a resource ID and second how do I get it to actually show what I am trying to get it to show! =When MySQL returns data to PHP, the information is put into a variable called a "re

[PHP] session encode and session decode question

2002-08-30 Thread Victor
I'm trying to get the one variable I stored insite a session, the variable's name is $username I am trying to do it like this, but I think it's wrong: $PHPSESSID = session_encode(); $username = session_decode(); It tells me I have wrong parameters for session decode. What am I supposed to encod

[PHP] Re: Upgrade from 4.0.6 to 4.1.1

2002-08-30 Thread CHAILLAN Nicolas
Hi, Note that its now 4.2.2 and all globals variables have changed. You must activate register global into your php.ini if you dont want to modify your scripts. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Cameron Thorne
That does help, yes. So basically there is no way to access associative arrays using numerical indices? I was hoping I could access by either name OR number, but apparently not. Thanks! -- Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Chris Wesley
On Fri, 30 Aug 2002, Cameron Thorne wrote: > Can anyone explain why the following code operates the way it does in my > comments? Sure. > > $test = array ( 'a' => 'A', 'b' => 'B', 'c' => 'C'); An associative array, $test. > > if (array_key_exists(2, $test)) echo "It works by key number!"; /

[PHP] Upgrade from 4.0.6 to 4.1.1

2002-08-30 Thread K Soares
To upgrade from 4.0.6 to 4.1.1, do I have to fix any code? I think session code has to change but is there anything else? Thanks K. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] request what a user clicked

2002-08-30 Thread stu9820
what is php's request object? like in ASP - Request("variable") Jeff UWG Student [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Using cURL

2002-08-30 Thread Jonathan Rosenberg
Can you telnet/SSH to the machine & install CURL in your home directory? You shouldn't have to be root to do this. Or, are you trying to get CURL loaded into PHP? -- JR > -Original Message- > From: Henry [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 30, 2002 2:21 AM > To: [EMAIL PRO

[PHP] Arrays misbehaving!

2002-08-30 Thread Cameron Thorne
Can anyone explain why the following code operates the way it does in my comments? 'A', 'b' => 'B', 'c' => 'C'); if (array_key_exists(2, $test)) echo "It works by key number!"; // Does not work. if (array_key_exists('c', $test)) echo "It works by key name!"; // Works. print_r(array_keys($tes

RE: [PHP] newbie question

2002-08-30 Thread Daniel Masson
Just do this: Header("Location: $where_you_wanna_go\n\n"); And make sure you do this before produce any HTML autput !! Hope this is helpful !! How do I get PHP to automatically open another PHP page in a browser if a condition is met? I have a pull down HTML table that submits a form to a PHP

[PHP] Re: Mail()....

2002-08-30 Thread Manuel Lemos
Hello, On 08/30/2002 05:44 AM, Brian McGarvie wrote: > Is there a way to set the font on a plaintext email? You may try setting some styles like enclosing text for *bold* or /italic/ but changing font in plain text is not possible. Another thing you may want to do is to send a message in HTML

Re: [PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos
Hello, On 08/30/2002 07:15 AM, Mark Colvin wrote: > I have some more information that may be relevant to my problem. I compared > the phpinfo() from both servers and there is a difference. The sendmail_from > variable in the php.ini on my server is set to [EMAIL PROTECTED] The same > variable on

Re: [PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos
Hello, On 08/30/2002 05:26 AM, Mark Colvin wrote: > My development platform is linux 7.2 and php4.0.6. The production server is > also linux (I think 7.2) but the php version 4.1.1. If it is not sending a message, maybe the mail() function is not enabled because configure could not find sendmai

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Andre Dubuc
On Friday 30 August 2002 03:57 pm, you wrote: > On Saturday 31 August 2002 03:52, Andre Dubuc wrote: > > > What 'minor' changes did you make to $message? Does rolling back those > > > changes make it work again? > > > > I had just added another text sentence between "blah, blah, blah' and > > 'htt

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 03:52, Andre Dubuc wrote: > > What 'minor' changes did you make to $message? Does rolling back those > > changes make it work again? > > I had just added another text sentence between "blah, blah, blah' and > 'https://'. And yes, I tried rollbacks to when it worked.

Re: [PHP] newbie question

2002-08-30 Thread Kevin Stone
include($thefile.".html"); http://www.php.net/manual/en/function.include.php header("Location: ".$thefile); http://www.php.net/manual/en/function.header.php -Kevin - Original Message - From: "Brian & Shannon Windsor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 30,

Re: [PHP] newbie question

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 03:25, Brian & Shannon Windsor wrote: Please do not be lazy and choose a proper descriptive text for your subject. Imagine the blandness and confusion and the utter uselessness if everybody used generic subjects such as "Help", "Quick question", "This one is easy",

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Andre Dubuc
On Friday 30 August 2002 03:38 pm, you wrote: > On Saturday 31 August 2002 03:25, Andre Dubuc wrote: > > But checking the mailbox of '[EMAIL PROTECTED]' (and three others that > > I've sent it to) nothing shows up. Now, what's strange, it used to work > > perfecttly before I made minor changes to

RE: [PHP] how to have a form keep values when user hits back button?

2002-08-30 Thread Dave at Sinewaves.net
A better, NON-CLIENT-SIDE way to do it, is you could have the page you're submitting to write the POST values to a session. So the top lines of your form handler page would be something like: $val) { if($val != '') { $HTTP_SESSION_VARS[$key] = $val; } } ?

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 03:25, Andre Dubuc wrote: > But checking the mailbox of '[EMAIL PROTECTED]' (and three others that I've > sent it to) nothing shows up. Now, what's strange, it used to work > perfecttly before I made minor changes to $message. I've > scanned/debugged/scratched my head b

[PHP] Resource ID??

2002-08-30 Thread JohnP
When trying to do this query: $rsum =mysql_query("SELECT SUM(rating) FROM ratings where threadid = $ratevar")or die (mysql_error()); This is the output: Resource id #15 or some other seemingly arbitrary Resource ID number? First of all what is a resource ID and second how do I get it to actually

[PHP] newbie question

2002-08-30 Thread Brian & Shannon Windsor
How do I get PHP to automatically open another PHP page in a browser if a condition is met? I have a pull down HTML table that submits a form to a PHP script. That script then uses a little logic to figure out which web page to go to. I have 5 different pages, and each has different content.

[PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Andre Dubuc
After resolving other script problems, a new one has surfaced. The 'Guest Registration/Confirmation' script works as expected. It inserts a random id number, then fowards it to the guest's email address, and awaits confirmation (by clicking on the Confirmation URL). Postfix says that the mail

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 02:16, Webmaster wrote: > i write these files in a for-next loop, so at the start of each loop, i've > to put an unmask command? If the manual is correct then the answer in no. Once per page would be enough. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

RE: [PHP] Useragent and file [SOLN]

2002-08-30 Thread Todd Pasley
Hi I found an alternative to using file to get web content. using fsockopen you can specify a useragent as per rfc-something which handles it all very very nicely. Its also nicer that what I was using to post and is looking more likely to store cookies/sessions... but ill get to that later :)

Re: [PHP] Writing Files

2002-08-30 Thread Webmaster
i write these files in a for-next loop, so at the start of each loop, i've to put an unmask command? - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Friday, August 30, 2002 4:11 PM Subject: Re: [PHP] Writing Files > On Fr

[PHP] Re: Simple one... Please look.

2002-08-30 Thread Philip Hallstrom
http://www.php.net/manual/en/function.file.php On Fri, 30 Aug 2002, Shane wrote: > Greetings. Can someone please enlighten me on the best way to get information from a >comma delimited file, to a variable? > > Example. A client updates a comma delimited list of names to a directory on a >serve

[PHP] Simple one... Please look.

2002-08-30 Thread Shane
Greetings. Can someone please enlighten me on the best way to get information from a comma delimited file, to a variable? Example. A client updates a comma delimited list of names to a directory on a server, my script would need to read in the entire list and turn it into a variable. Once it i

[PHP] Re: Regular expression question

2002-08-30 Thread Philip Hallstrom
$str = "jeD1GLal"; $str = ereg_replace("[1LIO0lio]", "", $str); something like that... On Fri, 30 Aug 2002, Jeff Lewis wrote: > Is there a regular expression that will remove 1, L, I, O, 0 and the > lowercase equivilants from a varialbe? > > I am not horribly well versed in regular expressions.

[PHP] Re: Server Setup Walkthrough?

2002-08-30 Thread Philip Hallstrom
Check the manual at www.php.net. There are installation instructions in it... On Sat, 31 Aug 2002, Kris wrote: > Hi All, > > Relatively new to PHP and Apache. I've had some trouble setting up my own > web server for learning on - I basically have no idea where to start in > order to get them bo

[PHP] Ridding myself of HTML tags

2002-08-30 Thread Liam . Gibbs
I've got a lil problem with HTML tags. Here's the description. My site accepts HTML files by upload. A lot of these files are written in MS Word and then saved as HTML files from that. MS Word likes to put a bunch of garbage at the beginning of the file. Now, when users upload their HTML files,

Re: [PHP] eregi_replace() problems

2002-08-30 Thread Kevin Stone
The parameters to the eregi_replace() are not passed by reference. You need to set a variable to capture the returning value. Read the manual.. http://www.php.net/manual/en/function.eregi-replace.php -Kevin - Original Message - From: "Tony Harrison" <[EMAIL PROTECTED]> To: <[EMAIL PROT

[PHP] Regular expression question

2002-08-30 Thread Jeff Lewis
Is there a regular expression that will remove 1, L, I, O, 0 and the lowercase equivilants from a varialbe? I am not horribly well versed in regular expressions...so I'm basically asking someone to help :) Say I have a string like this "jeD1GLal" I want to remove any of the chracters that be co

[PHP] eregi_replace() problems

2002-08-30 Thread Tony Harrison
Can anyone tell me why my emoticons arent appearing? Please? Note: $message is a variable set by a form. The field `pattern` is the string to search for, like ":-)", and `url` is the relative url to the emoticon. I just get the plain text, no replacement emoticon. Note: this bit is above the INSE

[PHP] Server Setup Walkthrough?

2002-08-30 Thread Kris
Hi All, Relatively new to PHP and Apache. I've had some trouble setting up my own web server for learning on - I basically have no idea where to start in order to get them both working together. Does anyone have a link to a website (or the time to help me) that I could take a look at? I'd much ap

Re: [PHP] Email formatting

2002-08-30 Thread Tomasz Orzechowski
Ron Dyck wrote on Fri, Aug 30, 2002 at 01:28:34PM -0400: > Is it safe to assume that email addresses are accepted by all servers case > insensitive? accepted, yes, perhaps, but per rfc2821 says: The local-part of a mailbox MUST BE treated as case sensitive. Therefore, SMTP implementations MUST

[PHP] Email formatting

2002-08-30 Thread Ron Dyck
This is a slightly off topic question. My apologies to any that this may aggravate. Is it safe to assume that email addresses are accepted by all servers case insensitive? So that if I have an email application accepting emails I can safely strtolower($email) the address and be sure that all ser

Re: [PHP] Where is my REMOTE_USER?

2002-08-30 Thread Frank
At 16:42 30/8/2002 +1200, David Robley wrote: >In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >says... > >Is this snippet from the docs possibly relevant? > >Chapter 17. HTTP authentication with PHP > >The HTTP Authentication hooks in PHP are only available when it is running >as an Apache modu

Re: [PHP] Re: Mail()....

2002-08-30 Thread DL Neil
Brian, Please be aware that many email clients will NOT read HTML. The human readers are then presented with raw HTML and get very <...?...> upset about it! (that's why list postings are not supposed to be in HTML/rich text format) Regards, =dn > It's a text-based newsletter... > > I have a s

[PHP] Help with writing multiple records to a table

2002-08-30 Thread Duffy Betterton
I have a form that asks customers which of 42 categories they are interested in. I have created three tables to handle the results. Everything writes to the pf_survey table with no problems and only the first checkbox selected writes to the cat_survey table. What am I missing? Is it something in m

Re: [PHP] 'save as'

2002-08-30 Thread Chris Hewitt
mdew wrote: > >Running GNU/Debian Sid. Im Running into problems, Apache cant see the >.php file (it brings up the save-as dialog everytime) > >I have this line enabled (see below) still no success > >AddType application/x-httpd-php .php > And restarted Apache? Is there more than one httpd.conf or

Re: [PHP] Writing Files

2002-08-30 Thread Robert Cummings
Georgie Casey wrote: > > How do you write files so that theyre chmoded 777 by default. the folders > theyre written to are 0777 but the files aren't. so i cant delete or modify > the files through PHP, i have to first chmod them with FTP, which takes > ages. There are a number of things you may

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 20:53, Georgie Casey wrote: > How do you write files so that theyre chmoded 777 by default. the folders > theyre written to are 0777 but the files aren't. so i cant delete or modify > the files through PHP, i have to first chmod them with FTP, which takes > ages. umask()

RE: [PHP] OT - .scr Attachments

2002-08-30 Thread Todd Pasley
Hi > If people are daft enough to be using M$ software AND they're > daft enough to > execute unsolicited executables then they deserve whatever they get. Yep I agree, although, I would prefer if people didnt then be email me again with already hundreds of emails a day... I dont need this as wel

[PHP] Re: changing the include path

2002-08-30 Thread lallous
refer to: string ini_set ( string varname, string newvalue) "Henry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello All, > > Is it possible to change the include path when a script is runing without > having to change the php.ini file? > > TIA > > Henry >

[PHP] Writing Files

2002-08-30 Thread Georgie Casey
How do you write files so that theyre chmoded 777 by default. the folders theyre written to are 0777 but the files aren't. so i cant delete or modify the files through PHP, i have to first chmod them with FTP, which takes ages. -- Regards, Georgie Casey [EMAIL PROTECTED]

[PHP] changing the include path

2002-08-30 Thread Henry
Hello All, Is it possible to change the include path when a script is runing without having to change the php.ini file? TIA Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: "autocomplete" list box

2002-08-30 Thread Alex Piaz
Hi! Go to http://javascript.internet.com and look into the "forms" section. You´ll find what you need. Regards Alex Petre Agenbag writes: > Hi > I am wondering if it is possible to write/create/implement an > "autocomplete" type list box, something that will basically work the > same a

RE: [PHP] About html

2002-08-30 Thread Mark Colvin
Use the tabindex - > -Original Message- > From: kale [mailto:[EMAIL PROTECTED]] > Sent: 30 August 2002 08:45 > To: [EMAIL PROTECTED] > Subject: [PHP] About html > > > Hy, > I have one question about html. > 1. I have a form with 8 textbox. How can I put the tab order? > When I press "tab

RE: [PHP] About html

2002-08-30 Thread Liam . Gibbs
> I have one question about html. > 1. I have a form with 8 textbox. How can I put the tab order? > When I press "tab" I want to jump from first textbox to > textbox number 4 not to number 2. Well, this isn't an HTML list, but I know there is a way. Check out www.htmlhelp.com. Otherwise, Bravenet

[PHP] About html

2002-08-30 Thread kale
Hy, I have one question about html. 1. I have a form with 8 textbox. How can I put the tab order? When I press "tab" I want to jump from first textbox to textbox number 4 not to number 2. Thanks for answer. kale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] and validator problem

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 17:28, Peter Turcan wrote: > Hi all. > > I have a tag: > CV > > when I want to validate page (W3C online validator) , validator prints: > > Line 37, column 50: > > How can I solve this? (& doesn't functioning, because after that is > &PHPSESSID added automatically by php)

[PHP] open_basedir

2002-08-30 Thread Jens Winberg
Hello! My ISP is using the "open_basedir" restriction which (I think) is stopping me from using the function "fopen" to read a document on a different server. I have been in contact with the ISP and they want to allow me to use the fopen function for my purposes, but they have this restriction

Re: [PHP] OT - .scr Attachments

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 18:11, Todd Pasley wrote: > As I'm sure you are all aware (but this email is incase you are not), files > with the extension .scr are executable on all windows platforms. If people are daft enough to be using M$ software AND they're daft enough to execute unsolicited ex

RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin
I have this set on both boxes. Here are the settings - local box (which does send mail)isp box (does not send mail) sendmail_from me@@localhost.com 'no value' sendmail_path /usr/sbin/sendmail -t -i/usr/sbin/sendmail -t -i SMT

Re: [PHP] "autocomplete" list box

2002-08-30 Thread Jason Wong
On Friday 30 August 2002 20:54, Petre Agenbag wrote: > Hi > I am wondering if it is possible to write/create/implement an > "autocomplete" type list box, something that will basically work the > same as when you have a normal textbox in a form and have "autocomplete" > enabled in the browser, but

  1   2   >