[PHP-CVS] cvs: php4 /pear/Cache Function.php

2001-03-01 Thread Sebastian Bergmann
sbergmann Fri Mar 2 00:11:18 2001 EDT Modified files: /php4/pear/CacheFunction.php Log: Fixed typo. Index: php4/pear/Cache/Function.php diff -u php4/pear/Cache/Function.php:1.1 php4/pear/Cache/Function.php:1.2 --- php4/pear/Cache/Function.php:1.1

[PHP] PHP's connection handling

2001-03-01 Thread Milan Mlynarcik
I'm writing download counter application. I would like to add a speciall functio0nality that determines wheater download was sucess or not. The only one solution how to do it I found is PHP's connection handling. I'm getting connection status via connection_status() function which is call in

Re: [PHP] HREFs that can't be

2001-03-01 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from CC Zona <[EMAIL PROTECTED]> Thu, 01 Mar 2001 20:05:55 -0800 > > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] ("Boget, Chris") wrote: > > > Also, how would I set the (previously GET) vars up as session >

[PHP] [Fwd: Problem in renaming file]

2001-03-01 Thread Sebastian Bergmann
Carrie KL Tam wrote: > Hi Sebastian, > > Don't understand why the following code keep telling me the error "Rename > failed (Invalid argument)": > $forig = 'd:/pict/orig/YI3 ?a.3WOHF'; > $fcopy = 'd:/pict/copy/test1'; > if (rename($sourcepath,$ftppath)) > { > echo "pass 1\n"; > } > ?> > > Pls

[PHP-CVS] cvs: php4 /pear Makefile.in /pear/Cache Function.php

2001-03-01 Thread Sebastian Bergmann
sbergmann Thu Mar 1 23:52:56 2001 EDT Added files: /php4/pear/CacheFunction.php Modified files: /php4/pear Makefile.in Log: Added experimental version of Cache_Function module. Index: php4/pear/Makefile.in diff -u php4/pear/

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread php3
Addressed to: "Simon Garner" <[EMAIL PROTECTED]> "Chris" <[EMAIL PROTECTED]> "php" <[EMAIL PROTECTED]> ** Reply to note from "Simon Garner" <[EMAIL PROTECTED]> Fri, 2 Mar 2001 13:05:00 +1300 > > So how do you verify that the logged in user is allowed to act on behalf

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread php3
Addressed to: "Chris" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Chris" <[EMAIL PROTECTED]> Thu, 1 Mar 2001 15:43:25 -0800 > > Would it not be possible to have both the form page and the script page that > handles the form be generated o the fly with random filenam

php-general Digest 2 Mar 2001 06:59:02 -0000 Issue 542

2001-03-01 Thread php-general-digest-help
php-general Digest 2 Mar 2001 06:59:02 - Issue 542 Topics (messages 42204 through 42301): Some search engine questions 42204 by: John Coggeshall Re: plese help! 42205 by: Carsten Gehling Re: PHP single user?? 42206 by: Todd Cary Re: Announcing PHP-GTK

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread php3
Addressed to: Kelly Corkill <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Kelly Corkill <[EMAIL PROTECTED]> Thu, 1 Mar 2001 16:27:21 -0700 (MST) > > > I would think you should be able to write a random string to a file when the > form page is accessed, and carry a var

RE: [PHP] IE 5.5,authentication,PHP sessions: IE never stops running?

2001-03-01 Thread John Ashton
Yeah I have seen the same problems before as well with things like phpMyAdmin and others I think it has something to do with user.exe in windows.. not to sure though. If you get it figured out please let me know John Ashton [EMAIL PROTECTED] The Data Source Network http://www.thedatasource.net >

[PHP] IE 5.5,authentication,PHP sessions: IE never stops running?

2001-03-01 Thread Ken
I'm experiencing strange behavior with my user authentication scheme in my PHP app, with users using IE 5.5 (PC and Mac). I am using browser authentication (WWW-Authenticate and 401 headers), "no cache" headers, and PHP 4 sessions. I am finding that even when the user totally quits IE, if he t

Re: [PHP] Bitwise solution?

2001-03-01 Thread Harshdeep S Jawanda
Hi, "Boget, Chris" wrote: > I have 2 values. The first is a constant while the second is not. Is the first value a numerical value (real/integer?) or a string value? If it is numerical, then one of the things you could do for using a numerical value of (say) less than 100 could be: $finalVar

Re: [PHP] Help - I can't create jpegs with GD

2001-03-01 Thread Rasmus Lerdorf
They probably didn't build jpeg support into their gd library. On Thu, 1 Mar 2001, Cherie Benoit wrote: > I can't create or manipulate jpegs, but pngs work fine. I am using a hosting > service. They installed GD 1.8.4 with jpeg support a few days ago, but I'm > thinking they did it wrong. I'm us

[PHP] Help - I can't create jpegs with GD

2001-03-01 Thread Cherie Benoit
I can't create or manipulate jpegs, but pngs work fine. I am using a hosting service. They installed GD 1.8.4 with jpeg support a few days ago, but I'm thinking they did it wrong. I'm using code I know works because it's straight out of the PHP Cookbook. What do I need to tell them to correct the

RE: [PHP] Dumb newbie graphics question

2001-03-01 Thread John Ashton
create a file called phpinfo.php and add to that file then load up that page in your browser. In regards to FAQ's visit www.php.net should also look at phpbuilder.com and there are many more. On php.net in the links section they have even more links to FAQ's John Ashton [EMAIL PROTECTED] The Da

Re: [PHP] Dumb newbie graphics question

2001-03-01 Thread Simon Garner
From: "darthzeth" <[EMAIL PROTECTED]> > like i said, im a newbie... how do i run phpinfo() ? my almost exclusive > experience is with FTPing html pages and a few PHP scripts to the server, > other than that, i dont know much. is there any FAQ you can point me to with > answer to absolute newbie q

RE: [PHP] Trigger script from Browser?

2001-03-01 Thread John Ashton
You could always use some JavaScript to popup window ands use session_destroy might work never really tried it though. John Ashton [EMAIL PROTECTED] The Data Source Network http://www.thedatasource.net > -Original Message- > From: Ted Goranson [mailto:[EMAIL PROTECTED]] > Sent: March 1,

Re: [PHP] Dumb newbie graphics question

2001-03-01 Thread darthzeth
like i said, im a newbie... how do i run phpinfo() ? my almost exclusive experience is with FTPing html pages and a few PHP scripts to the server, other than that, i dont know much. is there any FAQ you can point me to with answer to absolute newbie questions like these? - Original Message --

[PHP] Trigger script from Browser?

2001-03-01 Thread Ted Goranson
This may not be possible. I wish to trigger a small php script from a button on the displayed page without changing the page. Specifically, I wish to destroy the session. Best, Ted _ Ted Goranson Fusecap and Sirius-Beta, Virginia Beach USA 757/426-6704 [EMAIL PROTECTED] Symmetry C

[PHP] php and javascript

2001-03-01 Thread Dan Harrington
Hello, Are there any good examples of producing embedded javascript code in a php file? I am having a weird problem with some javascript that simply will not execute, even though I've properly used slashes to prefix quote marks etc. I don't get javascript errors, it simply doesn't run like it s

RE: [PHP] can't start apache

2001-03-01 Thread John Ashton
http://www.php.net/manual/en/install.apache.php all noted there ;) What a thing. John Ashton > -Original Message- > From: Scott Wagner [mailto:[EMAIL PROTECTED]] > Sent: March 2, 2001 12:12 AM > To: php general > Subject: [PHP] can't start apache > > > No. Does this get added to the c

[PHP] can't start apache

2001-03-01 Thread Scott Wagner
No. Does this get added to the configuration command? (touche on the double-post) SW

RE: [PHP] can't start apache

2001-03-01 Thread John Ashton
did you have --activate-module=src/modules/php4/libphp4.a John Ashton > -Original Message- > From: Scott Wagner [mailto:[EMAIL PROTECTED]] > Sent: March 1, 2001 11:55 PM > To: php > Subject: [PHP] can't start apache > > > Hi > I just installed mysql, apache and php4 on Linux Mandrake

[PHP] can't start apache

2001-03-01 Thread Scott Wagner
Hi I just installed mysql, apache and php4 on Linux Mandrake 7.0. After installing apache it seemed ok and started normally. But after installing PHP4 I get the following error message when I try to start apache: Syntax error on line 207 of httpd. config: cannot load /usr/apache_1.3.12/libex

[PHP] cant start apche

2001-03-01 Thread Scott Wagner
Hi I just installed mysql, apache and php4 on Linux Mandrake 7.0. After installing apache it seemed ok and started normally. But after installing PHP4 I get the following error message when I try to start apache: Syntax error on line 207 of httpd. config: cannot load /usr/apache_1.3.12/libex

Re: [PHP] Dumb newbie graphics question

2001-03-01 Thread Jack Dempsey
darthzeth wrote: > > howdy, > im new at this, so sorry if this is a dumb question... > I want to make some dynamically generated buttons, but even when i copy the most >basic of graphics scripts i can find out there, they dont seem to be working. Does >this mean my ISP is not configured for dis

RE: [PHP] Dumb newbie graphics question

2001-03-01 Thread Jason Murray
> im new at this, so sorry if this is a dumb question... > I want to make some dynamically generated buttons, but even > when i copy the most basic of graphics scripts i can find out > there, they dont seem to be working. Does this mean my ISP is > not configured for displaying PHP generated g

[PHP] Dumb newbie graphics question

2001-03-01 Thread darthzeth
howdy, im new at this, so sorry if this is a dumb question... I want to make some dynamically generated buttons, but even when i copy the most basic of graphics scripts i can find out there, they dont seem to be working. Does this mean my ISP is not configured for displaying PHP generated graph

Re: [PHP] Way to generate Passwords

2001-03-01 Thread Stephan Ahonen
> function passwort($laenge) > { > $allowed = > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890:-+="; > $allowed_length = strlen($allowed); > > $i=0; > $pw = ""; > > while ($i<$laenge) { > $pos = rand(0,$allowed_length); > $pw.= substr($allowed,$pos,1); > $i++; > } > return $pw; >

Re: [PHP] Cutting long strings for tables

2001-03-01 Thread Clayton Dukes
Juan, I'm not sure, but isn't there a wrap function? - Original Message - From: Juan Germano <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 6:29 PM Subject: [PHP] Cutting long strings for tables > Hi. I use this function with the strings I'll be showing

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Andrew Halliday
Ahh dont worry - figured it out!!! If anyone cares: In the encapsulating class i had two copies of the same variable and i was calling the local copy of open() not the object version ... AARGH - Original Message - From: "Andrew Halliday" <[EMAIL PROTECTED]> To: "Andrew Hill" <[EMAIL PR

Re: [PHP] HREFs that can't be

2001-03-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Also, how would I set the (previously GET) vars up as session > variables? I'd have to post to yet another script which > would set the session variables and in turn SUBMIT (with just > the SESSID this time) to the actu

RE: [PHP] HREFs that can't be

2001-03-01 Thread Boget, Chris
>> Here >> There >> This Place >> That Place >> --- >> As you know, those variables are being passed to the >> linked page via GET variables. Now, here comes the >> oddball question: >> How can I (is it even possible) pass those variables >> to each page w/o using GETs and w/o using Cooki

[PHP] Way to generate Passwords

2001-03-01 Thread Jochen Kaechelin
i built a script to generate passwords: function passwort($laenge) { $allowed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890:-+="; $allowed_length = strlen($allowed); $i=0; $pw = "";

Re: [PHP] Template recommendations

2001-03-01 Thread Joseph H Blythe
On Thu, 1 Mar 2001 07:58:23 +0100 Alexander wrote: AW> If you want something faster, try Smarty. Thanks, Smarty looks like it will do the trick and has some really neat features, like being able to nest dynamic blocks, I think this was my problem with FastTemplate. Regards, Joseph -- PHP Ge

Re: [PHP] Declaring SERVER-WIDE Variables

2001-03-01 Thread Simon Garner
Hi Michael, I've never used it myself, but this may be of some use: http://www.php.net/manual/en/ref.shmop.php If I understand it correctly, this lets you write a string into an area of memory which can be accessed from any process - i.e. another httpd process. If you wanted to save an array y

Re: [PHP] HREFs that can't be

2001-03-01 Thread Jaxon
Hi Chris, For my own edification, how are you creating the links dynamically - I need to do something similar ..? As far as removing GET variables, you could just flag variables in a database, that would eliminate the majority of the inter-page stuff. You would still need to leave one session o

Re: [PHP] HREFs that can't be

2001-03-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Here > There > This Place > That Place > > --- > > As you know, those variables are being passed to the > linked page via GET variables. Now, here comes the > oddball question: > > How can I (is it even possi

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-03-01 Thread Rasmus Lerdorf
rasmus Thu Mar 1 18:46:21 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Add a couple of doc accounts Index: CVSROOT/avail diff -u CVSROOT/avail:1.105 CVSROOT/avail:1.106 --- CVSROOT/avail:1.105 Tue Feb 27 06:56:43 2001 +++ CVSROO

[PHP] HREFs that can't be

2001-03-01 Thread Boget, Chris
I know I've been posing some funky wierd questions all day, but today has just been one of those days... I'm just trying to get a sense of other possibilities. And to find out what's plausable and what's not. Ok, here's my situation. I've a script that generates a variable number of HREFs/anchor

TR: [PHP] Restrict Access per IP Addresses

2001-03-01 Thread Nazoréen
Hello again :-) First, thanks for your help ! but it doesn't work, i think i don't make the right things !!! because i don't understand very well what i must do :-) For best explain, i must use PHP because my server disallow .htaccess files, this is the .htaccess files i must transform in PHP f

[PHP-CVS] Invalid Address

2001-03-01 Thread postmaster
** [EMAIL PROTECTED] is no longer a valid address. Try replacing @CELL1.com with @alltel.com If your email is still not delivered, please contact the recipient and request their new email address. ***

[PHP] Declaring SERVER-WIDE Variables

2001-03-01 Thread Michael David
Greetings, fellow PHP hackers! The current project I'm working on is porting software written in Tango to PHP4. Because these programs heavily rely on information held in (off-site) databases, the tango programs were written to have a set of array variables declared from SQL queries, which then

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Andrew Halliday
Well, you already have code to PostgreSQLDataSource ... the other object just encapsulates it ... ok heres some more code: class AbstractDataSourceManager { var $dataSourceName; var $dataSource; var $error_handler; ... function open() { if (is_Object($dataSource))

[PHP] pspell/aspell breaking

2001-03-01 Thread Seth Northrop
Setup: aspell-.32.6 pspell-.11.2 php-4.0.4pl1 apache_1.3.14 RH 7.0 glibc 2.2-12 gcc-2.96-69 Procedure: ./pspell-.11.2/configure make && make install ./aspell-.32.6/configure make && make install ./php-4.0.4pl1/configure --without-gd --with-mysql --with-config-file-path=/usr/local/apache/etc

Re: [PHP] PostgreSQL vs InterBase

2001-03-01 Thread Mark Charette
From: "Shaun Thomas" <[EMAIL PROTECTED]> > The point about Oracle is that it *lets* you do all of those > optimizations, and if you're good at it, it will outperform almost any > other database you throw at it. Trust me on this one. I'm sorry, I can't trust you very much on this. Having worked a

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Andrew Halliday
> $db = new PostgreSQLDataSource("host", "port", "user", "pass", "db"); > $db->open(); > > echo $db->connection; > ?> returns : Resource id #1 ... which is what would be expected ... The wierd thing is the result i get from my test script: - $manua

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Andrew Hill
Perhaps if you showed us some code? Best regards, Andrew On 3/1/01 7:35 PM, "Andrew Halliday" <[EMAIL PROTECTED]> wrote: > open() is simply supposed to open the connection to the database and store > it in $this->connection. > As you can see - it gets the connection info from either the object

Re: [PHP] What means "can't truncate sockets!"

2001-03-01 Thread Jaxon
well, because you are using "http://" PHP will have opened a tcp/ip socket :) try using both fread() AND fclose() from the manual: http://www.php.net/manual/en/function.fread.php // get contents of a file into a string $filename = "/usr/local/something.txt"; $fd = fopen ($filename, "r"); $c

Re: [PHP] checking for a defined function

2001-03-01 Thread Jason Brooke
http://www.php.net/manual/en/function.extension-loaded.php jason - Original Message - From: "Eric Peters" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 10:29 AM Subject: [PHP] checking for a defined function > how can I do something like > > if(!defined(cyb

Re: [PHP] session_destroy() fails...

2001-03-01 Thread Tobias Talltorp
> Why would you want to create and destroy the session data during a single > request? That simply doesn't make sense - session persistence is designed > to keep registered session data available across _a_series_ requests. This I know, but it was just to show what I wanted to do. > I believe PH

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Simon Garner
From: "Andrew Halliday" <[EMAIL PROTECTED]> > Okay - Im writing an object to wrap a database. > The key problem is this: > - it declares a connection var as an object property > - the open() function opens the connection to the database and stores > the handle in $this->connection > -

[PHP] mysql newsserver

2001-03-01 Thread deco
is there a newsserver like this one at news.php.net with messages from mysql mailing lists? -- 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 PROT

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Andrew Halliday
open() is simply supposed to open the connection to the database and store it in $this->connection. As you can see - it gets the connection info from either the objects properties or from parameters passed to it. Can you see what Ive done wrong...if anything?!?! AndrewH - Original Message --

Re: [PHP] Loss of connection handle object

2001-03-01 Thread Andrew Hill
Andrew, What is the open() function? Best regards, Andrew --- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com On 3/1/01 7:27 PM, "Andrew Halliday" <[EMAIL PROTECTED]> wrote: > Ok

[PHP] configuring php.ini

2001-03-01 Thread Erin Quick-Laughlin
I'm trying to use the example of mail() from php.net: and I've configured my php.ini with the following: [mail function] sendmail_path = /usr/sbin/sendmail -t -i ;for unix only, may supply arguments as well (default is 'sendma il -t -i') Yes it still doesn't send for me. I've check

[PHP] What means "can't truncate sockets!"

2001-03-01 Thread SED
Hi, I'm trying to truncate a txt-file which I in my script use "http://mydomain/path/to/my/file.txt" as a reference but I get this error message: Warning: can't truncate sockets! in domains/mydomain/www/path/to/my/phpfile.php on line 47 Does it mean I'll have to use "real" path

[PHP] Loss of connection handle object

2001-03-01 Thread Andrew Halliday
Okay - Im writing an object to wrap a database. The key problem is this: - it declares a connection var as an object property - the open() function opens the connection to the database and stores the handle in $this->connection - the executeQuery() method complains about not having a v

[PHP] Cutting long strings for tables

2001-03-01 Thread Juan Germano
Hi. I use this function with the strings I'll be showing in tables to cut strings too long without spaces. To make it clear: The table will be 50px width if $str isn't too long. Let's say: $str="" The table goes to hell. So: function c

Re: [PHP] session_destroy() fails...

2001-03-01 Thread Ernest E Vogelsinger
At 01:25 02.03.2001, Tobias Talltorp said: [snip] >session_start(); >session_register("value"); >session_unregister("value"); >session_destroy(); >?> [snip] Why would you want to create and destroy the session data d

[PHP] session_destroy() fails...

2001-03-01 Thread Tobias Talltorp
I am looking into sessions at the moment and havn´t got it all working properly to continue my journey. I´m having problem with the session_destroy(), and after some searching in the archive, I found out that other people have had this problem aswell, but I didn´t find a fix... Here is the error

[PHP-CVS] cvs: php4 /ext/standard html.c

2001-03-01 Thread Jani Taskinen
sniper Thu Mar 1 16:15:49 2001 EDT Modified files: /php4/ext/standard html.c Log: ws fix Index: php4/ext/standard/html.c diff -u php4/ext/standard/html.c:1.23 php4/ext/standard/html.c:1.24 --- php4/ext/standard/html.c:1.23 Sun Feb 25 22:07:17 2001 +++

Re: [PHP] validating fields

2001-03-01 Thread Simon Garner
From: "W.D." <[EMAIL PROTECTED]> > I dont know how to do this, but Ive tried several things with no success. I > need to validate several form fields and here is the script I'm working > with... > > { > (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))? > header("Location: http://ww

Re: [PHP] The neverending Session

2001-03-01 Thread CC Zona
In article <01030114311802.11459@kilbourne>, [EMAIL PROTECTED] ("Sean B.") wrote: > I'm working on a chat of sorts, and in the main frame that shows the actual > messages, there is an infinite loop (while(1)) ... now, for whatever reason, > when the browser is closed, the loop/thread/whatever

[PHP] validating fields

2001-03-01 Thread W.D.
I dont know how to do this, but Ive tried several things with no success. I need to validate several form fields and here is the script I'm working with... http://www.site.com/thanks.php"): header("Location: http://www.site.com/error.php"); } ;?> I need to check at least two more fields, possibl

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
From: "Chris" <[EMAIL PROTECTED]> > Not really, > because the script filename is deleted and changed all the time, it doesn't > matter if they paste the name into the form, since the file will no longer > exist. > It has to exist long enough for your form to post to it, which is long enough for

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Chris
No wait, I see what you mean. You're right, sometimes the obvious is missed, but it sounded cool. > From: "Chris" <[EMAIL PROTECTED]> > > > Would it not be possible to have both the form page and the script page > that > > handles the form be generated o the fly with random filenames? > > > > Th

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Chris
Not really, because the script filename is deleted and changed all the time, it doesn't matter if they paste the name into the form, since the file will no longer exist. > From: "Chris" <[EMAIL PROTECTED]> > > > Would it not be possible to have both the form page and the script page > that > > h

RE: [PHP] Munging hidden/form variables

2001-03-01 Thread Boget, Chris
> > I'm already doing this. However, if I have a hidden > > variable containing a value of the current user I'm > > working with, that value can be changed to something > > else and it would pass the test. However, I need to find a > > way to determine if something like that has happened. >

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
From: "Boget, Chris" <[EMAIL PROTECTED]> > I'm already doing this. However, if I have a hidden variable containing > a value of the current user I'm working with, that value can be changed > to something else and it would pass the test. However, I need to find a > way to determine if something

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
From: "Chris" <[EMAIL PROTECTED]> > Would it not be possible to have both the form page and the script page that > handles the form be generated o the fly with random filenames? > > The form page would point to the random generated script page, and the > script page could delete itself after it i

[PHP] Cutting long words

2001-03-01 Thread Juan Germano
Hi. I use this function with the strings I'll be showing in tables to cut strings too long without spaces. To make it clear: The table will be 50px width if $str isn't too long. Let's say: $str="" The table goes to hell. So: function c

RE: [PHP] Munging hidden/form variables

2001-03-01 Thread Boget, Chris
> Don't bother with checking the HTTP_REFERER - it can be easily forged. > There is a very simple solution to this problem -- validate the data from > the form! [snip] > You should be doing this anyway, since who knows what the user could > type in your input box. Nevermind if somebody makes a c

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Chris
Would it not be possible to have both the form page and the script page that handles the form be generated o the fly with random filenames? The form page would point to the random generated script page, and the script page could delete itself after it is proccessed. You would also want a cron to

[PHP] Cutting long words

2001-03-01 Thread Juan Germano
Hi. I use this function with the strings I'll be showing in tables to cut strings too long without spaces. To make it clear: The table will be 50px width if $str isn't too long. Let's say: $str="" The table goes to hell. So: function c

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Simon Garner
From: "Boget, Chris" <[EMAIL PROTECTED]> > It is possible (I've done it) to find out all the variables > that make up a form on a particular site, generate a > similar form on your site with that form's action being > the CGI/PHP script that the particular site uses to process > the form once sub

RE: [PHP] Munging hidden/form variables

2001-03-01 Thread Boget, Chris
> I can think of one way that you can take in an attempy to prevent > this. It is not totally fool proof but it will make it more difficult > to send spoof data: > 1) Check your HTTP refereer when the form is submitted. If the > referer is not from your host then don't process the form. > Of cours

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread Kelly Corkill
I would think you should be able to write a random string to a file when the form page is accessed, and carry a variable with the action then have the recipient compare. Presents other challenges but should give you that comforting feeling he was looking for. On Thu, 1 Mar 2001 [EMAIL PROTECTED

RE: [PHP] Munging hidden/form variables

2001-03-01 Thread Opec Kemp \( Ozemail \)
I can think of one way that you can take in an attempy to prevent this. It is not totally fool proof but it will make it more difficult to send spoof data: 1) Check your HTTP refereer when the form is submitted. If the referer is not from your host then don't process the form. Of course this can

[PHP] Loading config file from cgi

2001-03-01 Thread Tyson Lloyd Thwaites
How do you do it? I'm running PHP on NT4, and if I call a cgi from the command line it doesn't read the config file. Is there a command to use that loads the config file? Regards, Tyson Lloyd Thwaites IT&e Limited e-Commerce Division Adelaide (08) 8346 3888 -- PHP General Mailing List (htt

Re: [PHP] Munging hidden/form variables

2001-03-01 Thread php3
Addressed to: "Boget, Chris" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Boget, Chris" <[EMAIL PROTECTED]> Thu, 1 Mar 2001 14:26:16 -0600 > > --_=_NextPart_001_01C0A28D.E2F45248 > Content-Type: text/plain; > charset="iso-8859-1" > > It is possible (I've d

RE: [PHP] ImageGif: No GIF support in this PHP build

2001-03-01 Thread Jack Dempsey
sorry, clarification, not "only" PNG, but they've moved away from GIF... ~jack -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:27 PM To: PHP General List; Jimmy Bäckström Subject: RE: [PHP] ImageGif: No GIF support in this PHP build what

RE: [PHP] ImageGif: No GIF support in this PHP build

2001-03-01 Thread Jack Dempsey
what version do you have? gd > 1.3 (if memory serves correct) only supports PNG ~jack -Original Message- From: Jimmy Bäckström [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 5:20 PM To: PHP General List Subject: [PHP] ImageGif: No GIF support in this PHP build Shu! When I try

Re: [PHP] PostgreSQL vs InterBase

2001-03-01 Thread Shaun Thomas
On Thu, 1 Mar 2001, Meir kriheli wrote: > I use both of the databases (Interbase 6.01 and PostgreSQL 7.1beta4). > > PostgreSQL has more features comapared to Interbase (the procedureal language > is very robust and there are many datatyps to choose from. Also you can have > some kind of object su

[PHP] ImageGif: No GIF support in this PHP build

2001-03-01 Thread Jimmy Bäckström
Shu! When I try to use the function ImageGif() I get the following error: Warning: ImageGif: No GIF support in this PHP build... I'm using win2k with php4 width the gd module enabled in php.ini What can I do to make this problem go away? Thanks in advance /Broder

Re: [PHP] Hebrew websites transition with php3 ..

2001-03-01 Thread Aviv Revach
Hey! I'm sending this e-mail only to you, since it's way off-topic from being in the php-general mailing list. I have downloaded Netscape 6, it seems that Logical Hebrew isn't support yet - only Visual. So if Netscape 4.x (except for the 4.61 version developed by IBM), Netscape 6, and Opera d

[PHP] wrapper (simple questions)

2001-03-01 Thread Gustavo Vieira Goncalves Coelho Rios
Is there any way to have process started by a php script wrapped by a similar suexec utility (like in apache)? Plans to support such a funcionality? When? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] SetCookie

2001-03-01 Thread WreckRman2
How can I set cookies during a login for fields in the a table? Example set cookie for UserID which is a file in the same table. Also how would I retrieve that info? Thanks in advance... David Smith '; } ?> David Smith Indy Web Design http://www.indywebdesign.co

RE: [PHP] Hiding php Code

2001-03-01 Thread Hoover, Josh
If you don't want the admin or web server user to see your code, you may want to consider Zend's Encode product (http://www.zend.com/zend/products.php#encoder) which encodes your PHP code for you. BUT, this can be rather expensive (depending on your use) and you probably still need your Administr

Re: [PHP] Hiding php Code

2001-03-01 Thread Rene Maldonado
That's the problem, I don't want the web server user or administrator to see the code. Rene Kath wrote: > You might be able to limit who the file is readable by to just the web > server user. > > - Original Message - > From: "Rene Maldonado" <[EMAIL PROTECTED]> > To: "Lista PHP" <[EM

Re: [PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.inconfig.m4 php_vpopmail.c php_vpopmail.h

2001-03-01 Thread David Croft
On Tue, 16 Jan 2001, Andrei Zmievski wrote: > > PHP_FE(vpopmail_passwd, NULL) > > PHP_FE(vpopmail_setuserquota, NULL) [snip] > Didn't we agree to put underscores between words in function names, i.e. > vpopmail_del_user? At the expense of losing compatability with the library's existing

[PHP] security approach?

2001-03-01 Thread Gustavo Vieira Goncalves Coelho Rios
Hi folks! I am facing a common problem, related to allowing my shell users to use php. I would like to prevent them from forking process. How can this be accomplished? Is there any way to get the proccess creation wrapped by suexec? -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Hiding php Code

2001-03-01 Thread Rene Maldonado
Hi all, I need to hide the php code, on the server. I know that php is not compiled, so, is there a way to do this?? Thanks Rene -- 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

[PHP] What did I forget?

2001-03-01 Thread Borja Lopez Montilla
Hello everybody, I´m a spanish newbie in PHP. I´ve installed Apache Web Server over my Windows 2000 Server and after that I did the same with PHP4. I followed the docs step by step and I think I did everything they say. I configured php.ini and httpd.conf to suply my needs and I restarted Apac

[PHP] The neverending Session

2001-03-01 Thread Sean B.
I'm working on a chat of sorts, and in the main frame that shows the actual messages, there is an infinite loop (while(1)) ... now, for whatever reason, when the browser is closed, the loop/thread/whatever just won't die. There are sessions involved, and the loop basically just checks a MySQL D

RE: [PHP] Munging hidden/form variables

2001-03-01 Thread Boget, Chris
> Is there any way to defend against this? Is there any way > to ensure that when a form is submitted that the submission > request originated from your site/domain and not somewhere > else? Knowing that $HTTP_REFERER cannot be relied on as containing valid data (as some browsers don't support i

[PHP] Munging hidden/form variables

2001-03-01 Thread Boget, Chris
It is possible (I've done it) to find out all the variables that make up a form on a particular site, generate a similar form on your site with that form's action being the CGI/PHP script that the particular site uses to process the form once submitted, modify the values for the form variables to

Re: [PHP] Odd PHP/MySQL Question

2001-03-01 Thread Julian Wood
select count(*), year from students group by year; on 3/1/01 12:07 PM, Kath at [EMAIL PROTECTED] wrote: > I have a user database where a year has to be put in. > > Now, I want to compile a list of each different year and how many users are in > that year. > > Is there a way to do this beyond

RE: [PHP] Odd PHP/MySQL Question

2001-03-01 Thread Hoover, Josh
You could try something like this: SELECT year, count(studentID) FROM students GROUP BY year ...where studentID is the primary key column/field in your students table. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Vi

[PHP] Error, anyone seen this before?

2001-03-01 Thread Brandon Orther
hello, I am getting this error when I try to get an ftp_list. Warning: Unable to find ftpbuf 0 in c:\apache\htdocs\sitemaestro\scripts\formmail.php on line 72 and ideas? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PRO

  1   2   3   >