RE: [PHP] Displaying Results

2002-04-16 Thread Jason Soza
I used this workaround - if you see something inherently wrong with it, let me know: printf("%s (%s)",$by,$by,$$by,$$by,$total) So that the output goes like http://www.mydomain.net/index.asp?type=type1&type1=value";>type 1 (total#) And that gets passed to this: $type = $HTTP_GET_VARS["type"]; $

[PHP] importing .dat SQL Data into mySQL

2002-04-16 Thread Thomas Edison Jr.
Hi, I have a .dat file.. with some data like this : 02001IN00100213200207120020412200204122002041710002002041720020417 02002IN00100213200207220020415200204152002041810002002041820020418 02003IN00100213200207320020416200204162002041910002002041920020419

RE: [PHP] Displaying Results

2002-04-16 Thread Martin Towell
I think you can get everything after the ? in the URL with $QUERY_STRING but I think that it would be a bit dangerous to just accept what's passed, I think some checking should be done before you use $QUERY_STRING as is -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Displaying Results

2002-04-16 Thread Jason Wong
On Wednesday 17 April 2002 08:21, Jason Soza wrote: > Sorry, I just noticed that the count() function will do at least the > first part of my question, i.e. SELECT year, COUNT(*) FROM cars GROUP > BY year > > But the second part still has me a bit stumped. I know that you can > pass a variable usi

Re: [PHP] Re: what do i put in .htaccesss to achieve this

2002-04-16 Thread olinux
check this out - works like a charm http://www.phpbuilder.com/columns/tim2526.php3 Pop this in your root htaccess ForceType application/x-httpd-php3 Create file "users" (no extension) In the users file explode() $REQUEST_URI or $PATH_INFO to get your variables for the script. olinux

Re: [PHP] Re: cannot load mysql extension, php config ???

2002-04-16 Thread Daniel Negron/KBE
--with-mysql=shared/usr is listed in teh configure command. you can see @ www.flost.net/info.php Thank You <><><><><><><><><><><><><><><><> Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc. 954.346.4900x122 http://www.kbelectronics.com <><><><><><><><><><><><><><

[PHP] Re: cannot load mysql extension, php config ???

2002-04-16 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > Hope in the right place ? Just finished loading RH7.2 Apache 1.3.23, M= > ySQL > 3.23.49a, and PHP 4.1.2 I have gotten this to work properly on W2K, II= > S4 & > 5 with no problems. To start off ... all of these are working

[PHP] cannot load mysql extension, php config ???

2002-04-16 Thread Daniel Negron/KBE
Hi, Hope in the right place ? Just finished loading RH7.2 Apache 1.3.23, MySQL 3.23.49a, and PHP 4.1.2 I have gotten this to work properly on W2K, IIS4 & 5 with no problems. To start off ... all of these are working properly individually. PHP works fine on Apache MySQL works fine by itself,

RE: [PHP] Re: Need row number from database select

2002-04-16 Thread Joel Caturia
I have done something like this in the past for a document management system. Everything was assigned a number, so to find a specific document you simply referenced "2.3.12.31.2". It was very simply to create the main index dynamically from this system. (this is the sort of index you would find

RE: [PHP] POST form File Upload Progress Bar?

2002-04-16 Thread Alok K. Dhir
Here's a quick-and-dirty working example: --- var waitwin; function openWaitWin() { waitwin=window.open("wait.html","wait_window","width=250,height=220,menu bar=no,statusbar=no,toolbar=no"); } function closeWaitWin() { if (waitwin!=null) { waitwin.close(); } } --

Re: [PHP] Re: Cross DB application

2002-04-16 Thread Manuel Lemos
Hello, Richard Ellerbrock wrote: > >> I'm planning to write a database application for MySQL, and then port > >> it > > to > >> PostrgeSQL. > >> Is there any library or class that could help me to write/maintain just > > one > >> source code for both MySQL and PostgreSQL ? > > > > I think your b

[PHP] How can I change directories after fsockopen?

2002-04-16 Thread John Kelly
I have multiple domains hosted on a server. When I fsockopen to one of them I end up in the document root of another one. Is there a way to specify the directory one ends up in after establishing an fsockopen connection OR issuing a command via fput to CD to a different system path after connectin

Re: [PHP] POST form File Upload Progress Bar?

2002-04-16 Thread CompMan86
Hi, Thanks for your response =) I don't know much about javascript, so if you could show me an example that would be great. "Weston Houghton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > My cheap trick around this is to have an onClick event on the form s

Re: [PHP] POST form File Upload Progress Bar?

2002-04-16 Thread Weston Houghton
Let me isolate it out of the project tonight, and I'll try to post a simple example for everyone. Wes > could you give us some samples im also searching for that. thanks. > > Regards, > mike > >> >> My cheap trick around this is to have an onClick event on the form submit >> button that bri

Re: [PHP] POST form File Upload Progress Bar?

2002-04-16 Thread Michael P. Carel
could you give us some samples im also searching for that. thanks. Regards, mike > > My cheap trick around this is to have an onClick event on the form submit > button that brings up a small window with a progress note in it, and an > animated gif of a prgress bar. > > As the page does not unLoa

Re: [PHP] Server-side imagemaps?

2002-04-16 Thread Hugh Bothwell
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > on 4/16/02 3:26 PM, Uchendu Nwachukwu at [EMAIL PROTECTED] wrote: > >> Is there anyway I can use server-side imagemaps with PHP? I want to build an >> application that lets people click on a pictur

Re: [PHP] POST form File Upload Progress Bar?

2002-04-16 Thread Weston Houghton
My cheap trick around this is to have an onClick event on the form submit button that brings up a small window with a progress note in it, and an animated gif of a prgress bar. As the page does not unLoad until the upload is finished, I use the unLoad event of the body tag to close that progress

Re: [PHP] Using one submit button

2002-04-16 Thread Jennifer Downey
Do you mean something like this? if($update) { $iprice = $price["price"]; $query = "UPDATE {$config["prefix"]}_shop SET price = $iprice where uid = {$session["uid"]} AND id = $id"; $ret = mysql_query($query); } "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

[PHP] POST form File Upload Progress Bar?

2002-04-16 Thread SpamSucks86
I have a POST form with a file upload field. Users will be uploading pictures. What would be the most professional way to tell them their file is uploading and to please wait? Since the action page won't execute until after the image is done uploading, is there a way to have an intermediary page l

Re: [PHP] Displaying Results

2002-04-16 Thread Richard Emery
You're part way there: SELECT COUNT(matches) FROM table GROUP BY matches; - Original Message - From: Jason Soza <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 5:49 PM Subject: [PHP] Displaying Results Suppose I want a script that goes into a table, looks up a

[PHP] Re: Displaying Results

2002-04-16 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Suppose I want a script that goes into a table, looks up all records in > a given field, and groups and displays the results like so: > match1 (1) > match2 (5) > match3 (6) > > So basically it looked at the field 'matches' and found a t

RE: [PHP] Using one submit button

2002-04-16 Thread Martin Towell
user price[] as the name you'll also need to pass the ids as $id[] so you know which one you're updating -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 11:51 AM To: [EMAIL PROTECTED] Subject: [PHP] Using one submit button Hi all, I t

[PHP] Using one submit button

2002-04-16 Thread Jennifer Downey
Hi all, I thought I was going to give php a break today but I can't it's too adicting. I am having a little problem with a submit button in which it is suppose to update records from a form. Here is the code ec

[PHP] Re: Definitive answer for large scale registration/authentication

2002-04-16 Thread Brad Hubbard
On Tue, 16 Apr 2002 23:18, Michael Kimsal did align ASCII characters thusly: > I guess the first thing you should help us with is defining "high > volume". :) 1/sec? 100 sec? Actually, this will probably have less > impact on archictecture than hardware, but I'm always curious as to what > 'hi

[PHP] Re: How do I check if a remote file exists?

2002-04-16 Thread John Kelly
"John Kelly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How do I check if a remote file exists that is in a directory protected by > an .htaccess file? > I should have added that this is the code I have tried without success ... $url = "www.domain.com"; $

[PHP] How do I check if a remote file exists?

2002-04-16 Thread John Kelly
How do I check if a remote file exists that is in a directory protected by an .htaccess file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Perl in PHP?

2002-04-16 Thread Joshua b. Jore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I didn't see anything in the archives on this (or the search mechanism didn't find the messages). Are perl objects accessible from within PHP? I'd really like to save the previous six months work of developing some objects. I know it's not impossible,

Re: [PHP] Displaying Results

2002-04-16 Thread Jason Soza
Sorry, I just noticed that the count() function will do at least the first part of my question, i.e. SELECT year, COUNT(*) FROM cars GROUP BY year But the second part still has me a bit stumped. I know that you can pass a variable using something like script.php?year=1991, but doesn't that as

Re: [PHP] Signing text in PHP using GPG

2002-04-16 Thread William X Walsh
Tuesday, April 16, 2002, 4:07:02 PM, William X Walsh wrote: > I have a set of data, that needs to be GPG signed before sending the > data to a remote server. > Has anyone already done something like this in PHP, that I could use > for reference? If this is not possible, I have written a perl s

[PHP] Signing text in PHP using GPG

2002-04-16 Thread William X Walsh
I have a set of data, that needs to be GPG signed before sending the data to a remote server. Has anyone already done something like this in PHP, that I could use for reference? -- Best regards, William X Walsh <[EMAIL PROTECTED]> -- -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] array of checkboxes?

2002-04-16 Thread Jeff D. Hamann
I'm trying to apply/update a database using a form on a previous page that uses checkboxes instead of edit fields, and I'm having trouble getting the correct values from the checkboxes. My form: printf( "" ); if( $row["approved"] == 1 ) { printf( "" ); } else { printf( "" );

Re: [PHP] Problem with file()

2002-04-16 Thread Justin Blake
Zambra - Michael wrote: > > What kind of line ending does the file() function include in the array > elements. I'm having problem with file() combined with implode() when > reading in complete HTML files in a Windows environment. After parsing these > resulting strings I get tons of white lines (?

[PHP] Displaying Results

2002-04-16 Thread Jason Soza
Suppose I want a script that goes into a table, looks up all records in a given field, and groups and displays the results like so: match1 (1) match2 (5) match3 (6) So basically it looked at the field 'matches' and found a total of 12 records, 1 record for match1, 5 records for match2, and 6 re

[PHP] SQL Help

2002-04-16 Thread De Necker Henri
Hi There. I want to ceate a query that deletes the duplicates for a certain attributes.The table consits of a company id and a course. If a company id and a certain course appears more than once it must be deleted Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Re: Storing images in MySql

2002-04-16 Thread Michael Kimsal
Mike Fifield wrote: > After posting my question about performance earlier this morning it was > suggested that I also store the jpg's in the database, (thanks Maxim). I did > a little research and got a lot of conflicting information on weather this > is a good idea or not. For example the followi

RE: [PHP] Session Variables

2002-04-16 Thread .ben
I have a function that i call at the beginning of each page (well, those that require user auth). checkLogin() this checks for a positive integer value in a session variable called intUserID $_SESSION['intUserID']; is that isn't a positive integer, i redirect to the login page.

[PHP] Session Variables

2002-04-16 Thread Phil Powell
I understand the concept of session variables, so I want to know the best methodology of approaching this: 1) HTML redirect to PHP page 2) PHP page looks for session a) If found, show some stuff b) If not found, prompt user for username and password 3) If no session, prompt user for username

RE: [PHP] Faking a form POST

2002-04-16 Thread .ben
Thanks to everyone who helped out with this question, got it all working nicely now. Will credit you all on finished site. Cheers, .ben > -Original Message- > From: Steve Dix [mailto:[EMAIL PROTECTED]] > Sent: 16 April 2002 12:26 > To: .ben > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP]

Re: [PHP] Storing images in MySql

2002-04-16 Thread Richard Archer
At 12:48 PM -0700 16/4/02, Fifield, Mike wrote: >Is anyone out there running a website that stores images as binary data in >MySql that could comment on this? I only store the images in the database when there is an admin interface which allows new images to be uploaded. If these images were st

[PHP] dynamic array in objects??

2002-04-16 Thread Giovanni Lenzi
How can i build a dynamic array as a member of a class?? I have the class SELECT and i want its attribute "VALUES" to be set like an array. It is possible?? Array would be built in the constructor of the class. This is my example: class Select { // ~ options separator^ v

Re: [PHP] Re: superglobal var names can't access object methods?

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 04:08 PM, Uchendu Nwachukwu wrote: > I may be wrong on this one, and someone please correct me if I am, but I > believe you can't store objects in a session variable. That might be the > problem. So then I should store the objects in a regular variable, and then

[PHP] support

2002-04-16 Thread yijun ren
We got a problem when php4.2 work on japanese windows98 system. In Php code we pass a japanese string to COM object,but COM object get some garbage.look like it has been encoded in Php side or some other reasons.Any idea? Thanks Jim __

[PHP] RE: Storing images in MySql

2002-04-16 Thread Maxim Maletsky
I personally think, storing images in DB (any kind of RDBMS that supports it only because other DBs do) is: *Good* because makes it portable and easily administered, *Bad* because obviously, more flexible things get - less performance you achieve. In my opinion, unless you have no *real* need

[PHP] Sessions and transferring between sessions?

2002-04-16 Thread Devin Atencio
I was wondering if I had a session going under a non-ssl and then have the URL go to a secure session, the session Id changes, is there a way to keep the same session id so i don't loose any data in the non-ssl session? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Problem with file()

2002-04-16 Thread Zambra - Michael
What kind of line ending does the file() function include in the array elements. I'm having problem with file() combined with implode() when reading in complete HTML files in a Windows environment. After parsing these resulting strings I get tons of white lines (??). I'd appreciate any advice.

RE: [PHP] Checking for TTF in a script

2002-04-16 Thread Matthew Walker
Use this: if (function_exists("imagettftext")) { //TTF Exists } else { //TTF Doesn't exist } Matthew Walker Senior Software Engineer ePliant Marketing -Original Message- From: Jackson Miller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 12:42 PM To: [EMAIL

[PHP] Re: superglobal var names can't access object methods?

2002-04-16 Thread Uchendu Nwachukwu
I may be wrong on this one, and someone please correct me if I am, but I believe you can't store objects in a session variable. That might be the problem. -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com "Erik Price" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

[PHP] Re: Storing images in MySql

2002-04-16 Thread Julio Nobrega
From the mysql manual (http://www.mysql.com/doc/T/i/Tips.html): "When using a normal Web server setup, images should be stored as files. That is, store only a file reference in the database. The main reason for this is that a normal Web server is much better at caching files than database conte

Re: [PHP] Server-side imagemaps?

2002-04-16 Thread Leif K-Brooks
on 4/16/02 3:26 PM, Uchendu Nwachukwu at [EMAIL PROTECTED] wrote: Is there anyway I can use server-side imagemaps with PHP? I want to build an application that lets people click on a picture, and have the coordinates of the click on the picture be stored in a database. I've searched www.php.net a

[PHP] Storing images in MySql

2002-04-16 Thread Fifield, Mike
After posting my question about performance earlier this morning it was suggested that I also store the jpg's in the database, (thanks Maxim). I did a little research and got a lot of conflicting information on weather this is a good idea or not. For example the following url states that you suffe

RE: [PHP] attachment filename

2002-04-16 Thread James E. Hicks III
$mime .= "Content-type: application/octet-stream;\r\n"; $mime .= "Content-type: application/octet-stream; name=\"$attach_name\"\r\n"; -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 2:45 PM To: [EMAIL PROTECTED] Subject: [PHP] attachment fil

[PHP] config mail

2002-04-16 Thread Gav
Our server is currently running on Mac OS X and eventually we will need to use the mail function. Can anyone give me an idea or a link in very simple terms how to set the server up please? What files need to be configured? Is the mail function quite straight forward then? Many thanks Gav -

[PHP] superglobal var names can't access object methods?

2002-04-16 Thread Erik Price
I am getting the following error message: Fatal error: Call to undefined function: add_folderfile() in /home/eprice/public_html/filerequest.php on line 756 I have the following code, line 756 is the line with the "if" test: // add the $ff_instance to the Print Request Folder using method add_

[PHP] Server-side imagemaps?

2002-04-16 Thread Uchendu Nwachukwu
Is there anyway I can use server-side imagemaps with PHP? I want to build an application that lets people click on a picture, and have the coordinates of the click on the picture be stored in a database. I've searched www.php.net and it makes no mention of it. TIA. -- Uchendu Nwachukwu newsreply

[PHP] Re: what do i put in .htaccesss to achieve this

2002-04-16 Thread Uchendu Nwachukwu
Try this: RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} whatever.yoursite.com RewriteCond %{REQUEST_URI} !path/to/desination/folder/ RewriteRule ^(.*)$ path/to/destination/folder/$1 [L] That should do it. -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
If no one in this forum can answer this, can someone point me in the direction of list or other resource that may be able to provide some input? Thanks in advance. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 9:22 AM To: [EMAIL PROTEC

Re: [PHP] Problem grabbing value of session

2002-04-16 Thread Jeff Lewis
I've decided to use the _SESSION method instead and it works just fine :) So...thanks for suggesting that method, as it does look neater in the code as well. Jeff - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Jeff Lewis" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent:

RE: [PHP] session_is_registered

2002-04-16 Thread Johnson, Kirk
With register_globals off, try this: Kirk > -Original Message- > From: Norman Zhang [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002 12:15 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] session_is_registered > > > Sorry. I'm still getting empty output. Are there some glo

Re: [PHP] Problem grabbing value of session

2002-04-16 Thread Kevin Stone
I think the problem is one of scope.. though I have never tried starting a session inside a function so I really don't know how it operates. But if you do something like.. // function is_valid($user, $privs) { // validate user.. if ($valid) {return TRUE;} } if (is_va

[PHP] attachment filename

2002-04-16 Thread ROBERT MCPEAK
The code below very nicely sends an email attachment, but, the name of the attachment appears as "Part.000," not the original filename of the attached file. How do I set the filename of the attachment? I'd like it to be something nice, like "yourfileattachment.txt" or something, not "Part.000."

Re: [PHP] Problem grabbing value of session

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 02:40 PM, Jeff Lewis wrote: > Right after I call those I try a is_registered and it showed that these > registered correctly. I removed that code and added a call to another > function: redirectinternal(); You can avoid the whole "session_register()" business if

[PHP] Problem grabbing value of session

2002-04-16 Thread Jeff Lewis
I am in a function called Login2 in which I call the following: session_start(); session_register("valid_user"); session_register("privs"); valid_user contain a name - Jim privs contains a number -1 Right after I call those I try a is_registered and it showed that these registered correctly. I

[PHP] Checking for TTF in a script

2002-04-16 Thread Jackson Miller
I am working on am application that is using the GD library to create the navigation menu. I would like to check for TTF support in a script before I declare the image size. The reason for this is so I can create width based on the length of the string if TTF is enabled and take a guess if TTF

[PHP] unlink security problem

2002-04-16 Thread Patrick Cossette
I'm running PHP 4.1.2 as an Apache module (Apache 1.3.24) under AIX 4.3.3. My problem has been covered in Bug #13447 but I still have it and the bug was under Windows 2000 but I'm running AIX. It's a security problem with "unlink". My site runs as the user "web" but different parts of my site are

Re: [PHP] session_is_registered

2002-04-16 Thread Norman Zhang
Sorry. I'm still getting empty output. Are there some global variables that I must set in php.ini? phpinfo() tells me that I have register_globals off Session Support enabled session.auto_startoff session.cache_limiter nocache session.cookie_secure off Regards, Norman "Oliver Be

Re: [PHP] format date

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 01:35 PM, Alex wrote: > I just started with php and am trying to display a query result for a > date > field as mm/dd/ instead of mysql's -mm-dd. I looked through > some > books and found the use of DATE_FORMAT to covert the dates. Is there any > othe

[PHP] Screen Scraping using PHP

2002-04-16 Thread Phil Powell
I am having to do a remote URL screen scrape using PHP in "safe-mode". What do you recommend I do? Thanx Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] format date

2002-04-16 Thread Robert Cummings
Change your query, mySQL provides some powerful formatting functions for doing exactly what you want: SELECT id, fname, lname, DATE_FORMAT( date, '%m/%d/%Y' ) FROM tablename where date >= '$year_1-month_1-$day_1-' AND date <= '$year_2-$month_2-$day_2'; Che

RE: [PHP] format date

2002-04-16 Thread Steve Bradwell
Hey Alex, I use a short function like this because the date is really just a string you can pick it apart and re-arrange it. function Format_Date($Date){ return $Date = ((substr($Date,6,2))."-".(substr($Date,0,2))."-".(substr($Date,3,2))); } Steve. -Original Message- From: Alex [mailto

[PHP] format date

2002-04-16 Thread Alex
I just started with php and am trying to display a query result for a date field as mm/dd/ instead of mysql's -mm-dd. I looked through some books and found the use of DATE_FORMAT to covert the dates. Is there any other way to format the date? Thanks My script looks like this: $mont

Re: [PHP] PHTML - anyone know anything about this?

2002-04-16 Thread Robert Cummings
Phil Powell wrote: > > Anyone out there ever work with .phtml files?? Especially in trying to > include CGI scripts into .phtml files? I use the .phtml extension vs .php ... If the scripts aren't working properly make sure the file extension is included in you Apache configuration as a PHP file

RE: [PHP] PHP browser uploads - server behind firewall

2002-04-16 Thread jon
That makes sense... so lets says that my machine is behind a firewall with a 192.168.x.x address. I can access the machine no problem via apache... but if I try to upload at anything other than the 192.168.x.x IP address from within the firewall, it fails... presumably, because it's looking for t

[PHP] Re: Performance question

2002-04-16 Thread Maxim Maletsky
why not to keep both names and the pictures themselves into a database? Loggin in is not really that big deal, I think it is worth portability - you'll be changing this someday (as you get too many requests or too many pictures to request). Start from now. Performance will not change too much

[PHP] Re: PHP & HTML Issue

2002-04-16 Thread Maxim Maletsky
Because, as you already can imagine, different browsers "think" different. First of all, as long as I remember, Nutscrape does not react on " disabled" parameter in form objects. This might have been changed though. Anyway, to be very sure - do not count on these values to be sent to you, if y

Re: [PHP] PHP browser uploads = PASV?

2002-04-16 Thread Andrew Brampton
If you are uploading a file with php then you are using a http connection NOT ftp... so PASV doesn't come into it at all. PASV is a FTP command not http. and if you did try and compare them, then http is passive (ie no connections are tried to be made to the user with the browser). Andrew -

[PHP] PHTML - anyone know anything about this?

2002-04-16 Thread Phil Powell
Anyone out there ever work with .phtml files?? Especially in trying to include CGI scripts into .phtml files? Need some help here if possible Thanx Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP browser uploads = PASV?

2002-04-16 Thread jon
Hey... does anyone know if browser uploads via PHP are a PASV connection? If so... is there a way to accept PASV connections behind a firewall, like in Wu-FTP? Thanks... -- jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] formatting form input

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 11:56 AM, ROBERT MCPEAK wrote: > How do I use PHP to remove certain characters from form input? > Specifically, how to I ensure that form data does not contain any > newline/linebreak or tab characters? you can hack it yourself with str_replace(). Erik

Re: [PHP] Conditions within a function

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 11:32 AM, Scott St. John wrote: > What I am also discovering is I have to use die; to halt execution for > certain things. An example, I check to see if a user is still active in > the system, if they are not I use a header to redirect them to a page > that > te

Re: [PHP] Please Help

2002-04-16 Thread Steve Cayford
Check out the bottom of each message... -Steve On Tuesday, April 16, 2002, at 10:43 AM, Omland Christopher m wrote: > Can anyone tell me how to unsubscribe. There is just a bit too much > volume > for me. > Thanks. > -Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubs

[PHP] formatting form input

2002-04-16 Thread ROBERT MCPEAK
How do I use PHP to remove certain characters from form input? Specifically, how to I ensure that form data does not contain any newline/linebreak or tab characters? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Conditions within a function

2002-04-16 Thread Scott St. John
On Tue, 16 Apr 2002, Erik Price wrote: > First of all, try organizing your code using whitespace. Here is an > example of the code, formatted to be a bit easier to read: Thank you, that was Pine doing some nice formatting tricks of it's own. > Now, my first question, is why do you have $userI

[PHP] Please Help

2002-04-16 Thread Omland Christopher m
Can anyone tell me how to unsubscribe. There is just a bit too much volume for me. Thanks. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Accounting and Ledger??

2002-04-16 Thread José León Serna
Hello: Do you know of any accounting/ledger package made with PHP?, I know one made in perl and a semi-port to php, but I want to know if there is another. Best Regards. QaDRAM Studio, RAD Development for the WEB http://studio.qadram.com --

RE: [PHP] Performance question

2002-04-16 Thread James E. Hicks III
I think you've got the best set up already. I have a PDF library that I do a similar thing with. To update the site I just dump the new PDF's into their directory and the users reload the page to see the new content. James -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]]

[PHP] Re: Performance question

2002-04-16 Thread John Lim
I suggest using a html caching solution. Generate your html once, and store it in a file. I like http://0x00.org/php/phpCache/ "Mike Fifield" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok I have a performance question. I run a wallpaper site; this is the u

Re: [PHP] Still having session problems

2002-04-16 Thread Patrick Aland
phpinfo() in that file reports it as off (when I haven't turned it on for testing the methods in my original email). On Tue, Apr 16, 2002 at 09:12:47AM -0600, Johnson, Kirk wrote: > Are you absolutely positive register_globals is off? Is there an .htaccess > file laying around someplace that ove

[PHP] Performance question

2002-04-16 Thread Fifield, Mike
Ok I have a performance question. I run a wallpaper site; this is the url to the main gallery page http://www.cognitivedistortion.com/php/gal.php The page does a dir read and lists all pictures found in each directory, it does this every time the p

RE: [PHP] Still having session problems

2002-04-16 Thread Johnson, Kirk
Are you absolutely positive register_globals is off? Is there an .htaccess file laying around someplace that overrides php.ini and turns it on? Sorry, I don't have any other ideas. Kirk > -Original Message- > From: Patrick Aland [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002

[PHP] Re: smtp relay problem

2002-04-16 Thread phplists
Sounds like an MTA issue. You should find out which MTA it is and look at their support site.. Sendmail has a feature that will rewrite the domain on all outgoing addresses unless the user sending out is a 'trusted' user.. That could be the problem you are experiencing. You should certainly have

[PHP] formatting form input/sql insert

2002-04-16 Thread ROBERT MCPEAK
I'm collecting data with from textarea inputs. The user may enter a linebreak with the return key, or a tab, etc. I then write this data to a mySQL table, formatting the data with addslashes(). I then output the data to a text file using a "select into file" statement. When I import the file i

[PHP] smtp relay problem

2002-04-16 Thread Kris Vose
I am having problems with my mail server. šWhen I use the mail function in php it resets the domain of the from: address when the script is executed. For example: when the from: address is set to [EMAIL PROTECTED] it resets it to the mail servers domain [EMAIL PROTECTED] šI believe this is due

[PHP] PHP & HTML Issue

2002-04-16 Thread Boaz Yahav
> Hi > > I'm having a problem that is taking me out of my mind. > I have a DISABLED field in my HTML ( tag) and for some reason, > it's value is not passed back to the script after submission. > If I remove the DISABLED word it's ok. > > The funny issue is that with Netscape it's ok but IE is a

[PHP] unset() on arrays

2002-04-16 Thread Erik Price
Just a quick question -- the man page for unset() doesn't mention anything about unsetting arrays, but does it work the same way? I have this if/elseif/else statement (pseudocode): $error_msgs = array(); if (there is a problem) { $error_msgs[] = "error message 1"; } elseif (there is a diffe

Re: [PHP] Re: Cross DB application

2002-04-16 Thread John Lim
Thanks Richard, ADOdb is also dual licensed under a more open license - BSD too. You might also find interesting this article: http://php.weblogs.com/portable_sql Regards, John Lim "Richard Ellerbrock" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tue,

RE: [PHP] Faking a form POST

2002-04-16 Thread .ben
Erik, thanks for this. Works great, .b > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: 16 April 2002 14:30 > To: [EMAIL PROTECTED] > Cc: PHP > Subject: Re: [PHP] Faking a form POST > > > > On Monday, April 15, 2002, at 09:36 PM, .ben wrote: > > > Hi. D

[PHP] Need to read CGI script in TCL, evaluate and display contents in Safe-Mode

2002-04-16 Thread Phil Powell
The server is UNIX-based server for Linux running PHP in safe mode. I have a CGI script I wrote in TCL, menubar.cgi, that I have to include into a PHP file on the docroot, feedback.phtml. How do I include the CGI script and display the evaluated contents (again, it's in TCL, not PHP not even in

Re: [PHP] viewing get/post variables

2002-04-16 Thread Martín Marqués
On Mar 16 Abr 2002 11:33, Steve Edberg wrote: > You might be thinking of the register_globals parameter here, instead > of safe_mode: > > http://php.he.net/manual/en/configuration.php#ini.register-globals > > It is, in general best to keep this off so that you can explicitly > validate user in

RE: [PHP] Re: Cross DB application

2002-04-16 Thread Richard Ellerbrock
On Tue, 16 Apr 2002 01:48:34 +0200, James Cox wrote: >> Hello ! >> I'm planning to write a database application for MySQL, and then port >> it > to >> PostrgeSQL. >> Is there any library or class that could help me to write/maintain just > one >> source code for both MySQL and PostgreSQL ? > >

[PHP] Re : Ereg ()

2002-04-16 Thread DrouetL
thanks to all of you for you help. regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >