[PHP] Re: Just learning . . . HTML Form & PHP

2002-08-27 Thread Richard Lynch
>Next I'd just like to confirm that the fields are not blank and send a >custom error message. But I think I'm confused about where to place the >code. Where you currently have "if ($send != "no"){ ... }" you could tack on something like: else{ echo $name_err; echo $email_err; echo $last

[PHP] Re: filter records... how?

2002-08-27 Thread Richard Lynch
>I have this set of code. and what I want to know how to do is how to >filter one or more vars in the flat file? For example filter all the >people that work "at night" Honestly, you'd be best off moving the data into a database (MySQL or otherwise)... At this point, you're starting to do a

[PHP] Re: Please helpme !! files problems..

2002-08-27 Thread Richard Lynch
>Hi! Sorry for this stupid question but i am a begginer learning from a >old book (dangerous combination), So i have to convert every example to >not use old methods... >I have to problems and i look every where and could not resolve. >firstone: >i have a form like this... > > >Send this file: >

[PHP] preg_match

2002-08-28 Thread richard . mail
hi all, i'm trying to create an script that cut's the text when a "." ( dot ) is found in one of the last words.. i'm trying it with preg_match but it seems not to work. this is what i'm trying : if($i==15) { if(preg_match("/./",$text2[15])) { $text3 .= "($i $text2[15] )";

RE: [PHP] whats wrong with this?

2002-08-28 Thread Richard Black
out the PHP manual - http://www.php.net/manual/ - for more info HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Chris Barnes

RE: [PHP] Help with script - if possible

2002-08-28 Thread Richard Black
_start AND booking_end B is '$book_end_date' BETWEEN booking_start AND booking_end C is villa_id = '$place' HTH, Richy ====== Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EM

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

[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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 peeve

RE: [PHP] Anybody have a sucessfull use of ADO and php together ?

2002-09-02 Thread Richard Black
I don't know anything about Visual Foxpro, so I may be barking up the wrong tree here, but... Is there anyway you can use ODBC??? The ODBC functions work pretty well. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd -

[PHP] Re: hide system output from header

2002-09-03 Thread Richard Lynch
>i execute a system function which works great only prob is it breaks the >header so what i need to know is how i can prevent the output from this and >append it to a variable, i allready tried appending to variable but still >outputted http://php.net/exec -- Like Music? http://l-i-e.com/arti

[PHP] Re: 'save as'

2002-09-03 Thread Richard Lynch
> > >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 > >installed php4 4.2.2-2, php4-mysql 4.2.2-2, phpnuke 5.6-3, apache >1

[PHP] Re: Writing Files

2002-09-03 Thread Richard Lynch
>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. Do http://php.net/umask before you create them. Include the opti

[PHP] Re: and validator problem

2002-09-03 Thread Richard Lynch
>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) PHPSESSID is being added by PHP in order to pass the session data throu

[PHP] Re: Useragent and file

2002-09-03 Thread Richard Lynch
>// get a web page into an array >$fcontents= file ($targeturl); > >However I dont know how to mimic a different useragent. Using LWP::UA (in >perl) i can pretend to be iexplore6 running on win2k or anything i want.. >Is there a way i can do this in PHP? Yes, but you'll need to roll your own f

[PHP] Re: problem with include

2002-09-03 Thread Richard Lynch
>// one.php > >--- html code --- >// end file one.php > >// two.php > >--- html code --- >//end two.php Where is three.php?... >well, when I see in my browser www.myweb.com/two.php this shows two.php >plus the include file in it "three.php", so this works ok, but when i see >in my browser (IE

[PHP] Re: Help with writing multiple records to a table

2002-09-03 Thread Richard Lynch
>$_POST['category_id']; What do you think this does? Cuz it don't really "do" anything... > $numcat = count($category); > if ($numcat>1){ > $category_id=implode(",",$category); > } elseif ($numcat==1){ > $category_id=$category; > } You have an array of '$c

[PHP] Re: Email formatting

2002-09-03 Thread Richard Lynch
>Is it safe to assume that email addresses are accepted by all servers case >insensitive? NO! The domain part (after the @) is case-insensitive. The username part (before the @) is case-sensitive. It is *POSSIBLE* for [EMAIL PROTECTED] and [EMAIL PROTECTED] to be very different people. It's n

[PHP] Re: Ridding myself of HTML tags

2002-09-03 Thread Richard Lynch
>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, my script goes and striptags all of the unnecessary junk in t

[PHP] Re: Mail/Confirmation Script delivery problems

2002-09-03 Thread Richard Lynch
>if(@mail($to, $subject, $message)) >. Is there an "else" clause here to tell you what went wrong if the email didn't go out?... Also add some headers like this: $headers = "From: [EMAIL PROTECTED]\r\n"; $headers .= "Reply-to: [EMAIL PROTECTED]\r\n"; and change your mail() to: mail($to,

[PHP] Re: newbie question

2002-09-03 Thread Richard Lynch
>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 cont

[PHP] Re: request what a user clicked

2002-09-03 Thread Richard Lynch
>what is php's request object? >like in ASP - Request("variable") $_REQUEST['variable'] Or, if you want to distinguish between GET and POST: $_GET['variable'] $_POST['variable'] In the future, if you're not sure where/how PHP is going to give you data, this function will *TELL* you: Throw

[PHP] Re: Resource ID??

2002-09-03 Thread Richard Lynch
>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

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

2002-09-03 Thread Richard Lynch
>./configure --with-imap-ssl=/usr (other options not shown) > >Everything configures fine. I can also "make" and "make install" with >no errors. You don't have IMAP in PHP. ./configure has a nasty habit of issuing "warning" messages for stuff you asked for --with-xxx and then blindly marching f

[PHP] Re: session encode and session decode question

2002-09-03 Thread Richard Lynch
>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 suppose

RE: [PHP] question

2002-09-04 Thread Richard Black
Can you provide a bit more info??? Maybe a real life example of what you're trying to accomplish??? Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED] -Ori

[PHP] String operation

2002-09-04 Thread Richard Fox
Hi Given string1 = /home/web/ string2 = /home/web/www/index.php How can I elegantly do an exclusive or of string1 with string2, that is, I want to end up with string3 = www/index.php Thanks!

RE: Betr: RE: [PHP] question

2002-09-04 Thread Richard Black
echo $and.$c." ".$color.""; } (I've condensed the multiple echo statements into one to reduce the number of lines, but this is more about the logic) Depending on what your query is searching on and returning, you may be able to do it in a single query. HTH, Richy

[PHP] Re: Safe_Mode problem....

2002-09-05 Thread Richard Lynch
>PHP will not allow me to do this because safe_mode is on. I've been trying for >the past two weeks to turn it off. Nothing I do changes it. I've changed, You'll have to re-compile without safe mode in the ./configure -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing Lis

[PHP] Re: regex help

2002-09-05 Thread Richard Lynch
> >$str = 'hi my friend! this message uses html entities href="http://www.trini0.org";>test!'; >$str = preg_replace('/(.*<\/a>)/', >htmlspecialchars("$1"), $str); Maybe I'm missing something here, but can't you just do: $str = htmlspecialchars($str); -- Like Music? http://l-i-e.com/artists.

[PHP] Re: Escape characters won't go away

2002-09-05 Thread Richard Lynch
>I'm getting multiple backslashes in data I get out of a mysql database. That's crazy... You'd have to be adding an awful lot of backslashes *before* you put it in there. MySQL "eats" up one (1) set of \s when it "reads" data. >1. $string = stripslashes($string); - Doesn't do anything Sure

[PHP] Re: SNMP Support Problem

2002-09-05 Thread Richard Lynch
>" Fatal error: Call to undefined function: snmpwalk() ..." ... and this >for all snmp functions. This means that the --with-snmp part of ./configure didn't really work. Go back and do the ./configure again, only like this: ./configure --with-snmp ... 2>&1 > configure.output & You can use:

[PHP] Re: empty php.ini

2002-09-05 Thread Richard Lynch
>Hi, > > >I am new to PHP. I am running the module version 4.2.2 from Marc >Lyanage (entropy.ch) on OS X 10.1 and noticed that my >/usr/local/lib/php.ini is empty!? > >Is there a way Just copy the php.ini-dist from the PHP source tarball or wherever you can find it into there. -- Like Music?

[PHP] Re: mailing a cookiecontent

2002-09-05 Thread Richard Lynch
>if ($REQUEST_METHOD=='POST') { > $name = escapeshellcmd($name); > $group = escapeshellcmd($group); > $to = "[EMAIL PROTECTED]"; > $from = "FROM: $name, $group"; > $subject = "The subject of this mail\n\n"; > $body = "Name: $name\t"; > $body .= "Group: $group\n"; > $body .= "\n\n$comments\

[PHP] Re: Printing ASCII on Linux Server

2002-09-05 Thread Richard Lynch
>Printing works fine, however 2 problems: > >1. linefeed ("\n") doesn't work > >2. escape sequences to print BOLD, ITALIC, UNDERLINE, >NARROW don't work Probably the same problem, really. >$lp = popen("lpr -Plp1", "w"); I'm guessing that popen uses the shell or something, and it's "eating"

[PHP] Re: problems with cookies

2002-09-05 Thread Richard Lynch
>setcookie("cookiename1","$domin","timeset()+1800"); You're being "quote" "happy" and using "way" too "many" "quotes" "" "" :-) $domin is a variable. You don't need to use "$domin" It won't "hurt" anything, since you're just forcing PHP to build *another* string with the same exact content in

[PHP] Re: help, array values echoed as Array on loop!

2002-09-05 Thread Richard Lynch
>$ID_arr[] = explode(',', $pictures); # make db data into array > >This is the string: > >15,16,17,18,19 > >why does it echo as Array? Because you have a "two-dimensional" array: ID_arr = array( array(15, 16, 17, 18, 19) ); The reason you have a 2-D array is that you have [

[PHP] Re: limit in a loop function to prevent server load

2002-09-05 Thread Richard Lynch
>hi there i was wondering if there was a way to limit the ammount of items in >a loop to execute sleep then execute the rest of the items to prevent server >load ? http://php.net/sleep Note that "sleep" time doesn't count, but that if your program uses up *TOO* much time, it will be killed by PH

[PHP] Re: threads in Apache 1.3

2002-09-05 Thread Richard Lynch
>I would like to know how many PHP page apache generates in one thread at the >same time. > >For example, two clients share the same thread of the apache web server. >they request at the same time a php page. Does apache process them one by >one? As I understand it: Each child processes one (1)

[PHP] Re: progress bar for a server side process

2002-09-05 Thread Richard Lynch
>hi there i have created a script to regenerate thumbnails for a photo >gallery , i have changed my code to use gd true color although it takes >forever now , i have it generating 20 at a time then doing the rest but >still takes forever , i know its impossible to generate a true progress bar >for

[PHP] Re: greeting based on time

2002-09-05 Thread Richard Lynch
>really simple one - > >does someone have a bit of code that will variously display 'good morning', >'good afternoon', 'good evening' based on the current time? > >good morning from london, My time or your time? If you want it to be "server" time, use this: \n"; ?> If you want it based on *TH

[PHP] Re: Info into Class

2002-09-05 Thread Richard Lynch
>Are there any rules as to how information from outside a class can be >moved into it. >What Ive been doing so far is >1. Through the constructor >2. defining a constant >3. Create a method whose sole purpose is to move data from the outside >into the class. > i.e. >class foo () >{ >.

[PHP] Re: Any netscape users out there?

2002-09-05 Thread Richard Lynch
>Post data makes Netscape REFUSE to show the underlying source code! It's >virtually impossible to design form handling stuff when I can't see the >code that's generated when i send post data. Is this a bug and how do you fix it?? That's just Netscape being stupid. You can't fix it. PHP isn

[PHP] Re: Help with inserting Flash into MySQL database

2002-09-05 Thread Richard Lynch
>I'm using this script to insert picture into database: > $data = addslashes( fread( fopen( $arrayUploadedSomething['tmp_name'], >"r"), filesize($arrayUploadedSomething['tmp_name'] ) ) ); > >And then i use ordinary mysql_query to insert it into database (BLOB field). >When i print image on screen

[PHP] Re: FORUM CODE

2002-09-05 Thread Richard Lynch
>Hi, im wondering how in popular forum software, those 'BB codes' are done in >PHP, like, [B] and stuff. I just cant figure it out. http://php.net/str_replace http://php.net/ereg_replace -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: ftp_put

2002-09-05 Thread Richard Lynch
>I am having problems getting the ftp_put command to upload a file to an >apache server >i get this error >Warning: error opening C:\\WINDOWS\\Desktop\\Jason\\jjmckay\\testaudio.mp3 >in /home/virtual/site31/fst/var/www/html/clientadmin/mp3upload.php on line >32 > >here is the code > >$dest = "/var

[PHP] Re: Please, help with Sourceforge's PHP command-line not working at all

2002-09-05 Thread Richard Lynch
>I think that it has started recently, when SF upgraded all their system. >There is an error code that says that it cannot load module 'mm' at line >0, or something like that. 'mm' is a memory-mapping library that needs to be compiled into a module for the OS and/or PHP to use... I'm not smart

[PHP] Re: mod_php4 / apache config question

2002-09-05 Thread Richard Lynch
>I have tried things like this: >php_value WSERVER red2.office.com I think this is only going to "work" for stuff that's pre-defined in php.ini... But I could be very very wrong... >and this: >SetEnv WSERVER red2.office.com I think this is supposed to work. Are you sure you are doing i

[PHP] Re: creating mail on submitting a form.

2002-09-05 Thread Richard Lynch
>hi, > >In a form i have several text area.when i submit the form, I need to >send a email at a particular id which contains the text entered in the text >area. >Can someone gimme a script which gives me and idea about how to do that...or >some link where i can find that. http://php.net/m

[PHP] Re: PHP 4.2.2 install problem

2002-09-05 Thread Richard Lynch
>I am new to Linux and is trying to install PHP/MySQL/SSL. > >I used the instruction found on this link: >http://www.brtnet.org/linux/lampssl.htm > >Everything seemed to install OK; on the last step, open httpd.conf and >uncomment the lines: > >AddType application/x-httdp-php .php >AddType applica

RE: [PHP] Calculating Totals from table columns without a second query to the DB

2002-09-06 Thread Richard Black
owing plenty of alternatives - or at least understanding what you're doing enough to be able to think of alternatives - and thinking about stuff rather than just doing it the way you always did are the key points here. Just my tuppence... Richy ====== Richard Bl

Re: [PHP] From ASP to PHP please help

2002-09-06 Thread Richard Baskett
Look up a program called asp2php. That should definitely get you started! Cheers! Rick "The intuitive mind is a sacred gift and the rational mind is a faithful servant. We have created a society that honors the servant and has forgotten the gift." - Albert Einstein > From: "Iguider" <[EMAIL

[PHP] LDAP (NDS) authentication example...

2002-09-09 Thread Richard Whittaker
if I could use this for my authentication... Does anyone have any practical examples of authentication using LDAP/NDS?... Any help would be appreciated! Thanks, Richard W.

RE: [PHP] Server date and time

2002-09-10 Thread Richard Black
Hi Christian, PHP code runs on the server, so any of the date/time functions which the language provides will give you the date/time on the server, rather than the client. HTH, Richy == Richard Black Senior Developer, DataVisibility Ltd - http

[PHP] Re: Escape characters won't go away

2002-09-10 Thread Richard Lynch
>Well, I appreciate your input. But the backslashes are (well, were) there. >And I wasn't putting them in. Here's what the sequence was: If you leave the default of "Magic Quotes" "on" in php.ini, you are adding the backslashes on every GET/POST/COOKIE data element as it comes in. >I have a fo

Re: [PHP] Re: LDAP (NDS) authentication example...

2002-09-10 Thread Richard Whittaker
me if the Username/Password combination is valid, or would there be something further I'd have to do? Thanks! Richard W. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Building PHP for windows

2002-09-12 Thread Richard Black
ers. Cheers, Richy ====== Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] British Pound

2002-09-19 Thread Richard Black
I assume you mean how do you display a British Pound in HTML The escape £ Should do what you want. HTH Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED

[PHP] Disabling cookies per website

2002-09-23 Thread Richard Fox
Is there a way to disable cookies not for all sites but on a per site basis? If I do an ini_set() on session.use_cookies will all sites be afftected or only the site I am on? Thanks, Rich

[PHP] Explorer-like "drill down" interface

2002-09-25 Thread Richard Fox
I have two questions: 1. I would like to build a php page that contains a Windows explorer-like drill down mechanism, where clicking the '+' beside an item will expand the sub-items below (which can also have a '+' or '-' on the left) and clicking the '-' will collapse the item. Is there any e

[PHP] Encrypted MySQL passwords

2002-09-26 Thread Richard Fox
Hi, I am connecting to a mysql server on a remote machine, and opened up port 3306 for this purpose. But, I am concerned about sending a clear text password, via the mysql_pconnect() call. My question is, what is the procedure for connecting to a remote server with an encrypted password? Or,

Re: [PHP] Encrypted MySQL passwords

2002-09-27 Thread Richard Fox
"Rodolfo Gonzalez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 26 Sep 2002, Brad Bonkoski wrote: > > > also might be better then sending it in the clear. > > But I guess that the original poster wanted to know how to avoid the clear > text session o

[PHP] Re: Encrypted MySQL passwords (new info from MysQL list)

2002-09-27 Thread Richard Fox
> Hi Andrew and Richard, > The password and connection info is scrambled up. You can look, If > you want to check it out for your self look in the source code of > ./mysql-3.23.XX/libmysql search for the following functions. > especially in 'mysql_real_connect' funct

[PHP] use_cookies not working

2002-10-04 Thread Richard Fox
I am using ini_set("session.use_cookies","0"); to disable cookies but I don't see PHPSESSID showing up like I thought it would, so I don't think its working. I call it before session_start(). After the ini_set call I do session_log("CSE_Session_Start"); session_module_name(

[PHP] RE: Php web hosting

2002-10-31 Thread Richard Archer
I use phpwebhosting and I've always found them to be very quick with their support response. They're also very friendly and helpful, and happy to go that little bit further for you. Need a feature that isn't listed? No harm in asking them and they'll generally do whatever they can to provide it for

[PHP] RE: Capitalizing names etc. part II - found a solution

2002-10-31 Thread Richard Archer
Hi Rene, You should consider the fact that, even as surnames, names like Mackintosh and Mackenzie (and as someone else suggested here 'Macon') generally should NOT have a capital letter. Mackintosh is an English name, not Scottish, and people who spell it with a capital K have gotten their ancestr

RE: [PHP] How to prevent failure email from being sent?

2002-10-31 Thread Richard Archer
Noah, If you delete the webmaster email key you might find that it makes up some non-existent e-mail address based on your server name. You could try adding an 'Errors-To: [EMAIL PROTECTED]' header in the e-mail which is supposed to tell the receiving server to send any errors to a specific addre

RE: [PHP] Re: File Upload Problem

2002-10-31 Thread Richard Archer
I've had 2 thoughts on this one. They're fairly uneducated an just meandering speculation, but it's my tuppence-worth so... My initial thought was this: I believe the Content-Type: MIME header is added by your browser. HTTP standards say that anything sending a file over HTTP is supposed to tell t

RE: [PHP] Free compiler for Win

2002-10-31 Thread Richard Archer
http://www.ioncube.com/encoder/online_encoder.php It's not free, but it's a LOT cheaper than the Zend Encoder. Regards, Rich -Original Message- From: R B [mailto:rbphp@;hotmail.com] Sent: 31 October 2002 12:57 am To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Free compi

Re: [PHP] Submit hitting enter problem

2002-11-11 Thread Richard Allsebrook
One point nobody seems to have raised about why its important to quote attribute values ... "; ?> will produce the following code in the browser and renders in the browser (testing in ie6) as a text box containing only the word foo (The browser sets the value to foo and things bar is an unkno

RE: [PHP] PHP search engines

2002-11-17 Thread Richard Pijnenburg
I have created my own search engine. It searches in a mysql database, sins all the text from the site is in the database. Richard Pijnenburg Klik-on Internet Solutions > -Original Message- > From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] > Sent: Sunday, November 17, 2002

[PHP] new php version

2002-11-19 Thread Richard Pijnenburg
When will there be a new release of php? With kind regards, Richard Pijnenburg Klik-on Internet Solutions

[PHP] Server-server file copy question

2002-11-20 Thread Richard Fox
Hi, I am using PHP 4.4.2.. I need a function to copy a file from one server to another. The src/dst filenames are relative to the Document Root of the website, but I can build an absolute path name if necessary. I can't use ftp because the ftp ports are closed on these servers. I would like to use

[PHP] Re: ScanMail Message: To Sender, sensitive content found and action taken.

2002-11-22 Thread Richard Allsebrook
John Homes is the name of a rather well endowed porn star :"> and I'm not making this up :-D -- Richard Allsebrook Applications and Web Development "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 003901c291c9$056b0930$7c02a8c0@coconut">news:003901c29

Re: [PHP] PHP as HTML

2002-06-04 Thread Richard Heyes
rsion, add this into your .htaccess file: AddType application/x-httpd-php .html -- Richard Heyes ___ This mail sent using V-webmail - http://www.v-webmail.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >