Re: [PHP] MySql number/string comparing ideas...

2001-07-24 Thread elias
well yes, somehow my field has like: field1 -- 1.2 99.123 500x120 561x112 5.5 so as you see this 'field1' have both normal numeric values and sometimes 'YYYxYYY' values... I thought that MySql can somehow compare with another number and compare correctly x with anoter value

[PHP] session cookies not destroyed

2001-07-24 Thread Brad Wright
Hi all, I was wondering if anyone has had any problems with sessions and IE 5.0 (mac). As I (limitedly) understand it, the session cookie (kept by IE) should be destroyed when I quit IE. It should, therefor, not be there when I restart IE. HOWEVER.. I seem to get very unpredictable behaviour in

[PHP] problem running php

2001-07-24 Thread raj kumar
Hi, Though i am running php on apache server on my win98 machine perfectly, recently i install apache and php on my win2000 server, apache start very well but php is not working, as it seems, though when i run phpinfo out of my server with php.exe it runs but it dosen't show in browser whenever

RE: [PHP] WSIWYG Editor using PHP?

2001-07-24 Thread Joseph Blythe
sorry should be http://activestate.com -Original Message- From: Joseph Blythe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 25 July 2001 4:25 PM To: Chip Cc: [EMAIL PROTECTED] Subject: RE: [PHP] WSIWYG Editor using PHP? You might want to look at Komodo (http://www.activestate.com) I just d

[PHP] Re: WSIWYG Editor using PHP?

2001-07-24 Thread Adrian Ciutureanu
EZEdit editor works 99% on client (JavaScript) and it works only in a IE5+ browser. You'll need ColdFusion only for remote file acces (commands like insert picture). "Bob Clingan" <[EMAIL PROTECTED]> wrote > Does anyone know of any WSIWYG editors that you can plug into a site using > PHP. I recen

RE: [PHP] WSIWYG Editor using PHP?

2001-07-24 Thread Joseph Blythe
You might want to look at Komodo (http://www.activestate.com) I just downloaded the windblows version (there is also Linux version 25mb though) which is a fairly basic text editor with php syntax highlighting (and a few other neat fetures) with a built in debugger which can apparently debug script

RE: [PHP] MySql number/string comparing ideas...

2001-07-24 Thread Lawrence . Sheed
jumping in after the fact here, but sounds like a bad database design to me have you thought about redoing the data a little. eg adding a column x int, y int , iterating through the data, and extracting the values into those columns. using explode to split the original via the x would be a star

[PHP] komodo

2001-07-24 Thread Joseph Blythe
Hey, Is anyone on this list using ActiveState's Komodo (http;//activestate.com) on a windows box to remotely debug php scripts running on a linux server? Is this possible? I have read the documents and don't get it at all! Although local debugging under windows works just fine. If you are using

Re: [PHP] Syntax Eyes

2001-07-24 Thread Morten Winkler Jørgensen
CD> Hey, I need a set of extra eyes: OK. I'll put on my magic X-ray typ-oh-glasses ;) CD> $res_id = mysql_query ("update contacts_data set ( CD> description='$description', CD> data='$data', CD> filename='$input_file_name', CD> filesize='$input_fil

Re: [PHP] new lines in text fields

2001-07-24 Thread Brad Wright
use the 'nl2br' fuction‹ Inserts HTML line breaks before all newlines in a string > From: "Mat Marlow" <[EMAIL PROTECTED]> > Date: Fri, 6 Jul 2001 16:06:58 +0100 > To: [EMAIL PROTECTED] > Subject: [PHP] new lines in text fields > > Hi all, > I am in desperate need for a solution to HTML text fie

Re: [PHP] MySql number/string comparing ideas...

2001-07-24 Thread Brad Wright
I would use something like this: Select * from table where value1 < 500 AND value2 < 100 hope this helps, brad > From: "elias" <[EMAIL PROTECTED]> > Date: Fri, 13 Jul 2001 07:06:26 -0700 > To: [EMAIL PROTECTED] > Subject: [PHP] MySql number/string comparing ideas... > > Hi! > > How is it pos

Re: [PHP] WSIWYG Editor using PHP?

2001-07-24 Thread Chip
Joseph Blythe wrote: > What OS you running Linux? maybe look at http://php.weblogs.com/editors I use FreeBSD. Thanks for the link, looks like Bluefish has made some big improvements since I tried it over a year ago, same with Glimmer . Maybe I'll take another look at those. I usually just use a

[PHP] Problem with iconv() function in php 4.06

2001-07-24 Thread Merlin
I'm install php 4.06 on Solaris 2.7 with MySQL & Interbase. I have libiconv installed in /usr/local. Configure --with-iconv=/usr/local When i'm use , i'm see iconv support enabled When i'm use iconv() function in script: Fatal error: Call to undefined function: iconv() in /bla-bla/bla.php on line

Re: [PHP] "OR" Problems

2001-07-24 Thread David Robley
On Wed, 25 Jul 2001 13:36, J S R wrote: > Shouldn't this work? I did it because I want the link to change to the > "top-alt" class when the certain link is selected. > > but when i do this... they "if" statement is always active even if its > not on the page. > > what am i doing wrong. Several t

Re: [PHP] Help with this-> pointers

2001-07-24 Thread Sean Cazzell
The $foo->bar() syntax is actually object references in PHP, not pointers. See the docs in the php manual regarding objects in PHP. Kind Regards, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] Turning a filehandle into an array

2001-07-24 Thread Christian Reiniger
On Tuesday 24 July 2001 22:17, Gonyou, Austin wrote: > What is the best way to turn a filehandle into an array? Your code is about directory handles... > --snip-- > if ($dr == null) > $dir=opendir("./"); > else > $dir=opendir("$dr"); > > exec("ls $dir", $ls); re-read the

RE: [PHP] "OR" Problems

2001-07-24 Thread SED
Why aren't you using the brackets? if (statement){ } else { } SED -Original Message- From: J S R [mailto:[EMAIL PROTECTED]] Sent: 25. júlí 2001 04:06 To: [EMAIL PROTECTED] Subject: [PHP] "OR" Problems Shouldn't this wo

[PHP] "OR" Problems

2001-07-24 Thread J S R
Shouldn't this work? I did it because I want the link to change to the "top-alt" class when the certain link is selected. but when i do this... they "if" statement is always active even if its not on the page. what am i doing wrong. portfolio"; else echo "portfolio" ?> services"

Re: [PHP] mail priority

2001-07-24 Thread Tyler Longren
I'm not sure exactly what it is, but check the php manual for the mail() function. There's an example in there to set the message priority. Good luck, Tyler On Wed, 25 Jul 2001 10:41:44 -0500 "Jack" <[EMAIL PROTECTED]> wrote: > Dear folks, > I am doing the email using mail() command. I wonder

Re: [PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
Okay, I figured out the @header will actually reset the headers, but it still just prints the raw data to the screen instead of the actual image. How can I fix this? echo ""; if($db->f("bin_data")) { /* This doesn't help... @header ("Content-disposition: filename=".$filename);

RE: Re: [PHP] Capitalize Function ??

2001-07-24 Thread PHP Junkie
True. or what about the Irish.. The Mc***'s or the Mac*'s !! Hmmm? This will be a challenge for sure!! Alexander Skwar <[EMAIL PROTECTED]> wrote: >So sprach »PHP Junkie« am 2001-07-23 um 21:39:07 -0400 : >> I'm taking in first name and last name data into a MySQL db through a >> form. User

[PHP] mail priority

2001-07-24 Thread Jack
Dear folks, I am doing the email using mail() command. I wonder if there is anyone can tell me how do I do the priority attached with the message so that the mail get sent out with different priority status. Any advice will be appreciated. Jack [EMAIL PROTECTED] "Love your enemies, it will drive

RE: [PHP] WSIWYG Editor using PHP?

2001-07-24 Thread Joseph Blythe
What OS you running Linux? maybe look at http://php.weblogs.com/editors -Original Message- From: chip [mailto:chip]On Behalf Of Chip Sent: Wednesday, 25 July 2001 12:57 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] WSIWYG Editor using PHP? Joseph Blythe wrote: > Try PHP Coder Pro! http://

Re: [PHP] cookie help

2001-07-24 Thread McShen
thanks! "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > in order to prevent my visitors from seeing more than one popup in less than > > 120 second, I added this to my php page(index.php) > > -- > > setcookie("popup",1,time()+120)

Re: [PHP]Question about escaping a character

2001-07-24 Thread Chris Cocuzzo
a ha! I'll actually correct you by saying that I need to run stripslashes() when I'm reading the file, not writing it, as I just did, and now it works. :) chris - Original Message - From: Bob Scott <[EMAIL PROTECTED]> To: Chris Cocuzzo <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent:

RE: [PHP] Syntax Eyes

2001-07-24 Thread Matthew Loff
Output control functions will let you buffer the output, and you can decide to send a header instead of flushing the buffer to the client: http://www.php.net/manual/en/ref.outcontrol.php ob_start() & flush() should accomplish this all for you. -Original Message- From: Clayton Dukes [

RE: [PHP] error using imagecreate function

2001-07-24 Thread John Steele
I don't think posting code is required here, the error message tells exactly what is going on. He either needs to have GD support compiled with his version of PHP, or if on windows adding a dl() call to the GD library functions before the call to any GD functions: dl('php_gd.dll') Even b

Re: [PHP] WSIWYG Editor using PHP?

2001-07-24 Thread Chip
Joseph Blythe wrote: > Try PHP Coder Pro! http://www.phpide.de Too bad it's a winblows-only app. :-( Chip > > Regards, > > Joseph. > > -Original Message- > From: Bob Clingan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 25 July 2001 9:18 AM > To: [EMAIL PROTECTED] > Subject: [PHP] WSI

Re: [PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
Nevermind, I got it... Now, how do you reset header information if you need to redclare the header(); ie: Warning: Cannot add header information - headers already sent by (output started at ... -Clayton - Original Message - From: "Clayton Dukes" <[EMAIL PROTECTED]> To: "Php-Gene

[PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
Hey, I need a set of extra eyes: $res_id = mysql_query ("update contacts_data set ( description='$description', data='$data', filename='$input_file_name', filesize='$input_file_size', filetype='$input_file_type' where uid='$u

RE: [PHP] error using imagecreate function

2001-07-24 Thread Kurt Lieber
It would help if you can post the code you're using, rather than just the error message. > -Original Message- > From: venomous [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 5:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] error using imagecreate function > > > Can some one

RE: [PHP] WSIWYG Editor using PHP?

2001-07-24 Thread Joseph Blythe
Try PHP Coder Pro! http://www.phpide.de Regards, Joseph. -Original Message- From: Bob Clingan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 25 July 2001 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] WSIWYG Editor using PHP? Does anyone know of any WSIWYG editors that you can plug into a

Re: [PHP] Determining File Size

2001-07-24 Thread Alnisa Allgood
At 3:39 PM -0700 7/24/01, Bob Scott wrote: >There's a nifty little function called filesize()... > >I've done this before to make human-readable output: > >$my_file = "/path/to/my/file"; > >$file_size = filesize($my_file); > >if ($file_size >= 1073741824) { > $show_filesize = number_format

Re: [PHP] .htaccess and determining if a user is logged in

2001-07-24 Thread Jason Brooke
> I've done further investigation and it seems that if I go with the approach > of looking for a REMOTE_USER value, I'll have to do the following: > > Since Apache only fills out the REMOTE_USER if the file is in a protected > directory, I have to make a symbolic link within a protected directory

RE: [PHP] .htaccess and determining if a user is logged in

2001-07-24 Thread David Hall
I've done further investigation and it seems that if I go with the approach of looking for a REMOTE_USER value, I'll have to do the following: Since Apache only fills out the REMOTE_USER if the file is in a protected directory, I have to make a symbolic link within a protected directory to the no

[PHP] Programming by PHP

2001-07-24 Thread Duy B
Dear all, I have a file HTML as following: NHËP TH¤NG TIN THIÕT BÞ        STT Tªn thiÕt bÞ Sè Seri T×nh tr¹ng biÕn ®éng Ghi chó

[PHP] .htaccess and determining if a user is logged in

2001-07-24 Thread David Hall
I'm using Apache .htaccess to require certain users to log into the system in order to view certain files. However, on one of my php scripts, it's not within the realm of .htaccess protection. How do I determine if the user viewing the page is an authenticated user or not? I want to present these

[PHP] Thank you for your help with Includes

2001-07-24 Thread John Holcomb
Thanks. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] Help With Includes

2001-07-24 Thread David Robley
On Wed, 25 Jul 2001 10:26, John Holcomb wrote: > Help please! > >I'm trying to use an include with my HTML file. > Inside my HTML file I've tried: > > 1) > > > include("/export/home/bayarea.net/htdocs/webclient.php3?id=2"); > > > AND > > 2) > > > include("Re: [PHP] Help With Includes
John, Haven't used this before but if you set id before the include:- $id=2; include("/export/home/bayarea.net/htdocs/webclient.php3"); I'm assuming that you don't have control of the web server - if you do just add html to the list of extensions parsed by php then: $id=2; include("/

[PHP] Help With Includes

Help please! I'm trying to use an include with my HTML file. Inside my HTML file I've tried: 1) include("/export/home/bayarea.net/htdocs/webclient.php3?id=2"); AND 2) include("http://www.bayarea.net/webclient.php3?id=2"

Re: [PHP] cookie help

> in order to prevent my visitors from seeing more than one popup in less than > 120 second, I added this to my php page(index.php) > -- > setcookie("popup",1,time()+120); > if ($popup!=1) > > echo "http://www.peel.net/frames/PMNforce.js>"; > } > - > > When I reload i

[PHP] Help with this-> pointers

Hi everyone, Forgive my ignorance, I'm trying to re-write an old contact databse that didn't work. I have everything written out, but the old code used pointers (ie: this->$db). I'm not familiar with that type of code, how can I convert it? ---snip--- $sql="select distinct site from contacts_d

[PHP] error using imagecreate function

Can some one help me When i try tu use imagecreate i get an fatal error message (shown below) Fatal error: Call to undefined function: imagecreate() in c:\website\draw.php on line 4 does any body know why this error accurs. Thanx Venomous -- PHP General Mailing List (http://www.php.n

Re: [PHP] PHP Execution Functions

> I'm discovering the joys of PHP as supplied by RH on their 7.1 release. > Actually, everything about it is SO much nicer than ASP or pure Perl. (Not > to take anything away from either--PHP's just a LOT easier to get hold of!) > > I'm running PHP as an Apache module (default RedHat installation

[PHP] WSIWYG Editor using PHP?

Does anyone know of any WSIWYG editors that you can plug into a site using PHP. I recently used EZEdit which uses ColdFusion and was wondering if anything similar had been down with PHP. URL for EZEdit: http://www.siteobjects.com/index.cfm?fuseAction=showezedit Thanks. --Bob CC me I'm in dig

Re: [PHP] PHP 4.0.6 on RedHat 6.2: Undefined symbols when usingIMAP?!

> This is driving me nuts. I'm trying to compile PHP 4.0.6 on RedHat 6.2. > After I ran ./configure --with-imap && make && make install, > /etc/rc.d/init.d/httpd configtest tells me: > > Cannot load /usr/local/apache/libexec/libphp4.so into server: > /usr/local/apache/libexec/libphp4.so: undefine

[PHP] Re: Turning a filehandle into an array

Take a look at the file() function. It does exactly this. On Tue, 24 Jul 2001, Gonyou, Austin wrote: > What is the best way to turn a filehandle into an array? > > This is the code I've got now, but I don't like it because it's rather in > efficient for my purposes. I can format this to be much

[PHP] Re: telnetty/phpy/unixy thing

Ahh! Excellent. Thanks for the tip! Ben >Date: Tue, 24 Jul 2001 16:39:56 -0700 (PDT) >From: Philip Hallstrom <[EMAIL PROTECTED]> >To: Ben Bleything <[EMAIL PROTECTED]> >cc: <[EMAIL PROTECTED]> >Subject: Re: telnetty/phpy/unixy thing >MIME-Version: 1.0 > >I don't remember the exact terms, but t

[PHP] Re: telnetty/phpy/unixy thing

I don't remember the exact terms, but telnet won't work unless it's connected to a tty (ie, you're running it from a command prompt). That's why it works when you run it with the PHP binary. If you're intent on using this method, there's a couple of programs to look at: socket, and netcat. Alth

Re: [PHP] need advice on project...

> Does any one have any good code for creating PDF's on the fly with graphic > images? Putting an image in a PDF is trivial: -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] need advice on project...

Project needs: create document on fly to "fax" to 100+ customers document will be queued up twice daily for submission document will have a "logo" branded @ top of page Services used: RedHat 7.1 HylaFax 4.1 PHP 4.0.6 Any insight would be appreciat

[PHP] PHP 4.0.6 on RedHat 6.2: Undefined symbols when using IMAP?!

Hi! This is driving me nuts. I'm trying to compile PHP 4.0.6 on RedHat 6.2. After I ran ./configure --with-imap && make && make install, /etc/rc.d/init.d/httpd configtest tells me: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symb

Re: [PHP] String Comparison

On Tuesday 24 July 2001 23:59, Jason Bell wrote: > if (image/pjpeg == $type) { print "Type is JPG"; }; > you need to put image/jpeg in quotes. Ideally you would also do a safer string comparison than == eg if(!strcmp('image/jpeg',$type)) -- Phil Driscoll -- PHP General Mailing List (http://www

Re: [PHP] String Comparison

oh wait.. I just realize my goof it is treating it like I want to divide image by pjpeg. LMAO *sigh* I guess I should just go home while I'm ahead. haha -Jason - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Tuesday, July 24

[PHP] String Comparison

Hello. I'm trying to compare two strings, and performa function if the are the same. Easy right? I thought so until I tried it... $query = "select type from images where id=$id"; $result = mysql_query($query); $type = mysql_result($result,0,"type"); print $type; if (image/pjpeg == $type) {

Re: [PHP] Determining File Size

There's a nifty little function called filesize()... I've done this before to make human-readable output: $my_file = "/path/to/my/file"; $file_size = filesize($my_file); if ($file_size >= 1073741824) { $show_filesize = number_format(($file_size / 1073741824),2) . " GB"; } elseif ($file

[PHP] cookie help

in order to prevent my visitors from seeing more than one popup in less than 120 second, I added this to my php page(index.php) -- setcookie("popup",1,time()+120); if ($popup!=1) echo "http://www.peel.net/frames/PMNforce.js>"; } - When I reload index.php, i see popu

[PHP] PHP function to extract EXIF data from JPGs?

Does anyone have a PHP function that extracts EXIF data from a JPG image that they can send or post? I read about re-compiling with the EXIF flag, but would rather avoid doing that for a little while. Thanks, Richard Kitamura -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP]Question about escaping a character

Run the string through stripslashes() before you write it to the file... http://www.php.net/manual/en/function.stripslashes.php Cheers -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Tue, 24 Jul 2001, Chris Cocuzzo wrote:

RE: [PHP] Trouble with getimagesize

What does $UPLOADFILE resolve to? getImageSize() didn't support URLs until 4.0.5, so if you're trying to use a URL in PHP3, it won't work. --kurt > -Original Message- > From: Patrick J. Militzer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 9:39 AM > To: Php3 > Subject: [PH

[PHP] grabbing arguments at the command line

I have a commerce program that can send arguments to other programs via the command line. Perl can grab those with $ARGV[0], $ARGV[1]...and so forth. As far as I can tell, PHP can't grab these without a shell script picking them up and explicitly sending them to a PHP script. is there some othe

[PHP]Question about escaping a character

hey- I have a textarea field for an admin page which does allow me to enter in basically anything, including HTML. The information is written to a text-file, from which info is pulled on a different page. When the info is read on that page(this is not the admin page right here)...all the single q

[PHP] Client Machine Name

It's there anyway to find out the client machine name by using php? Thanks! Dominic -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Determining File Size

Hi: I've set-up a library/clearinghouse system that basically allows to add papers and materials to a small member only resource library. I'd like to be able to determine the file's size so that it's displayed next to the item, so that people can gage how long it will take to download items.

[PHP] Propably easy regex question

Hi Could anyone help me with a code snippet that would take a string and add '> ' to it at the start of every new line just as a mail client does when replying to a mail? I.e. I would like this: Hello, How are you? To look like this: > Hello, > > How are you? When it's do

Re: [PHP] Zip Code Locator?

Kurth Bemis wrote: > > At 04:42 PM 7/24/2001, Benjamin Bleything wrote: > > i'm pretty sure that the extra numbers are coord of that town. you know > the long and lat. [== snip, snip ==] FWIW, here is the formula needed, here just a snippet getting the distance between two ZIP's, and, yes, Vir

Re: [PHP] CGI error

On Tuesday 24 July 2001 21:34, Phil Spitler wrote: > I hear what you are saying. I just don't understand why if php.exe is > where I was telling it and permissions were all set up correctly, why it > started working after that was checked. I did nothing else but check it > and if I understand wh

RE: [PHP] Zip Code Locator?

At 04:42 PM 7/24/2001, Benjamin Bleything wrote: i'm pretty sure that the extra numbers are coord of that town. you know the long and lat. ~kurth >Hey, let me know if you figure out what the extra numbers are for... I might >have a use for this at some point. > >Ben > > >From: "Matthew Loff"

RE: [PHP] CGI error

I hear what you are saying. I just don't understand why if php.exe is where I was telling it and permissions were all set up correctly, why it started working after that was checked. I did nothing else but check it and if I understand what you are telling me, it should've given me a 404 error.

RE: [PHP] Zip Code Locator?

Hey, let me know if you figure out what the extra numbers are for... I might have a use for this at some point. Ben >From: "Matthew Loff" <[EMAIL PROTECTED]> >To: "'Ben Bleything'" <[EMAIL PROTECTED]>, "'Vincent P. Cocciolone'" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Subject: RE: [PHP] Z

RE: [PHP] Zip Code Locator?

Ben-- Thanks for pointing that out... I've been looking for info like that for a long time! Much appreciated. --Matt -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 1:23 PM To: Vincent P. Cocciolone Cc: [EMAIL PROTECTED] Subject: Re: [

RE: [PHP] 4.06 install problem

Ben, Christian sorry about the direct email it was totally unintentional I forgot to edit the email I hit reply to. Regards, Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From:

[PHP] Re: php in html-- what gives?

Not all files on a web server are parsed by PHP. Generally, you need to specifically tell the web server to use PHP to parse files based on their extension. I'm assuming you're using Apache as the web server here, so for IIS or iPlanet or whatever this may be different... For Apache, open u

Re: [PHP] php in html-- what gives?

Put it in a .php file. Your webserver probably doesn't interpret PHP in HTML files (as is proper). If it MUST be in a HTML file, you'll have to set up your webserver to interpret php in html files... that process depends on your webserver. Ben On Tue, 24 Jul 2001, CGI GUY wrote: > I'm trying

Re: [PHP] PHP Execution Functions

check http://www.php.net/manual/en/features.safe-mode.php I suspect that the problem is that the files you are trying to run are not owned by the same user as the webserver user... that page should give you details on this. Good luck, Ben On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote: > Hello al

Re: [PHP] 4.06 install problem

On Tuesday 24 July 2001 21:10, Jerry Lake wrote: > I just tried installing PHP 4.06 for PWS > with the installshield installer. > > I didn't seem to work however. I am getting a > 500 Internal server error everytime I try to > load a php file. > > Has anyone else had this problem ? are there any >

[PHP] Turning a filehandle into an array

What is the best way to turn a filehandle into an array? This is the code I've got now, but I don't like it because it's rather in efficient for my purposes. I can format this to be much prettier, but I'm not too concerned about it right now. I'd just like to get the filehandles to work. --

[PHP] 4.06 install problem

I just tried installing PHP 4.06 for PWS with the installshield installer. I didn't seem to work however. I am getting a 500 Internal server error everytime I try to load a php file. Has anyone else had this problem ? are there any quick remedies ? Jerry Lake Interface Engineering Technician E

RE: [PHP] whats wrong

On 24-Jul-2001 Jeremy Morano wrote: > Whats wrong with this? > > > $sql = "INSERT INTO $table_name > (uid,companyUid, first_name, last_name, address, state, zip_code, country, > company, occupation, telephone, fax, email, user_name, password) > SELECT > \"\", \"uid from companyTable WHERE compa

Re: [PHP] highlighting keywords problem

Why not do something that parses the text, and put's tags around the text, and use a stylesheet to highlight it? The problem (that I can find) is that you are using eregi_replace(), which is case-insensitive. You may need to do something like strpos() to find the beginning and ends of the word,

RE: [PHP] Re: Date/Time Query Help

When I run: SELECT * FROM session WHERE session.Date > DATE_SUB(NOW(), INTERVAL 1 HOUR) I get an empty set, but there are entries that satisfy it. When I run: select Date from session order by Date desc limit 10 I get: +-+ | Date| +-+ | 200

Re: [PHP] CGI error

On Tuesday 24 July 2001 20:44, Phil Spitler wrote: > There must be some sort of bug with IIS and PHP. > Everything was set up correctly and I was pointing to the correct the > correct path for the cgi .exe file. However it didn't start working for me > until checking "Check that file exists" in t

[PHP] php-wrapper

I am looking for a php wrapper similar to cgiwrap. I have seen pair.net's php-cgiwrap, but where can I download this script or at least another one with the same functionality? Brian Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: [PHP] bad word filter

On 24-Jul-2001 Ryan Fischer wrote: > > Anyway, here's what I would do: > > function filterWords($str){ > $badwords = array("shit", "fuck", "ass", "bitch"); > for($i=0; $i $str = $eregi_replace("$badwords[$i]", "*", $str); > } > return $str; > } Un-tested: $badpat=jo

RE: [PHP] CGI error

Along with help from Josh Hoover, (*thanks again Josh*), I was able to find a fix for this problem. There must be some sort of bug with IIS and PHP. Everything was set up correctly and I was pointing to the correct the correct path for the cgi .exe file. However it didn't start working for me un

Re: [PHP] Re: Date/Time Query Help

On Tue, 24 Jul 2001 15:23:10 -0400, [EMAIL PROTECTED] (Ryan Shrout) wrote: >WHERE session.Date > DATE_SUB(NOW(), INTERVAL 1 HOUR) is equal to: > >WHERE 2001-07-24 15:03:24 > SUBTRACTION( 2001-07-24 15:30:21, 00:01:00) = >WHERE 2001-07-24 15:03:24 > 2001-07-24 14:30:21 i just tested on my box (d

Re: [PHP] mailing in batches

So sprach »Justin Farnsworth« am 2001-07-24 um 04:52:57 -0400 : > > Handling all those bounces manually will be a mess. > > From: Don Read <[EMAIL PROTECTED]>: > No matter which MTA you use. I'd have to disagree slightly here. Using qmail as your MTA would bless you with the VERP (Variable Env

Re: [PHP] Destroy object

My guess would be you can unset() it... but, hey.. it's a guess. On Mon, 23 Jul 2001, ROsen wrote: > Hi, > how can I destroy an object created with "new" ? > > Thanks, > Rosen > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional

RE: [PHP] Re: Date/Time Query Help

Heh. :) So, does anyone know what I am doing wrong? Ryan Shrout -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 3:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Date/Time Query Help On Tue, 24 Jul 2001 15:23:10 -0400, [EMAIL PR

RE: [PHP] URGENT... NEED HELP!!!

> -Original Message- > From: Kyle Smith [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 9:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] URGENT... NEED HELP!!! > > > What is wrong with this code? > (note: the variables $email and $comments are sent from > another page but i ge

[PHP] telnetty/phpy/unixy thing

Hey all... I tried sending this earlier... accidentally sent it to [EMAIL PROTECTED], then tried bouncing it to the write address... anyway, apologies if it didn't work correctly. Anyhoo... I'm trying to get a piece of information from a server in the field that responds to a certain command wit

Re: [PHP] Re: Date/Time Query Help

On Tue, 24 Jul 2001 15:23:10 -0400, [EMAIL PROTECTED] (Ryan Shrout) wrote: >Think of it this way: > >WHERE session.Date > DATE_SUB(NOW(), INTERVAL 1 HOUR) is equal to: > >WHERE 2001-07-24 15:03:24 > SUBTRACTION( 2001-07-24 15:30:21, 00:01:00) = >WHERE 2001-07-24 15:03:24 > 2001-07-24 14:30:21 >

[PHP] php in html-- what gives?

I'm trying to test the following: I have created a simple cookie script: I have placed it in an html page, at the very top (no spaces, lines, etc.), and have left no lines/spaces between the '?>' and '' tags. Yet the script does not execute (nor does it return an error of any kind). What gives

RE: [PHP] URGENT... NEED HELP!!!

On 25-Jul-2001 Kyle Smith wrote: > What is wrong with this code? > (note: the variables $email and $comments are sent from another page but i > get the error message from this page saying "Warning: Could not deliver > email. You are over quota. in ^^ Ask the admin if he/

[PHP] Re: bad word filter

That is a very good idea. I had never even thought of doing it that way. Perhaps I will talk with them about it. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: "Philip Hallstrom" <[EMAIL PROTECTED]> To: "Tyler Longren" <[EMAIL

[PHP] Re: bad word filter

I missed the first part of this, but I'm assuming it's for a message board of some sort? Why not implement a "big brother" system where other posters can indicate that the post contains inappropriate content. If enough people do this, then just kill the post, and record the author. If enough of

[PHP] Can you spare 6 seconds?

May I have your permission to send you a brief email about my web site? I am not a "spammer", and only want to send this information to you if you are willing to accept it. If you will allow me the privilege of sending you my address, just reply with "YES" in the subject field. If you are not

Re: [PHP] bad word filter

I waste my time because the clients pay me to. ;-) They get what they want. I told them there would very easy ways around the filters. but they insisted. Thanks! Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: "Ryan Fische

Re: [PHP] bad word filter

You wrote: > I've been reading the "Profanity Filter" thread in the list archives but > haven't found anything real helpful. Here's my code so far, this of course > won't work. > function filterWords($string, &$result) { > $badwords="shit, fuck, ass, bitch"; > $word=explode(", ",

  1   2   >